SonicPI and Streichfett Jam
I recorded a short liveCoding Jam with the current dev version of SonicPI, which I user to send midi signals to my Streichfett.
I connected the Streichfett and Sonic PI to separate Audio input channels in Bitwig Studio using Jack to record and mix the audio.
This is the script I used in this session - be aware that it has been written for a alpha version of sonic pi (2.12#dev) and the midi system will propably change in the final version
live_loop :test do sync :beat with_fx :reverb, mix: 0.0 do with_synth :prophet do play_pattern_timed [36,36,36,34,32,31], [0.75,0.75,0.75,0.50,0.25, 0.75], release: 0.15, decay: 0.2, sustain: 0 , cutoff: 60, res: 0.1 end end end live_loop :beat do idx = tick with_fx :reverb, mix: 0.5 do sample :drum_bass_soft, sustain: 0, release: 0.1, lpf:100 if idx % 2 == 0 then sample :drum_snare_soft, lpf:120, sustain_level: 0.5 end sleep 0.25 sample :drum_cymbal_closed, lpf:100 sleep 0.25 end end ch = chord(:C3, :m9) #ch = chord(:Es3, :m9) #ch = chord(:As2, :m9) #ch = chord(:Bb2, :M7) live_loop :piano do sync :beat with_fx :echo do with_synth :piano do play_chord ch sleep 2 end end end live_loop :midi do sync:beat ch.each{ |n| midi n, vel: 64, channel:1, port:"Streichfett: Streichfett MIDI 1" } sleep 2 end
See also:
Arduino based Midi Trigger box for analog synths
New Song - Turn into a Tune
creating midifiles using ruby
How to modulate Midi-CC values in Bitwig Studio
Very cool! I'd love to know a bit about the hardware you're using there. What is it and how do you interface it with Sonic Pi? I'm a middle school teacher and am introducing Sonic Pi in my computer science classes. Investigating cool stuff! Thanks.
Hi Bob, for this experiment I use a Waldorf Streichfett connected via usb. The other synths and controllers you see aren't used in this video.
Nice Blog