From d8212f291f082ea057e1ffe2a280f750e6179591 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Jul 2026 05:00:00 +0200 Subject: [PATCH] Update sample metadata values in Ableton export --- src/lib/exporters/ableton/builders.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/exporters/ableton/builders.ts b/src/lib/exporters/ableton/builders.ts index 63eef79..62e08b4 100644 --- a/src/lib/exporters/ableton/builders.ts +++ b/src/lib/exporters/ableton/builders.ts @@ -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;