Th3NiKo

Euterpea - My music

Nov 20th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env runhaskell
  2. import Euterpea
  3.  
  4. --Main
  5. p = playDev 1
  6.  
  7. --Gamma
  8. long = qn
  9. octave = 4
  10.  
  11. --Piano
  12. rythm1 = (g 4 qn) :+: (b 4 qn) :+: (e 5 qn) :+: (b 4 qn) :+: (g 5 qn) :+: (b 4 qn) :+: (e 5 qn) :+: (b 4 qn)
  13. rythm1Higher = (b 4 qn) :+: (e 5 qn) :+: (g 5 qn) :+: (e 5 qn) :+: (b 5 qn) :+: (e 5 qn) :+: (g 5 qn) :+: (e 5 qn)
  14.  
  15. rythm1godown = (g 5 en) :+: (e 5 en) :+: (b 4 en) :+: (g 4 en)
  16.  
  17. mychord1 = (g 4 qn) :=: (b 4 qn) :=: (e 5 qn) :=: (g 5 qn)
  18. mychord1longer = (g 4 wn) :=: (b 4 wn) :=: (e 5 wn) :=: (g 5 wn)
  19. mychord2 = (fs 4 qn) :=: (as 4 qn) :=: (ds 5 qn) :=: (fs 5 qn)
  20. mychord2longer = (fs 4 hn) :=: (as 4 hn) :=: (ds 5 hn) :=: (fs 5 hn)
  21. mychord3 = (e 3 qn) :=: (g 3 qn)
  22.  
  23. fastpiano = instrument AcousticGrandPiano((g 5 sn) :+: (b 4 sn) :+:(e 5 sn) :+:(g 4 sn))
  24. fastpianoDark = instrument AcousticGrandPiano((fs 5 sn) :+:(as 4 sn) :+: (ds 5 sn) :+:(g 4 sn))
  25.  
  26. mybass = (e 4 wn) :+: (c 4 hn) :+: (g 3 hn)
  27. mybass2 = (e 4 wn) :+: (c 4 hn) :+: (g 4 hn)
  28.  
  29. percusion1 = rest hn :+: (c 2 qn) :+: rest hn :+: rest qn  :+: (c 2 qn) :+: rest qn
  30. percusion2 = times(16)(g 4 sn) :+: times(1)(rest wn) :+: times(16)(g 4 sn) :+: times(1)(rest wn)
  31. percusion3 = (c 2 qn) :+: rest qn :+: (c 2 qn) :+: rest qn
  32. percusion3fast = (c 2 en) :+: (c 2 en) :+: (c 2 en) :+: (c 2 en)
  33.  
  34. pianoVer = instrument AcousticGrandPiano (times(2)(rythm1) :+: times(2)(rythm1Higher))
  35. bassVer = instrument FretlessBass mybass :+: mybass2
  36. bass1 = instrument FretlessBass mybass
  37. bass2 =  instrument FretlessBass mybass2
  38. percVer = instrument Percussion percusion1
  39. perv2Ver = instrument Percussion percusion3
  40. perc3Ver = instrument Percussion percusion3fast
  41. violVer = instrument SynthVoice percusion3
  42.  
  43. --Final guitar
  44. guitar = instrument DistortionGuitar (mybass)
  45.  
  46. part1 =  pianoVer :+: (pianoVer :=: times(2)(bassVer) :=: times(4)(percVer))
  47. part2 = (pianoVer :=: times(2)(percusion2) :=: times(2)(bassVer) :=: times(4)(percVer))
  48. part3 = (times(8)(mychord1) :=: times(2)perv2Ver) :+: times(4)(mychord2) :=: times(1)perv2Ver :+: times(2)(mychord1) :+: rythm1godown
  49. part4 = (times(8)(mychord1) :=: times(4)perc3Ver) :+: times(4)(mychord2) :=: times(2)perc3Ver :+: times(2)(mychord1) :+: rythm1godown
  50. final = ((times(8)(fastpiano) :=: bass1 :+: times(8)(fastpianoDark):=: bass2)) :=: times(4)(violVer) :+: (e 4 wn)
  51.  
  52.  
  53. main = p $ part1 :+: part2 :+: part3 :+: part4 :+: final
Advertisement
Add Comment
Please, Sign In to add comment