Sonic Pi Scripts

Jumping-off points for Sonic Pi!

Volume Control on a Live DnB Jam

Coded by Binarysweets

By setting some global values for volume controls you can run a set of live loops and easily alter the mix.

Skippy Piano

Coded by Doffu

This code brings in an external piano sample loop and restructures it into something glitch-tastic!

:organ_tonewheel explorer

Coded by ts-swx

The organ tonewheel has a ton of capabilities. This script basically plays with the drawbars in various ways; some waviness, some randomness, a bit of inversion here and there. A nice template as well, since all the parameters + slides are written out for you 🙂

4 Bar Chord Progression Generator Tool

Coded by quekou

A tool for generating a 4 bar chord progression. To push the code further, change the seed, key, and scale values to generate new chord progressions. The generator is setup to create 7th chord progressions but can be modified to produce any chord.

Dream Waltz

Coded by Doffu

A three instrument loop showing how to use ‘control’ to handoff continuously changing LFO levels to an FX parameter.

Acid

Coded by Sam Aaron

An example of how to sync and conduct instruments using ‘cue’.

Droid Skit

Coded by Binarysweets

This code is for Binary Sweet’s song Droid Skit. It shows how instruments and song elements can be defined modularly and structured into a full song.

Polyrhythmic Amen Break Flanger

Coded by Doffu

An instrument which slices up a drum sample and applies flanger FX based on LFO step positions. A polyrhythm is produced by doubling up two samples which play at different beat lengths.

Aphex Twin Style LFO Step Glitch Effect

Coded by Doffu

This instrument chops up a sample programmatically and applies FX based on LFO step positions. Randomness is introduced across various parameters using ‘choose’.