-
Notifications
You must be signed in to change notification settings - Fork 0
/
tour_leg_1.rb
40 lines (34 loc) · 1.6 KB
/
tour_leg_1.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# TODO: clean these requires up so they're consistent
require_relative "ruby_cover_band/amplifier"
require_relative "ruby_cover_band/band"
require_relative "ruby_cover_band/concert"
require_relative "ruby_cover_band/instruments/guitar"
require_relative "ruby_cover_band/instruments/guitar/chords/chord"
require_relative "ruby_cover_band/instruments/guitar/chords/b_flat_half_bar"
require_relative "ruby_cover_band/instruments/guitar/chords/c_half_bar"
require_relative "ruby_cover_band/instruments/guitar/chords/drop_d_low_d"
require_relative "ruby_cover_band/instruments/guitar/chords/d_half_bar"
require_relative "ruby_cover_band/instruments/guitar/chords/f_half_bar"
require_relative "ruby_cover_band/instruments/guitar/chords/power_chord"
require_relative "ruby_cover_band/instruments/guitar/finger_placement"
require_relative "ruby_cover_band/instruments/guitar/fret"
require_relative "ruby_cover_band/instruments/guitar/string"
require_relative "ruby_cover_band/note"
require_relative "ruby_cover_band/setlist"
require_relative "ruby_cover_band/song"
require_relative "ruby_cover_band/songs/the_line_begins_to_blur"
def build_band(name: "Nine Inch Nails")
band = RubyCoverBand::Band.new(name: name)
band.guitarist = RubyCoverBand::Instruments::Guitar.new(tuning: :drop_d, amplifier: RubyCoverBand::Amplifier.new)
band
end
band = build_band(name: "Nine Inch Nails")
setlist = RubyCoverBand::Setlist.new(band)
setlist.add_song(RubyCoverBand::Songs::TheLineBeginsToBlur.new)
concert = RubyCoverBand::Concert.new("RubyConf 2020")
concert.setlist = setlist
10.times do
concert.set_up
concert.perform
concert.load_out
end