Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. define :guitar_chords do
  2. in_thread do
  3. 4.times do
  4. with_fx :echo, mix: 0.3, phase: 0.25 do
  5. sample :guit_em9, rate: 1
  6. end
  7. sleep 4
  8. end
  9. end
  10. end
  11.  
  12. define :synth_bike do
  13. with_synth :dsaw do
  14. with_fx(:slicer, phase: [0.25,0.125].choose) do
  15. with_fx(:reverb, room: 0.5, mix: 0.3) do
  16. start_note = chord([:b1, :b2, :e1, :e2, :b3, :e3].choose, :minor).choose
  17. final_note = chord([:b1, :b2, :e1, :e2, :b3, :e3].choose, :minor).choose
  18.  
  19. p = play start_note, release: 8, note_slide: 4, cutoff: 30, cutoff_slide: 4, detune: rrand(0, 0.2), pan: rrand(-1, 0), pan_slide: rrand(4, 8)
  20. control p, note: final_note, cutoff: rrand(80, 120), pan: rrand(0, 1)
  21. end
  22. end
  23. end
  24. end
  25.  
  26. in_thread do
  27. guitar_chords
  28. loop do
  29. with_fx :reverb, room: 1 do
  30. sample :bd_boom, amp: 10, rate: 1
  31. end
  32. sleep 4
  33. end
  34. end
  35.  
  36. sleep 12
  37.  
  38. in_thread do
  39. synth_bike
  40. loop do
  41. sample :drum_bass_hard, amp: 0.8
  42. sleep 0.25
  43. play :e2, release: 0.2
  44. sample :elec_cymbal, rate: 12, amp: 0.6
  45. sleep 0.25
  46. end
  47. end
  48.  
  49. sleep 12
  50.  
  51. in_thread do
  52. guitar_chords
  53. end
  54.  
  55. sleep 16
  56.  
  57. synth_bike
  58.  
  59. sleep 16
  60.  
  61. in_thread do
  62. use_random_seed 2000
  63. 128.times do
  64. c = rrand(70, 130)
  65. n = (scale :e1, :minor_pentatonic).take(3).choose
  66. synth :tb303, note: n, release: 0.1, cutoff: c if rand < 0.9
  67. sleep 0.125
  68. end
  69.  
  70. 2.times do
  71. synth_bike
  72. end
  73. end
  74.  
  75. sleep 32
  76.  
  77. in_thread do
  78. guitar_chords
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement