From ed0b46bae51e3da0de2daec2c0da72ef9d0aa54c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Jul 2026 05:05:06 +0200 Subject: [PATCH] Add support for Simpler LFO template in Ableton exports --- src/lib/exporters/ableton/builders.ts | 4 ++++ src/lib/exporters/ableton/utils.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/lib/exporters/ableton/builders.ts b/src/lib/exporters/ableton/builders.ts index cb2a470..46a1b51 100644 --- a/src/lib/exporters/ableton/builders.ts +++ b/src/lib/exporters/ableton/builders.ts @@ -390,6 +390,10 @@ async function buildSimplerDevice(koTrack: AblTrack, abletonVersion: AbletonVers // adding vibrato from MOD fader param if defined if (koTrack.faderParams[FaderParam.MOD] !== -1) { device.Lfo.IsOn.Manual['@Value'] = 'true'; + if (!device.Lfo.Slot.Value.SimplerLfo && abletonVersion === '10') { + const simplerLfoTemplate = await loadTemplate('simplerLfo', abletonVersion); + device.Lfo.Slot.Value.SimplerLfo = structuredClone(simplerLfoTemplate.SimplerLfo); + } // KO's MOD wheel on 100% is roughly equal to 5% LFO pitch modulation device.Pitch.PitchLfoAmount.Manual['@Value'] = koTrack.faderParams[FaderParam.MOD] / 20; device.Lfo.Slot.Value.SimplerLfo.RateType.Manual['@Value'] = 1; // tempo synced 1/16 diff --git a/src/lib/exporters/ableton/utils.ts b/src/lib/exporters/ableton/utils.ts index 4bd86ab..4d8eef7 100644 --- a/src/lib/exporters/ableton/utils.ts +++ b/src/lib/exporters/ableton/utils.ts @@ -58,6 +58,7 @@ const live10TemplateMap: Record Promise> = { midiTrack: () => import('./templates/live10/midiTrack.xml?raw'), project: () => import('./templates/live10/project.xml?raw'), simpler: () => import('./templates/live10/simpler.xml?raw'), + simplerLfo: () => import('./templates/live10/simplerLfo.xml?raw'), scene: () => import('./templates/live10/scene.xml?raw'), groupTrack: () => import('./templates/live10/groupTrack.xml?raw'), drumRack: () => import('./templates/live10/drumRack.xml?raw'),