diff --git a/repl/src/test/__snapshots__/tunes.test.mjs.snap b/repl/src/test/__snapshots__/tunes.test.mjs.snap index a1598d3f..4ea3e2b7 100644 --- a/repl/src/test/__snapshots__/tunes.test.mjs.snap +++ b/repl/src/test/__snapshots__/tunes.test.mjs.snap @@ -7,7 +7,7 @@ exports[`renders tunes > tune: amensister 1`] = ` "3/8 -> 1/2: {\\"n\\":1,\\"s\\":\\"amencutup\\",\\"room\\":0.5}", "3/4 -> 7/8: {\\"n\\":3,\\"s\\":\\"amencutup\\",\\"room\\":0.5}", "7/8 -> 1/1: {\\"n\\":3,\\"s\\":\\"amencutup\\",\\"room\\":0.5}", - "1/4 -> 3/8: {\\"n\\":1,\\"speed\\":-2,\\"delay\\":0.5,\\"s\\":\\"amencutup\\",\\"room\\":0.5}", + "1/4 -> 3/8: {\\"n\\":1,\\"speed\\":2,\\"delay\\":0.5,\\"s\\":\\"amencutup\\",\\"room\\":0.5}", "0/1 -> 1/8: {\\"note\\":\\"Eb1\\",\\"s\\":\\"sawtooth\\",\\"decay\\":0.1,\\"sustain\\":0,\\"gain\\":0.4,\\"cutoff\\":300.0066107586751,\\"resonance\\":10}", "0/1 -> 1/8: {\\"note\\":\\"F1\\",\\"s\\":\\"sawtooth\\",\\"decay\\":0.1,\\"sustain\\":0,\\"gain\\":0.4,\\"cutoff\\":300.0066107586751,\\"resonance\\":10}", "1/4 -> 3/8: {\\"note\\":\\"A1\\",\\"s\\":\\"sawtooth\\",\\"decay\\":0.1,\\"sustain\\":0,\\"gain\\":0.4,\\"cutoff\\":300.7878869297153,\\"resonance\\":10}", @@ -318,36 +318,6 @@ exports[`renders tunes > tune: blippyRhodes 1`] = ` ] `; -exports[`renders tunes > tune: bossa 1`] = ` -[ - "0/1 -> 1/4: {\\"note\\":\\"Bb3\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5185185185185186}", - "0/1 -> 1/4: {\\"note\\":\\"D4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.537037037037037}", - "0/1 -> 1/4: {\\"note\\":\\"Eb4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5416666666666667}", - "0/1 -> 1/4: {\\"note\\":\\"G4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5601851851851851}", - "1/2 -> 5/4: {\\"note\\":\\"Bb3\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5185185185185186}", - "1/2 -> 5/4: {\\"note\\":\\"D4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.537037037037037}", - "1/2 -> 5/4: {\\"note\\":\\"Eb4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5416666666666667}", - "1/2 -> 5/4: {\\"note\\":\\"G4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5601851851851851}", - "0/1 -> 1/2: {\\"note\\":\\"C2\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.41666666666666663}", - "3/4 -> 7/8: {\\"note\\":\\"G2\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.44907407407407407}", -] -`; - -exports[`renders tunes > tune: bossaRandom 1`] = ` -[ - "0/1 -> 1/4: {\\"note\\":\\"G4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5601851851851851}", - "0/1 -> 1/4: {\\"note\\":\\"B4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5787037037037037}", - "0/1 -> 1/4: {\\"note\\":\\"C5\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5833333333333333}", - "0/1 -> 1/4: {\\"note\\":\\"E5\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.6018518518518519}", - "3/4 -> 1/1: {\\"note\\":\\"G4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5601851851851851}", - "3/4 -> 1/1: {\\"note\\":\\"B4\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5787037037037037}", - "3/4 -> 1/1: {\\"note\\":\\"C5\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.5833333333333333}", - "3/4 -> 1/1: {\\"note\\":\\"E5\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.6018518518518519}", - "0/1 -> 1/2: {\\"note\\":\\"A2\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.45833333333333337}", - "1/2 -> 1/1: {\\"note\\":\\"A2\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.45833333333333337}", -] -`; - exports[`renders tunes > tune: bridgeIsOver 1`] = ` [ "0/1 -> 5/26: {\\"note\\":\\"B2\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.46759259259259256}", @@ -7244,257 +7214,6 @@ exports[`renders tunes > tune: giantSteps 1`] = ` ] `; -exports[`renders tunes > tune: giantStepsReggae 1`] = ` -[ - "0/1 -> 25/32: {\\"note\\":\\"F#5\\"}", - "25/32 -> 25/16: {\\"note\\":\\"D5\\"}", - "25/64 -> 75/128: {\\"note\\":\\"A#3\\"}", - "25/64 -> 75/128: {\\"note\\":\\"C#4\\"}", - "25/64 -> 75/128: {\\"note\\":\\"D#4\\"}", - "25/64 -> 75/128: {\\"note\\":\\"F#4\\"}", - "0/1 -> 25/64: {\\"note\\":\\"B2\\"}", - "25/32 -> 75/64: {\\"note\\":\\"D2\\"}", - "25/32 -> 25/16: {\\"note\\":\\"D5\\"}", - "25/16 -> 75/32: {\\"note\\":\\"B4\\"}", - "75/64 -> 175/128: {\\"note\\":\\"F#3\\"}", - "75/64 -> 175/128: {\\"note\\":\\"B3\\"}", - "75/64 -> 175/128: {\\"note\\":\\"C4\\"}", - "75/64 -> 175/128: {\\"note\\":\\"E4\\"}", - "125/64 -> 275/128: {\\"note\\":\\"F#3\\"}", - "125/64 -> 275/128: {\\"note\\":\\"A3\\"}", - "125/64 -> 275/128: {\\"note\\":\\"B3\\"}", - "125/64 -> 275/128: {\\"note\\":\\"D4\\"}", - "25/32 -> 75/64: {\\"note\\":\\"D2\\"}", - "25/16 -> 125/64: {\\"note\\":\\"G2\\"}", - "25/16 -> 75/32: {\\"note\\":\\"B4\\"}", - "75/32 -> 25/8: {\\"note\\":\\"G4\\"}", - "125/64 -> 275/128: {\\"note\\":\\"F#3\\"}", - "125/64 -> 275/128: {\\"note\\":\\"A3\\"}", - "125/64 -> 275/128: {\\"note\\":\\"B3\\"}", - "125/64 -> 275/128: {\\"note\\":\\"D4\\"}", - "175/64 -> 375/128: {\\"note\\":\\"Ab3\\"}", - "175/64 -> 375/128: {\\"note\\":\\"C4\\"}", - "175/64 -> 375/128: {\\"note\\":\\"D4\\"}", - "175/64 -> 375/128: {\\"note\\":\\"G4\\"}", - "75/32 -> 175/64: {\\"note\\":\\"D2\\"}", - "75/32 -> 25/8: {\\"note\\":\\"G4\\"}", - "25/8 -> 75/16: {\\"note\\":\\"Bb4\\"}", - "225/64 -> 475/128: {\\"note\\":\\"G3\\"}", - "225/64 -> 475/128: {\\"note\\":\\"Bb3\\"}", - "225/64 -> 475/128: {\\"note\\":\\"D4\\"}", - "225/64 -> 475/128: {\\"note\\":\\"F4\\"}", - "25/8 -> 225/64: {\\"note\\":\\"Eb2\\"}", - "125/32 -> 275/64: {\\"note\\":\\"Bb2\\"}", - "25/8 -> 75/16: {\\"note\\":\\"Bb4\\"}", - "75/16 -> 175/32: {\\"note\\":\\"B4\\"}", - "275/64 -> 575/128: {\\"note\\":\\"G3\\"}", - "275/64 -> 575/128: {\\"note\\":\\"Bb3\\"}", - "275/64 -> 575/128: {\\"note\\":\\"D4\\"}", - "275/64 -> 575/128: {\\"note\\":\\"F4\\"}", - "125/32 -> 275/64: {\\"note\\":\\"Bb2\\"}", - "75/16 -> 325/64: {\\"note\\":\\"A2\\"}", - "75/16 -> 175/32: {\\"note\\":\\"B4\\"}", - "175/32 -> 25/4: {\\"note\\":\\"A4\\"}", - "325/64 -> 675/128: {\\"note\\":\\"G3\\"}", - "325/64 -> 675/128: {\\"note\\":\\"B3\\"}", - "325/64 -> 675/128: {\\"note\\":\\"C4\\"}", - "325/64 -> 675/128: {\\"note\\":\\"E4\\"}", - "375/64 -> 775/128: {\\"note\\":\\"F#3\\"}", - "375/64 -> 775/128: {\\"note\\":\\"B3\\"}", - "375/64 -> 775/128: {\\"note\\":\\"C4\\"}", - "375/64 -> 775/128: {\\"note\\":\\"E4\\"}", - "75/16 -> 325/64: {\\"note\\":\\"A2\\"}", - "175/32 -> 375/64: {\\"note\\":\\"D2\\"}", - "175/32 -> 25/4: {\\"note\\":\\"A4\\"}", - "25/4 -> 225/32: {\\"note\\":\\"D5\\"}", - "375/64 -> 775/128: {\\"note\\":\\"F#3\\"}", - "375/64 -> 775/128: {\\"note\\":\\"B3\\"}", - "375/64 -> 775/128: {\\"note\\":\\"C4\\"}", - "375/64 -> 775/128: {\\"note\\":\\"E4\\"}", - "425/64 -> 875/128: {\\"note\\":\\"F#3\\"}", - "425/64 -> 875/128: {\\"note\\":\\"A3\\"}", - "425/64 -> 875/128: {\\"note\\":\\"B3\\"}", - "425/64 -> 875/128: {\\"note\\":\\"D4\\"}", - "25/4 -> 425/64: {\\"note\\":\\"G2\\"}", - "25/4 -> 225/32: {\\"note\\":\\"D5\\"}", - "225/32 -> 125/16: {\\"note\\":\\"Bb4\\"}", - "125/16 -> 275/32: {\\"note\\":\\"G4\\"}", - "475/64 -> 975/128: {\\"note\\":\\"Ab3\\"}", - "475/64 -> 975/128: {\\"note\\":\\"C4\\"}", - "475/64 -> 975/128: {\\"note\\":\\"D4\\"}", - "475/64 -> 975/128: {\\"note\\":\\"G4\\"}", - "225/32 -> 475/64: {\\"note\\":\\"Bb2\\"}", - "125/16 -> 525/64: {\\"note\\":\\"Eb2\\"}", - "125/16 -> 275/32: {\\"note\\":\\"G4\\"}", - "275/32 -> 75/8: {\\"note\\":\\"Eb4\\"}", - "525/64 -> 1075/128: {\\"note\\":\\"G3\\"}", - "525/64 -> 1075/128: {\\"note\\":\\"Bb3\\"}", - "525/64 -> 1075/128: {\\"note\\":\\"D4\\"}", - "525/64 -> 1075/128: {\\"note\\":\\"F4\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"E3\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"G#3\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"A#3\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"D#4\\"}", - "125/16 -> 525/64: {\\"note\\":\\"Eb2\\"}", - "275/32 -> 575/64: {\\"note\\":\\"F#2\\"}", - "275/32 -> 75/8: {\\"note\\":\\"Eb4\\"}", - "75/8 -> 175/16: {\\"note\\":\\"F#4\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"E3\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"G#3\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"A#3\\"}", - "575/64 -> 1175/128: {\\"note\\":\\"D#4\\"}", - "625/64 -> 1275/128: {\\"note\\":\\"A#3\\"}", - "625/64 -> 1275/128: {\\"note\\":\\"C#4\\"}", - "625/64 -> 1275/128: {\\"note\\":\\"D#4\\"}", - "625/64 -> 1275/128: {\\"note\\":\\"F#4\\"}", - "75/8 -> 625/64: {\\"note\\":\\"B2\\"}", - "75/8 -> 175/16: {\\"note\\":\\"F#4\\"}", - "175/16 -> 375/32: {\\"note\\":\\"G4\\"}", - "675/64 -> 1375/128: {\\"note\\":\\"A#3\\"}", - "675/64 -> 1375/128: {\\"note\\":\\"C#4\\"}", - "675/64 -> 1375/128: {\\"note\\":\\"D#4\\"}", - "675/64 -> 1375/128: {\\"note\\":\\"F#4\\"}", - "325/32 -> 675/64: {\\"note\\":\\"F#2\\"}", - "175/16 -> 725/64: {\\"note\\":\\"F2\\"}", - "175/16 -> 375/32: {\\"note\\":\\"G4\\"}", - "375/32 -> 25/2: {\\"note\\":\\"F4\\"}", - "725/64 -> 1475/128: {\\"note\\":\\"Ab3\\"}", - "725/64 -> 1475/128: {\\"note\\":\\"C4\\"}", - "725/64 -> 1475/128: {\\"note\\":\\"Eb4\\"}", - "725/64 -> 1475/128: {\\"note\\":\\"G4\\"}", - "175/16 -> 725/64: {\\"note\\":\\"F2\\"}", - "375/32 -> 775/64: {\\"note\\":\\"Bb2\\"}", - "375/32 -> 25/2: {\\"note\\":\\"F4\\"}", - "25/2 -> 225/16: {\\"note\\":\\"Bb4\\"}", - "775/64 -> 1575/128: {\\"note\\":\\"Ab3\\"}", - "775/64 -> 1575/128: {\\"note\\":\\"C4\\"}", - "775/64 -> 1575/128: {\\"note\\":\\"D4\\"}", - "775/64 -> 1575/128: {\\"note\\":\\"G4\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"G3\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"Bb3\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"D4\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"F4\\"}", - "375/32 -> 775/64: {\\"note\\":\\"Bb2\\"}", - "25/2 -> 825/64: {\\"note\\":\\"Eb2\\"}", - "25/2 -> 225/16: {\\"note\\":\\"Bb4\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"G3\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"Bb3\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"D4\\"}", - "825/64 -> 1675/128: {\\"note\\":\\"F4\\"}", - "875/64 -> 1775/128: {\\"note\\":\\"G3\\"}", - "875/64 -> 1775/128: {\\"note\\":\\"Bb3\\"}", - "875/64 -> 1775/128: {\\"note\\":\\"D4\\"}", - "875/64 -> 1775/128: {\\"note\\":\\"F4\\"}", - "425/32 -> 875/64: {\\"note\\":\\"Bb2\\"}", - "25/2 -> 225/16: {\\"note\\":\\"Bb4\\"}", - "225/16 -> 475/32: {\\"note\\":\\"B4\\"}", - "475/32 -> 125/8: {\\"note\\":\\"A4\\"}", - "925/64 -> 1875/128: {\\"note\\":\\"G3\\"}", - "925/64 -> 1875/128: {\\"note\\":\\"B3\\"}", - "925/64 -> 1875/128: {\\"note\\":\\"C4\\"}", - "925/64 -> 1875/128: {\\"note\\":\\"E4\\"}", - "225/16 -> 925/64: {\\"note\\":\\"A2\\"}", - "475/32 -> 975/64: {\\"note\\":\\"D2\\"}", - "475/32 -> 125/8: {\\"note\\":\\"A4\\"}", - "125/8 -> 275/16: {\\"note\\":\\"D5\\"}", - "975/64 -> 1975/128: {\\"note\\":\\"F#3\\"}", - "975/64 -> 1975/128: {\\"note\\":\\"B3\\"}", - "975/64 -> 1975/128: {\\"note\\":\\"C4\\"}", - "975/64 -> 1975/128: {\\"note\\":\\"E4\\"}", - "475/32 -> 975/64: {\\"note\\":\\"D2\\"}", - "125/8 -> 1025/64: {\\"note\\":\\"G2\\"}", - "125/8 -> 275/16: {\\"note\\":\\"D5\\"}", - "1025/64 -> 2075/128: {\\"note\\":\\"F#3\\"}", - "1025/64 -> 2075/128: {\\"note\\":\\"A3\\"}", - "1025/64 -> 2075/128: {\\"note\\":\\"B3\\"}", - "1025/64 -> 2075/128: {\\"note\\":\\"D4\\"}", - "1075/64 -> 2175/128: {\\"note\\":\\"F#3\\"}", - "1075/64 -> 2175/128: {\\"note\\":\\"A3\\"}", - "1075/64 -> 2175/128: {\\"note\\":\\"B3\\"}", - "1075/64 -> 2175/128: {\\"note\\":\\"D4\\"}", - "125/8 -> 1025/64: {\\"note\\":\\"G2\\"}", - "525/32 -> 1075/64: {\\"note\\":\\"D2\\"}", - "125/8 -> 275/16: {\\"note\\":\\"D5\\"}", - "275/16 -> 575/32: {\\"note\\":\\"D#5\\"}", - "575/32 -> 75/4: {\\"note\\":\\"C#5\\"}", - "1125/64 -> 2275/128: {\\"note\\":\\"E3\\"}", - "1125/64 -> 2275/128: {\\"note\\":\\"G#3\\"}", - "1125/64 -> 2275/128: {\\"note\\":\\"B3\\"}", - "1125/64 -> 2275/128: {\\"note\\":\\"D#4\\"}", - "275/16 -> 1125/64: {\\"note\\":\\"C#2\\"}", - "575/32 -> 1175/64: {\\"note\\":\\"F#2\\"}", - "575/32 -> 75/4: {\\"note\\":\\"C#5\\"}", - "75/4 -> 325/16: {\\"note\\":\\"F#5\\"}", - "1175/64 -> 2375/128: {\\"note\\":\\"E3\\"}", - "1175/64 -> 2375/128: {\\"note\\":\\"G#3\\"}", - "1175/64 -> 2375/128: {\\"note\\":\\"A#3\\"}", - "1175/64 -> 2375/128: {\\"note\\":\\"D#4\\"}", - "575/32 -> 1175/64: {\\"note\\":\\"F#2\\"}", - "75/4 -> 1225/64: {\\"note\\":\\"B2\\"}", - "75/4 -> 325/16: {\\"note\\":\\"F#5\\"}", - "1225/64 -> 2475/128: {\\"note\\":\\"A#3\\"}", - "1225/64 -> 2475/128: {\\"note\\":\\"C#4\\"}", - "1225/64 -> 2475/128: {\\"note\\":\\"D#4\\"}", - "1225/64 -> 2475/128: {\\"note\\":\\"F#4\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"A#3\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"C#4\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"D#4\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"F#4\\"}", - "75/4 -> 1225/64: {\\"note\\":\\"B2\\"}", - "625/32 -> 1275/64: {\\"note\\":\\"F#2\\"}", - "75/4 -> 325/16: {\\"note\\":\\"F#5\\"}", - "325/16 -> 675/32: {\\"note\\":\\"G5\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"A#3\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"C#4\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"D#4\\"}", - "1275/64 -> 2575/128: {\\"note\\":\\"F#4\\"}", - "1325/64 -> 2675/128: {\\"note\\":\\"Ab3\\"}", - "1325/64 -> 2675/128: {\\"note\\":\\"C4\\"}", - "1325/64 -> 2675/128: {\\"note\\":\\"Eb4\\"}", - "1325/64 -> 2675/128: {\\"note\\":\\"G4\\"}", - "325/16 -> 1325/64: {\\"note\\":\\"F2\\"}", - "325/16 -> 675/32: {\\"note\\":\\"G5\\"}", - "675/32 -> 175/8: {\\"note\\":\\"F5\\"}", - "175/8 -> 375/16: {\\"note\\":\\"Bb5\\"}", - "1375/64 -> 2775/128: {\\"note\\":\\"Ab3\\"}", - "1375/64 -> 2775/128: {\\"note\\":\\"C4\\"}", - "1375/64 -> 2775/128: {\\"note\\":\\"D4\\"}", - "1375/64 -> 2775/128: {\\"note\\":\\"G4\\"}", - "675/32 -> 1375/64: {\\"note\\":\\"Bb2\\"}", - "175/8 -> 1425/64: {\\"note\\":\\"Eb2\\"}", - "175/8 -> 375/16: {\\"note\\":\\"Bb5\\"}", - "1425/64 -> 2875/128: {\\"note\\":\\"G3\\"}", - "1425/64 -> 2875/128: {\\"note\\":\\"Bb3\\"}", - "1425/64 -> 2875/128: {\\"note\\":\\"D4\\"}", - "1425/64 -> 2875/128: {\\"note\\":\\"F4\\"}", - "175/8 -> 1425/64: {\\"note\\":\\"Eb2\\"}", - "725/32 -> 1475/64: {\\"note\\":\\"Bb2\\"}", - "175/8 -> 375/16: {\\"note\\":\\"Bb5\\"}", - "375/16 -> 775/32: {\\"note\\":\\"F#5\\"}", - "1475/64 -> 2975/128: {\\"note\\":\\"G3\\"}", - "1475/64 -> 2975/128: {\\"note\\":\\"Bb3\\"}", - "1475/64 -> 2975/128: {\\"note\\":\\"D4\\"}", - "1475/64 -> 2975/128: {\\"note\\":\\"F4\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"E3\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"G#3\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"B3\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"D#4\\"}", - "725/32 -> 1475/64: {\\"note\\":\\"Bb2\\"}", - "375/16 -> 1525/64: {\\"note\\":\\"C#2\\"}", - "375/16 -> 775/32: {\\"note\\":\\"F#5\\"}", - "775/32 -> 3125/128: {\\"note\\":\\"F#5\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"E3\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"G#3\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"B3\\"}", - "1525/64 -> 3075/128: {\\"note\\":\\"D#4\\"}", - "1575/64 -> 3175/128: {\\"note\\":\\"E3\\"}", - "1575/64 -> 3175/128: {\\"note\\":\\"G#3\\"}", - "1575/64 -> 3175/128: {\\"note\\":\\"A#3\\"}", - "1575/64 -> 3175/128: {\\"note\\":\\"D#4\\"}", - "775/32 -> 1575/64: {\\"note\\":\\"F#2\\"}", -] -`; - exports[`renders tunes > tune: goodTimes 1`] = ` [ "0/1 -> 1/2: {\\"note\\":\\"F3\\",\\"clip\\":1,\\"s\\":\\"piano\\",\\"release\\":0.1,\\"pan\\":0.49537037037037035}", @@ -9570,125 +9289,6 @@ exports[`renders tunes > tune: swimming 1`] = ` ] `; -exports[`renders tunes > tune: swimmingWithSoundfonts 1`] = ` -[ - "0/1 -> 3/4: {\\"n\\":\\"F4\\",\\"s\\":\\"Kalimba: Ethnic\\"}", - "0/1 -> 3/4: {\\"n\\":\\"Bb4\\",\\"s\\":\\"Kalimba: Ethnic\\"}", - "0/1 -> 3/4: {\\"n\\":\\"D5\\",\\"s\\":\\"Kalimba: Ethnic\\"}", - "3/4 -> 5/4: {\\"n\\":\\"D4\\",\\"s\\":\\"Kalimba: Ethnic\\"}", - "3/4 -> 5/4: {\\"n\\":\\"G4\\",\\"s\\":\\"Kalimba: Ethnic\\"}", - "3/4 -> 5/4: {\\"n\\":\\"Bb4\\",\\"s\\":\\"Kalimba: Ethnic\\"}", - "0/1 -> 3/4: {\\"n\\":\\"G3\\",\\"s\\":\\"Acoustic Bass: Bass\\"}", - "3/4 -> 3/2: {\\"n\\":\\"G3\\",\\"s\\":\\"Acoustic Bass: Bass\\"}", -] -`; - -exports[`renders tunes > tune: tetrisMini 1`] = ` -[ - "0/1 -> 1/2: {\\"note\\":\\"e5\\"}", - "1/2 -> 3/4: {\\"note\\":\\"b4\\"}", - "3/4 -> 1/1: {\\"note\\":\\"c5\\"}", - "0/1 -> 1/4: {\\"note\\":\\"e2\\"}", - "1/4 -> 1/2: {\\"note\\":\\"e3\\"}", - "1/2 -> 3/4: {\\"note\\":\\"e2\\"}", - "3/4 -> 1/1: {\\"note\\":\\"e3\\"}", - "1/1 -> 3/2: {\\"note\\":\\"d5\\"}", - "3/2 -> 7/4: {\\"note\\":\\"c5\\"}", - "7/4 -> 2/1: {\\"note\\":\\"b4\\"}", - "1/1 -> 5/4: {\\"note\\":\\"e2\\"}", - "5/4 -> 3/2: {\\"note\\":\\"e3\\"}", - "3/2 -> 7/4: {\\"note\\":\\"e2\\"}", - "7/4 -> 2/1: {\\"note\\":\\"e3\\"}", - "2/1 -> 5/2: {\\"note\\":\\"a4\\"}", - "5/2 -> 11/4: {\\"note\\":\\"a4\\"}", - "11/4 -> 3/1: {\\"note\\":\\"c5\\"}", - "2/1 -> 9/4: {\\"note\\":\\"a2\\"}", - "9/4 -> 5/2: {\\"note\\":\\"a3\\"}", - "5/2 -> 11/4: {\\"note\\":\\"a2\\"}", - "11/4 -> 3/1: {\\"note\\":\\"a3\\"}", - "3/1 -> 7/2: {\\"note\\":\\"e5\\"}", - "7/2 -> 15/4: {\\"note\\":\\"d5\\"}", - "15/4 -> 4/1: {\\"note\\":\\"c5\\"}", - "3/1 -> 13/4: {\\"note\\":\\"a2\\"}", - "13/4 -> 7/2: {\\"note\\":\\"a3\\"}", - "7/2 -> 15/4: {\\"note\\":\\"a2\\"}", - "15/4 -> 4/1: {\\"note\\":\\"a3\\"}", - "4/1 -> 9/2: {\\"note\\":\\"b4\\"}", - "19/4 -> 5/1: {\\"note\\":\\"c5\\"}", - "4/1 -> 17/4: {\\"note\\":\\"g#2\\"}", - "17/4 -> 9/2: {\\"note\\":\\"g#3\\"}", - "9/2 -> 19/4: {\\"note\\":\\"g#2\\"}", - "19/4 -> 5/1: {\\"note\\":\\"g#3\\"}", - "5/1 -> 11/2: {\\"note\\":\\"d5\\"}", - "11/2 -> 6/1: {\\"note\\":\\"e5\\"}", - "5/1 -> 21/4: {\\"note\\":\\"e2\\"}", - "21/4 -> 11/2: {\\"note\\":\\"e3\\"}", - "11/2 -> 23/4: {\\"note\\":\\"e2\\"}", - "23/4 -> 6/1: {\\"note\\":\\"e3\\"}", - "6/1 -> 13/2: {\\"note\\":\\"c5\\"}", - "13/2 -> 7/1: {\\"note\\":\\"a4\\"}", - "6/1 -> 25/4: {\\"note\\":\\"a2\\"}", - "25/4 -> 13/2: {\\"note\\":\\"a3\\"}", - "13/2 -> 27/4: {\\"note\\":\\"a2\\"}", - "27/4 -> 7/1: {\\"note\\":\\"a3\\"}", - "7/1 -> 15/2: {\\"note\\":\\"a4\\"}", - "7/1 -> 29/4: {\\"note\\":\\"a2\\"}", - "29/4 -> 15/2: {\\"note\\":\\"a3\\"}", - "15/2 -> 31/4: {\\"note\\":\\"b1\\"}", - "31/4 -> 8/1: {\\"note\\":\\"c2\\"}", - "33/4 -> 17/2: {\\"note\\":\\"d5\\"}", - "35/4 -> 9/1: {\\"note\\":\\"f5\\"}", - "8/1 -> 33/4: {\\"note\\":\\"d2\\"}", - "33/4 -> 17/2: {\\"note\\":\\"d3\\"}", - "17/2 -> 35/4: {\\"note\\":\\"d2\\"}", - "35/4 -> 9/1: {\\"note\\":\\"d3\\"}", - "9/1 -> 19/2: {\\"note\\":\\"a5\\"}", - "19/2 -> 39/4: {\\"note\\":\\"g5\\"}", - "39/4 -> 10/1: {\\"note\\":\\"f5\\"}", - "9/1 -> 37/4: {\\"note\\":\\"d2\\"}", - "37/4 -> 19/2: {\\"note\\":\\"d3\\"}", - "19/2 -> 39/4: {\\"note\\":\\"d2\\"}", - "39/4 -> 10/1: {\\"note\\":\\"d3\\"}", - "10/1 -> 21/2: {\\"note\\":\\"e5\\"}", - "43/4 -> 11/1: {\\"note\\":\\"c5\\"}", - "10/1 -> 41/4: {\\"note\\":\\"c2\\"}", - "41/4 -> 21/2: {\\"note\\":\\"c3\\"}", - "21/2 -> 43/4: {\\"note\\":\\"c2\\"}", - "43/4 -> 11/1: {\\"note\\":\\"c3\\"}", - "11/1 -> 23/2: {\\"note\\":\\"e5\\"}", - "23/2 -> 47/4: {\\"note\\":\\"d5\\"}", - "47/4 -> 12/1: {\\"note\\":\\"c5\\"}", - "11/1 -> 45/4: {\\"note\\":\\"c2\\"}", - "45/4 -> 23/2: {\\"note\\":\\"c3\\"}", - "23/2 -> 47/4: {\\"note\\":\\"c2\\"}", - "47/4 -> 12/1: {\\"note\\":\\"c3\\"}", - "12/1 -> 25/2: {\\"note\\":\\"b4\\"}", - "25/2 -> 51/4: {\\"note\\":\\"b4\\"}", - "51/4 -> 13/1: {\\"note\\":\\"c5\\"}", - "12/1 -> 49/4: {\\"note\\":\\"b1\\"}", - "49/4 -> 25/2: {\\"note\\":\\"b2\\"}", - "25/2 -> 51/4: {\\"note\\":\\"b1\\"}", - "51/4 -> 13/1: {\\"note\\":\\"b2\\"}", - "13/1 -> 27/2: {\\"note\\":\\"d5\\"}", - "27/2 -> 14/1: {\\"note\\":\\"e5\\"}", - "13/1 -> 53/4: {\\"note\\":\\"e2\\"}", - "53/4 -> 27/2: {\\"note\\":\\"e3\\"}", - "27/2 -> 55/4: {\\"note\\":\\"e2\\"}", - "55/4 -> 14/1: {\\"note\\":\\"e3\\"}", - "14/1 -> 29/2: {\\"note\\":\\"c5\\"}", - "29/2 -> 15/1: {\\"note\\":\\"a4\\"}", - "14/1 -> 57/4: {\\"note\\":\\"a1\\"}", - "57/4 -> 29/2: {\\"note\\":\\"a2\\"}", - "29/2 -> 59/4: {\\"note\\":\\"a1\\"}", - "59/4 -> 15/1: {\\"note\\":\\"a2\\"}", - "15/1 -> 31/2: {\\"note\\":\\"a4\\"}", - "15/1 -> 61/4: {\\"note\\":\\"a1\\"}", - "61/4 -> 31/2: {\\"note\\":\\"a2\\"}", - "31/2 -> 63/4: {\\"note\\":\\"a1\\"}", - "63/4 -> 16/1: {\\"note\\":\\"a2\\"}", -] -`; - exports[`renders tunes > tune: undergroundPlumber 1`] = ` [ "0/1 -> 3/16: {\\"s\\":\\"bd\\",\\"gain\\":0.7}", diff --git a/tutorial/test/__snapshots__/examples.test.mjs.snap b/tutorial/test/__snapshots__/examples.test.mjs.snap index 38c60282..b9c47da4 100644 --- a/tutorial/test/__snapshots__/examples.test.mjs.snap +++ b/tutorial/test/__snapshots__/examples.test.mjs.snap @@ -232,23 +232,6 @@ exports[`runs examples > example "amp" example index 0 1`] = ` ] `; -exports[`runs examples > example "apply" example index 0 1`] = ` -[ - "0/1 -> 1/1: {\\"note\\":\\"C3\\"}", - "0/1 -> 1/1: {\\"note\\":\\"Eb3\\"}", - "0/1 -> 1/1: {\\"note\\":\\"G3\\"}", - "1/1 -> 2/1: {\\"note\\":\\"Eb3\\"}", - "1/1 -> 2/1: {\\"note\\":\\"G3\\"}", - "1/1 -> 2/1: {\\"note\\":\\"Bb3\\"}", - "2/1 -> 3/1: {\\"note\\":\\"G3\\"}", - "2/1 -> 3/1: {\\"note\\":\\"Bb3\\"}", - "2/1 -> 3/1: {\\"note\\":\\"D4\\"}", - "3/1 -> 4/1: {\\"note\\":\\"C3\\"}", - "3/1 -> 4/1: {\\"note\\":\\"Eb3\\"}", - "3/1 -> 4/1: {\\"note\\":\\"G3\\"}", -] -`; - exports[`runs examples > example "bandf" example index 0 1`] = ` [ "0/1 -> 1/2: {\\"s\\":\\"bd\\",\\"bandf\\":1000}", @@ -782,27 +765,6 @@ exports[`runs examples > example "dry" example index 0 1`] = ` ] `; -exports[`runs examples > example "each" example index 0 1`] = ` -[ - "0/1 -> 1/4: {\\"note\\":\\"c3\\"}", - "1/4 -> 1/2: {\\"note\\":\\"d3\\"}", - "1/2 -> 3/4: {\\"note\\":\\"e3\\"}", - "3/4 -> 1/1: {\\"note\\":\\"g3\\"}", - "1/1 -> 5/4: {\\"note\\":\\"c3\\"}", - "5/4 -> 3/2: {\\"note\\":\\"d3\\"}", - "3/2 -> 7/4: {\\"note\\":\\"e3\\"}", - "7/4 -> 2/1: {\\"note\\":\\"g3\\"}", - "2/1 -> 9/4: {\\"note\\":\\"c3\\"}", - "9/4 -> 5/2: {\\"note\\":\\"d3\\"}", - "5/2 -> 11/4: {\\"note\\":\\"e3\\"}", - "11/4 -> 3/1: {\\"note\\":\\"g3\\"}", - "15/4 -> 4/1: {\\"note\\":\\"c3\\"}", - "7/2 -> 15/4: {\\"note\\":\\"d3\\"}", - "13/4 -> 7/2: {\\"note\\":\\"e3\\"}", - "3/1 -> 13/4: {\\"note\\":\\"g3\\"}", -] -`; - exports[`runs examples > example "early" example index 0 1`] = ` [ "0/1 -> 1/2: {\\"s\\":\\"bd\\"}", @@ -1547,27 +1509,6 @@ exports[`runs examples > example "every" example index 0 1`] = ` ] `; -exports[`runs examples > example "every" example index 0 2`] = ` -[ - "3/4 -> 1/1: {\\"note\\":\\"c3\\"}", - "1/2 -> 3/4: {\\"note\\":\\"d3\\"}", - "1/4 -> 1/2: {\\"note\\":\\"e3\\"}", - "0/1 -> 1/4: {\\"note\\":\\"g3\\"}", - "1/1 -> 5/4: {\\"note\\":\\"c3\\"}", - "5/4 -> 3/2: {\\"note\\":\\"d3\\"}", - "3/2 -> 7/4: {\\"note\\":\\"e3\\"}", - "7/4 -> 2/1: {\\"note\\":\\"g3\\"}", - "2/1 -> 9/4: {\\"note\\":\\"c3\\"}", - "9/4 -> 5/2: {\\"note\\":\\"d3\\"}", - "5/2 -> 11/4: {\\"note\\":\\"e3\\"}", - "11/4 -> 3/1: {\\"note\\":\\"g3\\"}", - "3/1 -> 13/4: {\\"note\\":\\"c3\\"}", - "13/4 -> 7/2: {\\"note\\":\\"d3\\"}", - "7/2 -> 15/4: {\\"note\\":\\"e3\\"}", - "15/4 -> 4/1: {\\"note\\":\\"g3\\"}", -] -`; - exports[`runs examples > example "fast" example index 0 1`] = ` [ "0/1 -> 1/4: {\\"s\\":\\"bd\\"}",