pub struct FretNote {
pub string: Option<IntegerType>,
pub fret: Option<IntegerType>,
pub fingering: Option<IntegerType>,
pub display_finger_number: bool,
}Expand description
A finger on a string at a fret: music21’s FretNote. Strings count
from the highest-sounding, one, as guitarists count them.
Fields§
§string: Option<IntegerType>The string.
fret: Option<IntegerType>The fret, nought for the open string.
fingering: Option<IntegerType>The finger.
display_finger_number: boolWhether the finger is shown: music21’s displayFingerNumber.
Implementations§
Source§impl FretNote
impl FretNote
Sourcepub fn new(
string: Option<IntegerType>,
fret: Option<IntegerType>,
fingering: Option<IntegerType>,
) -> Self
pub fn new( string: Option<IntegerType>, fret: Option<IntegerType>, fingering: Option<IntegerType>, ) -> Self
A note on a string at a fret, played by a finger, the finger shown.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FretNote
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FretNote
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FretNote
Written as music21 writes the note inside its representation: 6th string, 133rd fret, 2nd finger, leaving out what is not given.
impl Display for FretNote
Written as music21 writes the note inside its representation: 6th string, 133rd fret, 2nd finger, leaving out what is not given.
impl Eq for FretNote
impl StructuralPartialEq for FretNote
Auto Trait Implementations§
impl Freeze for FretNote
impl RefUnwindSafe for FretNote
impl Send for FretNote
impl Sync for FretNote
impl Unpin for FretNote
impl UnsafeUnpin for FretNote
impl UnwindSafe for FretNote
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more