Type Alias music_theory::theory::note::OctaveShift

source ยท
pub type OctaveShift = i16;
Expand description

Can be negative to shift down into the octave range.

Example:

use music_theory::theory::*;
assert_eq!(Note::A4.shift_octave(-1), Note::A3);