Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. live_loop :ind do
  2. sample :loop_industrial, beat_stretch: 2, amp: 1
  3. sleep 4
  4. end
  5.  
  6. live_loop :trance do
  7. with_fx :reverb , room: 1 do
  8. sample :bass_trance_c
  9. sleep 4
  10. end
  11. end
  12.  
  13. live_loop :spread_beats do
  14. sample :drum_bass_hard, amp: 1.5 if (spread 3, 8).tick
  15. sample :perc_snap, amp: 0.8 if (spread 7, 11).look
  16. sample :bd_haus, amp: 2 if (spread 1, 4).look
  17. sleep 0.125
  18. end
  19.  
  20.  
  21.  
  22. live_loop :noteloop do
  23. sleep 4
  24. notes = [:c4, :bf4, :g4, :f4, :a4, :d4, :ef4, :c5]
  25. use_synth :zawa
  26. use_synth_defaults amp: 2.5, cutoff: 120
  27. with_fx :ixi_techno, mix: 0.7, phase: 2 do
  28. with_fx :reverb, room: 0.2 , damp: 1 do
  29. n = notes.length
  30. (n).times do
  31. play notes.tick, release: 0.125, amp: 1.5
  32. sleep 0.125
  33. end
  34. tick_reset
  35. loop do
  36. swapped = false
  37. (n-1).times do |i|
  38. if note(notes[i]) > note(notes[i+1])
  39. notes[i], notes[i+1] = notes[i+1], notes[i]
  40. swapped = true
  41. end
  42. (n).times do
  43. play notes.tick, release: 0.1, amp: 1.5
  44. sleep 0.125
  45. end
  46. tick_reset
  47. end
  48. break if not swapped
  49. end
  50. (n).times do
  51. play notes.choose, release: 0.1, amp: 1.5
  52. sleep 0.125
  53. end
  54. puts notes
  55. sleep 3
  56. end
  57. end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement