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

Step 09 of 11

Sound bank

Every sound you can use: drum machines, synths, instruments and 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:

KindWhat it isHow you write itPlays any note?List
Drum machineThe 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")No9.2, 9.3
SynthA sound wave made by the browser itself, so it loads instantlynote("a2").s("sawtooth")Yes9.4
InstrumentRecordings of a real instrument (piano, violin, choir…), played back at any pitchnote("c4").s("gm_violin")
note("c4").s("piano")
Yes9.5, 9.6
Sample setOther recordings: noises, voices, percussion from around the worlds("crow")Mostly no9.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).

Strudel · the four kinds of soundOpen in Strudel ↗
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>")
CommandWhat 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").

Strudel · try a bankOpen in Strudel ↗
s("bd*2 [~ bd] sd ~, hh*8").bank("<RolandTR808 LinnDrum AkaiMPC60 CasioRZ1>")

This example plays a different drum machine each bar.

BankAliasCharacterGood for
RolandTR909TR909Punchy kick, bright hatsHouse, techno
RolandTR808TR808Deep booming kick, snappy clap, cowbellHip-hop, trap, electro
RolandTR707TR707Clean early digital80s pop, Italo disco
RolandTR606TR606Thin and tickyAcid, minimal
LinnDrumReal drums sampled in the early 80s80s pop, synth-pop
OberheimDMXDMXHard, dry hitsEarly hip-hop, electro
AkaiMPC60MPC60Warm and gritty sampler drumsBoom bap, lo-fi hip-hop
EmuSP12SP12Crunchy 12-bit samples90s hip-hop
CasioRZ1RZ1Lo-fi 80s samplesLo-fi, house
KorgMinipopsMinipopsSoft vintage rhythm boxAmbient, 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.

BankAliasSounds
AJKPercusynPercysynbd cb ht sd
AkaiLinnLinnbd cb cp cr hh ht lt mt oh rd sd sh tb
AkaiMPC60MPC60bd cp cr hh ht lt misc mt oh perc rd rim sd
AkaiXR10XR10bd cb cp cr hh ht lt misc mt oh perc rd rim sd sh tb
AlesisHR16HR16bd cp hh ht lt oh perc rim sd sh
AlesisSR16SR16bd cb cp cr hh misc oh perc rd rim sd sh tb
BossDR110DR110bd cp cr hh oh rd sd
BossDR220DR220bd cp cr hh ht lt mt oh perc rd sd
BossDR55DR55bd hh rim sd
BossDR550DR550bd cb cp cr hh ht lt misc mt oh perc rd rim sd sh tb
CasioRZ1RZ1bd cb cp cr hh ht lt mt rd rim sd
CasioSK1SK1bd hh ht mt oh sd
CasioVL1VL1bd hh sd
DoepferMS404MS404bd hh lt oh sd
EmuDrumulatorDrumulatorbd cb cp cr hh ht lt mt oh perc rim sd
EmuModularbd misc perc
EmuSP12SP12bd cb cp cr hh ht lt misc mt oh perc rd rim sd
KorgDDM110DDM110bd cp cr hh ht lt oh rim sd
KorgKPR77KPR77bd cp hh oh sd
KorgKR55KR55bd cb cr hh ht oh perc rim sd
KorgKRZKRZbd cr fx hh ht lt misc oh rd sd
KorgM1M1bd cb cp cr hh ht misc mt oh perc rd rim sd sh tb
KorgMinipopsMinipopsbd hh misc oh sd
KorgPoly800Poly800bd
KorgT3T3bd cp hh misc oh perc rim sd sh
Linn90009000bd cb cr hh ht lt mt oh perc rd rim sd tb
LinnDrumbd cb cp cr hh ht lt mt oh perc rd rim sd sh tb
LinnLM1LM1bd cb cp hh ht lt oh perc rim sd sh tb
LinnLM2LM2bd cb cp cr hh ht lt mt oh rd rim sd sh tb
MFB512bd cp cr hh ht lt mt oh sd
MPC1000bd cp hh oh perc sd sh
MoogConcertMateMG1ConcertMateMG1bd sd
OberheimDMXDMXbd cp cr hh ht lt mt oh rd rim sd sh tb
RhodesPolarisPolarisbd misc sd
RhythmAceAcebd hh ht lt oh perc sd
RolandCompurhythm1000Compurhythm1000bd cb cp cr hh ht lt mt oh perc rd rim sd
RolandCompurhythm78Compurhythm78bd cb hh misc oh perc sd tb
RolandCompurhythm8000Compurhythm8000bd cb cp cr hh ht lt mt oh perc rim sd
RolandD110D110bd cb cr hh lt oh perc rd rim sd sh tb
RolandD70D70bd cb cp cr hh lt mt oh perc rd rim sd sh
RolandDDR30DDR30bd ht lt sd
RolandJD990JD990bd cb cp cr hh ht lt misc mt oh perc rd sd tb
RolandMC202MC202bd ht perc
RolandMC303MC303bd cb cp fx hh ht lt misc mt oh perc rd rim sd sh tb
RolandMT32MT32bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb
RolandR8R8bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb
RolandS50S50bd cb cp cr ht lt misc mt oh perc rd sd sh tb
RolandSH09SH09bd
RolandSystem100System100bd hh misc oh perc sd
RolandTR505TR505bd cb cp cr hh ht lt mt oh perc rd rim sd
RolandTR606TR606bd cr hh ht lt oh sd
RolandTR626TR626bd cb cp cr hh ht lt mt oh perc rd rim sd sh tb
RolandTR707TR707bd cb cp cr hh ht lt mt oh rim sd tb
RolandTR727TR727perc sh
RolandTR808TR808bd cb cp cr hh ht lt mt oh perc rim sd sh
RolandTR909TR909bd cp cr hh ht lt mt oh rd rim sd
SakataDPM48DPM48bd cp cr hh ht lt mt oh perc rd rim sd sh
SequentialCircuitsDrumtracksCircuitsDrumtracksbd cb cp cr hh ht oh rd rim sd sh tb
SequentialCircuitsTomCircuitsTombd cp cr hh ht oh sd
SergeModularbd misc perc
SimmonsSDS400SDS400ht lt mt sd
SimmonsSDS5SDS5bd hh ht lt mt oh rim sd
SoundmastersR88R88bd cr hh oh sd
UnivoxMicroRhythmer12MicroRhythmer12bd hh oh sd
ViscoSpaceDrumSpaceDrumbd cb hh ht lt misc mt oh perc rim sd
XdrumLM8953LM8953bd cr hh ht lt mt oh rd rim sd tb
YamahaRM50RM50bd cb cp cr hh ht lt misc mt oh perc rd sd sh tb
YamahaRX21RX21bd cp cr hh ht lt mt oh sd
YamahaRX5RX5bd cb fx hh lt oh rim sd sh tb
YamahaRY30RY30bd cb cp cr hh ht lt misc mt oh perc rd rim sd sh tb
YamahaTG33TG33bd 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).

