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§

source

fn with_octave(self, octave: Octave) -> Self

Have the value with everything the same except change the octave to the given one.

source

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.

Implementors§