Need help with my Simpler-Map (LOM-IDs, names etc.)

Learn about building and using Max for Live devices.
Post Reply
Nicken
Posts: 18
Joined: Mon May 11, 2009 7:08 pm
Location: Leipzig, Germany
Contact:

Need help with my Simpler-Map (LOM-IDs, names etc.)

Post by Nicken » Mon May 19, 2014 9:56 am

Hey guys,

i also posted this over in the cycling74-forums, not sure where all the crowd is, so i ask you guys as well :)

here is what i’m trying to accomplish:
I want to have a Instrument Rack full of simplers. This is my workaround for the lack of Abletons possibility to dynamically change the sample inside simpler.
But then i want to have a custom mapping on my remote SL 37 where i have near complete control of all the Simplers parameters.
I want to dynamically add and remove simplers as time goes by and don’t want to lose my custom midi-mapping.

so here is what i thought to do with max:
create a maxpatch, that "duplicates" all of simplers knobs and faders, that automatically maps itself to the currently selected simpler. my "hardwired" midi-mapping then goes to the max-device and i will never spoil my midi mappings again or have to do it a thousand times …

if you now think: "why the hell is he thinking so complicated?", please nudge me in a simpler direction ;)

this is kind-of my first max-project, so it has been a tough journey learning all the basics while going, but having this clear goal helps me to push through.

basically what i first did is for every parameter having a seperate live.path call and seperate live.remote going on.
my path is

Code: Select all

goto this_device canonical_parent devices 1 chains $1 devices 0 parameters 3
where $1 indicates the active chain.

Now, what i encountered about Parameter IDs:
For me it would have been obvious, that for example SStart always is parameter 3, while VeAttack is always parameter 26.
But it turns out, that this is not the case. parameter 23 can be totally different Knobs, seemingly random.

In the reference for the LiveAPI/LOM i read that the parameters are identified by their names.
The point where i’m stuck now is:
how do i select a parameter via its name when all live.path is taking as arguments is IDs?

do you guys have any ideas for helping me out?

thanks,
niklas

chapelier fou
Posts: 6356
Joined: Mon May 15, 2006 12:15 pm

Re: Need help with my Simpler-Map (LOM-IDs, names etc.)

Post by chapelier fou » Mon May 19, 2014 4:16 pm

i would assume that a device's parameters number would be consistent as well...i'll check.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

chapelier fou
Posts: 6356
Joined: Mon May 15, 2006 12:15 pm

Re: Need help with my Simpler-Map (LOM-IDs, names etc.)

Post by chapelier fou » Mon May 19, 2014 4:23 pm

So...
Many many time, it appears that there is an abstraction that is doing what you want to do. In this case, i think that m4l.api.GetAllDeviceParameterIds could be useful. In combination with m4l.api.GetAllDeviceIds.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

JoshG567
Posts: 353
Joined: Fri Mar 07, 2014 7:42 pm

Re: Need help with my Simpler-Map (LOM-IDs, names etc.)

Post by JoshG567 » Mon May 19, 2014 4:42 pm

If you set up a Sampler for multisample, map the sampler selector to a macro control, and then convert it to Simpler via right-click on the device title bar it will retain all of the samples you loaded and still let you change them with the macro. You just have to convert back to Sampler if you want to edit the zones or individual samples.

Post Reply