#[repr(u32)]pub enum NoteDialect {
Clap = 1,
Midi = 2,
MidiMPE = 4,
Midi2 = 8,
}Variants§
Clap = 1
Uses clap_event_note and clap_event_note_expression.
Midi = 2
Uses clap_event_midi, no polyphonic expression
MidiMPE = 4
Uses clap_event_midi, with polyphonic expression (MPE)
Midi2 = 8
Uses clap_event_midi2
Implementations§
Source§impl NoteDialect
impl NoteDialect
Source§impl NoteDialect
impl NoteDialect
Sourcepub fn all() -> u32
pub fn all() -> u32
Examples found in repository?
examples/note_transpose.rs (line 31)
24 fn get(_: &Self, index: u32, is_input: bool) -> Option<clap::NotePortInfo> {
25 (index < 2).then(|| clap::NotePortInfo {
26 id: if is_input {
27 clap::ClapId::from(index as u16)
28 } else {
29 clap::ClapId::from(index as u16 + 2)
30 },
31 supported_dialects: clap::NoteDialect::all(),
32 preferred_dialect: clap::NoteDialect::Clap as u32,
33 name: if is_input {
34 format!("In {index}")
35 } else {
36 format!("Out {index}")
37 },
38 })
39 }Trait Implementations§
Source§impl Clone for NoteDialect
impl Clone for NoteDialect
Source§fn clone(&self) -> NoteDialect
fn clone(&self) -> NoteDialect
Returns a duplicate of the value. Read more
1.0.0 · 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 NoteDialect
impl Debug for NoteDialect
Source§impl From<NoteDialect> for u32
impl From<NoteDialect> for u32
Source§fn from(value: NoteDialect) -> Self
fn from(value: NoteDialect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NoteDialect
impl PartialEq for NoteDialect
impl Copy for NoteDialect
impl Eq for NoteDialect
impl StructuralPartialEq for NoteDialect
Auto Trait Implementations§
impl Freeze for NoteDialect
impl RefUnwindSafe for NoteDialect
impl Send for NoteDialect
impl Sync for NoteDialect
impl Unpin for NoteDialect
impl UnwindSafe for NoteDialect
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