Audacity 3.2.0
|
Immutable description of an LV2 control port. More...
#include <LV2Ports.h>
Public Member Functions | |
LV2ControlPort (const LilvPort *port, int index, bool isInput, const wxString &symbol, const wxString &name, const TranslatableString &group, std::vector< double > scaleValues, wxArrayString scaleLabels, const wxString &units, float min, float max, float def, bool hasLo, bool hasHi, bool toggle, bool enumeration, bool integer, bool sampleRate, bool trigger, bool logarithmic) | |
size_t | Discretize (float value) const |
Map a real number to one of the scale points. More... | |
Public Member Functions inherited from LV2Port | |
LV2Port (const LilvPort *port, int index, bool isInput, const wxString &symbol, const wxString &name, const TranslatableString &group) | |
Public Attributes | |
const std::vector< double > | mScaleValues |
const wxArrayString | mScaleLabels |
const wxString | mUnits |
const float | mMin |
const float | mMax |
const float | mDef |
const bool | mHasLo |
const bool | mHasHi |
const bool | mToggle |
const bool | mEnumeration |
const bool | mInteger |
const bool | mSampleRate |
const bool | mTrigger |
const bool | mLogarithmic |
Public Attributes inherited from LV2Port | |
const LilvPort *const | mPort |
const uint32_t | mIndex |
const bool | mIsInput |
const wxString | mSymbol |
const wxString | mName |
const TranslatableString | mGroup |
Immutable description of an LV2 control port.
Definition at line 160 of file LV2Ports.h.
|
inline |
Definition at line 163 of file LV2Ports.h.
size_t LV2ControlPort::Discretize | ( | float | value | ) | const |
Map a real number to one of the scale points.
Definition at line 128 of file LV2Ports.cpp.
References mScaleValues.
const float LV2ControlPort::mDef |
Definition at line 189 of file LV2Ports.h.
const bool LV2ControlPort::mEnumeration |
Definition at line 193 of file LV2Ports.h.
const bool LV2ControlPort::mHasHi |
Definition at line 191 of file LV2Ports.h.
const bool LV2ControlPort::mHasLo |
Definition at line 190 of file LV2Ports.h.
const bool LV2ControlPort::mInteger |
Definition at line 194 of file LV2Ports.h.
const bool LV2ControlPort::mLogarithmic |
Definition at line 197 of file LV2Ports.h.
const float LV2ControlPort::mMax |
Definition at line 188 of file LV2Ports.h.
const float LV2ControlPort::mMin |
Definition at line 187 of file LV2Ports.h.
const bool LV2ControlPort::mSampleRate |
Definition at line 195 of file LV2Ports.h.
const wxArrayString LV2ControlPort::mScaleLabels |
Definition at line 184 of file LV2Ports.h.
const std::vector<double> LV2ControlPort::mScaleValues |
Definition at line 183 of file LV2Ports.h.
Referenced by Discretize().
const bool LV2ControlPort::mToggle |
Definition at line 192 of file LV2Ports.h.
const bool LV2ControlPort::mTrigger |
Definition at line 196 of file LV2Ports.h.
const wxString LV2ControlPort::mUnits |
Definition at line 186 of file LV2Ports.h.