Class: StepSequencer::Tests::TestCases::Player
Class Method Summary
collapse
asset_path, build_player, builder
Class Method Details
.play_a_polyrhythmic_string ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 20
def self.play_a_polyrhythmic_string
player = build_player %w{blip_1 blip_1}.map(&method(:asset_path))
player.play(
tempo: 240,
limit: 16,
string: <<-TXT,
x _ _
x _ _ _
TXT
)
sleep 0.5 while player.playing
end
|
.play_a_simple_grid_from_string ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 7
def self.play_a_simple_grid_from_string
player = build_player %w{blip_1 blip_1}.map(&method(:asset_path))
player.play(
tempo: 240,
limit: 16,
string: <<-TXT,
x _ x _ # with a comment
_ _ x _
TXT
)
sleep 0.5 while player.playing
end
|