Skip to content

Instantly share code, notes, and snippets.

View AlexandreRangel's full-sized avatar

Alexandre Rangel AlexandreRangel

View GitHub Profile
@AlexandreRangel
AlexandreRangel / skeleton-v07.rb
Created August 1, 2016 00:47
Sonic Pi music code
# Alexandre rANGEL / www.quasecinema.org
# skeleton with flesh and light v07
# Sonic Pi 2.11 / 31-July-2016
# http://freesound.org/people/Snapper4298/sounds/176991/
phone = '/Users/rangel/pisamples/phone.wav'; load_sample phone
#http://freesound.org/people/Snapper4298/sounds/176991/
hatopen = '/Users/rangel/pisamples/hat_open.wav'; load_sample hatopen
use_bpm 61
@AlexandreRangel
AlexandreRangel / syncing-v04.rb
Created July 28, 2016 01:44
Sonic Pi music code
# Alexandre rANGEL 'syncing, singing' v04
use_bpm 122; set_volume! 1.111
with_fx :compressor, slope_above: 0.8, slope_below: 1.1 do
live_loop :notasA1 do
use_random_seed (Time.new.min * Time.new.sec)
use_synth :chipbass
with_fx :echo,phase: [0.5,1,2,3,4].choose do
play scale(:c2, :spanish).choose, pan: -0.4,
amp: 0.5, attack: 0.1
end
@AlexandreRangel
AlexandreRangel / not-a-siren-v14.rb
Created July 25, 2016 20:10
Sonic Pi music code
# alexandre rANGEL / www.quasecinema.org
# this is not not a siren v14
# Sonic Pi 2.11 / 24-July-2016
set_volume! 0.5; use_bpm 30; set_sched_ahead_time! 2
use_random_seed Time.new.sec * Time.new.min * Time.new.hour
akai = '/Users/rangel/pisamples/akai_note58.aiff'; load_sample akai
# http://www.freesound.org/people/modularsamples/sounds/280911/
siren = '/Users/rangel/pisamples/dubsiren.wav'; load_sample siren
# http://www.freesound.org/people/modularsamples/sounds/280911/
@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
# 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 / 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
@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
# 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/
#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
@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)