pub struct Note { /* private fields */ }Expand description
A note type.
This is a named pitch with an octave. This type allows for correctly attributing octave changes
across an interval from one Note to another.
Implementations§
Trait Implementations§
source§impl AddAssign<Interval> for Note
impl AddAssign<Interval> for Note
source§fn add_assign(&mut self, rhs: Interval)
fn add_assign(&mut self, rhs: Interval)
Performs the
+= operation. Read moresource§impl HasFrequency for Note
impl HasFrequency for Note
source§impl HasNamedPitch for Note
impl HasNamedPitch for Note
source§fn named_pitch(&self) -> NamedPitch
fn named_pitch(&self) -> NamedPitch
Returns the named pitch of the type.
source§impl HasStaticName for Note
impl HasStaticName for Note
source§fn static_name(&self) -> &'static str
fn static_name(&self) -> &'static str
Returns the static name of the type.
source§impl NoteRecreator for Note
impl NoteRecreator for Note
source§fn with_named_pitch(self, named_pitch: NamedPitch) -> Self
fn with_named_pitch(self, named_pitch: NamedPitch) -> Self
Recreates this
Note with the given NamedPitch.source§impl Ord for Note
impl Ord for Note
source§impl PartialEq<Note> for Note
impl PartialEq<Note> for Note
source§impl PartialOrd<Note> for Note
impl PartialOrd<Note> for Note
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more