From 1029f8674c6442205452a8d820bd95e059efbcc0 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 22 Apr 2022 12:35:43 +0100 Subject: [PATCH] fix the fix for echo --- packages/core/pattern.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 26f2074e..c681cf29 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -656,7 +656,7 @@ export class Pattern { } stutWith(times, time, func) { - return stack(...listRange(0, times - 1).map((i) => func(this.late(i.mul(time)), i))); + return stack(...listRange(0, times - 1).map((i) => func(this.late(Fraction(time).mul(i)), i))); } stut(times, feedback, time) { @@ -665,7 +665,7 @@ export class Pattern { // these might change with: https://github.com/tidalcycles/Tidal/issues/902 _echoWith(times, time, func) { - return stack(...listRange(0, times - 1).map((i) => func(this.late(i.mul(time)), i))); + return stack(...listRange(0, times - 1).map((i) => func(this.late(Fraction(time).mul(i)), i))); } _echo(times, time, feedback) {