Update sample metadata values in Ableton export
This commit is contained in:
@@ -326,6 +326,15 @@ async function buildSimplerDevice(koTrack: AblTrack, abletonVersion: AbletonVers
|
||||
`Samples/Imported/${koTrack.sampleName}`,
|
||||
);
|
||||
}
|
||||
if (sampleRef.LastModDate) {
|
||||
sampleRef.LastModDate['@Value'] = 0;
|
||||
}
|
||||
if (sampleRef.DefaultDuration) {
|
||||
sampleRef.DefaultDuration['@Value'] = Math.round(koTrack.soundLength * koTrack.sampleRate);
|
||||
}
|
||||
if (sampleRef.DefaultSampleRate) {
|
||||
sampleRef.DefaultSampleRate['@Value'] = koTrack.sampleRate;
|
||||
}
|
||||
device.Player.MultiSampleMap.SampleParts.MultiSamplePart.Name['@Value'] = koTrack.name;
|
||||
device.Player.MultiSampleMap.SampleParts.MultiSamplePart.RootKey['@Value'] = koTrack.rootNote;
|
||||
device.Player.MultiSampleMap.SampleParts.MultiSamplePart.SampleStart['@Value'] = koTrack.trimLeft;
|
||||
|
||||
Reference in New Issue
Block a user