diff --git a/assets/index-6f653c26.js.gz b/assets/index-6f653c26.js.gz deleted file mode 100644 index d681fc7..0000000 Binary files a/assets/index-6f653c26.js.gz and /dev/null differ diff --git a/assets/index-6f653c26.js b/assets/index-7b286c0c.js similarity index 99% rename from assets/index-6f653c26.js rename to assets/index-7b286c0c.js index 0441494..fa4396d 100644 --- a/assets/index-6f653c26.js +++ b/assets/index-7b286c0c.js @@ -2900,14 +2900,16 @@ z1('_e 1@east:2 4@bd:3 6@arp:2 9@baa').sound().out() ${e("Element-wise operations for melodic generation",` 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) + .room(0.9).size(0.9).sustain(0.1).delay(0.125) .delayfb(0.25).out(); `,!0)} ${e("List operations",` - z1('q (0 3 1 5)+(2 5) e (0 5 2)*(2 3) (0 5 2)>>(2 3) (0 5 2)%(2 3)').sound('sine') - .scale("Bebop major") - .out() + z1('q (0 3 1 5)+(2 5) e (0 5 2)*(2 1) (0 5 2)%(2 3)') + .sound('sine') + .room(.5).size(1.0).adsr(.15,.15,.25,.1) + .scale("Bebop major") + .out() `,!0)} * **Random numbers:** (4,6) Random number between 4 and 6 @@ -2920,14 +2922,31 @@ z1('_e 1@east:2 4@bd:3 6@arp:2 9@baa').sound().out() .delay(0.125).delayfb(0.25).out(); beat(.5) :: snd(['kick', 'hat'].beat(.5)).out() `,!0)} + +## Variables - ${e("Random numbers",` - z1('q 0 (2,4) 4 (5,9)').sound('sine') - .scale("Bebop minor") + * A=(0 2 3 (1,4)) Assign pre-evaluated list to a variable + * B~(0 2 3 (1,4)) Assign list with operations to a variable + + ${e("Assign lists to variables",` +z1("s A=(0 (1,4)) B~(2 (3,8)) A B A B A") + .scale("modimic") + .sound("triangle") + .adsr(0.01,0.15,0.25,0) + .gain(0.5) .out() `,!0)} - - * **Variables:** A=(0 2 3 4) Assign a list to a variable + + ${e("Combine variables into lists and do operations",` + z1("s A=(0 3) B=(3 8) C=(((A+B)+A)*B) D=(C-B) A A+C D") + .sound("sawtooth") + .ad(0.05,1.0) + .gain(0.5) + .out() + `,!0)} + + + `},NY=r=>{const e=vt(r);return` # Tonnetz diff --git a/assets/index-7b286c0c.js.gz b/assets/index-7b286c0c.js.gz new file mode 100644 index 0000000..1521495 Binary files /dev/null and b/assets/index-7b286c0c.js.gz differ diff --git a/index.html b/index.html index 00aa480..3e97074 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - +