Improve handling of time and zero-pressure events in MIDI export
This commit is contained in:
@@ -52,11 +52,12 @@ export function buildMidiClipEnvelopes(
|
||||
}
|
||||
|
||||
eventCount++;
|
||||
const time = event.position / 96;
|
||||
if (value === previousValue) {
|
||||
points.push({ time, value });
|
||||
return;
|
||||
}
|
||||
|
||||
const time = event.position / 96;
|
||||
points.push({ time, value: previousValue });
|
||||
points.push({ time, value });
|
||||
previousValue = value;
|
||||
|
||||
Reference in New Issue
Block a user