fix empty pattern duration calculation.
This commit is contained in:
		| @@ -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, | ||||
|   ); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user