User Tools

Site Tools


sonic-pi

This is an old revision of the document!


Code & composition made with Sonic-Pi

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

algoTek

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

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.1494760358.txt.gz · Last modified: 2017/05/14 13:12 by julien