Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the units of a SoundFilter parameter. More...
#include <omSoundFilterParameterUnits.h>
Public Types | |
enum | Enum { UNDEFINED = 0, GENERIC = 1, DECIBELS = 2, PERCENT = 3, RATIO = 4, SECONDS = 5, MILLISECONDS = 6, HERTZ = 7, METERS = 8, DEGREES = 9, INDEX = 10, SAMPLES = 11, SAMPLE_RATE = 12, BPM = 13, BEATS = 14, CENTS = 15, SEMITONES = 16, OCTAVES = 17, MIDI_NOTE_NUMBER = 18, MIDI_CONTROL = 19 } |
An enum that specifies the allowed SoundFilter parameter types. More... | |
Public Member Functions | |
FilterParameterUnits () | |
Create a new filter parameter units object with an UNDEFINED parameter units. More... | |
FilterParameterUnits (Enum newUnits) | |
Create a new filter parameter units object with the specified units enum value. More... | |
operator Enum () const | |
Convert this filter parameter units type to an enum value. More... | |
UTF8String | getAbbreviation () const |
Return a string representing the abbreviated name of this parameter units. More... | |
UTF8String | toString () const |
Return a string representation of the parameter unit type. More... | |
operator UTF8String () const | |
Convert this parameter unit type into a string representation. More... | |
A class that represents the units of a SoundFilter parameter.
This value is used to determine how to display the filter parameter. Units are available for commonly used DSP parameter types.
An enum that specifies the allowed SoundFilter parameter types.
|
inline |
Create a new filter parameter units object with an UNDEFINED parameter units.
|
inline |
Create a new filter parameter units object with the specified units enum value.
|
inline |
Convert this filter parameter units type to an enum value.
This operator is provided so that the FilterParameterUnits object can be used directly in a switch statement without the need to explicitly access the underlying enum value.
UTF8String om::sound::filters::FilterParameterUnits::getAbbreviation | ( | ) | const |
Return a string representing the abbreviated name of this parameter units.
For some parameter types, this method may return an empty string, indicating there is no valid abbreviation for this unit type (linear gain, for example).
UTF8String om::sound::filters::FilterParameterUnits::toString | ( | ) | const |
Return a string representation of the parameter unit type.
This string is the same as the 'long' representation for this unit type. This string will not contain any abbreviations and shouldn't be used for compact display.
|
inline |
Convert this parameter unit type into a string representation.