Class: StepSequencer::Tests::TestCases::Player

Inherits:
Object
  • Object
show all
Extended by:
StepSequencer::Tests::TestCaseHelpers
Defined in:
lib/step_sequencer/tests/test_cases.rb

Class Method Summary collapse

Class Method Details

.play_a_polyrhythmic_stringObject



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: "      x _ _\n      x _ _ _\n    TXT\n  )\n  sleep 0.5 while player.playing\nend\n",

.play_a_simple_grid_from_stringObject



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: "      x _ x _       # with a comment\n      _ _ x _\n    TXT\n  )\n  sleep 0.5 while player.playing\nend\n",