NameSoundNameSound
bdBass drum (kick)crCrash cymbal
sdSnare drumrdRide cymbal
cpHand clapcbCowbell
hhClosed hi-hatshShaker
ohOpen hi-hattbTambourine
rimRimshotpercOther percussion
lt mt htLow, mid, high tommisc fxExtra sounds and effects
brkBreakbeat (default kit only):nPick 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().

Strudel · synthsOpen in Strudel ↗
note("a2 c3 e3 g3").s("<sawtooth square triangle supersaw>").lpf(1200)
Basic waves
  • sine
  • triangle
  • square
  • sawtooth
Richer synths
  • supersaw
  • pulse
  • sbd (synth kick)
  • bytebeat
Noise
  • white
  • pink
  • brown
  • crackle
ZzFX (retro game)
  • z_sine
  • z_triangle
  • z_square
  • z_sawtooth
  • z_tan
  • z_noise
Wavetables
  • wt_digital
  • wt_digital_bad_day
  • wt_digital_basique
  • wt_digital_crickets
  • wt_digital_curses
  • wt_digital_echoes
  • wt_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).

Strudel · instrumentsOpen in Strudel ↗
note("<[a3,c4,e4] [f3,a3,c4] [c4,e4,g4] [g3,b3,d4]>")
  .s("gm_pad_warm").room(.6)
Pianos & keys
  • gm_piano
  • gm_epiano1
  • gm_epiano2
  • gm_harpsichord
  • gm_clavinet
  • gm_celesta
  • gm_music_box
Mallets & bells
  • gm_glockenspiel
  • gm_vibraphone
  • gm_marimba
  • gm_xylophone
  • gm_tubular_bells
  • gm_dulcimer
  • gm_kalimba
  • gm_tinkle_bell
  • gm_steel_drums
Organs
  • gm_drawbar_organ
  • gm_percussive_organ
  • gm_rock_organ
  • gm_church_organ
  • gm_reed_organ
  • gm_accordion
  • gm_bandoneon
  • gm_harmonica
Guitars
  • gm_acoustic_guitar_nylon
  • gm_acoustic_guitar_steel
  • gm_electric_guitar_jazz
  • gm_electric_guitar_clean
  • gm_electric_guitar_muted
  • gm_overdriven_guitar
  • gm_distortion_guitar
  • gm_guitar_harmonics
Basses
  • gm_acoustic_bass
  • gm_electric_bass_finger
  • gm_electric_bass_pick
  • gm_fretless_bass
  • gm_slap_bass_1
  • gm_slap_bass_2
  • gm_synth_bass_1
  • gm_synth_bass_2
Strings
  • gm_violin
  • gm_viola
  • gm_cello
  • gm_contrabass
  • gm_tremolo_strings
  • gm_pizzicato_strings
  • gm_orchestral_harp
  • gm_string_ensemble_1
  • gm_string_ensemble_2
  • gm_synth_strings_1
  • gm_synth_strings_2
  • gm_timpani
  • gm_orchestra_hit
