Trait music_theory::theory::traits::OctaveShiftable
source · pub trait OctaveShiftable {
// Required methods
fn with_octave(self, octave: Octave) -> Self;
fn shift_octave(self, shift: OctaveShift) -> Self;
}
Expand description
Music theory types that have a notion of being in a certain octave, and can shift or set that octave.
Required Methods§
sourcefn with_octave(self, octave: Octave) -> Self
fn with_octave(self, octave: Octave) -> Self
Have the value with everything the same except change the octave to the given one.
sourcefn shift_octave(self, shift: OctaveShift) -> Self
fn shift_octave(self, shift: OctaveShift) -> Self
Have the value with everything the same except shift the octave from the current one with the given shift.