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.
- Make sure the code plays the way you want.
- In the panel on the right, open the export tab.
- Set Start cycle to
0and End cycle to the length you want. One cycle is one bar. Night Bus is 16 cycles (about 31 seconds at 124 BPM), so use16, or32for two full loops. - Type a File name, keep Sample rate at 48000, and click Export to WAV.
- 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
| Where | What it does |
|---|---|
| patterns tab | Strudel 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 button | Copies a link that contains the code. Opening the link brings the track back. |
| A text file | Paste 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 tod2 g1 c2 a1and 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
- Strudel workshop: the official step-by-step tutorial.
- Strudel reference: every function, with live examples.
Tested with Strudel 1.3. Course text: CC BY-SA 4.0, code: CC0 1.0 (licences).