Fixing some more broken stuff

This commit is contained in:
2024-04-14 23:58:40 +02:00
parent 4b6275d2e0
commit 5548d30da8
3 changed files with 6 additions and 4 deletions

View File

@ -229,6 +229,7 @@ export class UserAPI {
randI: any; randI: any;
rand: any; rand: any;
ir: any; ir: any;
irand: any;
r: any; r: any;
seed: any; seed: any;
localSeededRandom: any; localSeededRandom: any;
@ -401,6 +402,7 @@ export class UserAPI {
this.scope = Canvas.scope(this.app); this.scope = Canvas.scope(this.app);
this.randI = Randomness.randI(this); this.randI = Randomness.randI(this);
this.ir = this.randI; this.ir = this.randI;
this.irand = this.randI;
this.rand = Randomness.rand(this); this.rand = Randomness.rand(this);
this.r = this.rand; this.r = this.rand;
this.seed = Randomness.seed(this); this.seed = Randomness.seed(this);

View File

@ -177,7 +177,7 @@ oncount([1,3,5.5,7,7.5,8],8) :: sound('hh').gain(irand(1.0,4.0)).out()
${makeExample( ${makeExample(
"Using oncount to create rhythms with a custom meter", "Using oncount to create rhythms with a custom meter",
` `
bpm(200) tempo(200)
oncount([1, 5, 9, 13],16) :: sound('808bd').n(4).shape(0.5).gain(1.0).out() oncount([1, 5, 9, 13],16) :: sound('808bd').n(4).shape(0.5).gain(1.0).out()
oncount([5, 6, 13],16) :: sound('shaker').room(0.25).gain(0.9).out() oncount([5, 6, 13],16) :: sound('shaker').room(0.25).gain(0.9).out()
oncount([2, 3, 3.5, 6, 7, 10, 15],16) :: sound('hh').n(8).gain(0.8).out() oncount([2, 3, 3.5, 6, 7, 10, 15],16) :: sound('hh').n(8).gain(0.8).out()

View File

@ -184,7 +184,7 @@ ${makeExample(
"Play pitches from scale created from cent intervals", "Play pitches from scale created from cent intervals",
` `
rhythm([0.5,0.25].beat(1),14,16) :: sound('pluck') rhythm([0.5,0.25].beat(1),14,16) :: sound('pluck')
.stretch(iR(1,5)).pitch(iR(0,6)).key(57) .stretch(ir(1,5)).pitch(ir(0,6)).key(57)
.cents(120,270,540,670,785,950,1215).out() .cents(120,270,540,670,785,950,1215).out()
`, `,
true, true,
@ -213,8 +213,8 @@ flipbar(1) :: rhythm(.25,14,16) :: sound("ST10:30").stretch(3).gain(0.5)
.octave(r(-6,6)) .octave(r(-6,6))
.edo(666,"rocritonic") .edo(666,"rocritonic")
.out() .out()
rhythm(2.0,26,32) :: sound("ST20").n([22,5,24,34,31,5,11,19].pick()).stretch(rI(1,6)) rhythm(2.0,26,32) :: sound("ST20").n([22,5,24,34,31,5,11,19].pick()).stretch(ir(1,6))
.pitch(rI(127,300)) .pitch(ir(127,300))
.edo(666) .edo(666)
.out() .out()
`, `,