Skip to content

Instantly share code, notes, and snippets.

View nicoder's full-sized avatar

Nicolas Dermine nicoder

View GitHub Profile
@nicoder
nicoder / 20150128_sonic_pi.rb
Last active August 29, 2015 14:14
20150128 sonic pi
live_loop :main do
play 60, amp: rand
play 65, amp: rand
play 72, amp: rand
with_fx :reverb do
sample :drum_cymbal_closed, amp: rrand(0.1, 0.3)
end
sleep 0.25
end
@nicoder
nicoder / 20150202_sonic_pi.rb
Created February 2, 2015 05:06
20150202 sonic pi (start of the bass line of queen's 'another one bites the dust')
use_bpm 90
live_loop :bass do
use_synth :fm
use_synth_defaults release: 0.2
play_pattern_timed [45, 43], [0.25]
play_pattern_timed [40, 40], [1]
play_pattern_timed [40], [1.75]
play_pattern_timed [40, 40, 40, 43, 40, 45],
[0.25, 0.5, 0.5, 0.5, 0.25, 1.75]
@nicoder
nicoder / 20150204_sonic_pi.rb
Last active August 29, 2015 14:14
20150204 sonic pi
use_synth :tb303
live_loop :acc do
14.times do
play_pattern_timed [50, 55], [0.25]
end
4.times do
play_pattern_timed [50, 54], [0.25]
end
end
@nicoder
nicoder / 20150206_sonic_pi.rb
Created February 6, 2015 05:17
20150206 sonic pi
live_loop :idunno do
with_fx :echo do
with_fx :slicer do
with_fx :distortion do
play 60, release: 0.5
play 36, amp: 2, release: 0.5
end
end
end
sleep 1
@nicoder
nicoder / 20150208_sonic_pi.rb
Created February 8, 2015 18:45
20150208 sonic pi (frères jacques)
define :one do
in_thread do
2.times do
play_pattern_timed [:c, :d, :e, :c], [1], pan: -0.5
end
end
end
@nicoder
nicoder / 20150110_sonic_pi.rb
Created February 10, 2015 20:01
20150110 sonic pi
live_loop :main do
with_fx :echo, phase: 0.33 do
with_fx :bitcrusher do
play scale(50, :major).choose, release: 0.2
end
end
sleep 0.5
end
@nicoder
nicoder / 20150214_sonic_pi.rb
Created February 14, 2015 19:22
20150214 sonic pi
use_synth :hollow
live_loop :main do
use_synth :hollow
play 64, attack: 2, release: 2, pan: rrand(-0.5, 0.5)
sleep 3
end
live_loop :sec do
@nicoder
nicoder / 20150215_sonic_pi.rb
Created February 15, 2015 09:00
20150215 sonic pi
use_bpm 120
live_loop :high do
with_fx :echo, phase: 0.2, decay: 5 do
with_fx :reverb, mix: 0.2 do
with_fx :distortion, distort: 0.95 do
play_pattern_timed [72, 70, 69, 70, 69, 67, 69, 65], [0.5], release: 0.2
4.times do
play_pattern_timed [67, 65], [0.5], release: 0.1
@nicoder
nicoder / 20150217_sonic_pi.rb
Created February 19, 2015 04:26
20150217 sonic pi
use_bpm 100
loop do
play :c5, attack: 2, release: 5
play :e5, attack: 2, release: 5
play :c6, attack: 2, release: 5
with_fx :distortion, distort: 0.95 do
with_fx :bpf do
@nicoder
nicoder / 2015_02_21_sonic_pi.rb
Created February 21, 2015 06:40
2015_02_21 sonic pi
live_loop :main do
(spread 3, 8).each do |b|
sample :bd_tek if b
sleep 0.25
end
end
live_loop :sec do
sync :main