From b1f73bbbdae58851273906acfbfe29bf0bfe6296 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Thu, 31 Aug 2023 19:23:29 +0200 Subject: [PATCH 1/2] fix function naming --- src/API.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API.ts b/src/API.ts index b728ef8..d57d981 100644 --- a/src/API.ts +++ b/src/API.ts @@ -939,7 +939,7 @@ export class UserAPI { const results: boolean[] = n.map((value) => this.app.clock.pulses_since_origin % value === 0); return results.some((value) => value === true); }; - pmod = this.modpulse; + modp = this.modpulse; public modbar = (...n: number[]): boolean => { const results: boolean[] = n.map( @@ -947,7 +947,7 @@ export class UserAPI { ); return results.some((value) => value === true); }; - bmod = this.modbar; + modb = this.modbar; public div = (chunk: number): boolean => { const time_pos = this.app.clock.pulses_since_origin; From 1e283cdf12e46f481bd3b272228bfd15b9002795 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Thu, 31 Aug 2023 19:25:39 +0200 Subject: [PATCH 2/2] Fix gain set too high in documentation --- src/documentation/time.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/documentation/time.ts b/src/documentation/time.ts index 5489cf2..57e8fdf 100644 --- a/src/documentation/time.ts +++ b/src/documentation/time.ts @@ -105,10 +105,10 @@ ${makeExample( ${makeExample( "Using oncount to create rhythms with a custom meter", ` - bpm(280) - oncount([1,5,9,13],16) :: sound('bd').gain(3.0).out() - oncount([5,6,13],16) :: sound('cp').gain(1.0).out() - oncount([2,3,3.5,6,7,10,15],16) :: sound('hh').n(8).gain(1.0).out() + bpm(200) + oncount([1,5,9,13],16) :: sound('bd').gain(1.0).out() + oncount([5,6,13],16) :: sound('cp').gain(0.9).out() + oncount([2,3,3.5,6,7,10,15],16) :: sound('hh').n(8).gain(0.8).out() oncount([1,4,5,8,9,10,11,12,13,14,15,16],16) :: sound('hh').out() `,