Pitch Bend, MC MPE Synth

bd's icon

While using the example patch "mc_mpe_synth", how / where would you actually add the pitch bend value to the note's on original pitch?
I am trying different possibilities, and it works mostly as intended.
However adding it, whether with the existing pitch's mc.target object or with a new one, causes problems. Pitch of other notes or new notes get messed up, next note start at wrong pitch etc.
It is some timing / message order issue I guess, like old note's value stored for new notes.
I am trying to debug this but no success so far. So I though I ask, before I screw my head even more :D
What would be the cleanest way to add the pitch bend in that synth?

bd's icon

Excuse my monologue please :D
For now the solution is to write last played pitch of every voice in to a table, and then read them for adding pitch bend when changing.
Seems fine after few minutes of playing ;)

TEST_mc_mpe_synth.maxpat
Max Patch

dbkarp's icon

thank you very much for sharing this!!

i think a many more people will want to do this, now that the Osmose keyboard is available.

i tweaked your patch a little, with code from this article to get better control of pitch bend range: https://music.arts.uci.edu/dobrian/maxcookbook/using-midi-pitchbend-data-msp

i hope it's helpful.

mc_mpe_synth_bendy.maxpat
Max Patch