From 6e4fc9fbf70801e813336c13c3f9727bd21ef845 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Jul 2026 07:56:45 +0200 Subject: [PATCH] Apply value offset when converting fader values for automation --- src/lib/exporters/ableton/automation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/exporters/ableton/automation.ts b/src/lib/exporters/ableton/automation.ts index 53d4709..9b63830 100644 --- a/src/lib/exporters/ableton/automation.ts +++ b/src/lib/exporters/ableton/automation.ts @@ -9,6 +9,7 @@ export type AbletonAutomationTarget = { soundLength?: number; invertValue?: boolean; staticValue?: number; + valueOffset?: number; }; export type AbletonAutomationTargets = Partial>; @@ -53,7 +54,7 @@ export function convertFaderValue( } break; case FaderParam.PTC: - convertedValue = (value - 0.5) * 10; + convertedValue = (target?.valueOffset ?? 0) + (value - 0.5) * 10; break; case FaderParam.LPF: convertedValue = 20 + value * 0.9 * 115;