[][src]Enum fpsdk::host::GetName

pub enum GetName {
    Param(usize),
    ParamValue(usizeisize),
    Semitone(u8u8),
    Patch(usize),
    VoiceLevel(usize),
    VoiceLevelHint(usize),
    Preset(usize),
    OutCtrl(usize),
    VoiceColor(u8),
    OutVoice(usize),
    Unknown,
}

The host sends this message when it wants to know a text representation of some value.

See Plugin::name_of

Variants

Param(usize)

Retrieve the name of a parameter.

Value specifies parameter index.

ParamValue(usizeisize)

Retrieve the text representation of the value of a parameter for use in the event editor.

The first value specifies parameter index.

The second value specifies value.

Semitone(u8u8)

Retrieve the name of a note in piano roll.

The first value specifies note index.

The second one specifies the color (or MIDI channel).

Patch(usize)

(not used yet) Retrieve the name of a patch.

The value specifies patch index.

VoiceLevel(usize)

(optional) Retrieve the name of a per-voice parameter, specified by the value.

Default is filter cutoff (value=0) and resonance (value=1).

VoiceLevelHint(usize)

Longer description for per-voice parameter (works like VoiceLevel)

Preset(usize)

This is called when the host wants to know the name of a preset, for plugins that support presets (see PluginMessage::SetNumPresets).

The value specifies preset index.

OutCtrl(usize)

For plugins that output controllers, retrieve the name of output controller.

The value specifies controller index.

VoiceColor(u8)

Retrieve name of per-voice color (MIDI channel).

The value specifies the color.

OutVoice(usize)

For plugins that output voices, retrieve the name of output voice.

The value specifies voice index.

Unknown

Message ID is unknown

Trait Implementations

impl Debug for GetName[src]

impl From<GetName> for Option<FlMessage>[src]

Auto Trait Implementations

impl RefUnwindSafe for GetName

impl Send for GetName

impl Sync for GetName

impl Unpin for GetName

impl UnwindSafe for GetName

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.