fix empty pattern duration calculation.
This commit is contained in:
parent
03fe09d1ce
commit
abee609e43
@ -117,7 +117,7 @@ export function totalDuration(pattern: Pattern): number {
|
||||
return reduce(
|
||||
pattern.pulses,
|
||||
(former, pulse) => former + pulse.offset,
|
||||
pattern.smoothRepeat ? 100 : 0,
|
||||
pattern.smoothRepeat && pattern.pulses.length > 1 ? 100 : 0,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user