User Tools

Site Tools


sonic-pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sonic-pi [2017/05/14 13:12]
julien
sonic-pi [2018/02/24 14:56] (current)
julien
Line 3: Line 3:
 [[http://​apo33.org/​apotek/​doku.php?​id=nomades:​tuto_sonic-pi|Available also a tutorial in french I made]] [[http://​apo33.org/​apotek/​doku.php?​id=nomades:​tuto_sonic-pi|Available also a tutorial in french I made]]
  
 +
 +===== Automation code =====
 +
 +strange reaction, burst crushed sounds, silence
 +
 +<​code>​
 +# noise machine
 +
 +live_loop :grush do
 +  use_synth :dsaw
 +  with_fx :ring_mod, freq: 30  do
 +    play rrand(100, 130),amp:5
 +    with_fx :​pitch_shift,​ pitch: 14 do
 +      play rrand(10, 34),amp:5
 +      with_fx :gverb, room: 0.6, damp: 0.5 do
 +        play rrand(0.5, 1),amp:5
 +      end
 +    end
 +  end
 +  sleep rrand(4, 8)
 +  ​
 +end
 +</​code>​
  
 ===== liveCode ===== ===== liveCode =====
Line 48: Line 71:
 ===== composition ===== ===== composition =====
  
 +composition with multiple frequencies generator
 +
 +<​code>​
 +#multiSinus aorBorl
 +
 +live_loop :sin1 do
 +  use_synth :sine
 +  play note: rrand(145, 150), sustain: 30, attack: 1, amp: 0
 +  sleep 5
 +end
 +live_loop :sin2 do
 +  use_synth :sine
 +  play note: rrand(170, 175), sustain: 30, attack: 1, amp: 0
 +  sleep 5
 +end
 +live_loop :sin3 do
 +  use_synth :sine
 +  play note: rrand(180, 185), sustain: 30, attack: 1, amp: 0, pan: -0.5
 +  sleep 5
 +end
 +live_loop :sin4 do
 +  use_synth :sine
 +  play note: rrand(25, 35), sustain: 30, attack: 1, amp: 0, pan: 0.5
 +  sleep 5
 +end
 +live_loop :sin5 do
 +  use_synth :sine
 +  play note: rrand(15, 25), sustain: 30, attack: 1, amp: 0, pan: -1
 +  sleep 5
 +end
 +live_loop :sin6 do
 +  use_synth :sine
 +  play note: rrand(130, 140), sustain: 30, attack: 1, amp: 0, pan: 1
 +  sleep 5
 +end
 +live_loop :sin7 do
 +  use_synth :sine
 +  play note: rrand(140, 145), sustain: 30, attack: 1, amp: 0, pan: -0.3
 +  sleep 5
 +end
 +live_loop :sin8 do
 +  use_synth :sine
 +  play note: rrand(145, 150), sustain: 30, attack: 1, amp: 0, pan: 0.4
 +  sleep 5
 +end
 +live_loop :sin9 do
 +  use_synth :sine
 +  play note: rrand(155, 160), sustain: 30, attack: 1, amp: 0, pan: -0.3
 +  sleep 5
 +end
 +live_loop :sin10 do
 +  use_synth :sine
 +  play note: rrand(160, 165), sustain: 30, attack: 1, amp: 0, pan: 0.4
 +  sleep 5
 +end
 +</​code>​
 +
 +
 +Drone&​ambiant evolutive code
 +
 +<​code>​
 +# dronyMove
 +in_thread do
 +  live_loop :freq do
 +    use_synth :sine
 +    play 60, sustain: 30, attack: 1, amp: 1
 +    sleep 10
 +    play 65, sustain: 30, attack: 1, amp: 1
 +    sleep 10
 +    play 67, sustain: 30, attack: 1, amp: 1
 +    sleep 10
 +    play 75, sustain: 30, attack: 1, amp: 1
 +    sleep 10
 +  end
 +end
 +in_thread do
 +  live_loop :fat do
 +    sample :bd_fat, lpf: rrand(1, 131), window_size:​ rrand(1, 100), amp: 0
 +    sleep 1
 +  end
 +end
 +in_thread do
 +  live_loop :bassy do
 +    sample :​bass_trance_c,​ pitch: rrand(0.3, 1), rate: rrand(0.5, 1), window_size:​ 1, amp: 3
 +    sleep 1
 +  end
 +end
 +in_thread do
 +  live_loop :snr do
 +    with_fx :echo, mix: 0.3, phase: 0.25 do
 +      sample :​elec_lo_snare,​ pitch: rrand(0.3, 1), rate: 1, window_size:​ 1, amp: 0
 +      sleep 1
 +    end
 +  end
 +end
 +in_thread do
 +  live_loop :guit do
 +    with_fx :echo, mix: 0.3, phase: 0.25 do
 +      sample :​guit_harmonics,​ pitch: rrand(0.3, 1), rate: 0.5, window_size:​ 1, amp: 0
 +      sleep 1
 +    end
 +  end
 +end
 +</​code>​
  
  
 ===== algoTek ===== ===== algoTek =====
 +
 +minimal ElectroNoise
 +
 +<​code>​
 +# live v0.1
 +use_bpm 100
 +
 +
 +live_loop :foo do
 +  with_fx :flanger, delay: 100, feedback: 1.9, phase: 10.5 do
 +    use_synth :dpulse
 +    play rrand(10, 30), release: 0.5, amp: 0
 +    sleep 1
 +    ​
 +  end
 +end
 +live_loop :tako do
 +  #sync :foo
 +  with_fx :krush, cutoff: rrand(20, 100), res: 0.7 do
 +    sample :​drum_cymbal_pedal,​ amp: 10
 +    sleep 0.25
 +  end
 +end
 +live_loop :boum do
 +  #sync :foo
 +  sample :​drum_heavy_kick,​ amp: 0
 +  sleep 10
 +end
 +live_loop :tako do
 +  #sync :foo
 +  with_fx :echo do
 +    sample :​drum_snare_soft,​ rate: 10, cutoff: rrand(10, 131), amp: 15
 +    sleep 4
 +  end
 +end
 +live_loop :test do
 +  use_synth :cnoise
 +  play 40, sustain: rrand(0.1 , 50), cutoff: 50, res: 0.9, amp: 2
 +  sleep 1
 +end
 +
 +live_loop :sci_fi do
 +  sync :foo
 +  p = play (chord :eb1, :​madd2).choose - [0, 5, -5].choose, divisor: 0.01, amp: 10
 +  control p, divisor: rrand(0.001,​ 50)
 +  sleep 1
 +end
 +
 +live_loop :stret do
 +  with_fx :gverb, room: 200, damp: 0.8 do
 +    sample :​ambi_glass_rub,​ amp: 4, rate: rrand(0.2, 4)
 +    sleep 10
 +  end
 +end
 +
 +live_loop :rough do
 +  sync :foo
 +  with_fx :bitcrusher do
 +    sample :​bass_woodsy_c,​ pitch: rrand(0.5, 2), amp: (line 0, 10, steps: 10).tick
 +    sleep 10
 +  end
 +end
 +</​code>​
  
 indusTekNoise indusTekNoise
Line 133: Line 323:
     play rrand(90, 110), sustain: 10,  amp: 0     play rrand(90, 110), sustain: 10,  amp: 0
     sleep 4     sleep 4
 +  end
 +end
 +</​code>​
 +
 +DeconstrucAlt-Tek
 +
 +<​code>​
 +#another livetek coding stuff
 +in_thread do
 +  live_loop :bass_drum do
 +    sample :bd_boom, sustain: 1, amp: 0.7
 +    sleep rrand(0.01, 1)
 +    in_thread do
 +      with_fx :echo, phase: 0.5, amp: 0.3 do
 +        with_fx :​distortion,​ distortion: 1  do
 +          with_fx :​bitcrusher,​ bits: 4 do
 +            sample :​drum_snare_soft,​ amp: rrand(1.01, 2.2)
 +            sleep rrand(1, 1)
 +          end
 +        end
 +      end
 +    end
 +  end
 +  use_synth :saw
 +  live_loop :bassy do
 +    p = play (chord :Cb1, :​major7).choose - [0, 5, -5].choose, divisor: 0.01, div_slide: rrand(0, 10), depth: rrand(0.001,​ 2), attack: 0.01, release: rrand(0, 5), amp: 0.5
 +    control p, divisor: rrand(0.001,​ 10), amp: 1
 +    sleep [0.5, 1, 2].choose
 +    sleep 0.4
 +  end
 +end
 +live_loop :chime do
 +  sample :​elec_chime,​ amp: rrand(0.1, 0.5)
 +  with_fx :flanger, delay: 15, feedback: 0.8, amp: 1 do
 +    sleep rrand(10.1, 10.3)
 +  end
 +end
 +</​code>​
 +
 +code to algoTek with Others
 +<​code>​
 +#Total Open Algorave all together!
 +
 +live_loop :fool do
 +  with_fx :flanger, delay: 100, feedback: 0.9, phase: 3 do
 +    with_fx :​distortion,​ distort: 0.30 do
 +      sample :​bass_dnb_f,​ sustain: 10, pitch: rrand(0.3, 10), amp: 0.05
 +      sleep 1
 +    end
 +  end
 +end
 +#LeSnare
 +live_loop :sna do
 +  sync :foo
 +  with_fx :​distortion,​ distort: 0.5 do
 +    with_fx :echo, phase: 0.7 do
 +      sample :​drum_snare_hard , amp: 5
 +      sleep rrand(1.1, 2.3)
 +    end
 +  end
 +end
 +live_loop :daaak do
 +  sample :​drum_heavy_kick,​ cutoff: rrand(50, 100), amp: 4
 +  sleep 0.5
 +end
 +live_loop :chimy do
 +  sample :​drum_cymbal_pedal,​ cutoff: 130, rate: rrand(0.5, 1.5), amp: 1, pan: 1
 +  sleep 0.25
 +end
 +</​code>​
 +
 +<​code>​
 +#dirty tek live code v2 (240218)
 +live_loop :foo do
 +  with_fx :flanger, delay: 30, feedback: 1, phase: 1.5, depth: 5, max_delay: 1000 do
 +    use_synth :beep
 +    play rrand(80, 150), release: 0.5, amp: 0
 +    sleep 0.5
 +  end
 +end
 +live_loop :bar do
 +  sync :foo
 +  with_fx :flanger, delay: 120, feedback: 1, max_delay: 1000 do
 +    sample :​drum_bass_hard,​ amp: 0
 +    sleep rrand(0.2, 10.4)
 +  end
 +end
 +live_loop :tak do
 +  sync :foo
 +  with_fx :slicer, wave: 1, pulse_width:​ 0.4 do
 +    with_fx :​distortion,​ distort: 0.55 do
 +      sample :​drum_snare_hard,​ amp: 0
 +      sleep rrand(0.05, 0.06)
 +    end
 +  end
 +end
 +live_loop :tak2 do
 +  sync :foo
 +  with_fx :echo, decay: rrand(0.1, 10) do
 +    sample :​drum_snare_hard,​ amp: 0
 +    sleep 2
 +  end
 +end
 +live_loop :bass do
 +  with_fx :​distortion,​ distort: 0.99 do
 +    sync :foo
 +    sample :​bass_trance_c,​ pitch: (ring 1, 0.8, 0.3, 1, 2, 1.3, 0.2, 0.8, 1, 1, 0.3, 2).tick, amp: 5
 +    sleep 1.2
 +  end
 +end
 +
 +#​AkaLeHighPitch
 +live_loop :bing do
 +  sync :foo
 +  with_fx :ring_mod, freq: rrand(40, 50) do
 +    use_synth :dull_bell
 +    play rrand(80, 110), sustain: 10,  amp: 0
 +    sleep 10
   end   end
 end end
sonic-pi.1494760358.txt.gz ยท Last modified: 2017/05/14 13:12 by julien