Exception: WaveFile::InvalidSamplerInfoError
- Inherits:
-
StandardError
- Object
- StandardError
- WaveFile::InvalidSamplerInfoError
- Defined in:
- lib/wavefile/sampler_info.rb
Overview
Public: Error that is raised when constructing a SamplerInfo instance that is invalid.
"Invalid" means that one or more fields have a value that can't be encoded in the
field inside a *.wav file. For example, there's no way to encode "-23" as a value
for the midi_note field. However, this error _won't_ be raised for values that
can be encoded, but aren't semantically correct. For example, it's possible to
construct a SamplerInfo instance with a midi_note value of 10000, which can be
encoded in a *.wav file, even though this isn't a valid value in real life.