pub struct StrictPitchLayout {
pub register: i8,
pub octave_displacements: Vec<i8>,
}Expand description
How octave placement is derived for one event’s ordinals.
Fields§
§register: i8MIDI-style octave register, where 4 means the C4..B4 octave.
octave_displacements: Vec<i8>Per-ordinal octave displacements relative to register.
Implementations§
Source§impl StrictPitchLayout
impl StrictPitchLayout
Sourcepub fn in_register(register: i8) -> Self
pub fn in_register(register: i8) -> Self
Places every ordinal in the same octave register.
Trait Implementations§
Source§impl Clone for StrictPitchLayout
impl Clone for StrictPitchLayout
Source§fn clone(&self) -> StrictPitchLayout
fn clone(&self) -> StrictPitchLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrictPitchLayout
impl Debug for StrictPitchLayout
impl Eq for StrictPitchLayout
Source§impl PartialEq for StrictPitchLayout
impl PartialEq for StrictPitchLayout
impl StructuralPartialEq for StrictPitchLayout
Auto Trait Implementations§
impl Freeze for StrictPitchLayout
impl RefUnwindSafe for StrictPitchLayout
impl Send for StrictPitchLayout
impl Sync for StrictPitchLayout
impl Unpin for StrictPitchLayout
impl UnsafeUnpin for StrictPitchLayout
impl UnwindSafe for StrictPitchLayout
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