Skip to content

Instantly share code, notes, and snippets.

@kniknoo
Last active January 12, 2017 18:32
Show Gist options
  • Select an option

  • Save kniknoo/3195b7ab8a7fd8aaaaf6acd8d0426e2d to your computer and use it in GitHub Desktop.

Select an option

Save kniknoo/3195b7ab8a7fd8aaaaf6acd8d0426e2d to your computer and use it in GitHub Desktop.

Revisions

  1. kniknoo revised this gist Jan 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion commentreview.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #Comment what each of the sections do
    #Don't forget you can press Cmd - i to see the help for a command you have forgotten
    #Don't forget you can press Ctrl - i to see the help for a command you have forgotten

    #
    use_bpm 55
  2. kniknoo created this gist Jan 12, 2017.
    61 changes: 61 additions & 0 deletions commentreview.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,61 @@
    #Comment what each of the sections do
    #Don't forget you can press Cmd - i to see the help for a command you have forgotten

    #
    use_bpm 55

    #
    with_fx :flanger do
    #
    live_loop :kick do
    sample :bd_ada, sustain: 0.25
    sleep 0.5
    end
    #
    live_loop :snare do
    sleep 0.5
    sample :sn_dolf, sustain: 0.125
    sleep 0.5
    end
    #
    live_loop :hi_hats do
    sample :drum_cymbal_closed, sustain: 0, release: 0.01 if one_in(2)
    sleep 0.25
    sample :drum_cymbal_closed, sustain: 0, release: 0.05
    sleep 0.25
    end
    end
    #
    with_fx :echo, phase: 0.125, decay: 0.25, mix: 0.3 do
    #
    live_loop :synco do
    use_synth :prophet
    use_synth_defaults release: 0.125, cutoff: rrand_i(80, 110), res: 0.8
    sleep 0.25
    if one_in(3)
    play :fs3
    else
    play :b3
    end
    sleep 0.25
    end
    #
    live_loop :keys do
    use_synth :dpulse
    play [:d4, :ds4].choose, release: 0.125, pulse_width: 0.25
    sleep [0.25, 0.5].choose
    end
    end

    #
    with_fx :reverb, room: 0.85, mix: 0.8 do
    #
    live_loop :string do
    use_synth :mod_dsaw
    use_synth_defaults release: 5, amp: 0.3, attack: 0.5, cutoff: rrand(100, 110), res: rrand(0.8, 0.9), detune: 0.1, mod_range: 0.5, mod_wave: 2, mod_phase: 0.125
    play :fs2
    sleep 4
    play :b2
    sleep 4
    end
    end