Ensure minimum value for loop duration calculation in ableton transformer

This commit is contained in:
2026-07-14 09:38:26 +02:00
parent e85124906b
commit ec3809bd1d

View File

@@ -273,7 +273,7 @@ function abletonTransformer(data: ProjectRawData, exporterParams: ExporterParams
bars: pattern.bars,
offset,
duration,
loopDuration: pattern.bars * getQuarterNotesPerBar(timeSignature),
loopDuration: Math.max(1, pattern.bars) * getQuarterNotesPerBar(timeSignature),
sceneIndex,
occurrenceIndex,
sceneName,