Expand description
A Chord contains a vector of Notes
Fields
notes: Vec<Note>
Implementations
sourceimpl Chord
impl Chord
Trait Implementations
sourceimpl Add<Interval> for Chord
impl Add<Interval> for Chord
Overload operator + for Chord + Interval
Examples
Basic usage:
use mumuse::music::note::Note;
use mumuse::music::common::Interval;
let n = Note::try_from("A3").unwrap();
let c = n.chord("maj");
let c_ = c + Interval::MinorSecond;
sourceimpl MidiSend for Chord
impl MidiSend for Chord
fn send_midi_with_duration(
&self,
conn_out: &mut MidiOutputConnection,
duration: u64,
velocity: u8
)
fn send_midi(&self, status: Status, conn_out: &mut MidiOutputConnection)
Auto Trait Implementations
impl RefUnwindSafe for Chord
impl Send for Chord
impl Sync for Chord
impl Unpin for Chord
impl UnwindSafe for Chord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more