SHARE
TWEET

Untitled

a guest Mar 20th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Hello... World
  2. use_bpm 75
  3. use_synth :fm
  4.  
  5. in_thread do
  6.   loop do
  7.     cue :tick
  8.     sleep 1
  9.   end
  10. end
  11.  
  12. in_thread do
  13.   # We need a beat!
  14.   160.times do
  15.     sync :tick
  16.     sample :drum_heavy_kick
  17.   end
  18. end
  19.  
  20. in_thread(name: :chord_progression) do
  21.   20.times do
  22.     # Two measure chord progression.
  23.     play_chord (chord :F, :minor), release: 4
  24.     sleep 1.5
  25.     play_chord (chord :Af, :major), release: 4
  26.     sleep 2.5
  27.  
  28.     play_chord (chord :Ef, :major), release: 4
  29.     sleep 1.5
  30.     play_chord (chord :Df, :major), release: 4
  31.     sleep 2.5
  32.   end
  33. end
  34.  
  35. def play_note(note, duration)
  36.   play note, release: duration + 0.5
  37.   sleep duration
  38. end
  39.  
  40. in_thread(name: :melody) do
  41.   # Intro
  42.   sleep 4
  43.   sleep 3.75
  44.  
  45.   verse_1
  46.   verse_2
  47.   2.times do
  48.     chorus
  49.   end
  50. end
  51.  
  52. define :verse_1 do
  53.   use_synth :blade
  54.  
  55.   # He-
  56.   play_note :Bf3, 0.25
  57.  
  58.   # llo...
  59.   play_note :C4, 3
  60.  
  61.   # It's me...
  62.   play_note :Bf3, 0.5
  63.   play_chord [:G3, :Bf3], release: 3.5, amp: 2
  64.   sleep 3.25
  65.  
  66.   # I was...
  67.   play_note :Af3, 0.5
  68.   play_note :C4, 0.25
  69.  
  70.   # Wondering
  71.   play_chord [:Af3, :C4], release: 1.5, amp: 2
  72.   sleep 0.75
  73.   play_note :C4, 0.25
  74.   play_note :C4, 0.75
  75.  
  76.   # If after all
  77.   play_note :C4, 0.25
  78.   play_note :C4, 0.75
  79.   play_note :Bf3, 0.25
  80.   play_note :Bf3, 0.75
  81.  
  82.   # These years
  83.   play_note :Af3, 0.25
  84.   play_chord [:G3, :Bf3], release: 1.5, amp: 2
  85.   sleep 0.75
  86.  
  87.   # You'd like to meet.
  88.   play_note :C4, 0.25
  89.   play_note :Bf3, 0.75
  90.   play_note :F3, 0.25
  91.   play_note :Af3, 1.25
  92.  
  93.   # To go...
  94.   play_note :Af3, 0.25
  95.   play_note :C4, 0.50
  96.  
  97.   # o-o-ver...
  98.   play_chord [:Af3, :C4], release: 1.5, amp: 2
  99.   sleep 0.75
  100.   play_note :Bf3, 0.25
  101.   play_note :Af3, 2.25
  102.  
  103.   # ev-ery-
  104.   play_note :Bf3, 0.25
  105.   play_note :Bf3, 0.50
  106.  
  107.   # thing...
  108.   play_chord [:G3, :Bf3], release: 3.5, amp: 2
  109.   sleep 2.75
  110.  
  111.   # They say that time's
  112.   play_note :C4, 0.5
  113.   play_note :C4, 0.5
  114.   play_note :C4, 0.25
  115.   play_note :C4, 0.75
  116.  
  117.   # supposed to heal
  118.   play_note :C4, 0.25
  119.   play_note :C4, 0.75
  120.   play_note :C4, 0.25
  121.   play_note :C4, 0.75
  122.  
  123.   # ya,
  124.   play_note :Bf3, 0.25
  125.  
  126.   # but I ain't
  127.   play_note :Af3, 0.25
  128.   play_note :Af3, 0.25
  129.   play_note :Bf3, 0.25
  130.  
  131.   # done much
  132.   play_note(:Bf3, 0.75)
  133.   play_note(:Bf3, 0.75)
  134.  
  135.  
  136.   # heal-ing...
  137.   play_note :Af3, 0.75
  138.   play_note :Af3, 1
  139.  
  140.   # <pause>
  141.   sleep 1.25
  142. end
  143.  
  144. define :verse_2 do
  145.   use_synth :blade
  146.  
  147.   # He-
  148.   play_note :Bf4, 0.25
  149.  
  150.   # llo...
  151.   play_chord [:Af4, :C5], release: 3.5, amp: 2
  152.   sleep 3
  153.  
  154.   # can you hear me?
  155.   play_note :Bf4, 0.25
  156.   play_note :Bf4, 0.25
  157.   play_chord [:G4, :Bf4], release: 1, amp: 2
  158.   sleep 0.50
  159.   play_note :C5, 2.75
  160.  
  161.   # I'm in California
  162.   play_note :Af4, 0.5
  163.   play_note :C5, 0.25
  164.   play_note :C5, 0.75
  165.   play_note :C5, 0.25
  166.   play_note :C5, 0.75
  167.   play_note :C5, 0.25
  168.  
  169.   # Dreaming
  170.   play_chord [:Af4, :C5], release: 1.5, amp: 2
  171.   sleep 0.75
  172.   play_note :Bf4, 0.25
  173.  
  174.   # About who we used to be.
  175.   play_note :Bf4, 0.75
  176.   play_note :Af4, 0.25
  177.   play_chord [:G4, :Bf4], release: 1.5, amp: 2
  178.   sleep 0.75
  179.   play_note :C5, 0.25
  180.   play_note :Bf4, 0.75
  181.   play_note :F4, 0.25
  182.   play_note :Af4, 1
  183.  
  184.   # When we were...
  185.   play_note :Af4, 0.25
  186.   play_note :Af4, 0.25
  187.   play_note :C5, 0.50
  188.  
  189.   # young-er-rr
  190.   play_note :C5, 0.75
  191.   play_note :Bf4, 0.25
  192.   play_note :Af4, 2.50
  193.  
  194.   # And free...
  195.   play_note :Bf4, 0.50
  196.   play_chord [:G4, :Bf4], release: 4, amp: 2
  197.   sleep 3.25
  198.  
  199.   # I've forgotten.
  200.   play_note :Af4, 0.50
  201.   play_note :C5, 0.25
  202.   play_note :C5, 0.75
  203.   play_note :C5, 0.25
  204.  
  205.   # How it felt
  206.   play_note :C5, 0.75
  207.   play_note :C5, 0.25
  208.   play_note :C5, 0.75
  209.  
  210.   # before
  211.   play_note :Bf4, 0.25
  212.   play_note :Bf4, 0.75
  213.  
  214.   # the world fell at our feet,
  215.   play_note :Af4, 0.25
  216.   play_note :Bf4, 0.75
  217.   play_note :C5, 0.25
  218.   play_note :Bf4, 0.75
  219.   play_note :F4, 0.25
  220.   play_note :Af4, 0.75
  221.  
  222.   # There's such a difference.
  223.   play_note :Af4, 0.50
  224.   play_note :Af4, 0.50
  225.   play_note :C5, 0.50
  226.   play_note :C5, 1
  227.   play_note :Bf4, 0.25
  228.   play_note :Af4, 1.75
  229.  
  230.   sleep 0.50
  231.  
  232.   # Between us
  233.   play_note :Ef5, 0.25
  234.   play_note :Ef5, 1.25
  235.   play_note :C5, 0.50
  236.   play_note :Df5, 0.25
  237.   play_note :C5, 0.25
  238.   play_note :Bf4, 0.25
  239.   play_note :Af4, 0.75
  240.  
  241.   # And a
  242.   play_note :Af4, 0.50
  243.   play_note :C5, 0.50
  244.  
  245.   # Million
  246.   play_note :C5, 1
  247.   play_note :Bf4, 0.50
  248.   play_note :Bf4, 1.0
  249.   play_note :Af4, 0.50
  250.  
  251.   # Miles
  252.   play_note :Af4, 5
  253. end
  254.  
  255. define :chorus do
  256.   sync :tick
  257.   use_synth :blade
  258.   use_synth_defaults amp: 2
  259.  
  260.   # Hello from the other
  261.   play_chord [:F3, :C3], release: 1.5
  262.   sleep 0.50
  263.   play_note :F3, 0.50
  264.   play_note :Af3, 0.50
  265.   play_chord [:Df3, :F3, :Af3], release: 1, amp: 3
  266.   sleep 0.50
  267.   play_chord [:Df3, :F3, :Bf3], release: 1, amp: 3
  268.   sleep 0.50
  269.   play_chord [:Df3, :F3, :Bf3], release: 1, amp: 3
  270.   sleep 0.50
  271.  
  272.   # si-i-ide
  273.   play_chord [:F3, :Bf3], release: 2.5, amp: 3
  274.   sleep 2.5
  275.   play_chord [:Ef3, :Af3], release: 2, amp: 3
  276.   sleep 1
  277.   play_note :F3, 1
  278.  
  279.   # I must have called a thousand
  280.   play_note :F3, 0.50
  281.   play_chord [:C3, :F3], release: 1, amp: 3
  282.   sleep 0.50
  283.   play_note :F3, 0.50
  284.   play_note :Af3, 0.50
  285.   play_chord [:C3, :F3, :Af3], release: 1, amp: 3
  286.   sleep 0.50
  287.   play_note :Bf3, 0.50
  288.   play_note :Bf3, 0.50
  289.  
  290.   # t-i-imes...
  291.   play_note :Bf3, 1.25
  292.   play_note :C4, 0.25
  293.   play_note :Bf3, 1
  294.   play_note :Af3, 1.25
  295.  
  296.   # To tell you
  297.   play_note :Af3, 0.25
  298.   play_chord [:Ef4, :Ef5], release: 1, amp: 2
  299.   sleep 0.50
  300.   play_note :Bf3, 0.25
  301.   play_note :Af3, 0.75
  302.  
  303.   # I'm sorry.
  304.   play_note :C4, 1
  305.   play_note :Af3, 1
  306.   play_note :Af3, 0.75
  307.  
  308.   # For everything that I've done,
  309.   play_note :Af3, 0.25
  310.   play_note :Af3, 0.25
  311.   play_note :Af3, 0.25
  312.   play_note :Af3, 0.50
  313.   play_note :G3, 0.50
  314.   play_note :F3, 0.50
  315.   play_note :Ef3, 0.75
  316.  
  317.   # But when I call,
  318.   play_note :Ef3, 0.25
  319.   play_note :Ef3, 0.50
  320.   play_note :Ef4, 0.50
  321.   play_note :Af3, 1
  322.  
  323.   # You never...
  324.   play_note :C4, 1
  325.   play_note :Af3, 0.75
  326.   play_note :Af3, 0.125
  327.   play_note :F3, 0.125
  328.   play_note :Ef3, 1.5
  329.  
  330.   # Seem to be home.
  331.   play_note :Af3, 0.50
  332.   play_note :G3, 0.50
  333.   play_note :F3, 0.50
  334.   play_note :Ef3, 1.5
  335.  
  336.   # <pause>
  337.   sleep 1
  338. end
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top