diff --git a/src/documentation/ziffers.ts b/src/documentation/ziffers.ts index d63822d..4ebf086 100644 --- a/src/documentation/ziffers.ts +++ b/src/documentation/ziffers.ts @@ -158,8 +158,7 @@ ${makeExample( ` z1('q Amin!2').key(["A2", "E2"].beat(4)) .sound('sawtooth').cutoff(500) - .lpadsr(2, 0, .5, 0, 0, 0).out() -z2('east east east:2 east').sound().out()` + .lpadsr(2, 0, .5, 0, 0, 0).out()` )} ${makeExample( @@ -200,9 +199,10 @@ Ziffers provides shorthands for **many** numeric and algorithimic operations suc ${makeExample( "Element-wise operations for melodic generation", ` -z1("q 0 s (3 2 1)+(2 5) q 0 s (4 5 6)-(2 3)").sound('sine') - .scale('minor').fmi(2).fmh(2).room(0.5).size(0.5).sustain(0.1) - .delay(0.5).delay(0.125).delayfb(0.25).out(); +z1("1/8 _ 0 (0 1 3)+(1 2) 0 (2 3 5)-(1 2)").sound('sine') + .scale('pentatonic').fmi([0.25,0.5].beat(2)).fmh([2,4].beat(2)) + .room(0.9).size(0.9).sustain(0.1).delay(0.5).delay(0.125) + .delayfb(0.25).out(); `, true )} @@ -212,10 +212,11 @@ z1("q 0 s (3 2 1)+(2 5) q 0 s (4 5 6)-(2 3)").sound('sine') ${makeExample( "Random numbers, true computer music at last!", ` -z1("s (0,8) 0 0 (0,5) 0 0").sound('sine') - .scale('minor').fmi(2).fmh(2).room(0.5) - .size(0.5).sustain(0.1) .delay(0.5) - .delay(0.125).delayfb(0.25).out(); +z1("s _ (0,8) 0 0 (0,5) 0 0").sound('sine') + .adsr(0, .1, 0, 0).scale('minor') + .fmdec(0.25).fmi(2).fmh([0.5, 0.25].beat(2)) + .room(0.9).size(0.5).sustain(0.1) .delay(0.5) + .delay(0.125).delayfb(0.25).out(); beat(.5) :: snd(['kick', 'hat'].beat(.5)).out() `, true