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:19]
julien
sonic-pi [2020/01/31 16:13] (current)
julien
Line 24: Line 24:
   sleep rrand(4, 8)   sleep rrand(4, 8)
   ​   ​
 +end
 +</​code>​
 +
 +===== noise generators =====
 +
 +<​code>​
 +live_loop:​noise1 do
 +  use_synth :bnoise
 +  with_fx :rlpf, cutoff: 30, cutoff_slide:​ 4, amp: 2 do |c|
 +    with_fx :​bitcrusher,​ bits: 2, amp: 10 do
 +      with_fx :flanger, delay: 35, feedback: 0.9, amp: 10 do
 +        play_pattern [40], attack: 2, decay: 5, sustain: 3, release: 1
 +        ​
 +        sleep 1
 +        ​
 +      end
 +    end
 +  end
 +end
 +
 +live_loop:​noise2 do
 +  use_synth :bnoise
 +  with_fx :rlpf, cutoff: 50, cutoff_slide:​ 4, amp: 2 do |c|
 +    with_fx :​bitcrusher,​ bits: 2, amp: 2 do
 +      with_fx :flanger, delay: 35, feedback: 0.9, amp: 5 do
 +        play_pattern [40], attack: 2, decay: 5, sustain: 3, release: 1
 +        ​
 +        sleep 1
 +        ​
 +      end
 +    end
 +  end
 end end
 </​code>​ </​code>​
Line 391: Line 423:
   sample :​drum_cymbal_pedal,​ cutoff: 130, rate: rrand(0.5, 1.5), amp: 1, pan: 1   sample :​drum_cymbal_pedal,​ cutoff: 130, rate: rrand(0.5, 1.5), amp: 1, pan: 1
   sleep 0.25   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
 </​code>​ </​code>​
Line 435: Line 518:
    
 </​code>​ </​code>​
 +
 +===== BigBOUM Dance Floor punchy tek =====
 +
 +<​code>​
 +#BIGbOUM punchy tek
 +
 +use_debug false
 +
 +live_loop :time do
 +  synth :tb303, release: 8, note: :e1, cutoff: (range 90, 60, -10).tick
 +  sleep 8
 +end
 +
 +live_loop :machine do
 +  sample :​loop_garzul,​ rate: (knit 1, 5, -1, 1).tick, amp: 3
 +  sleep 8
 +end
 +
 +live_loop :vortex, auto_cue: false do
 +  use_synth [:pulse, :​beep].choose
 +  with_fx :​bitcrusher,​ bits: 2 do
 +    sleep 0.125 / 2
 +    play scale(:e1, :​minor_pentatonic).tick,​ attack: 0.23, release: 0.4, amp: 1, cutoff: (ring 40, 90, 100, 130).look
 +    sleep 0.225 / 2.7
 +  end
 +end
 +
 +live_loop :moon_bass, auto_cue: false do
 +  with_fx :echo, phase: 1, amp: 1 do
 +    with_fx :​distortion,​ distortion: 1  do
 +      with_fx :​bitcrusher,​ bits: 5 do
 +        sample :bd_haus, amp: 2
 +        sleep rrand(0.5, 0.5)
 +      end
 +    end
 +  end
 +end
 +</​code>​
 +
 +===== Post-indu deconstructor raw =====
 +
 +<​code>​
 +# CodeMess
 +live_loop:​boum do
 +  sample :​drum_heavy_kick,​ amp: 0
 +  with_fx :reverb, mix: 0.9, room: 0.9, damp: 1, amp: 10 do
 +    with_fx :​distortion,​ distortion: 1, amp: 1  do
 +      with_fx :​bitcrusher,​ bits: 1, amp: 10 do
 +        ​
 +        sleep rrand(0.35, 10)
 +      end
 +    end
 +  end
 +  ​
 +  live_loop:​what do
 +    use_synth :prophet
 +    with_fx :​bitcrusher,​ bits: 10 do
 +      ​
 +      sleep 4
 +      play scale(:e1, :​messiaen1).tick,​ attack: 5, release: 10, amp: 2, cutoff: (ring 40, 90, 100, 130).look
 +      sleep rrand(1, 15)
 +    end
 +  end
 +end
 +</​code>​
 +
  
sonic-pi.1494760751.txt.gz ยท Last modified: 2017/05/14 13:19 by julien