Ensure minimum value for loop duration calculation in ableton transformer
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user