Skip to content

Instantly share code, notes, and snippets.

View AlexandreRangel's full-sized avatar

Alexandre Rangel AlexandreRangel

View GitHub Profile
@AlexandreRangel
AlexandreRangel / let-the-computer-say-this.rb
Last active June 4, 2016 01:39
Sonic Pi 2.10 music code
use_bpm 36
x = 0
128.times do
use_synth ring(:dsaw,:dpulse,:dtri)[x]
play (ring(60,62,65,60)[x])- ring(12,4,8,4,6,4)[x],
attack: ring(2,4,2,8)[x],
sustain: ring(2,4)[x],
release: ring(2,4,2,8,8)[x],
detune: ring(1,0.25,4,2,8,0.1,2,0.5)[x*7],
detune_slide: ring(2,8,2,4,2,6,2,8)[x],
use_synth :mod_fm
with_fx :normaliser, mix: 0.3 do
64.times do
play [:Fb1,:Gs2].choose,
attack: [2,4,8,12].choose,
release: [2,4,8,12,16,18].choose,
mod_range: [0,1,2,4,6,8,12,16].choose,
mod_phase: [0.25,0.5,1,2,4,8].choose,
mod_pulse_width: [0.1,0.2,0.25,0.5,0.75,0.99].choose,
mod_pulse_width_slide: [2,4,8].choose,
use_bpm 12
use_synth :mod_saw
128.times do
play scale([:F1,:Eb1,:F2,:Eb2].choose, [:minor,:major].choose).choose,
attack: ([0.5,1,2,4].choose) /[2.0,4.0].choose,
release: ([1,2,4,8,16,32].choose) /[2.0,4.0].choose,
mod_range: [0,1,2,4,6,8].choose,
mod_phase: [0.5,1,2,4,8].choose,
mod_phase_slide: [1,2,4,8].choose + rrand(-0.1,0.1),
mod_phase_offset: rrand(0,0.333),
@AlexandreRangel
AlexandreRangel / glitter-v19.rb
Created June 5, 2016 23:41
Sonic Pi music code
# Alexandre rANGEL
# www.quasecinema.org
# "glitter v19"
# 5 June 2016
# Sonic Pi 2.10
use_bpm 72
t = Time.new
myt = (t.year * t.month * t.day * t.hour * t.min * t.sec)
#let's play this for 24 hours
#Alexandre rANGEL www.quasecinema.org
t = Time.new
tx = t.year * t.month * t.day * t.hour * t.min * t.sec
use_random_seed tx
puts 'the magic number now is... '
puts t
puts tx
# Alexandre rANGEL "what's this flux of thoughts I call I?" v16
# www.quasecinema.org
# 12 June 2016 / Sonic Pi 2.10
set_volume! 0.8
use_bpm 600
clock = 0
sample_metalhit = '/Users/rangel/pisamples/metalhit.wav' #http://www.freesound.org/people/niqoplitnouk/sounds/220063/
sample_triangle = '/Users/rangel/pisamples/triangle.wav' #http://www.freesound.org/people/nicolasdrweski/sounds/179625/
@AlexandreRangel
AlexandreRangel / group-echo-v06.rb
Created June 28, 2016 09:06
Sonic Pi music code
# Alexanddre rANGEL
# 我的回應你 'group echo' v06
# 26 jun 2016
# Sonic Pi 2.10
use_bpm 128/2.0
set_volume! 0.65
# influence the composition: throw a time based dice
time = Time.new
@AlexandreRangel
AlexandreRangel / mystic-breath-v06.rb
Last active July 4, 2016 01:57
Sonic Pi music code
# Alexandre rANGEL / www.quasecinema.org
# mystic breath v06
# Sonic Pi 2.10 / 3-July-2016
mistic = '/Users/rangel/pisamples/synth_mistic.wav'
load_sample mistic
water = '/Users/rangel/pisamples/water_rural.wav'
load_sample water
set_volume! 1.87
# Alexandre rANGEL / www.quasecinema.org
# robot confirmative v03
# Sonic Pi 2.11 / 10-July-2016
robot = '/Users/rangel/pisamples/robot_confirmative.flac'
# http://www.freesound.org/people/sfstorm/sounds/275577/
load_sample robot
live_loop :robot1 do
sample robot, rate: rrand(0.94,1.02)
@AlexandreRangel
AlexandreRangel / freed-v05.rb
Created July 17, 2016 20:46
Sonic Pi music code
# Alexandre rANGEL / www.quasecinema.org
# freed-v05
# Sonic Pi 2.11 / 17-July-2016
set_volume! 1.2
munch = '/Users/rangel/pisamples/munching.flac'
# http://www.freesound.org/people/lazr2012/sounds/169606
load_sample munch