Polyphonic Pitch Bend (Microtonal Scale) Issue

Slice Doe's icon

Hi I am using a Max for Live, Midi Effect. The goal of the attached max patch is to be able to use any instrument in Ableton Live while changing the tuning and remapping the midi notes in order to play microtonal music with a 19-note equal temperament scale.

In the attached patch I am using a 19-note equal temperament scale with up to 3 voices, with 440 HZ set as an A4.

I am separating the voices using the poly object and a gswitch2, which works pretty well. The issue I am having is the pitch bend for the second voice affects the pitch bend for the first voice and messes up the chord.

I have tried a few things but nothing seems to work. Here is what I have tried:

1. I have tried to set each midiformat object to a different midi channel.
2. I have tried to use the noteout object along with the bendout object and attempted to set each voice on a different channel.
3. I have tried to place the midiout on different ports a,b,c along with separate channels 1,2,3.

Nothing seems to work. The pitch bend of the second and third voice affects the pitch bend of the 1st voice or vice versa depending on the order the notes are played.

I am using a Ableton Push 2 in User Mode as the midi controller, no matter what I press it seems to route through Ch.1 in Ableton. If I am on the normal mode it routes everything through Channels 11-18 depending on the row I press. I don't know if this really matters, but maybe it does. I have also tried to do this with a midi keyboard and I am getting the same results.

I don't seem to have any input or output options on the Midi Setup in Max. Maybe that has something to do with the issue? I attached what it shows on my Midi Setup as well.

And advice, recommendations, or solutions that can be provided would be very much appreciated.

Thank you!

Max Forum Polyphonic Pitch Bend.amxd
amxd 19.46 KB