diff --git a/src/API.ts b/src/API.ts index 380f1e2..cd94a7c 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; 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() `,