I’ve been meaning to return to the disquiet junto party for quite a while, but for one reason or another I never had the chance to put myself to work on time… well I guess this time the planets aligned, let’s see if I can keep things up weekly…
For this track I just made a simple code in Sonic Pi that reflected (at least for me) the premise of this week asignment, I just added a little reverb on Logic for space… feel free to copy/paste/remix/whatever you want with it. For some reason I can get the SC player to appear…
Un abrazo
Joaquín
------CODE BELOW-------
#notaHZ = base pitch in Hz, duracion = duration, intensidad = modulation’s depth, pan = good ole pan
def stringLow(notaHz,duracion,intensidad,pan)
use_synth :fm
use_synth_defaults attack: 0, release: 0.01, sustain: duracion, divisor: 4, depth: 0, depth_slide: duracion * 0.5, pan: pan
nota = play hz_to_midi(notaHz)
control nota, depth: intensidad
sleep duracion * 0.5
control nota, depth: 0
sleep duracion * 0.5
end
#notaHZ = base pitch in Hz, duracion = duration, intensidad = cutoff’s max value, pan = good ole pan
def stringHigh(notaHz,duracion,intensidad,pan)
with_fx :reverb, mix: 0.8, room: 0.9 do
use_synth :sine
play hz_to_midi(notaHz), attack: 0, release: 0.2
end
with_fx :flanger, mix: 0.5, phase: duracion * 0.75 do
use_synth :square
use_synth_defaults attack: 0, release: 0.01, sustain: duracion, cutoff: 1, cutoff_slide: duracion * 0.5, pan: pan, amp: 0.6
nota = play hz_to_midi(notaHz)
control nota, cutoff: intensidad
sleep duracion * 0.5
control nota, cutoff: 1
sleep duracion * 0.5
end
end
use_bpm 76
#bass line
in_thread do
stringLow(150,10,6,0)
sleep 5
stringLow(112.5,55,6,0)
end
#voice right
in_thread do
sleep 15
stringHigh(300,10,60,1)
stringHigh(330,10,66,1)
stringHigh(360,10,72,1)
stringHigh(390,10,78,1)
stringHigh(420,10,84,1)
end
sample :drum_cymbal_hard, rate: -0.03, amp: 1.2 # rhythm of the sea…
#voice left
sleep 15
stringHigh(600,5,60,-1)
stringHigh(690,5,63,-1)
stringHigh(660,5,66,-1)
stringHigh(750,5,69,-1)
stringHigh(720,5,72,-1)
stringHigh(810,5,75,-1)
stringHigh(780,5,78,-1)
stringHigh(870,5,81,-1)
stringHigh(840,5,85,-1)
stringHigh(930,5,88,-1)