Created
May 20, 2017 06:16
-
-
Save willbasky/71e604aede37d53954ce5b0a1cb6d93d to your computer and use it in GitHub Desktop.
Greensleeves, traditional English song, Sonic Pi code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Greensleeves, traditional English song | |
# | |
# Coded by Vladislav Sabanov | |
use_bpm 112 | |
use_synth :piano | |
use_synth_defaults release: 1, decay: 1, amp: 2 | |
in_thread do | |
play_pattern_timed [:a4], [1] #begin_1 | |
play_pattern_timed [:c5, :d5, :e5],[2, 1, 1.5] #begin_3_notes | |
play_pattern_timed [:f5, :e5, :d5, :b4, :g4, :a4, :b4], [0.5, 1, 2, 1, 1.5, 0.5, 1]#first_theme | |
play_pattern_timed [:c5, :a4, :a4, :gs4, :a4, :b4, :gs4], [2, 1, 1.5, 0.5, 1, 2, 1] #second theme | |
play_pattern_timed [:e4], [2] #tail_1 | |
play_pattern_timed [:a4], [1] #begin_1 | |
play_pattern_timed [:c5, :d5, :e5],[2, 1, 1.5] #begin_3_notes | |
play_pattern_timed [:f5, :e5, :d5, :b4, :g4, :a4, :b4], [0.5, 1, 2, 1, 1.5, 0.5, 1] #first_theme | |
play_pattern_timed [:c5, :b4, :a4, :gs4, :fs4, :gs4, :a4, :a4], [1.5, 0.5, 1, 1.5, 0.5, 1, 3, 3] #third theme | |
play_pattern_timed [:g5, :g5], [3, 1.5] #begin_2 | |
play_pattern_timed [:f5, :e5, :d5, :b4, :g4, :a4, :b4], [0.5, 1, 2, 1, 1.5, 0.5, 1] #first_theme | |
play_pattern_timed [:c5, :a4, :a4, :gs4, :a4, :b4, :gs4], [2, 1, 1.5, 0.5, 1, 2, 1] #second theme | |
play_pattern_timed [:e4], [3] #tail_2 | |
play_pattern_timed [:g5, :g5], [3, 1.5] #begin_2 | |
play_pattern_timed [:f5, :e5, :d5, :b4, :g4, :a4, :b4], [0.5, 1, 2, 1, 1.5, 0.5, 1] #first_theme | |
play_pattern_timed [:c5, :b4, :a4, :gs4, :fs4, :gs4, :a4, :a4], [1.5, 0.5, 1, 1.5, 0.5, 1, 3, 3] #third theme | |
end | |
use_synth :square | |
use_synth_defaults release: 3, decay: 2, amp: 1 | |
in_thread do | |
sleep 1 | |
play_chord chord(:a3, :minor) | |
sleep 3 | |
play_chord chord(:c3, :major) | |
sleep 3 | |
play_chord chord(:g3, :major) | |
sleep 6 | |
play_chord chord(:a3, :minor) | |
sleep 6 | |
play_chord chord(:e3, :major) | |
sleep 6 | |
play_chord chord(:a3, :minor) | |
sleep 3 | |
play_chord chord(:c3, :major) | |
sleep 3 | |
play_chord chord(:g3, :major) | |
sleep 6 | |
play_chord chord(:a3, :minor) | |
sleep 3 | |
play_chord chord(:e3, :major) | |
sleep 3 | |
play_chord chord(:a3, :minor) | |
sleep 6 | |
play_chord chord(:c3, :major) | |
sleep 6 | |
play_chord chord(:g3, :major) | |
sleep 6 | |
play_chord chord(:a3, :minor) | |
sleep 6 | |
play_chord chord(:e3, :major) | |
sleep 6 | |
play_chord chord(:c3, :major) | |
sleep 6 | |
play_chord chord(:g3, :major) | |
sleep 6 | |
play_chord chord(:f3, :major) | |
sleep 3 | |
play_chord chord(:e3, :major) | |
sleep 3 | |
play_chord chord(:a3, :minor) | |
sleep 6 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment