Converting midi data question pitch bend to cc?

Mareco's icon

Dear Max4Live-Forum,

I am new to the forum and - not that new to using m4l devices - yet a beginner in midi programming issues.

I haven't found a device for that nor any other solutions but I guess there already exists some (or maybe it is just not possible?):

Pitch bend is not a "normal" CC parameter but transmitted via midi. Is there a way to convert pitch bend data to a CC paramter and 0-128 values in ableton live/max for live? Do you now of any device doing this?

Thank you!
Best regards
Mareco

Pedro Santos's icon

Hi Mareco. Welcome.
It's very easy. "Regular" Pitch Bend in Live has the same resolution (0-127).
You just need to remap it to a CC message, adding the intended CC ID...
Take a look

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

Nick Holmes's icon

Hi Mareco,

This is pretty simple to achieve - just use a [midiselect] to grab the Pitch Bend messages, and send them out with a [ctlout]. The [midiselect] also has a output for everything you didn't select, and these can just be passed through.

Here is a minimal version that maps the Pitch Bend to CC 50. I'll leave it to you add any bells and whistles you might want;

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

(BTW, Pitch Bend and CC values are in the range 0-127, not 0-128).

HTH,
Nick.

Mareco's icon

Hi Pedro, hi Nick,

thanks for the fast answers and helpful coding hints!
Will try that..

Best regards
Mareco