Journal

Sonic Pi afternoon session 2

Cet article n’existe qu’en anglais.

A new Sonic Pi session using some of the things learned from Jindřich Mynarz.

Part of the Sonic Pi notebook, 2016–2018.

A new sonic-pi session using some of the stuff I learned from Jindřich Mynarz. Skip to 7 minutes if you want to see some action.

use_debug false
use_bpm 135
live_loop :kicks do
stop
if spread(3, 8).tick then
sample :bd_haus, amp: 0.5, cutoff: 95
with_fx :distortion do
sample :bd_boom, amp: 0.2, cutoff: 10
end
end
sleep 0.25
end
define :snare do |amp|
stop
with_fx :hpf, cutoff: 110 do
sample :sn_zome, amp: amp, start: 0.3, finish: 0.95, rate: 0.7
end
end
live_loop :snare do
sleep 1
stop
snare 0.1
sleep 1
end
live_loop :break do
stop
sync :snare
sleep 15.75
with_fx :reverb, mix: 0.3, room: 0.8 do
with_fx :echo, mix: 0.4, decay: 8, phase: 0.75 do
snare 0.5
end
end
sleep 0.25
end
live_loop :sound do
stop
with_fx :pitch_shift, pitch: rrand(-24, 24) do
with_fx :reverb, mix: 0.9, room: 0.8 do
with_fx :slicer, phase: 0.5 do
with_fx :slicer, phase: 0.25 do
sample :ambi_glass_hum, beat_stretch: 16
end
end
sleep 16
end
end
end
live_loop :bass do
stop
with_fx :echo, mix: 0.2, res: 0.1 do
with_fx :krush, mix: 0.8, res: 0.1 do
if (spread 7, 8).tick then
sample :bass_trance_c, attack: 0.8, release: 0.2, amp: 0.05
end
end
sleep 1
end
end
live_loop :melody2 do
stop
with_fx :pitch_shift, pitch: 24 do
with_fx :ixi_techno do
with_fx :slicer, phase: 1 do
sample :ambi_choir, beat_stretch: 8, rate: 0.7, amp: 0.3
end
end
sleep 8
end
end
live_loop :hh do
stop
with_fx :echo, mix: 0.3, res: 0.1 do
with_fx :krush, mix: 0.5, res: 0.1 do
if (spread 7, 8).tick then
synth :noise, amp: 0.1, attack: 0.01, release: 0.15
end
end
sleep 1
end
end
live_loop :synth do
stop
with_fx :echo, mix: 0.2, res: 0.1 do
with_fx :krush, mix: 0.1, res: 0.1 do
if (spread 7, 8).tick then
synth :prophet, amp: 0.4, attack: 0.01, release: 0.12
synth :blade, amp: 0.1, attack: 0.01, release: 0.12
end
end
sleep 0.25
end
end

Originally published on svdk.fr in 2016.

Esc