Update Ableton export logic for group tracks and clips
This commit is contained in:
@@ -644,12 +644,14 @@ async function buildTrack(
|
||||
midiTrack.DeviceChain.Mixer.Sends = {} as any;
|
||||
midiTrack.DeviceChain.Mixer.Volume.Manual['@Value'] = koTrack.volume;
|
||||
|
||||
if (!exporterParams.groupTracks && koTrack.faderParams[FaderParam.PAN] !== -1) {
|
||||
const useChildGroupMixer = !exporterParams.groupTracks || exporterParams.clips;
|
||||
|
||||
if (useChildGroupMixer && koTrack.faderParams[FaderParam.PAN] !== -1) {
|
||||
midiTrack.DeviceChain.Mixer.Pan.Manual['@Value'] =
|
||||
(koTrack.faderParams[FaderParam.PAN] - 0.5) * 2;
|
||||
}
|
||||
|
||||
if (!exporterParams.groupTracks && koTrack.faderParams[FaderParam.LVL] !== -1) {
|
||||
if (useChildGroupMixer && koTrack.faderParams[FaderParam.LVL] !== -1) {
|
||||
midiTrack.DeviceChain.Mixer.Volume.Manual['@Value'] =
|
||||
koTrack.volume * koTrack.faderParams[FaderParam.LVL];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user