Sonic Pi 2026 Sacramento Storm (Clean Slate Drone)
Set your volume low! A-264 is powerful.
set_volume! 1
Fundamental: The Humidity (A 264 Hz)
with_fx :level, amp: 1 do
use_synth :tri
Play the root note (A3, but 264Hz)
play 57, attack: 5, release: 20, cutoff: 60, sustain: 200 # Sustains for over 3 mins
end
----------------------------------------------------
Thread 2: The Static and Hail Tension
----------------------------------------------------
live_loop :electric_hail do
with_fx :compressor do
# Randomly introduce a burst of tension
if (one_in 6)
# Step A: The Static (396Hz, Perfect 5th)
# Simulates the build of electrical charge
with_fx :bitcrusher do
use_synth :square
play 64, release: 0.1, amp: 0.3 # Sharp, bright, stable
sleep 0.1
end
# Step B: The Hail "Clean Slate" Sweep
# Releasing the mathematical tension into microtones
use_synth :prophet # A synth with rich harmonics
# Play a series of 12 notes, rapidly ascending,
# but each one is randomly detuned by up to 120 cents.
tick_reset
12.times do
# Notes 60 (C) up to 71 (B), with random microtonal offsets.
play (60 + tick), detune: rrand(-120, 120), release: 0.05, amp: 0.15
sleep 0.0625 # Very fast 1/16th notes
end
# A quiet, stable release back to our fundamental
# representing the ground covered in hail.
use_synth :tri
play 57, release: 10, amp: 0.2
end
# Most of the time, the storm is just building (empty space)
sleep rrand(2, 8)
end
end