Strudel 101: Drums and Beats


Anatomy of a function call

These are all the drum sounds you can use in strudel:

Try it: Change the letters inside the quotes and run the pattern again. Notice the sound changes, but the shape of the line never does.

Spoiler

The words inside the quotes are what you hear

A few symbols worth knowing:

Try it: Add a ~ somewhere in the string. Add a *2 or *4 after a sound. Listen for what each symbol does.

Spoiler

Numbers vs. strings

.fast(2)     // number, no quotes
.s("bd")     // string, needs quotes

Chaining functions with more functions

Try it: Add .slow(2) or .pan(0.5) to the end of a line. Then try reordering two chained calls. Does it still work? Does it sound different?

Spoiler

Other interesting functions:


Layering mulitple instruments

Try it: Create a layer for claps.

Spoiler

Setting the BPM

Place this at the top of your strudel code:

setcpm(140/4)

This will set the BPM to 140 in 4/4

Try it: Set the BPM to 90 or 500.

Spoiler

Note: If you have multiple setcpm() statements, only the latest will apply.


Muting layers live

Try it: Comment out one line in and run it. Then uncomment it.

Spoiler

Putting it together