Forums > MaxMSP

Noob Question Midi CC to Control umenu /

Jul 29 2013 | 10:37 am

Hello dear max/msp community

this is my first post – I am building a live sampling improvisation patch
so whats my problem?
midiparse gives me controller number and value
and I want to map different encoder to control different u-menus/live.tabs with each around 17 items
umenu accepts 0-16 to set my 1-17 items
but which module translates my midi 1-127 into 0-16?
also a problem is that I want to filter out all irrelevant controller numbers:
that means only if CCNo X passes its values it accepts them to modulate through item 1-17 in umenu
– select is cool but it only bangs on CCNo X
– gswitch is almost there with == CCNo X Modification, but it also puts values out if i turn an other encoder – it settles on a certain value depending on the encoder I turned. didn’t figure out how exactly this numbers get calculated…

How would you search for this kind of problem? I don’t even know how to articulate my search to search the thread – what advise would you give a beginners? I guess it is a typical "max problem".

greetings from vienna

Jul 29 2013 | 11:14 am

To get the values of only one particular continuous controller, use the [ctlin] object, or use the [route] object to parse the controller data coming out of [midiparse].

To change one range of values into another, use simple math (usually one multiplication and one addition will be enough), or use the [scale] object.

Check out the Max tutorials, too, since they teach some of these basics.

-- Pasted Max Patch, click to expand. --


Jul 29 2013 | 1:20 pm

great, thank you christopher dobrian, I saw the ctlin many times, but how one should know as a beginner which object is right – learning all objects by heart at first is a bit of a mountain task ;-)

ps: wow you did also an explanatory patch, awesome!! thank you very much

Jul 30 2013 | 5:28 am

I already use it, works great, but one more question christopher, why /128 & not /127

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP