# data[].attributes.body
use_debug false # help RPi performance
use_bpm 100
use_synth :pulse
use_synth_defaults release: 0.2, mod_rate: 5, amp: 0.6
define :structure do |i,a,b,c,d|
1.times { i.call }
loop do
2.times { a.call }
2.times { b.call }
1.times { c.call }
2.times { a.call }
2.times { d.call }
1.times { c.call }
1.times { d.call }
end
end

in_thread do
intro = -> { play_pattern_timed([:e5,:e5,nil,:e5,nil,:c5,:e5,nil,
:g5,nil,nil,nil,nil,nil,nil,nil], [0.25]) }
theme_a = -> {
play_pattern_timed([:c5,nil,nil,:g4,nil,nil,:e4,nil,
nil,:a4,nil,:b4,nil,:Bb4,:a4,nil], [0.25])
play_pattern_timed([:g4,:e5,:g5], [1/3.0]) # minim triplets
play_pattern_timed([:a5,nil,:f5,:g5,
nil,:e5,nil,:c5,
:d5,:b4,nil,nil], [0.25]) }
theme_b = -> {
play_pattern_timed([nil,nil,:g5,:fs5,:f5,:ds5,nil,:e5,
nil,:gs4,:a4,:c5,nil,:a4,:c5,:d5,
nil,nil,:g5,:fs5,:f5,:ds5,nil,:e5,
nil,:c6,nil,:c6,:c6,nil,nil,nil,
nil,nil,:g5,:fs5,:f5,:ds5,nil,:e5,
nil,:gs4,:a4,:c5,nil,:a4,:c5,:d5,
nil,nil,:ds5,nil,nil,:d5,nil,nil,
:c5,nil,nil,nil,nil,nil,nil,nil], [0.25]) }
theme_c = -> {
play_pattern_timed([:c5,:c5,nil,:c5,nil,:c5,:d5,nil,
:e5,:c5,nil,:a4,:g4,nil,nil,nil,
:c5,:c5,nil,:c5,nil,:c5,:d5,:e5,
nil,nil,nil,nil,nil,nil,nil,nil,
:c5,:c5,nil,:c5,nil,:c5,:d5,nil,
:e5,:c5,nil,:a4,:g4,nil,nil,nil,
:e5,:e5,nil,:e5,nil,:c5,:e5,nil,
:g5,nil,nil,nil,nil,nil,nil,nil], [0.25]) }
theme_d = -> {
play_pattern_timed([:e5,:c5,nil,:g4,nil,nil,:gs4,nil,
:a4,:f5,nil,:f5,:a4,nil,nil,nil], [0.25])
play_pattern_timed([:b4,:a5,:a5,
:a5,:g5,:f5], [1/3.0])
play_pattern_timed([:e5,:c5,nil,:a4,:g4,nil,nil,nil], [0.25])
play_pattern_timed([:e5,:c5,nil,:g4,nil,nil,:gs4,nil,
:a4,:f5,nil,:f5,:a4,nil,nil,nil,
:b4,:f5,nil,:f5], [0.25])
play_pattern_timed([:f5,:e5,:d5], [1/3.0])
play_pattern_timed([:g5,:e5,nil,:e5,:c5,nil,nil,nil], [0.25]) }

structure(intro, theme_a, theme_b, theme_c, theme_d)
end

in_thread do
intro = -> { play_pattern_timed([:fs4,:fs4,nil,:fs4,nil,:fs4,:fs4,nil,
:b4,nil,nil,nil,:g4,nil,nil,nil], [0.25]) }
theme_a = -> {
play_pattern_timed([:e4,nil,nil,:c4,nil,nil,:g3,nil,
nil,:c4,nil,:d4,nil,:Db4,:c4,nil], [0.25])
play_pattern_timed([:c4,:g4,:b4], [1/3.0])
play_pattern_timed([:c5,nil,:a4,:b4,
nil,:a4,nil,:e4,
:f4,:d4,nil,nil], [0.25]) }
theme_b = -> {
play_pattern_timed([nil,nil,:e5,:ds5,:d5,:b4,nil,:c5,
nil,:e4,:f4,:g4,nil,:c4,:e4,:f4,
nil,nil,:e5,:ds5,:d5,:b4,nil,:c5,
nil,:f5,nil,:f5,:f5,nil,nil,nil,
nil,nil,:e5,:ds5,:d5,:b4,nil,:c5,
nil,:e4,:f4,:g4,nil,:c4,:e4,:f4,
nil,nil,:gs4,nil,nil,:f4,nil,nil,
:e4,nil,nil,nil,nil,nil,nil,nil], [0.25]) }
theme_c = -> {
play_pattern_timed([:gs4,:gs4,nil,:gs4,nil,:gs4,:as4,nil,
:g4,:e4,nil,:e4,:c4,nil,nil,nil,
:gs4,:gs4,nil,:gs4,nil,:gs4,:as4,:g4,
nil,nil,nil,nil,nil,nil,nil,nil,
:gs4,:gs4,nil,:gs4,nil,:gs4,:as4,nil,
:g4,:e4,nil,:e4,:c4,nil,nil,nil,
:fs4,:fs4,nil,:fs4,nil,:fs4,:fs4,nil,
:b4,nil,nil,nil,:g4,nil,nil,nil], [0.25]) }
theme_d = -> {
play_pattern_timed([:c5,:a4,nil,:e4,nil,nil,:e4,nil,
:f4,:c5,nil,:c5,:f4,nil,nil,nil], [0.25])
play_pattern_timed([:g4,:f5,:f5,
:f5,:e5,:d5], [1/3.0])
play_pattern_timed([:c5,:a4,nil,:f4,:e4,nil,nil,nil], [0.25])
play_pattern_timed([:c5,:a4,nil,:e4,nil,nil,:e4,nil,
:f4,:c5,nil,:c5,:f4,nil,nil,nil,
:g4,:d5,nil,:d5], [0.25])
play_pattern_timed([:d5,:c5,:b4], [1/3.0])
play_pattern_timed([:c5,nil,nil,nil,nil,nil,nil,nil], [0.25]) }

structure(intro, theme_a, theme_b, theme_c, theme_d)
end

in_thread do
use_synth :tri
use_synth_defaults attack: 0, sustain: 0.1, decay: 0.1, release: 0.1, amp: 0.4

intro = -> { play_pattern_timed([:D4,:D4,nil,:D4,nil,:D4,:D4,nil,
:G3,nil,nil,nil,:G4,nil,nil,nil], [0.25]) }
theme_a = -> {
play_pattern_timed([:G4,nil,nil,:E4,nil,nil,:C4,nil,
nil,:F4,nil,:G4,nil,:Gb4,:F4,nil], [0.25])
play_pattern_timed([:E4,:C4,:E4], [1/3.0])
play_pattern_timed([:F4,nil,:D4,:E4,
nil,:C4,nil,:A3,
:B3,:G3,nil,nil], [0.25]) }
theme_b = -> {
play_pattern_timed([:C3,nil,nil,:G3,nil,nil,:C3,nil,
:F3,nil,nil,:C3,:C3,nil,:F3,nil,
:C3,nil,nil,:E3,nil,nil,:G3,:C3,
nil,:G2,nil,:G2,:G2,nil,:G4,nil,
:C3,nil,nil,:G3,nil,nil,:C3,nil,
:F3,nil,nil,:C3,:C3,nil,:F3,nil,
:C3,nil,:Ab3,nil,nil,:Bb3,nil,nil,
:C3,nil,nil,:G2,:G2,nil,:C3,nil], [0.25]) }
theme_c = -> {
3.times {
play_pattern_timed([:gs4,nil,nil,:ds4,nil,nil,:gs4,nil,
:g4,nil,nil,:c4,nil,nil,:g4,nil], [0.25])
}
play_pattern_timed([:D4,:D4,nil,:D4,nil,:D4,:D4,nil,
:G3,nil,nil,nil,:G4,nil,nil,nil], [0.25]) }
theme_d = -> {
play_pattern_timed([:C3,nil,nil,:fs3,:g3,nil,:C3,nil,
:F3,nil,:F3,nil,:C3,:C3,:F3,nil,
:D3,nil,nil,:F3,:G3,nil,:B3,nil,
:G3,nil,:G3,nil,:C3,:C3,:G3,nil,
:C3,nil,nil,:fs3,:g3,nil,:C3,nil,
:F3,nil,:F3,nil,:C3,:C3,:F3,nil,
:G3,nil,nil,:G3], [0.25])
play_pattern_timed([:G3,:A3,:B3], [1/3.0])
play_pattern_timed([:C4,nil,:G3,nil,:C4,nil,nil,nil], [0.25]) }

