pub enum PianoRollCell {
Note(TimedNote),
Drum(DrumCell),
ScaleDegree(ScaleDegreeCell),
Object(ObjectCell),
Automation(AutomationCell),
ControlChange(ControlChangeCell),
PitchBend(PitchBendCell),
PolyPressure(PolyPressureCell),
ChannelPressure(ChannelPressureCell),
Midi(MidiEvent),
}Expand description
A single placed event in a piano roll lane.
Each variant carries the cell payload appropriate to its lane kind.
Variants§
Note(TimedNote)
A pitched note.
Drum(DrumCell)
A drum hit.
ScaleDegree(ScaleDegreeCell)
A scale-degree note.
Object(ObjectCell)
A placed runtime object.
Automation(AutomationCell)
An automation breakpoint.
ControlChange(ControlChangeCell)
A MIDI control change.
PitchBend(PitchBendCell)
A MIDI pitch bend.
PolyPressure(PolyPressureCell)
A MIDI polyphonic key pressure.
ChannelPressure(ChannelPressureCell)
A MIDI channel pressure.
Midi(MidiEvent)
A raw MIDI event.
Implementations§
Source§impl PianoRollCell
impl PianoRollCell
Sourcepub fn kind_label(&self) -> &'static str
pub fn kind_label(&self) -> &'static str
Returns the wire label naming this cell’s variant.
Trait Implementations§
Source§impl Clone for PianoRollCell
impl Clone for PianoRollCell
Source§fn clone(&self) -> PianoRollCell
fn clone(&self) -> PianoRollCell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PianoRollCell
impl Debug for PianoRollCell
impl Eq for PianoRollCell
Source§impl PartialEq for PianoRollCell
impl PartialEq for PianoRollCell
impl StructuralPartialEq for PianoRollCell
Auto Trait Implementations§
impl Freeze for PianoRollCell
impl RefUnwindSafe for PianoRollCell
impl Send for PianoRollCell
impl Sync for PianoRollCell
impl Unpin for PianoRollCell
impl UnsafeUnpin for PianoRollCell
impl UnwindSafe for PianoRollCell
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