diff --git a/src/lib/exporters/ableton/midi.ts b/src/lib/exporters/ableton/midi.ts index 227fec2..2a9892f 100644 --- a/src/lib/exporters/ableton/midi.ts +++ b/src/lib/exporters/ableton/midi.ts @@ -10,7 +10,7 @@ type AutomationPoint = { value: number; }; -const CHANNEL_PRESSURE_TARGET = 129; +const CHANNEL_PRESSURE_TARGET = 1; const SENTINEL_TIME = -63072000; export function decodeChannelPressure(event: AblMidiEvent) { diff --git a/tests/ableton-midi.test.ts b/tests/ableton-midi.test.ts index d15dd8a..f706564 100644 --- a/tests/ableton-midi.test.ts +++ b/tests/ableton-midi.test.ts @@ -84,7 +84,7 @@ test('decodes only the captured EP Channel Pressure record shape', () => { test('builds native Live 10 Channel Pressure steps with raw values', () => { const controllerTargets = { - 'ControllerTargets.129': { '@Id': 45123, LockEnvelope: { '@Value': 0 } }, + 'ControllerTargets.1': { '@Id': 45123, LockEnvelope: { '@Value': 0 } }, }; const envelopes = buildMidiClipEnvelopes( [midiEvent(192, 2, 20), midiEvent(96, 2, 75), midiEvent(96, 2, 20)], @@ -94,7 +94,7 @@ test('builds native Live 10 Channel Pressure steps with raw values', () => { const events = envelope.Automation.Events.FloatEvent; assert.equal(envelope.EnvelopeTarget.PointeeId['@Value'], 45123); - assert.equal(controllerTargets['ControllerTargets.129'].LockEnvelope['@Value'], 1); + assert.equal(controllerTargets['ControllerTargets.1'].LockEnvelope['@Value'], 1); assert.deepEqual( events.map((event: any) => [event['@Time'], event['@Value']]), [ @@ -111,7 +111,7 @@ test('builds native Live 10 Channel Pressure steps with raw values', () => { test('retains an unchanged zero-pressure event at its original time', () => { const envelopes = buildMidiClipEnvelopes([midiEvent(48, 2, 0)], { - 'ControllerTargets.129': { '@Id': 45123 }, + 'ControllerTargets.1': { '@Id': 45123 }, }); assert.deepEqual(