Add support for Simpler LFO template in Ableton exports

This commit is contained in:
2026-07-13 05:05:06 +02:00
parent 3f60f958dd
commit ed0b46bae5
2 changed files with 5 additions and 0 deletions

View File

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

View File

@@ -58,6 +58,7 @@ const live10TemplateMap: Record<string, () => Promise<any>> = {
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'),