/usr/share/sonic-pi/examples/wizard/shufflit.rb is in sonic-pi-server 2.10.0~repack-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # Coded by Sam Aaron
use_debug false
use_random_seed 667
load_sample :ambi_lunar_land
sleep 1
live_loop :travelling do
use_synth :beep
notes = scale(:e3, :minor_pentatonic, num_octaves: 1)
use_random_seed 679
tick_reset_all
with_fx :echo, phase: 0.125, mix: 0.4, reps: 16 do
sleep 0.25
play notes.choose, attack: 0, release: 0.1, pan: (range -1, 1, step: 0.125).tick, amp: rrand(2, 2.5)
end
end
live_loop :comet, auto_cue: false do
if one_in 4
sample :ambi_lunar_land
puts :comet_landing
end
sleep 8
end
live_loop :shuff, auto_cue: false do
with_fx :hpf, cutoff: 10, reps: 8 do
tick
sleep 0.25
sample :bd_tek, amp: factor?(look, 8) ? 6 : 4
sleep 0.25
use_synth :tb303
use_synth_defaults cutoff_attack: 1, cutoff_release: 0, env_curve: 2
play (knit :e2, 24, :c2, 8).look, release: 1.5, cutoff: (range 70, 90).look, depth: 10 , amp: 2 if factor?(look, 2)
sample :sn_dub, rate: -1, sustain: 0, release: (knit 0.05, 3, 0.5, 1).look
end
end
|