1. Home
  2. /
  3. Sonic-pi-live
  4. /
  5. Step Sequencer Pattern

Step Sequencer Pattern - Sonic-pi-live Typing CST Test

Loading…

Step Sequencer Pattern — Sonic-pi-live Code

Implements a simple step sequencer with two samples.

live_loop :step_seq do
	steps = [1, 0, 1, 0, 1, 1, 0, 0]
	steps.each do |s|
		if s == 1
		sample :bd_haus
		end
		sleep 0.25
	end
end

Sonic-pi-live Language Guide

Sonic Pi is a live coding environment designed for creating music through code. It allows users to write Ruby-based scripts that generate real-time audio, enabling both learning and performance in music programming.

Primary Use Cases

  • ▸Teaching programming through music
  • ▸Algorithmic and generative composition
  • ▸Live music performance and improvisation
  • ▸Interactive sound installations
  • ▸Exploring synthesis, effects, and audio experimentation

Notable Features

  • ▸Live coding environment with immediate audio feedback
  • ▸Built-in synthesizers, samples, and effects
  • ▸Concurrency with multiple live threads
  • ▸Integration of MIDI and external instruments
  • ▸Cross-platform and open-source

Origin & Creator

Created by Sam Aaron at the University of Cambridge, first released in 2012, inspired by the use of live coding for both education and performance.

Industrial Note

Primarily used in education, music performance, workshops, and experimental art; rarely used in mainstream music production but influential in live coding communities.

More Sonic-pi-live Typing Exercises

Simple Live Loop Beat in Sonic PiLayered Live Loop Melody and DrumsArpeggio PatternRandom MelodyDrum FillBass Line GrooveChord ProgressionEcho Effect LoopReverb Drum Loop

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher