Skip to content

Instantly share code, notes, and snippets.

View nicoder's full-sized avatar

Nicolas Dermine nicoder

View GitHub Profile
@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
@nicoder
nicoder / 20150221_gab_sonic_pi.rb
Created February 21, 2015 11:09
20150221 gab sonic pi
# sto lat, Gabriel!
use_bpm 100
live_loop :beat do
sample :bass_voxy_c, release: 2, attack: 0.01, sustain: 0.01, amp: 0.5, rate: [0.5, 1, 2].choose
4.times do
sample :elec_bell, release: 0.1, attack: 0.01, sustain: 0.01 unless one_in 6
sleep 0.25
end
end
@nicoder
nicoder / 20150225_sonic_pi.rb
Created February 25, 2015 05:11
20150225 sonic pi
live_loop :main do
with_fx :echo, phase: 0.125, decay: 8 do
play 50
sleep 0.5
sample :elec_plip
sleep 0.5
play 62
sleep 1
end
end