Voices
  • gm_choir_aahs
  • gm_voice_oohs
  • gm_synth_choir
Brass
  • gm_trumpet
  • gm_muted_trumpet
  • gm_trombone
  • gm_tuba
  • gm_french_horn
  • gm_brass_section
  • gm_synth_brass_1
  • gm_synth_brass_2
Reeds & winds
  • gm_soprano_sax
  • gm_alto_sax
  • gm_tenor_sax
  • gm_baritone_sax
  • gm_oboe
  • gm_english_horn
  • gm_bassoon
  • gm_clarinet
  • gm_piccolo
  • gm_flute
  • gm_recorder
  • gm_pan_flute
  • gm_blown_bottle
  • gm_shakuhachi
  • gm_whistle
  • gm_ocarina
Synth leads
  • gm_lead_1_square
  • gm_lead_2_sawtooth
  • gm_lead_3_calliope
  • gm_lead_4_chiff
  • gm_lead_5_charang
  • gm_lead_6_voice
  • gm_lead_7_fifths
  • gm_lead_8_bass_lead
Synth pads
  • gm_pad_new_age
  • gm_pad_warm
  • gm_pad_poly
  • gm_pad_choir
  • gm_pad_bowed
  • gm_pad_metallic
  • gm_pad_halo
  • gm_pad_sweep
Synth effects
  • gm_fx_rain
  • gm_fx_soundtrack
  • gm_fx_crystal
  • gm_fx_atmosphere
  • gm_fx_brightness
  • gm_fx_goblins
  • gm_fx_echoes
  • gm_fx_sci_fi
World
  • gm_sitar
  • gm_banjo
  • gm_shamisen
  • gm_koto
  • gm_bagpipe
  • gm_fiddle
  • gm_shanai
Percussion
  • gm_agogo
  • gm_woodblock
  • gm_taiko_drum
  • gm_melodic_tom
  • gm_synth_drum
  • gm_reverse_cymbal
Sound effects
  • gm_guitar_fret_noise
  • gm_breath_noise
  • gm_seashore
  • gm_bird_tweet
  • gm_telephone
  • gm_helicopter
  • gm_applause
  • gm_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().

Strudel · acousticOpen in Strudel ↗
n("0 2 4 [7 6] 4 2").scale("C4:major").s("marimba")
Pianos & keys
  • piano
  • steinway
  • kawai
  • piano1
  • fmpiano
  • clavisynth
Organs
  • organ_4inch
  • organ_8inch
  • organ_full
  • pipeorgan_loud
  • pipeorgan_quiet
  • pipeorgan_loud_pedal
  • pipeorgan_quiet_pedal
Mallets
  • marimba
  • vibraphone
  • vibraphone_soft
  • vibraphone_bowed
  • glockenspiel
  • xylophone_medium_ff
  • xylophone_soft_pp
  • balafon
  • kalimba
  • kalimba2…kalimba5
Plucked strings
  • harp
  • folkharp
  • strumstick
  • dantranh
  • dantranh_tremolo
  • psaltery_pluck
  • psaltery_bow
Winds
  • sax
  • sax_stacc
  • sax_vib
  • saxello
  • recorder_soprano_sus
  • recorder_alto_sus
  • recorder_tenor_sus
  • recorder_bass_sus
  • ocarina
  • harmonica
  • super64
  • didgeridoo
Bells & cymbals
  • tubularbells
  • handbells
  • handchimes
  • belltree
  • marktrees
  • wineglass
  • gong
  • sus_cymbal
  • clash
  • fingercymbal
  • triangles
Drums
  • bassdrum1
  • bassdrum2
  • snare_modern
  • snare_hi
  • snare_low
  • snare_rim
  • tom_stick
  • tom_mallet
  • timpani
  • timpani_roll
  • framedrum
Hand percussion
  • bongo
  • conga
  • cajon
  • darbuka
  • tambourine
  • shaker_small
  • shaker_large
  • cabasa
  • guiro
  • clave
  • cowbell
  • agogo
  • woodblock
  • slitdrum
  • sleighbells
  • vibraslap
  • ratchet
  • clap
  • hihat
Odd sounds
  • anvil
  • brakedrum
  • flexatone
  • oceandrum
  • slapstick
  • siren
  • trainwhistle
  • ballwhistle

9.7Other Strudel sample sets

Kits & textures
  • jazz (0 kick, 3 hat, 7 snare)
  • metal
  • east (Japanese percussion)
  • casio
  • space
Nature
  • wind
  • crow
  • insect
Voices
  • numbers
  • num
Mridangam (Indian drum)
  • mridangam_tha
  • mridangam_dhin
  • mridangam_ta
  • mridangam_ka
  • mridangam_nam
  • mridangam_thom
  • mridangam_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:

Strudel · Dirt-SamplesOpen in Strudel ↗
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).