Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. # Combine chords, bass and flitter
  2. uncomment do
  3. use_bpm 100
  4. my_a = [:a3, :c4, :e4, :g4]
  5. my_d = [:a3, :c4, :e4, :fs4]
  6.  
  7. # set synth_default values
  8.  
  9. define :get_sync_short do
  10. use_synth_defaults amp: 2, attack: 0, sustain: 0, release: 0.2
  11. end
  12.  
  13. define :get_sync_medium do
  14. use_synth_defaults amp: 2, attack: 0, sustain: 0.5, release: 0.5
  15. end
  16.  
  17. define :get_sync_long do
  18. use_synth_defaults amp: 2, attack: 0, sustain: 1, release: 1
  19. end
  20.  
  21. # the chords
  22. in_thread do
  23. with_fx :reverb, room: 0.3 do
  24. 2.times do
  25. get_sync_short
  26. play my_a
  27. sleep 0.25
  28. play my_a
  29. sleep 0.75
  30. get_sync_long
  31. play my_a
  32. sleep 3
  33. get_sync_short
  34. play my_d
  35. sleep 0.25
  36. play my_d
  37. sleep 0.75
  38. play my_d
  39. sleep 1
  40. play my_a
  41. sleep 1
  42. play my_d
  43. sleep 1
  44. end
  45. end
  46. end
  47.  
  48. # the bass line
  49. in_thread do
  50. 2.times do
  51. with_synth :fm do
  52. use_synth_defaults attack: 0, sustain: 0.1, release: 0.1, cutoff: 70
  53. play_pattern_timed [:a2,:a2,:r,:a3,
  54. :a2,:r,:r,:r,
  55. :r,:r,:r,:r,
  56. :r,:a2,:c3,:a2,
  57. :d3,:d2,:r,:d2,
  58. :d3,:r,:r,:r,
  59. :r,:fs3,:d3,:a2,
  60. :e3,:e2,:g2,:ab2
  61. ], 0.25
  62. end
  63. end
  64. end # bass line
  65.  
  66. # flitter
  67. define :flitter do
  68. use_synth :pretty_bell
  69. use_synth_defaults amp: 0.5,
  70. attack: 0.15,
  71. sustain: 0,
  72. release: 0.3
  73. play scale(:c5, :major_pentatonic, num_octaves: 2).choose
  74. end # flitter
  75.  
  76. 64.times do
  77. with_fx :reverb, room: 1 do
  78. control flitter, pan: [1,0.5,-0.5,-1].choose
  79. sleep 0.25
  80. end
  81. end
  82.  
  83. end # comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement