mc.function simultaneous float query

jasch's icon

Hello,
I've discovered the mc.function object which looks like a great expansion of this crucial object for animating values.

My question: is it possible to query all channels simultaneously with a float without having to switch the displaychan (see attached MWE)?

Two things come to mind: editing and querying could be dissociated and continuously repainting the ui would be avoided (the ui flickers now).

Or did I miss something?

many thanks,
/*j

Max Patch
Copy patch and select New From Clipboard in Max.

jasch's icon

To answer my own question: the [mc.target] object allows to target specific instances inside mc.objects (like poly/poly~) and thus query voices individually without interfering with the painting.
Not intuitive and not directly documented with the object itself, but part of the overall mc-expansion object suite. IMHO not the most elegant code strategy, but works.

I hope this may help someone in the future.

best

/*j

Max Patch
Copy patch and select New From Clipboard in Max.

kleurbleur's icon

Near future here, it helped tremendous.

lucas's icon

small improvement using the "setvalue 0" message, and using mc.makelist to output floats as a list directly:

Max Patch
Copy patch and select New From Clipboard in Max.