Class: StepSequencer::Tests::TestCases::Builder
Class Method Summary
collapse
asset_path, build_player, builder
Class Method Details
.build_c_major_chord ⇒ Object
39
40
41
42
43
44
45
46
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 39
def self.build_c_major_chord
scale = equal_temperament_notes_with_speed_correction[0]
result_path = builder.build(
sources: scale.values_at(0, 4, 7),
effect: :Overlay
)
[result_path]
end
|
.build_f_sharp_major_chord ⇒ Object
48
49
50
51
52
53
54
55
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 48
def self.build_f_sharp_major_chord
scale = equal_temperament_notes_with_speed_correction[0]
result_path = builder.build(
sources: scale.values_at(1, 6, 10),
effect: :Overlay
)
[result_path]
end
|
.equal_temperament_notes_combined ⇒ Object
65
66
67
68
69
70
71
72
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 65
def self.equal_temperament_notes_combined
scale_sources = equal_temperament_notes_with_speed_correction[0]
result_path = builder.build(
sources: scale_sources,
effect: :Combine
)
[result_path]
end
|
.equal_temperament_notes_with_speed_correction ⇒ Object
74
75
76
77
78
79
80
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 74
def self.equal_temperament_notes_with_speed_correction
builder.build(
sources: [asset_path("blip_1")],
effect: :Scale,
args: [scale: :equal_temperament]
)
end
|
.equal_temperament_with_no_speed_correction ⇒ Object
82
83
84
85
86
87
88
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 82
def self.equal_temperament_with_no_speed_correction
builder.build(
sources: [asset_path("blip_1")],
effect: :Scale,
args: [scale: :equal_temperament, speed_correction: false]
)
end
|
.increase_gain ⇒ Object
98
99
100
101
102
103
104
105
106
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 98
def self.increase_gain
[0.25, 0.5, 0.75, 1, 1.5, 3, 5, 10].map do |val|
builder.build(
sources: [asset_path("blip_1")],
effect: :Gain,
args: [value: val]
)
end
end
|
.inverse_equal_temperament ⇒ Object
90
91
92
93
94
95
96
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 90
def self.inverse_equal_temperament
builder.build(
sources: [asset_path("blip_1")],
effect: :Scale,
args: [scale: :equal_temperament, inverse: true]
)
end
|
.loop_a_sound_4_point_5_times ⇒ Object
57
58
59
60
61
62
63
|
# File 'lib/step_sequencer/tests/test_cases.rb', line 57
def self.loop_a_sound_4_point_5_times
builder.build(
sources: [asset_path("blip_1")],
effect: :Loop,
args: [times: 4.5]
)
end
|