Page 1 of 1

Find playing clip slot within current track

Posted: Thu Jan 26, 2012 3:34 pm
by maara
Hi all,

I am not so much skilled in the m4l development itself (to be honest I understand other's codes much better than building my from the scratch :-D ) and I am facing kind a funny issue... I am making a simple effect and I need it to call some functions of the currently playing clip within the track where is the effect placed...
Could anyone help me how to dynamically find a live.path for:
0) current track where my m4l device is (I expect it to be on multiple tracks at the same time)
1) find the path of the clip which is currently playing in the track where is the device placed

I know its easy but to be honest I got stuck finding this "relative" values... :-)

Thanks for help


Marek

Re: Find playing clip slot within current track

Posted: Thu Jan 26, 2012 4:27 pm
by S4racen
Open up Follow and Pitch Device... take code from there ;-)

Cheers
D

Re: Find playing clip slot within current track

Posted: Thu Jan 26, 2012 6:35 pm
by maara
Thanks for advice - it helped :-)


Marek

Re: Find playing clip slot within current track

Posted: Thu Jan 26, 2012 6:39 pm
by S4racen
No worries mate!

Cheers
D

Re: Find playing clip slot within current track

Posted: Thu Jan 26, 2012 8:22 pm
by maara
so.... this is my very first m4l device...
I spent just a few minutes trying to create 8 buttons allowing me to jump -8 -4 -2 -1 -- +1 +2 +4 +8 beats within the playing clip which I can map to my apc and quickly move within the playing track...
Anyone want to try and tell me what I did wrong etc...? ;-)

http://dl.dropbox.com/u/2477683/Beat_Jumper_1.amxd

ps: m4l seems to bea really fun! :-D

Thanks

PS: Its fair to say that the code snippet identifying the currently playing clip is inspired/taken from Follow (part of Moduler series made by http://isotonikstudios.com/ ) - thanks!

Re: Find playing clip slot within current track

Posted: Fri Jan 27, 2012 9:05 am
by maara
hm hm next task:
- get the cycles of 8 (counter) for playing clip allowing to match two track to be in the same "phase" of the beat...