Class: Fet::Generator::Singing

Inherits:
Object
  • Object
show all
Defined in:
lib/fet/generator/singing.rb

Overview

Class that generates MIDI files for the singing exercises

Class Method Summary collapse

Instance Method Summary collapse

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_prefixObject

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

#generateObject

:nocov:



20
21
22
23
# File 'lib/fet/generator/singing.rb', line 20

def generate
  generate_major
  generate_minor
end