Find playing clip slot within current track

Learn about building and using Max for Live devices.
Post Reply
maara
Posts: 28
Joined: Tue Oct 04, 2011 7:57 am
Location: Prague

Find playing clip slot within current track

Post by maara » Thu Jan 26, 2012 3:34 pm

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
-----------------------------------------------------------
Live Suite 9+M4L+APC40+MOTU Ultralite MK3+Maschine MK2+AXIOM 25

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: Find playing clip slot within current track

Post by S4racen » Thu Jan 26, 2012 4:27 pm

Open up Follow and Pitch Device... take code from there ;-)

Cheers
D

maara
Posts: 28
Joined: Tue Oct 04, 2011 7:57 am
Location: Prague

Re: Find playing clip slot within current track

Post by maara » Thu Jan 26, 2012 6:35 pm

Thanks for advice - it helped :-)


Marek
-----------------------------------------------------------
Live Suite 9+M4L+APC40+MOTU Ultralite MK3+Maschine MK2+AXIOM 25

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: Find playing clip slot within current track

Post by S4racen » Thu Jan 26, 2012 6:39 pm

No worries mate!

Cheers
D

maara
Posts: 28
Joined: Tue Oct 04, 2011 7:57 am
Location: Prague

Re: Find playing clip slot within current track

Post by maara » Thu Jan 26, 2012 8:22 pm

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!
-----------------------------------------------------------
Live Suite 9+M4L+APC40+MOTU Ultralite MK3+Maschine MK2+AXIOM 25

maara
Posts: 28
Joined: Tue Oct 04, 2011 7:57 am
Location: Prague

Re: Find playing clip slot within current track

Post by maara » Fri Jan 27, 2012 9:05 am

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...
-----------------------------------------------------------
Live Suite 9+M4L+APC40+MOTU Ultralite MK3+Maschine MK2+AXIOM 25

Post Reply