Update MIDI channel pressure target from 129 to 1 for Ableton export

This commit is contained in:
2026-07-14 06:56:50 +02:00
parent d5f86370d7
commit aa515202ca
2 changed files with 4 additions and 4 deletions

View File

@@ -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(