structure(intro, theme_a, theme_b, theme_c, theme_d)
end

in_thread do
use_synth :fm
use_synth_defaults divisor: 1.6666, attack: 0.0, depth: 1500, sustain: 0.05, release: 0.0

ll = -> { play :a, sustain: 0.1; sleep 0.75 }
l = -> { play :a, sustain: 0.1; sleep 0.5 }
s = -> { play :a; sleep 0.25 }

define :drum_pattern_a do
[l,s,l,s,l,ll,l,s,s,s].map(&:call)
end

define :drum_pattern_b do
play :b
sleep 0.5
play :a6
sleep 0.3
play :a7
sleep 0.2
play :a, sustain: 0.1
sleep 0.5
play :a6
sleep 0.3
play :a7
sleep 0.2
end

define :drum_pattern_c do
[ll,s,l,l].map(&:call)
end

with_fx :level, amp: 0.5 do
1.times  { drum_pattern_a }
loop do
24.times { drum_pattern_b }
4.times  { drum_pattern_a }
8.times  { drum_pattern_b }
16.times { drum_pattern_c }
4.times  { drum_pattern_a }
8.times  { drum_pattern_b }
end
end
end

# data[].attributes.body
ET and LP

# data[].attributes.attachment_link.readable_text
play :c5
sleep 1
play :e6
sleep 1
play:g4
use_bpm 90
sleep 1
play:c5
use_bpm 90

# data[].attributes.attachment_link.readable_text
loop do
  use_synth :tech_saws
  play:c5
  sleep 0.5
  play :d5
  sleep 0.5
end# Welcome to Sonic Pi


# data[].attributes.attachment_link.readable_text
use_bpm 10
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8
sleep 1
play :gs8

# data[].attributes.attachment_link.readable_text
use_bpm 114
play :gb4
play :d4
play :bb3
sleep 1.5
play :f4
play :d4
play :bb3
sleep 2
play :d4
sleep 0.3
play :e4
sleep 0.3
play :f4
sleep 0.6
play :e4
sleep 0.6
play :d4
sleep 0.6
play :cs4
sleep 0.6
play :d4
sleep 0.5
play :e4
sleep 0.5
play :gb4
play :d4
play :bb3
sleep 0.73
play :d4
play :gb4
sleep 0.7
play :gb4
play :b4
sleep 1
play :b4
sleep 0.6
play :cs5
sleep 0.6
play :d5
sleep 0.6
play :g4
sleep 0.6
play :gb4
sleep 0.6
play :f4
sleep 0.6
play :d5
sleep 0.6
play :bb4
sleep 0.8
play :b4
sleep 0.3
play :b4
sleep 0.3
play :b4
sleep 0.25
play :a4
sleep 0.5
play :b4
sleep 0.35
play :d5
sleep 0.35
play :b4
sleep 0.35
play :gb4
sleep 0.3
play :a4
sleep 0.4
play :b4

