Send pitch bend information to Live

Hi Marc, hi everyone.
Hope you are doing well.
I do have a working small testing script to send midi part to Live via IAC but the pitch bend information seems not to go through. So I’m sending a stream of quarter tones (60, 60.5, 61, 61.5, etc) and instead I get repeating notes from Live as if Live is rounding up or not seeing the Pitch Bend info.
Any idea of what I’m doing wrong ? I haven’t been to it for a while and I think it was working before… might have broke it haha

Here is the main script :

from orchestratorV1 import *
from scamp import *

MIDI_TO_ABLETON = True 

s = Session()


instrument_numbers = (
 
    ("violin", 1),

)

instrument_list = [
    inst_name for inst_name, inst_count in instrument_numbers for _ in range(inst_count)
]


if MIDI_TO_ABLETON:
    midi_parts = [
        s.new_midi_part(
            f"MIDI_{inst_name}",
            f"IAC Bus {inst_count    // 16 + 1}",
            start_channel=(inst_count % 16),
            num_channels=1,
            max_pitch_bend=24,
        )
        for inst_count, inst_name in enumerate(instrument_list)
    ]

    o = Orchestrator(midi_parts, s.beat)
else:
    for inst_name in instrument_list:
        s.new_part(inst_name)
    o = Orchestrator(s.instruments, s.beat)

### TEST ###

while True:
    for i in range(12):
        o.play_note(60+i/2, 0.5, 0.25, blocking=True)

Thanks and cheers,
Gabriel

I found a way ! With another instrument in live that has pitchbend (using “Drift’” for now) and matching the max_pitch_bend on the new_midi_part.

Solved !
Cheers