Can we get at the Live playhead info?
Re: Can we get at the Live playhead info?
just a shot, but get loop start+ loop end or length for clip.
observed when it begins playing.
use various methods (phasor) to generate sync info.
the problem is making somethign that updates itself with the clip (recording a new clip and whatnot)
observed when it begins playing.
use various methods (phasor) to generate sync info.
the problem is making somethign that updates itself with the clip (recording a new clip and whatnot)
Re: Can we get at the Live playhead info?
I tried something like this using the python api, the problem was the update frequency (100ms) wasnt tempo matched so youd get shifts in the trigger times.
This should be doable with m4l since all the metros can be synced very easily.
* monitor clip slots for new clips: has_clip observer (store length)
* monitor clips for playing status: is_playing, is_triggered observers (record current time)
* calculate where in the clip you are at the current moment
then technically you should be able to mlv type things with clips assuming you can actually nudge the playhead. There was a call in the pythonapi for this, not sure if its there in the m4l api yet.
Will try and put some test stuff together for this. Im kinda getting there with the javascript, easy to add listeners and the likes.
This should be doable with m4l since all the metros can be synced very easily.
* monitor clip slots for new clips: has_clip observer (store length)
* monitor clips for playing status: is_playing, is_triggered observers (record current time)
* calculate where in the clip you are at the current moment
then technically you should be able to mlv type things with clips assuming you can actually nudge the playhead. There was a call in the pythonapi for this, not sure if its there in the m4l api yet.
Will try and put some test stuff together for this. Im kinda getting there with the javascript, easy to add listeners and the likes.
Re: Can we get at the Live playhead info?
there is function.
have you seen Live Object Model? it is a refpage. delicious.
have you seen Live Object Model? it is a refpage. delicious.
-
k reverend
- Posts: 18
- Joined: Mon Sep 03, 2007 7:39 am
- Location: LA
- Contact:
Re: Can we get at the Live playhead info?
i'd like to +1 this request, as it would accommodate a clip-based mlr type instrument for the monome, extending mlr to midi loops as well as audio.
edit - also, since we can only jump a relative number of beats in a loop (rather than to an absolute point), observing playhead info makes life easier.
edit - also, since we can only jump a relative number of beats in a loop (rather than to an absolute point), observing playhead info makes life easier.
Re: Can we get at the Live playhead info?
hi ST8! Nice to see you hear 
keep us posted, I'm also interested. I've gotten this working with through the python api hack, same algorithm and same problem with the 100ms resolution. Don't have the time right now to dive into it, I'm still new to M4L
keep us posted, I'm also interested. I've gotten this working with through the python api hack, same algorithm and same problem with the 100ms resolution. Don't have the time right now to dive into it, I'm still new to M4L
-
Vlad Spears
- Posts: 4
- Joined: Tue Sep 01, 2009 4:28 pm
Re: Can we get at the Live playhead info?
I'd like to +666 this request.
I've been working on mlr-esque functionality with clips. I've had partial success shifting loop points around in a clip, but it's messy. Getting a floating point playhead position in the clip so I could instead simply know how whether to positively or negatively sign a jump within the clip would be much more straightforward.
I've been working on mlr-esque functionality with clips. I've had partial success shifting loop points around in a clip, but it's messy. Getting a floating point playhead position in the clip so I could instead simply know how whether to positively or negatively sign a jump within the clip would be much more straightforward.
-
Gregory Taylor
- Posts: 268
- Joined: Tue Sep 01, 2009 3:11 pm
Re: Can we get at the Live playhead info?
It has certainly been noted, as you might expect.
Re: Can we get at the Live playhead info?
yeah thats exactly right. we tried this a ton of different ways, transport was a little icky in b1 but its spot on now, reports very obediently, a quantized metro can poll it exactly down to the tick, all stays in time nicely.Gregory Taylor wrote: I'm not completely certain about this, but I would *think* that using the transport object might be smarter, since Max might be refreshed more regularly than the priority queue that updates stuff from the Live API. I could be wrong, but I don't think so.
Re: Can we get at the Live playhead info?
I thought i'd solved this and then i realised i hadn't +1000 for a proper solution!
Cheers
D
Cheers
D