pub struct Note { /* private fields */ }Expand description
A musical note.
Example code:
use ym2149_core::audio::{Note, BaseNote};
let a_4 = Note::new(
BaseNote::A,
4,
None
);Implementations§
Source§impl Note
impl Note
Sourcepub fn new(
base_note: BaseNote,
octave: u8,
accidental: Option<Accidental>,
) -> Result<Self, Error>
pub fn new( base_note: BaseNote, octave: u8, accidental: Option<Accidental>, ) -> Result<Self, Error>
Creates a new Note from a BaseNote, octave, and optionally an Accidental
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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