From d7bdd3508f63f2e3abd24c48a0aa0c33feebdb68 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Mon, 21 Aug 2023 12:09:14 +0200 Subject: [PATCH] fix typo --- src/API.ts | 2 +- src/Documentation.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API.ts b/src/API.ts index ae722e2..3268a27 100644 --- a/src/API.ts +++ b/src/API.ts @@ -1106,7 +1106,7 @@ export class UserAPI { */ const period = 1 / freq; const t = (Date.now() / 1000 + offset) % period; - return t / period < dutyCycle ? 1 : -1; + return t / period < duty ? 1 : -1; }; usquare = ( diff --git a/src/Documentation.ts b/src/Documentation.ts index 8dbe00f..59be12d 100644 --- a/src/Documentation.ts +++ b/src/Documentation.ts @@ -36,7 +36,7 @@ mod(0.25) :: sound('sawtooth') pick(60, 67, 63) - 12 + 5, pick(60, 67, 63) - 12 + 5, pick(60, 67, 63) - 12 + 7, pick(60, 67, 63) - 12 + 7) + (sometimes() ? 24 : 12)) .dur(0.1).fmi(8).fmh(4).room(0.9) - .gain(0.25).cutoff(500 + usine(8) * 10000) + .gain(0.75).cutoff(500 + usine(8) * 10000) .delay(0.5).delaytime(bpm() / 60 / 4 / 3) .delayfeedback(0.25) .out()