pub enum PitchError {
TooLow(Solfa, Octave, SharpFlat, i32),
TooHigh(Solfa, Octave, SharpFlat, i32),
InvalidScoreOffset(i32),
}Expand description
Error type for pitch-related operations.
Variants§
TooLow(Solfa, Octave, SharpFlat, i32)
The pitch is too low (below MIDI note 0).
TooHigh(Solfa, Octave, SharpFlat, i32)
The pitch is too high (above MIDI note 127).
InvalidScoreOffset(i32)
The score offset is out of valid range.
Trait Implementations§
Source§impl Debug for PitchError
impl Debug for PitchError
Auto Trait Implementations§
impl Freeze for PitchError
impl RefUnwindSafe for PitchError
impl Send for PitchError
impl Sync for PitchError
impl Unpin for PitchError
impl UnwindSafe for PitchError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more