1. Home
  2. /
  3. Sonic-pi
  4. /
  5. Random Notes

Random Notes - Sonic-pi Typing CST Test

Loading…

Random Notes — Sonic-pi Code

Plays 8 random notes within an octave.

8.times do
	play choose([60,62,64,65,67,69,71,72])
	sleep 0.25
end

Sonic-pi Language Guide

Sonic Pi is a live coding environment designed for creating music using code. It allows users to compose, perform, and experiment with sounds in real-time, blending programming with musical creativity.

Primary Use Cases

  • ▸Teaching coding through music in schools and workshops
  • ▸Live coding performances and concerts
  • ▸Composing experimental electronic music
  • ▸Creating interactive sound installations
  • ▸Learning synthesis, loops, and algorithmic composition

Notable Features

  • ▸Real-time audio synthesis and live coding
  • ▸Simple Ruby-based programming syntax
  • ▸Built-in samples, synths, and effects
  • ▸Support for loops, threads, and concurrency
  • ▸Open-source and cross-platform

Origin & Creator

Sonic Pi was created by Sam Aaron in 2011 at the University of Cambridge as a tool for teaching programming through music and live coding performances.

Industrial Note

Primarily used in education, live coding, and music experimentation. It has niche usage in digital art performances and experimental music, rather than mainstream music production.

More Sonic-pi Typing Exercises

Hello World Tune in Sonic PiSimple Drum BeatAscending ScaleArpeggio ExampleSimple BasslineMelody with ReverbSimple Drum RollChord ProgressionSimple Ambient Loop

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher