get all clip names in set, then play one

Learn about building and using Max for Live devices.
Post Reply
mrboni
Posts: 49
Joined: Tue Jun 19, 2007 9:29 pm
Location: Bristol, UK

get all clip names in set, then play one

Post by mrboni » Tue Oct 13, 2015 10:54 am

I need to get the clip names of every clip inthe current Ableton set, choose one that matches an input string, and play it

Any ideas?

There is the abstraction called M4L.api.GetAllDeviceIds which maybe can be extended to return all clips ids?

Thanks


mrboni
Posts: 49
Joined: Tue Jun 19, 2007 9:29 pm
Location: Bristol, UK

Re: get all clip names in set, then play one

Post by mrboni » Tue Oct 13, 2015 11:50 am

Hey, thanks for that.

I just bought it, and I can't edit the patches to see how it works!

I should've been more clear, I need to use this functionality in my own patch that is part of a bigger project..


edit: looks like I can edit - sorry!

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

Re: get all clip names in set, then play one

Post by S4racen » Tue Oct 13, 2015 12:14 pm

You get a head start then ;-)

It's not my patch just one i remember being very useful!

Cheers
D

mrboni
Posts: 49
Joined: Tue Jun 19, 2007 9:29 pm
Location: Bristol, UK

Re: get all clip names in set, then play one

Post by mrboni » Tue Oct 13, 2015 1:44 pm

It is!

I've edited it to take a clip name over udp and play that clip.

can you think of a way I could make it 'polyphonic'- so I could send e.g. 3 clip names at once (maybe as a 3 names with whitespace between) and have those 3 clips matched and played?


I imagine a hacky way would be to 'cycle' through those 3 names, leaving a delay in between. This delay would be acceptable from my end.

Any suggestions how I might do that?

madlab
Posts: 1389
Joined: Fri May 02, 2003 6:38 am
Location: France

Re: get all clip names in set, then play one

Post by madlab » Tue Oct 13, 2015 2:04 pm

You'll have to use this inside a poly object or iterate your clips ids to one live.object.
Aboard from V. 1
MBP M1 Pro 2021 - 16 Go RAM - Monterey 12.6.3
MBP 2.5 Ghz I7 16 Go SSD OSX 10.14
iPad + Mira+ TouchOsc
RME FF UC Live 11.3.21 M4L Max 8
Band : https://elastocat.org/
Madlab sound unit / objects, guitar, electronics / end_of_transmission

Post Reply