Created
          October 18, 2015 18:42 
        
      - 
      
 - 
        
Save andi1984/68a303ba1ba8b3242bb1 to your computer and use it in GitHub Desktop.  
    Sonic Pi - Second workout
  
        
  
    
      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
    
  
  
    
  | live_loop :background do | |
| with_fx :slicer, phase_slide: 100 do |fx| | |
| background_samples = [:bass_trance_c, :bass_thick_c, :ambi_swoosh, :ambi_piano] | |
| s = sample background_samples.choose | |
| control fx, phase: rand(), mix: rrand(0.75, 1), res: rand(1) | |
| control s, pan: rrand(-1,1) | |
| end | |
| sleep 0.5 | |
| end | |
| live_loop :foreground do | |
| with_fx :reverb, phase: rand(), phase_slide: 100 do |fx| | |
| foreground_samples = [:loop_mika, :loop_industrial, :loop_garzul, :loop_compus] | |
| s = sample foreground_samples.choose, attack: rrand(0.5, 3), sustain: rand(4), release: rrand(0.8, 3), phase: rrand(-10,10) | |
| control fx, mix: rrand(0.75, 1), res: rand(1) | |
| control s, pan: rrand(-1,1) | |
| end | |
| sleep 2.5 | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment