User Tools

Site Tools


sonic-pi

Code & composition made with Sonic-Pi

Automation code

strange reaction, burst crushed sounds, silence

# 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

liveCode

code from scratch

#live coding from scratch (13maiLiveCodingNight)
live_loop :suf do
  with_fx :distortion, distort: 0.1 do
    sample :ambi_haunted_hum, pitch: rrand(10, 20), amp: 0
    sleep 1
  end
end
live_loop :muf do
  sample :elec_triangle , pitch: rrand(2.5, 3), rate: rrand(0.3, 1), amp: 0
  sleep 5
end
live_loop :ffur do
  with_fx :bitcrusher, sample_rate: 2000, bits: 3 do
    use_synth :hollow
    play rrand(60, 70), amp: 0, pitch: 20
    sleep 1
  end
end
live_loop :tako do
  #sync :foo
  with_fx :krush, cutoff: rrand(90, 130), res: 0.7 do
    sample :drum_cymbal_pedal, amp: 0
    sleep 0.25
  end
end
in_thread do
  live_loop :fat do
    with_fx :distortion, distort: 0.99 do
      sample :bd_fat, lpf: rrand(120, 131), window_size: rrand(1, 100), amp: 0
      sleep 0.5
    end
  end
end

composition

composition with multiple frequencies generator

#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

Drone&ambiant evolutive 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

algoTek

minimal ElectroNoise

# 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

indusTekNoise

#dirty tek live code
live_loop :foo do
  with_fx :flanger, delay: 100, feedback: 2, phase: 4.5, depth: 5, max_delay: 500 do
    use_synth :beep
    play rrand(50, 60), release: 0.5, amp: 5
    sleep 0.5
  end
end
live_loop :bar do
  sync :foo
  sample :drum_bass_hard, amp: 10
  sleep 20
end
live_loop :tak do
  sync :foo
  sample :drum_snare_hard, amp: 10
  sleep rrand(2, 10)
end
live_loop :tak2 do
  sync :foo
  with_fx :echo, decay: rrand(0.1, 2) do
    sample :drum_snare_hard, amp: 0.1
    sleep 1
  end
end
live_loop :bass do
  with_fx :distortion, distort: 0.99 do
    sync :foo
    sample :bass_trance_c, pitch: (ring 1, 0.5, 2, 4, 2, 0.3, 0.2, 1, 1, 5, 0.3, 10).tick, amp: 40
    sleep 0.2
  end
end
#drum machine & live code

#akaBasse
live_loop :foo do
  with_fx :flanger, delay: 200, feedback: 2.9, phase: 4.5, mix: 1 do
    use_synth :chipbass
    play rrand(15, 35), release: 0.5, amp: 1
    sleep 0.4
  end
end
#akaCharly
live_loop :tako do
  sync :foo
  with_fx :echo do
    sample :drum_cymbal_pedal, pitch: rrand(1, 5), amp: 10
    sleep 1
  end
end
#LeSnare
live_loop :sna do
  sync :foo
  with_fx :echo do
    with_fx :distortion, distort: 0.4 do
      sample :drum_snare_hard , pitch: 0.3, amp: 10
      sleep rrand(0.4, 0.5)
    end
  end
end
#ZeKik
live_loop :bou do
  sync :foo
  with_fx :distortion, distort: 0.99 do
    sample :drum_heavy_kick, amp: 10
    sleep 0.5
  end
end
#AkaLeHighPitch
live_loop :bing do
  sync :foo
  with_fx :ring_mod, freq: rrand(40, 50) do
    use_synth :dull_bell
    play rrand(90, 110), sustain: 10,  amp: 0
    sleep 4
  end
end

DeconstrucAlt-Tek

#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 to algoTek with Others

#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

Useful to play with others

# ensemble live ALL
#méchant Saw!
live_loop :synt do
  loop do
    use_synth :dsaw
    with_fx :lpf, cutoff: 50 do
      play rrand(5, 35), sustain: 10, amp: 0
      sleep 1.5
    end
  end
end
#lemachinambiiiaaant
live_loop :pian do
  loop do
    sample :ambi_piano, pitch: rrand(0.8, 2), rate: rrand(0.2, 1), window_size: 1, amp: 0
    sleep 1
  end
end
#chime reverse
live_loop :synth1 do
  with_fx :gverb, damp: 0.9, room: 200, spread: 1 do
    with_fx :lpf, cuttoff: rrand(0.5, 30), amp: 10 do
      sample :elec_chime, pitch: 0.2, start: 1, finish: 0
      sleep 10
    end
  end
end

#AkaLeHighPitch
live_loop :bing do
  with_fx :ring_mod, freq: rrand(30, 40) do
    use_synth :dull_bell
    play rrand(120, 180), sustain: 10,  amp: 0
    sleep 4
  end
 
sonic-pi.txt · Last modified: 2017/05/14 13:19 by julien