This commit is contained in:
2023-08-31 21:28:16 +03:00
2 changed files with 6 additions and 6 deletions

View File

@ -939,7 +939,7 @@ export class UserAPI {
const results: boolean[] = n.map((value) => this.app.clock.pulses_since_origin % value === 0); const results: boolean[] = n.map((value) => this.app.clock.pulses_since_origin % value === 0);
return results.some((value) => value === true); return results.some((value) => value === true);
}; };
pmod = this.modpulse; modp = this.modpulse;
public modbar = (...n: number[]): boolean => { public modbar = (...n: number[]): boolean => {
const results: boolean[] = n.map( const results: boolean[] = n.map(
@ -947,7 +947,7 @@ export class UserAPI {
); );
return results.some((value) => value === true); return results.some((value) => value === true);
}; };
bmod = this.modbar; modb = this.modbar;
public div = (chunk: number): boolean => { public div = (chunk: number): boolean => {
const time_pos = this.app.clock.pulses_since_origin; const time_pos = this.app.clock.pulses_since_origin;

View File

@ -105,10 +105,10 @@ ${makeExample(
${makeExample( ${makeExample(
"Using oncount to create rhythms with a custom meter", "Using oncount to create rhythms with a custom meter",
` `
bpm(280) bpm(200)
oncount([1,5,9,13],16) :: sound('bd').gain(3.0).out() oncount([1,5,9,13],16) :: sound('bd').gain(1.0).out()
oncount([5,6,13],16) :: sound('cp').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(1.0).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) :: oncount([1,4,5,8,9,10,11,12,13,14,15,16],16) ::
sound('hh').out() sound('hh').out()
`, `,