The Patchbay_

FoxDot Cheat Sheet

FoxDot sequences music with concise Python. Player objects (p1, d1…) are assigned patterns with >>. It needs SuperCollider running the FoxDot quark in the background.

Clock & players

Clock.bpm = 128Set the tempo
p1 >> pluck([0,2,4], dur=1/2)Assign a synth pattern to player p1
d1 >> play("x-o-")Sample-string drum pattern
p1.stop()Stop one player
Clock.clear()Stop everything

Scales & roots

Scale.default = "minor"Set the global scale
Root.default = "C"Set the global key
p1 >> pluck([0,2,4], scale=Scale.dorian)Per-player scale

Attributes (keyword args)

dur=1/2Duration of each step
amp=0.8Amplitude
oct=5Octave
sus=2Sustain
root=2Transpose the root

Patterns

P[0,1,2,3]A FoxDot pattern
P[0,1,2,3].reverse()Transform a pattern
var([0,4], 4)Time-varying value (0 for 4 beats, then 4)
PDur(3,8)Euclidean durations

Effects

.room(0.5)Reverb
.lpf(800).hpf(200) — filters
.chop(4)Chop each note into pieces
.echo(0.25)Echo
.pan([-1,1])Pan pattern

FoxDot — Python live coding over SuperCollider. · FoxDot in the tool directory →

← All cheat sheets