pub struct Chord {
pub duration: Time,
pub symbol: String,
pub pitches: Vec<Pitch>,
pub velocity: u8,
pub channel: Channel,
}Expand description
A set of pitches sounded together, optionally tagged with a chord symbol.
Fields§
§duration: TimeSounding length of the chord.
symbol: StringChord symbol label (for example "Cmaj7").
pitches: Vec<Pitch>Pitches that make up the chord.
velocity: u8MIDI velocity (0-127) applied to every pitch.
channel: ChannelMIDI channel the chord plays on.
Implementations§
Trait Implementations§
impl Eq for Chord
Source§impl MusicObject for Chord
impl MusicObject for Chord
impl StructuralPartialEq for Chord
Auto Trait Implementations§
impl Freeze for Chord
impl RefUnwindSafe for Chord
impl Send for Chord
impl Sync for Chord
impl Unpin for Chord
impl UnsafeUnpin for Chord
impl UnwindSafe for Chord
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