Step 09 of 11
Sound bank
Every sound you can use: drum machines, synths, instruments and sample sets.
- 9.1 What's in the bank
- 9.2 Drum machines
- 9.3 Drum sound names
- 9.4 Built-in synths
- 9.5 Instruments (General MIDI)
- 9.6 Acoustic instruments
- 9.7 Other sample sets
9.1What a sound bank is
Strudel can only play sounds it knows by name. This part lists those names: the sound bank. There are four kinds of sound, and you write each kind a little differently:
| Kind | What it is | How you write it | Plays any note? | List |
|---|---|---|---|---|
| Drum machine | The recorded drums of one machine (a TR-909, a LinnDrum…). Every machine uses the same short drum names: bd kick, sd snare, hh hi-hat… | s("bd sd").bank("RolandTR909") | No | 9.2, 9.3 |
| Synth | A sound wave made by the browser itself, so it loads instantly | note("a2").s("sawtooth") | Yes | 9.4 |
| Instrument | Recordings of a real instrument (piano, violin, choir…), played back at any pitch | note("c4").s("gm_violin")note("c4").s("piano") | Yes | 9.5, 9.6 |
| Sample set | Other recordings: noises, voices, percussion from around the world | s("crow") | Mostly no | 9.7 |
.bank() is only for drum machines. It adds the machine's name in front of each drum name: s("bd").bank("RolandTR909") plays the sound RolandTR909_bd. An instrument is a single name, so you write it in s(): s("piano"), never .bank("piano") (that looks for piano_bd, finds nothing and stays silent).
setcpm(100/4)
// drum machine: drum names + .bank()
$: s("bd*2 [~ bd] sd ~, hh*8").bank("RolandTR808")
// synth: a wave made in the browser
$: note("<a1 f1 c2 g1>").s("sawtooth").lpf(600).decay(.2).sustain(0)
// instrument: recordings of a piano, at any pitch
$: note("<[a3,c4,e4] [a3,c4,f4] [g3,c4,e4] [g3,b3,d4]>").s("piano").gain(.7)
// sample set: a crow, now and then
$: s("~ ~ ~ crow").gain(.4).mask("<0 1>")
| Command | What it does |
|---|---|
s("bd*2 [~ bd] sd ~, hh*8").bank("RolandTR808") | A beat on the TR-808 drum machine: kick, snare and eight hi-hats. Change the bank name to hear the same beat on another machine. |
note("<a1 f1 c2 g1>").s("sawtooth") | A bass note per bar on the sawtooth synth wave. .lpf(600) darkens it, and .decay(.2).sustain(0) makes each note short. |
note("<[a3,c4,e4] …>").s("piano") | One chord per bar on the sampled grand piano. The commas mean the notes play together. .gain(.7) = 70 % volume. |
s("~ ~ ~ crow").mask("<0 1>") | A crow on beat 4, but only every second bar (0 = silent, 1 = play). |
To find a sound by ear, open the sounds tab in Strudel: it lists every name, and clicking a name plays it. Which octave suits each instrument is in 3.1 Notes and octaves.
9.2Drum machines for .bank()
Every bank uses the same short drum names, so you can swap the kit by changing one word. A short alias works too: .bank("TR909") is the same as .bank("RolandTR909").
s("bd*2 [~ bd] sd ~, hh*8").bank("<RolandTR808 LinnDrum AkaiMPC60 CasioRZ1>")
This example plays a different drum machine each bar.
| Bank | Alias | Character | Good for |
|---|---|---|---|
RolandTR909 | TR909 | Punchy kick, bright hats | House, techno |
RolandTR808 | TR808 | Deep booming kick, snappy clap, cowbell | Hip-hop, trap, electro |
RolandTR707 | TR707 | Clean early digital | 80s pop, Italo disco |
RolandTR606 | TR606 | Thin and ticky | Acid, minimal |
LinnDrum | Real drums sampled in the early 80s | 80s pop, synth-pop | |
OberheimDMX | DMX | Hard, dry hits | Early hip-hop, electro |
AkaiMPC60 | MPC60 | Warm and gritty sampler drums | Boom bap, lo-fi hip-hop |
EmuSP12 | SP12 | Crunchy 12-bit samples | 90s hip-hop |
CasioRZ1 | RZ1 | Lo-fi 80s samples | Lo-fi, house |
KorgMinipops | Minipops | Soft vintage rhythm box | Ambient, retro |
All 71 drum machines
The right column lists the drum sounds each machine has. A sound that's missing from a bank gives a "not found" error.
| Bank | Alias | Sounds |
|---|---|---|
AJKPercusyn | Percysyn | bd cb ht sd |
AkaiLinn | Linn | bd cb cp cr hh ht lt mt oh rd sd sh tb |
AkaiMPC60 | MPC60 | bd cp cr hh ht lt misc mt oh perc rd rim sd |
AkaiXR10 | XR10 | bd cb cp cr hh ht lt misc mt oh perc rd rim sd sh tb |
AlesisHR16 | HR16 | bd cp hh ht lt oh perc rim sd sh |
AlesisSR16 | SR16 | bd cb cp cr hh misc oh perc rd rim sd sh tb |
BossDR110 | DR110 | bd cp cr hh oh rd sd |
BossDR220 | DR220 | bd cp cr hh ht lt mt oh perc rd sd |
BossDR55 | DR55 | bd hh rim sd |
BossDR550 | DR550 | bd cb cp cr hh ht lt misc mt oh perc rd rim sd sh tb |
CasioRZ1 | RZ1 | bd cb cp cr hh ht lt mt rd rim sd |
CasioSK1 | SK1 | bd hh ht mt oh sd |
CasioVL1 | VL1 | bd hh sd |
DoepferMS404 | MS404 | bd hh lt oh sd |
EmuDrumulator | Drumulator | bd cb cp cr hh ht lt mt oh perc rim sd |
EmuModular | bd misc perc | |
EmuSP12 | SP12 | bd cb cp cr hh ht lt misc mt oh perc rd rim sd |
KorgDDM110 | DDM110 | bd cp cr hh ht lt oh rim sd |
KorgKPR77 | KPR77 | bd cp hh oh sd |
KorgKR55 | KR55 | bd cb cr hh ht oh perc rim sd |
KorgKRZ | KRZ | bd cr fx hh ht lt misc oh rd sd |
KorgM1 | M1 | bd cb cp cr hh ht misc mt oh perc rd rim sd sh tb |
KorgMinipops | Minipops | bd hh misc oh sd |
KorgPoly800 | Poly800 | bd |
KorgT3 | T3 | bd cp hh misc oh perc rim sd sh |
Linn9000 | 9000 | bd cb cr hh ht lt mt oh perc rd rim sd tb |
LinnDrum | bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb | |
LinnLM1 | LM1 | bd cb cp hh ht lt oh perc rim sd sh tb |
LinnLM2 | LM2 | bd cb cp cr hh ht lt mt oh rd rim sd sh tb |
MFB512 | bd cp cr hh ht lt mt oh sd | |
MPC1000 | bd cp hh oh perc sd sh | |
MoogConcertMateMG1 | ConcertMateMG1 | bd sd |
OberheimDMX | DMX | bd cp cr hh ht lt mt oh rd rim sd sh tb |
RhodesPolaris | Polaris | bd misc sd |
RhythmAce | Ace | bd hh ht lt oh perc sd |
RolandCompurhythm1000 | Compurhythm1000 | bd cb cp cr hh ht lt mt oh perc rd rim sd |
RolandCompurhythm78 | Compurhythm78 | bd cb hh misc oh perc sd tb |
RolandCompurhythm8000 | Compurhythm8000 | bd cb cp cr hh ht lt mt oh perc rim sd |
RolandD110 | D110 | bd cb cr hh lt oh perc rd rim sd sh tb |
RolandD70 | D70 | bd cb cp cr hh lt mt oh perc rd rim sd sh |
RolandDDR30 | DDR30 | bd ht lt sd |
RolandJD990 | JD990 | bd cb cp cr hh ht lt misc mt oh perc rd sd tb |
RolandMC202 | MC202 | bd ht perc |
RolandMC303 | MC303 | bd cb cp fx hh ht lt misc mt oh perc rd rim sd sh tb |
RolandMT32 | MT32 | bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb |
RolandR8 | R8 | bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb |
RolandS50 | S50 | bd cb cp cr ht lt misc mt oh perc rd sd sh tb |
RolandSH09 | SH09 | bd |
RolandSystem100 | System100 | bd hh misc oh perc sd |
RolandTR505 | TR505 | bd cb cp cr hh ht lt mt oh perc rd rim sd |
RolandTR606 | TR606 | bd cr hh ht lt oh sd |
RolandTR626 | TR626 | bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb |
RolandTR707 | TR707 | bd cb cp cr hh ht lt mt oh rim sd tb |
RolandTR727 | TR727 | perc sh |
RolandTR808 | TR808 | bd cb cp cr hh ht lt mt oh perc rim sd sh |
RolandTR909 | TR909 | bd cp cr hh ht lt mt oh rd rim sd |
SakataDPM48 | DPM48 | bd cp cr hh ht lt mt oh perc rd rim sd sh |
SequentialCircuitsDrumtracks | CircuitsDrumtracks | bd cb cp cr hh ht oh rd rim sd sh tb |
SequentialCircuitsTom | CircuitsTom | bd cp cr hh ht oh sd |
SergeModular | bd misc perc | |
SimmonsSDS400 | SDS400 | ht lt mt sd |
SimmonsSDS5 | SDS5 | bd hh ht lt mt oh rim sd |
SoundmastersR88 | R88 | bd cr hh oh sd |
UnivoxMicroRhythmer12 | MicroRhythmer12 | bd hh oh sd |
ViscoSpaceDrum | SpaceDrum | bd cb hh ht lt misc mt oh perc rim sd |
XdrumLM8953 | LM8953 | bd cr hh ht lt mt oh rd rim sd tb |
YamahaRM50 | RM50 | bd cb cp cr hh ht lt misc mt oh perc rd sd sh tb |
YamahaRX21 | RX21 | bd cp cr hh ht lt mt oh sd |
YamahaRX5 | RX5 | bd cb fx hh lt oh rim sd sh tb |
YamahaRY30 | RY30 | bd cb cp cr hh ht lt misc mt oh perc rd rim sd sh tb |
YamahaTG33 | TG33 | bd cb cp cr fx ht lt misc mt oh perc rd rim sd sh tb |
9.3Drum sound names
These short names work in every bank, and also with no bank at all (Strudel's default kit).
| Name | Sound | Name | Sound |
|---|---|---|---|
bd | Bass drum (kick) | cr | Crash cymbal |
sd | Snare drum | rd | Ride cymbal |
cp | Hand clap | cb | Cowbell |
hh | Closed hi-hat | sh | Shaker |
oh | Open hi-hat | tb | Tambourine |
rim | Rimshot | perc | Other percussion |
lt mt ht | Low, mid, high tom | misc fx | Extra sounds and effects |
brk | Breakbeat (default kit only) | :n | Pick another sample, like hh:2 |
9.4Built-in synths
These are generated in the browser, so they load instantly and play any note. Use them with note() or n().scale(), and shape them with .lpf(), .attack(), .decay(), .sustain() and .release().
note("a2 c3 e3 g3").s("<sawtooth square triangle supersaw>").lpf(1200)
sinetrianglesquaresawtooth
supersawpulsesbd(synth kick)bytebeat
whitepinkbrowncrackle
z_sinez_trianglez_squarez_sawtoothz_tanz_noise
wt_digitalwt_digital_bad_daywt_digital_basiquewt_digital_cricketswt_digital_curseswt_digital_echoeswt_vgame
9.5Instruments (General MIDI)
128 sampled instruments, all named gm_…. They play any note and are good for chords and melodies. Always write the name in double quotes, .s("gm_choir_aahs"). Without quotes you get gm_choir_aahs is not defined (see Error messages).
note("<[a3,c4,e4] [f3,a3,c4] [c4,e4,g4] [g3,b3,d4]>")
.s("gm_pad_warm").room(.6)
gm_pianogm_epiano1gm_epiano2gm_harpsichordgm_clavinetgm_celestagm_music_box
gm_glockenspielgm_vibraphonegm_marimbagm_xylophonegm_tubular_bellsgm_dulcimergm_kalimbagm_tinkle_bellgm_steel_drums
gm_drawbar_organgm_percussive_organgm_rock_organgm_church_organgm_reed_organgm_accordiongm_bandoneongm_harmonica
gm_acoustic_guitar_nylongm_acoustic_guitar_steelgm_electric_guitar_jazzgm_electric_guitar_cleangm_electric_guitar_mutedgm_overdriven_guitargm_distortion_guitargm_guitar_harmonics
gm_acoustic_bassgm_electric_bass_fingergm_electric_bass_pickgm_fretless_bassgm_slap_bass_1gm_slap_bass_2gm_synth_bass_1gm_synth_bass_2
gm_violingm_violagm_cellogm_contrabassgm_tremolo_stringsgm_pizzicato_stringsgm_orchestral_harpgm_string_ensemble_1gm_string_ensemble_2gm_synth_strings_1gm_synth_strings_2gm_timpanigm_orchestra_hit
gm_choir_aahsgm_voice_oohsgm_synth_choir
gm_trumpetgm_muted_trumpetgm_trombonegm_tubagm_french_horngm_brass_sectiongm_synth_brass_1gm_synth_brass_2
gm_soprano_saxgm_alto_saxgm_tenor_saxgm_baritone_saxgm_oboegm_english_horngm_bassoongm_clarinetgm_piccologm_flutegm_recordergm_pan_flutegm_blown_bottlegm_shakuhachigm_whistlegm_ocarina
gm_lead_1_squaregm_lead_2_sawtoothgm_lead_3_calliopegm_lead_4_chiffgm_lead_5_charanggm_lead_6_voicegm_lead_7_fifthsgm_lead_8_bass_lead
gm_pad_new_agegm_pad_warmgm_pad_polygm_pad_choirgm_pad_bowedgm_pad_metallicgm_pad_halogm_pad_sweep
gm_fx_raingm_fx_soundtrackgm_fx_crystalgm_fx_atmospheregm_fx_brightnessgm_fx_goblinsgm_fx_echoesgm_fx_sci_fi
gm_sitargm_banjogm_shamisengm_kotogm_bagpipegm_fiddlegm_shanai
gm_agogogm_woodblockgm_taiko_drumgm_melodic_tomgm_synth_drumgm_reverse_cymbal
gm_guitar_fret_noisegm_breath_noisegm_seashoregm_bird_tweetgm_telephonegm_helicoptergm_applausegm_gunshot
How to use one of the sound effects in a track: 4.4 Using a sound effect.
9.6Acoustic instruments (VCSL)
Real instruments from the Versilian Community Sample Library. Pitched ones play any note. Also listed here is piano, a large grand-piano sample set. Write it as an instrument, note("c4").s("piano"), not as a drum machine with .bank().
n("0 2 4 [7 6] 4 2").scale("C4:major").s("marimba")
pianosteinwaykawaipiano1fmpianoclavisynth
organ_4inchorgan_8inchorgan_fullpipeorgan_loudpipeorgan_quietpipeorgan_loud_pedalpipeorgan_quiet_pedal
marimbavibraphonevibraphone_softvibraphone_bowedglockenspielxylophone_medium_ffxylophone_soft_ppbalafonkalimbakalimba2…kalimba5
harpfolkharpstrumstickdantranhdantranh_tremolopsaltery_pluckpsaltery_bow
saxsax_staccsax_vibsaxellorecorder_soprano_susrecorder_alto_susrecorder_tenor_susrecorder_bass_susocarinaharmonicasuper64didgeridoo
tubularbellshandbellshandchimesbelltreemarktreeswineglassgongsus_cymbalclashfingercymbaltriangles
bassdrum1bassdrum2snare_modernsnare_hisnare_lowsnare_rimtom_sticktom_mallettimpanitimpani_rollframedrum
bongocongacajondarbukatambourineshaker_smallshaker_largecabasaguiroclavecowbellagogowoodblockslitdrumsleighbellsvibraslapratchetclaphihat
anvilbrakedrumflexatoneoceandrumslapsticksirentrainwhistleballwhistle
9.7Other Strudel sample sets
jazz(0 kick, 3 hat, 7 snare)metaleast(Japanese percussion)casiospace
windcrowinsect
numbersnum
mridangam_thamridangam_dhinmridangam_tamridangam_kamridangam_nammridangam_thommridangam_dhum- … 13 strokes in total
You can also load the large Dirt-Samples library (about 200 folders of drums, noises and loops) from GitHub with one line at the top of your code. Each folder holds several recordings, and .n() picks one:
samples('github:tidalcycles/dirt-samples')
s("arpy*4").n("<0 2 4 6>")
Tested with Strudel 1.3. Course text: CC BY-SA 4.0, code: CC0 1.0 (licences).