how to control 'sample selector' and 'chain sekector' in Live through M4L

prko's icon

Dear advanced users,

I would like to control 'sample selector' of an instance of Sampler and 'chain selector' of an instrument rack in Live through M4L.
Is it possible?

Firstly, I must know the path of the sample selector. Thus I read the LOM document (https://docs.cycling74.com/max7/vignettes/live_object_model), but I could not understand it.

I also think the following method will not work properly, because we have live.remote~, but we do not have live.remote.
live.path -> live.remote~ -> track 5 -> sampler -> sample selector

Is there any solution for it?

Best regards,
prko

path live_set tracks 5 device ????

prko's icon

I have tried to patch with live.object but have no success.

Evan's icon
Max Patch
Copy patch and select New From Clipboard in Max.

\

Yeah there's a solution. You probably just didn't have the right path.
You can also use live.remote~, but I used live.objects for this demonstration.
Why do think that it wouldn't work with live.remote~? and why would we need a non audio version?

prko's icon

Dear Evan,

Thank you very much!
I thought live.remote~ controls audio signals, but "sample selector" and "chain selector" have just 128 values.
I think live.control is a proper object for it...
I will try it later.

Best,
prko

Evan's icon

You're misunderstanding live.remote~. You use audio signals to control a parameter that is assigned to live.remote~. If you use an lfo (or any continuous source of data) to control a live.object, it will flood the undo history. Which is bad.