Hi, I recreated the 303 house classic with Sonic Pi using the TB303
I am new to Spi so bare with me
The only thing I struggled with, are the slide effects from the real TB-303 which combines notes…
Can I do this with spi?
Here is the code
use_bpm 134
t = 0.25 #general sleep value
x = 0.25 #general release value
lfo1 = ()
lfo2 = ()
lfo3 = ()
live_loop :lfo do
lfo1 = (range 80,130,0.5).mirror.tick #for cutoff
lfo2 = (range -0.5,0.5,0.05).mirror.tick #for panning
sleep 1
end
live_loop :resonance do
lfo3 = (range 0.5,1,0.01).mirror.tick #for resonance
sleep 2
end
define :t303 do |nte,rls,slp| #note, release, sleep
use_synth :tb303
play nte , release: rls, cutoff: lfo1, pan: lfo2, res: lfo3
sleep slp
end
live_loop :riff do
32.times do
t303 :r, x,t
t303 :a2, x*4,t
t303 :a2, x,t*2
t303 :r, x,t
t303 :r,x,t
t303 :c2,x,t
t303 :r,x,t
t303 :a2, x,t
t303 :r, x,t
t303 :a2, x,t
t303 :r, x,t
t303 :a2, x,t
t303 :d3, x,t
t303 :e3, x,t
t303 :g3, x,t
t303 :r, x,t
t303 :g2, x,t
t303 :r, x,t
t303 :as2, x,t
t303 :r, x,t
t303 :r, x,t
t303 :r, x,t
t303 :as2, x,t
t303 :r, x,t
t303 :as3, x*2,t*2
t303 :as3, x,t
t303 :gs2, x,t
t303 :r, x,t
t303 :as3, x,t
t303 :r, x,t
end
end
live_loop :kick do
sample :bd_haus, amp: 2
sample :sn_dub, amp: 0.75
sleep 1
end