Exception: InevitableCacophony::MidiGenerator::FrequencyTable::OutOfRange

Inherits:
StandardError
  • Object
show all
Defined in:
lib/inevitable_cacophony/midi_generator/frequency_table.rb

Overview

Raised when there is no MIDI index available for a note we’re trying to output

Instance Method Summary collapse

Constructor Details

#initialize(frequency, table) ⇒ OutOfRange

Returns a new instance of OutOfRange.



18
19
20
21
# File 'lib/inevitable_cacophony/midi_generator/frequency_table.rb', line 18

def initialize(frequency, table)
        super("Not enough MIDI indices to represent #{frequency} Hz. "\
              "Available range is  #{table.inspect}")
end