May this site count your visit with Google Analytics? It sets cookies and is used only for visit statistics. Privacy →

Step 07 of 11

Save, export and practice

Keep your code, export a WAV file, and practice tasks to make the track your own.

7.1Export a WAV file

There are two things to keep: the code, so you can keep working on the track, and the audio, a WAV file you can listen to anywhere, share, or load into a DAW.

  1. Make sure the code plays the way you want.
  2. In the panel on the right, open the export tab.
  3. Set Start cycle to 0 and End cycle to the length you want. One cycle is one bar. Night Bus is 16 cycles (about 31 seconds at 124 BPM), so use 16, or 32 for two full loops.
  4. Type a File name, keep Sample rate at 48000, and click Export to WAV.
  5. Strudel renders the audio faster than real time, without playing it. Your browser then downloads the file, normally to the Downloads folder.

Randomness such as sometimesBy, degradeBy and rand is part of the render, so each export can come out slightly different.

7.2Save the code

WhereWhat it does
patterns tabStrudel saves your code in the browser automatically. new starts another track, duplicate keeps a version, and export / import save all your patterns to a file and load them back.
share buttonCopies a link that contains the code. Opening the link brings the track back.
A text filePaste the code into a text file such as night-bus.strudel.js. This is the safest backup: browser storage is lost if you clear your browsing data.

7.3Record what the speakers play

A free recorder such as Audacity can record the computer's own output. Set the audio host to Windows WASAPI and choose your speakers' (loopback) device as the recording source, then press record. This works for any program, and it captures a live performance as you play it, including every change you make.

7.4Practice

Make Night Bus your own. Start from the finished code in 1.3 and change one thing at a time, so you hear what each change does.

  • New kit. Change every .bank("RolandTR909") to "RolandTR808" and make the kick "bd(3,8)".
  • New mood. Use .scale("A4:dorian") on the melody. It sounds brighter while keeping the same notes.
  • A break. Change the kick mask to .mask("<1!12 0!2 1!2>") so the kick drops out for two bars before the end.
  • New progression. Try Dm7 G7 C^7 A7. Change the bass roots to d2 g1 c2 a1 and the melody offsets to match (scale steps from A: D = 3, G = −1, C = 2, A = 0).
  • Your own layer. Add $: s("rim(3,8)").bank("RolandTR909").gain(.5) and put it in the arrangement with a mask.

Go further

Tested with Strudel 1.3. Course text: CC BY-SA 4.0, code: CC0 1.0 (licences).