Skip to content

Instantly share code, notes, and snippets.

@thisismitch
Created November 18, 2015 05:36
Show Gist options
  • Star 34 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thisismitch/be9287c80903cad151fe to your computer and use it in GitHub Desktop.
Save thisismitch/be9287c80903cad151fe to your computer and use it in GitHub Desktop.
Sonic Pi Songs
# Chrono Trigger Soundtrack - Corridors of Time
# plug this into http://sonic-pi.net/
# still needs synth pads
# global config
use_bpm 112
def play_legato_note(note_value, duration)
release_duration = duration
if duration < 1
release_duration = 1
end
play note_value, release: release_duration, amp: 0.65
sleep duration
end
# arpeggio parts
def arp_d_2
play_pattern_timed [:d4, :fs4, :b4, :cs5, :fs5, :fs4, :b4, :cs5], [0.5], amp: 0.5
play_pattern_timed [:e5, :fs4, :b4, :cs5, :fs5, :fs4, :b4, :cs5], [0.5], amp: 0.5
end
def arp_fs_2
play_pattern_timed [:cs4, :e4, :b4, :cs5, :fs5, :fs4, :b4, :cs5], [0.5], amp: 0.5
play_pattern_timed [:e5, :fs4, :b4, :cs5, :fs5, :fs4, :b4, :cs5], [0.5], amp: 0.5
end
# bass parts
def bass_d
play :d2, release: 1.5
sleep 1.5
play :d2, release: 1.5
sleep 1.5
play :a2
sleep 0.5
play :d3
sleep 0.5
end
def bass_fs_2
play :fs2, release: 1.5
sleep 1.5
play :fs2, release: 1.5
sleep 1.5
play :cs3
sleep 0.5
play :fs3
sleep 0.5
play :fs2, release: 1.5
sleep 1.5
play :fs2, release: 1.5
sleep 1.5
play :e2
sleep 1
end
def bass_cs_2
play :cs2, release: 1.5
sleep 1.5
play :cs2, release: 1.5
sleep 1.5
play :gs2
sleep 0.5
play :cs3
sleep 0.5
play :cs2, release: 1.5
sleep 1.5
play :cs2, release: 1.5
sleep 1.5
play :gs2
sleep 1
end
def bass_e
play :e2, release: 1.5
sleep 1.5
play :e2, release: 1.5
sleep 1.5
play :b2
sleep 0.5
play :e3
sleep 0.5
end
# Workspace
live_loop :arp do
# intro
arp_d_2
arp_d_2
# bass and drums enter
arp_d_2
arp_fs_2
# all instruments
loop do
arp_d_2
arp_fs_2
end
end
live_loop :bass do
sleep 16
bass_d
bass_d
bass_fs_2
# start melody
bass_d
bass_d
bass_cs_2
bass_d
bass_d
bass_fs_2
bass_d
bass_d
bass_cs_2
bass_d
bass_e
bass_fs_2
end
live_loop :kick_drum do
sleep 16
loop do
sample :drum_tom_lo_soft, rate: 0.5
sleep 0.75
sample :drum_tom_lo_soft
sleep 0.75
sample :drum_tom_lo_soft
sleep 1
sample :drum_tom_lo_soft
sleep 1.5
end
end
live_loop :snare_drum do
sleep 16
loop do
sleep 1
sample :drum_tom_hi_soft
sleep 1
end
end
live_loop :melody do
use_synth :prophet
sleep 32
# bar 1, 2
play_legato_note :gs4, 0.75
play_legato_note :gs4, 0.75
play_legato_note :fs4, 0.5
play_legato_note :fs4, 3.5
play_legato_note :fs4, 0.25
play_legato_note :gs4, 0.25
play_legato_note :a4, 0.75
play_legato_note :b4, 0.75
play_legato_note :a4, 0.25
play_legato_note :gs4, 0.25
# bar 3, 4
play_legato_note :fs4, 0.75
play_legato_note :fs4, 0.75
play_legato_note :e4, 0.5
play_legato_note :e4, 5.5
# pre-measure 1
play_legato_note :cs4, 0.5
# bar 5,6
play_legato_note :gs4, 0.75
play_legato_note :gs4, 0.75
play_legato_note :fs4, 0.5
play_legato_note :fs4, 3
sleep 0.5
play_legato_note :fs4, 0.5
play_legato_note :gs4, 0.75
play_legato_note :a4, 0.75
play_legato_note :b4, 0.5
play_legato_note :b4, 0.75
play_legato_note :cs5, 0.75
play_legato_note :cs5, 3.5
sleep 0.5
play_legato_note :cs5, 0.5
play_legato_note :e5, 0.75
play_legato_note :cs5, 0.75
play_legato_note :a4, 5.25
sleep 0.75
play_legato_note :a4, 0.5
play_legato_note :fs4, 1
play_legato_note :cs5, 1
#
play_legato_note :b4, 0.75
play_legato_note :cs5, 0.75
play_legato_note :gs4, 1.5
play_legato_note :fs4, 0.5
play_legato_note :e4, 3
sleep 1
play_legato_note :e4, 0.5
#
play_legato_note :fs4, 0.5
play_legato_note :a3, 0.5
play_legato_note :d4, 0.5
play_legato_note :e4, 0.5
play_legato_note :fs4, 0.75
play_legato_note :gs4, 0.75
play_legato_note :a4, 0.5
#
play_legato_note :gs4, 0.5
play_legato_note :b3, 0.5
play_legato_note :e4, 0.5
play_legato_note :fs4, 0.5
play_legato_note :gs4, 0.75
play_legato_note :a4, 0.75
play_legato_note :gs4, 0.5
#
play_legato_note :gs4, 3
play_legato_note :gs4, 0.5
play_legato_note :fs4, 0.5
#
play_legato_note :fs4, 4
end
@thegreyd
Copy link

Amazing!

@ksrikar1234
Copy link

although the music is piercing, the background drums and the whole tuning part is very appreciated.

@0DividebYZer0
Copy link

Awesome work

@thisismitch
Copy link
Author

@shalomberm
Copy link

damn this is good

@Jak2k
Copy link

Jak2k commented Feb 18, 2021

Wow

@original-taste
Copy link

Good one

@Tricky1975
Copy link

Dang! Well done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment