Add support for Simpler LFO template in Ableton exports
This commit is contained in:
@@ -390,6 +390,10 @@ async function buildSimplerDevice(koTrack: AblTrack, abletonVersion: AbletonVers
|
|||||||
// adding vibrato from MOD fader param if defined
|
// adding vibrato from MOD fader param if defined
|
||||||
if (koTrack.faderParams[FaderParam.MOD] !== -1) {
|
if (koTrack.faderParams[FaderParam.MOD] !== -1) {
|
||||||
device.Lfo.IsOn.Manual['@Value'] = 'true';
|
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
|
// 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.Pitch.PitchLfoAmount.Manual['@Value'] = koTrack.faderParams[FaderParam.MOD] / 20;
|
||||||
device.Lfo.Slot.Value.SimplerLfo.RateType.Manual['@Value'] = 1; // tempo synced 1/16
|
device.Lfo.Slot.Value.SimplerLfo.RateType.Manual['@Value'] = 1; // tempo synced 1/16
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ const live10TemplateMap: Record<string, () => Promise<any>> = {
|
|||||||
midiTrack: () => import('./templates/live10/midiTrack.xml?raw'),
|
midiTrack: () => import('./templates/live10/midiTrack.xml?raw'),
|
||||||
project: () => import('./templates/live10/project.xml?raw'),
|
project: () => import('./templates/live10/project.xml?raw'),
|
||||||
simpler: () => import('./templates/live10/simpler.xml?raw'),
|
simpler: () => import('./templates/live10/simpler.xml?raw'),
|
||||||
|
simplerLfo: () => import('./templates/live10/simplerLfo.xml?raw'),
|
||||||
scene: () => import('./templates/live10/scene.xml?raw'),
|
scene: () => import('./templates/live10/scene.xml?raw'),
|
||||||
groupTrack: () => import('./templates/live10/groupTrack.xml?raw'),
|
groupTrack: () => import('./templates/live10/groupTrack.xml?raw'),
|
||||||
drumRack: () => import('./templates/live10/drumRack.xml?raw'),
|
drumRack: () => import('./templates/live10/drumRack.xml?raw'),
|
||||||
|
|||||||
Reference in New Issue
Block a user