Class: Fet::Generator::Singing
- Inherits:
-
Object
- Object
- Fet::Generator::Singing
- Defined in:
- lib/fet/generator/singing.rb
Overview
Class that generates MIDI files for the singing exercises
Class Method Summary collapse
-
.directory_prefix ⇒ Object
NOTE: this is explicitly changed in tests, so no need to check for coverage :nocov:.
Instance Method Summary collapse
-
#generate ⇒ Object
:nocov:.
-
#initialize(tempo:, pause:) ⇒ Singing
constructor
A new instance of Singing.
Constructor Details
#initialize(tempo:, pause:) ⇒ Singing
Returns a new instance of Singing.
7 8 9 10 11 |
# File 'lib/fet/generator/singing.rb', line 7 def initialize(tempo:, pause:) self.tempo = tempo self.pause = pause self.midi_range = HIGH_SINGING_OCTAVE_RANGE end |
Class Method Details
.directory_prefix ⇒ Object
NOTE: this is explicitly changed in tests, so no need to check for coverage :nocov:
15 16 17 |
# File 'lib/fet/generator/singing.rb', line 15 def self.directory_prefix return "" end |
Instance Method Details
#generate ⇒ Object
:nocov:
20 21 22 23 |
# File 'lib/fet/generator/singing.rb', line 20 def generate generate_major generate_minor end |