[−][src]Enum musictheory::types::Note
Notes are names given to a specific PitchClass.
Variants
A(Accidental)
B(Accidental)
C(Accidental)
D(Accidental)
E(Accidental)
F(Accidental)
G(Accidental)
Methods
impl Note
[src]
pub fn sharps() -> [Note; 12]
[src]
pub fn flats() -> [Note; 12]
[src]
pub fn sharp(&self) -> bool
[src]
True if a Note is sharp or double sharp.
pub fn flat(&self) -> bool
[src]
True if a Note is flat or double flat.
pub fn natural(&self) -> bool
[src]
True if a Note is natural.
pub fn accidental(&self) -> Accidental
[src]
Return associated Accidental.
pub fn pitch_class(&self) -> PitchClass
[src]
PitchClass of this Note.
pub fn enharmonic(&self) -> bool
[src]
Is this Note enharmonic.
Trait Implementations
impl Add<Interval> for Note
[src]
type Output = Option<Self>
The resulting type after applying the +
operator.
fn add(self, interval: Interval) -> Self::Output
[src]
impl Clone for Note
[src]
impl Copy for Note
[src]
impl Debug for Note
[src]
impl Display for Note
[src]
impl Eq for Note
[src]
impl Ord for Note
[src]
fn cmp(&self, other: &Note) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Note> for Note
[src]
impl PartialOrd<Note> for Note
[src]
fn partial_cmp(&self, other: &Note) -> Option<Ordering>
[src]
fn lt(&self, other: &Note) -> bool
[src]
fn le(&self, other: &Note) -> bool
[src]
fn gt(&self, other: &Note) -> bool
[src]
fn ge(&self, other: &Note) -> bool
[src]
impl StructuralEq for Note
[src]
impl StructuralPartialEq for Note
[src]
impl Sub<Interval> for Note
[src]
Auto Trait Implementations
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,