Welcome

Strudel Icon

Welcome to the Strudel documentation pages! You’ve come to the right place if you want to learn how to make music with code.

These pages will introduce you to Strudel, a web-based live coding environment that implements the Tidal Cycles algorithmic pattern language.

What is Strudel?

With Strudel, you can expressively write dynamic music pieces.

Strudel is a version of Tidal Cycles written in JavaScript, initiated by Alex McLean and Felix Roos in 2022, quickly growing into a collective free/open source project with major contributors and maintainers including Jade Rowland and Aria. Tidal Cycles, also known as Tidal, is a language for algorithmic pattern, and though it is most commonly used for making music, it can be used for any kind of pattern making activity, including weaving.

Tidal was first implemented as a library written in the Haskell functional programming language, and by itself it does not make any sound. To make sound, it has to be connected to a sound engine, and by default this is a SuperCollider plugin called SuperDirt. As such, it can be difficult for first-time users to install both Tidal Cycles and SuperDirt, as there are many small details to get right. Strudel however runs directly in your web browser, does not require any custom software installation, and can make sound all by itself.

You don’t need to know JavaScript or Tidal Cycles to make music with Strudel. This interactive tutorial will guide you through the basics of Strudel.

What can you do with Strudel?

  • Live code music: make music with code in real time.
  • Algorithmic composition: compose music using tidal’s unique approach to pattern manipulation.
  • Teaching: focussing on a low barrier of entry, Strudel is a good fit for teaching music and code at the same time.
  • Integrate into your existing music setup: either via MIDI or OSC, you can use Strudel as a really flexible sequencer.

Strudel REPL and MiniREPL

The main place to actually make music with Strudel is the Strudel REPL (what is a REPL?), but in these pages you will also encounter interactive ā€œMiniREPLsā€ where you can listen to and edit Strudel patterns. Try clicking the play icon below:

s("bd sd")

Then edit the text so it reads s("bd sd cp hh") and click the refresh icon. Congratulations, you have now live coded your first Strudel pattern!

Show me some demos!

Here are some examples of how strudel can sound:

// "coastline" @by eddyflux
// @version 1.0
samples('github:eddyflux/crate')
setcps(.75)
let chords = chord("<Bbm9 Fm9>/4").dict('ireal')
stack(
  stack( // DRUMS
    s("bd").struct("<[x*<1 2> [~@3 x]] x>"),
    s("~ [rim, sd:<2 3>]").room("<0 .2>"),
    n("[0 <1 3>]*<2!3 4>").s("hh"),
    s("rd:<1!3 2>*2").mask("<0 0 1 1>/16").gain(.5)
  ).bank('crate')
  .mask("<[0 1] 1 1 1>/16".early(.5))
  , // CHORDS
  chords.offset(-1).voicing().s("gm_epiano1:1")
  .phaser(4).room(.5)
  , // MELODY
  n("<0!3 1*2>").set(chords).mode("root:g2")
  .voicing().s("gm_acoustic_bass"),
  chords.n("[0 <4 3 <2 5>>*2](<3 5>,8)")
  .anchor("D5").voicing()
  .segment(4).clip(rand.range(.4,.8))
  .room(.75).shape(.3).delay(.25)
  .fm(sine.range(3,8).slow(8))
  .lpf(sine.range(500,1000).slow(8)).lpq(5)
  .rarely(ply("2")).chunk(4, fast(2))
  .gain(perlin.range(.6, .9))
  .mask("<0 1 1 0>/16")
)
.late("[0 .01]*4").late("[0 .01]*2").size(4)

These examples cannot fully encompass the variety of things you can do, so check out the showcase for some videos of how people use Strudel.

Contribute to Strudel

You can contribute to it clicking ā€˜Edit this page’ in the top right, or by visiting the Strudel Codeberg page.

Getting Started

The best way to start learning Strudel is the workshop. If you’re ready to dive in, let’s start with your first sounds