# data[].attributes.attachment_link.readable_text
use_bpm 85
play :c5
play 90
play 75
play 88
sleep 1
play :eb6
play :gs4
play 72
play 74
play 57
play 82
play 85
play 10
play 96
play 100
use_bpm 85
play :c5
play 90
play 75
play 88
sleep 1
play:c
play 99
play:es
use_bpm 85
play :c5
play 90
play 75
play 88
sleep 1
play :eb6
play :gs4
play 72
play 74
play 57
play 82
play 85
play 10
play 96
play 100
play 500
play 95
play 88
play 90
play :as
play 38
play 905478120
sleep 1
play 77
play:cb
play 666
play 768
play 68
sleep 1
play 72

# data[].attributes.attachment_link.readable_text
use_bpm 114
5.times do
play :a4
sleep 0.5
play :bb4
sleep 0.5
play :d5
sleep 0.5
play :e5
sleep 0.5
play :gb5
sleep 0.5
play :d5
sleep 0.5
play :gb5
sleep 1
play :f5
sleep 0.5
play :cs5
sleep 0.5
play :f5
sleep 1
play :e5
sleep 0.5
play :c5
sleep 0.5
play :e5
sleep 0.5
end

# data[].attributes.body
:D

# data[].attributes.body
AG twinkle - day 2

# data[].attributes.body
so sorry for your ears  :-)

# data[].attributes.body
caliah

# data[].attributes.body
day 2 remix

# data[].attributes.body
this on isnt plagarised

# data[].attributes.body
0_0

# data[].attributes.body
Tason Toulson

# data[].attributes.body
fire and butter by bts and ARMMMMMMMMMMMMMMMY

# data[].attributes.body
WAKE UUUUUUUUUUUUUUUUUUUUUUUUUUP

# data[].attributes.body
ringtone lavanya

# data[].attributes.body
haha

# data[].attributes.body
twinkle star remix

# data[].attributes.body
the real one

# data[].attributes.body
remix made by nithya p

# data[].attributes.body
made by me(lavanya)

# data[].attributes.body
lavanya

# data[].attributes.attachment_link.readable_text
live_loop:beat do
  sample :drum_bass_hard
  sleep 0.5
  sample  :bass_voxy_hit_c
  sample  :bass_hit_c
end
play:c
use_synth:pretty_bell
sleep 0.5
play :c
sleep 0.5
play :g
sleep 0.5
play :G
sleep 0.5
play :a
sleep 0.5
play :a
use_synth :tech_saws
sleep 0.5
play :g
sleep 1
play :f
sleep 0.5
play :f
sleep 0.5
play :e
sleep 0.5
play :e
use_synth :supersaw
sleep 0.5
play:d
sleep 0.5
play :d
sleep 0.5
play :c
sleep 1
play :g
sleep 0.5
play :g
use_synth :blade
sleep 0.5
play :f
sleep 0.5
play :f
sleep 0.5
play :e
sleep 0.5
play :e
sleep 0.5
play :d
use_synth :pretty_bell
sleep 1
play :g
sleep 0.5
play :g
sleep 0.5
play :f
sleep 0.5
play :f
sleep 0.5
play :e
use_synth :tech_saws
sleep 0.5
play :e
sleep 0.5
play :d
sleep 1



# data[].attributes.attachment_link.readable_text
live_loop :beat do
  sample :drum_bass_hard
  sleep 0.5
  sample :bass_voxy_hit_c
end
play :c
use_synth :tech_saws
sleep 0.5
play :c
sleep 0.5
play :g
sleep 0.5
play :g
sleep 0.5
play :a
sleep 0.5
play :a
sleep 0.5
play :g
sleep 0.5
play :f
sleep 0.5
play :f
sleep 0.5
play :e
sleep 0.5
play :e
sleep 0.5
play :d
sleep 0.5
play :d
sleep 0.5
play :c
sleep 0.5
play :g
sleep 0.5
play :g
sleep 0.5
play :f
sleep 0.5
play :f
sleep 0.5
play :e
sleep 0.5
play :e
sleep 0.5
play :d
sleep 0.5
play :g
sleep 0.5
play :g
sleep 0.5
play :f
sleep 0.5
play:f
sleep 0.5
play :e
sleep 0.5
play :e
sleep 0.5
play :d
sleep 1
