Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aday1/c9c8a0f0b9798b25ed16f1a8d91d768d to your computer and use it in GitHub Desktop.
Save aday1/c9c8a0f0b9798b25ed16f1a8d91d768d to your computer and use it in GitHub Desktop.
Weeklybeats#22: Sonic Pi 666 Amen break Slices + FX Array Livecode [rand_i]
# Hi
# This is my very first attempt at Sonic-pi
# aday.net.au 6/06/06 - Sonic Pi 666 Amen break Slices + FX Array
# Next time I hope to figure out cues a bit better
# git good, -- Shoutouts to Sam Aaron for his amazing work.. http://sonic-pi.net/
# I'll be live-coding and figuring this out from time to time at livecoding.tv/aday_net_au/
# Video: https://www.youtube.com/watch?v=t0oZqTs5_r4
# Just uncomment and apply your end of do appropiately.
live_loop :comet, auto_cue: false do
if one_in 4
sample :ambi_lunar_land
puts :comet_landing
end
sleep 8
end
live_loop :pretty_bell do
use_synth :pretty_bell
notes = scale(:e3, :augmented2, num_octaves: 2)
use_random_seed 679
tick_reset_all
with_fx :echo, phase: 0.125, mix: 0.1, reps: 16 do #Change Mix to 0.9 and so on
#with_fx :flanger, mix: 1, depth: 9, feedback: 0.9, decay: 5 do
sleep 0.40 # Try 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
end
use_bpm 165
live_loop :beat_slicer do
slice_idx = rand_i(8) # There are 8 slices in this with a slice_size of 0.125
slice_size = 0.125 # Please sus out https://www.raspberrypi.org/magpi/sonic-pi-sample-slicing/ for a guide on slicing
s = slice_idx * slice_size
f = s + slice_size
with_fx :distortion, distort: 0.1 do
with_fx :reverb, mix: [0,0.4].choose do
with_fx :compressor, pre_amp: 3 do
with_fx :flanger, wave: 3, mix: 1, depth: [0, 0.2,5].choose, feedback: [0, 0.9,0.3].choose , decay: 5 do # El-Cheapo Breakcore
with_fx :bitcrusher, sample_rate: [44100, 1500, 2222, 666, 8000, 44100].choose do
sample :loop_amen, start: s, finish: f, rpitch: [-1, -3, -2, 1, -5, -1, -3, -5].choose, beat_stretch: 6
end
end
end
end
end
sleep sample_duration :loop_amen, start: s, finish: f
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment