Created
          May 11, 2018 15:24 
        
      - 
      
 - 
        
Save ktbaek/8a3f6b33e619bc127a88225d4b9561d2 to your computer and use it in GitHub Desktop.  
    First attempt at sonic pi
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | in_thread do | |
| loop do | |
| sample :bd_808, rate: 0.2 | |
| sample :bd_haus, rate: 0.8 | |
| sleep 0.5 | |
| end | |
| end | |
| in_thread do | |
| loop do | |
| sample :drum_cymbal_closed, amp: 0.5 | |
| sleep 0.25 | |
| end | |
| end | |
| in_thread do | |
| loop do | |
| sleep 0.5 | |
| sample :drum_snare_hard, amp: 0.3 | |
| sleep 0.25 | |
| sample :drum_snare_hard, amp: 0.2 | |
| sleep 0.25 | |
| end | |
| end | |
| in_thread do | |
| loop do | |
| sleep 0.25 | |
| sample :drum_tom_lo_soft, rate: 3.5, amp: 0.8 | |
| sleep 0.5 | |
| sample :drum_bass_soft, rate: 2, amp: 0.6 | |
| sleep 0.125 | |
| sample :drum_bass_soft, rate: 3, amp: 0.8 | |
| sleep 1.125 | |
| end | |
| end | |
| in_thread do | |
| loop do | |
| use_synth :hollow | |
| with_fx :level, amp: 0.6 do | |
| with_fx :reverb do | |
| play [:D, :F, :A] | |
| sleep 0.75 | |
| play [:C, :E, :A], release: 1.3 | |
| sleep 1.25 | |
| end | |
| end | |
| end | |
| end | |
| in_thread do | |
| loop do | |
| use_synth :blade | |
| with_fx :level, amp: 0.25 do | |
| play [:D5, :F4, :A], release: 0.2 | |
| sleep 0.25 | |
| end | |
| end | |
| end | |
| sleep 8 | |
| use_synth :pluck | |
| 4.times do | |
| play :D, amp: 0.2, release: 1 | |
| sleep 0.4 | |
| play :D, amp: 0.2, release: 2 | |
| sleep 0.125 | |
| play :E, amp: 0.2, release: 2 | |
| sleep 3.475 | |
| end | |
| use_synth :pluck | |
| 4.times do | |
| play :D, amp: 0.2, release: 1 | |
| sleep 0.4 | |
| play :D, amp: 0.2, release: 2 | |
| sleep 0.125 | |
| play :E, amp: 0.2, release: 2 | |
| sleep 0.25 | |
| play :F, amp: 0.2, release: 2 | |
| sleep 3.225 | |
| end | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment