|
| virtual void | buttonChanged (PatchButtonId bid, uint16_t value, uint16_t samples) |
| |
| AudioBuffer * | createMemoryBuffer (int channels, int samples) |
| |
| virtual void | encoderChanged (PatchParameterId pid, int16_t delta, uint16_t samples) |
| |
| float | getBlockRate () |
| |
| int | getBlockSize () |
| |
| float | getElapsedBlockTime () |
| |
| int | getElapsedCycles () |
| |
| FloatParameter | getFloatParameter (const char *name, float min, float max, float defaultValue=0.0f, float lambda=0.0f, float delta=0.0, float skew=LIN) |
| |
| IntParameter | getIntParameter (const char *name, int min, int max, int defaultValue=0, float lambda=0.0f, float delta=0.0, float skew=LIN) |
| |
| int | getNumberOfChannels () |
| |
| FloatParameter | getParameter (const char *name, float defaultValue) |
| |
| float | getParameterValue (PatchParameterId pid) |
| |
| Resource * | getResource (const char *name) |
| | Get a resource (such as a stored FloatArray) from the firmware. More...
|
| |
| float | getSampleRate () |
| |
| int | getSamplesSinceButtonPressed (PatchButtonId bid) |
| |
| bool | isButtonPressed (PatchButtonId bid) |
| |
| | Patch () |
| |
| virtual void | processAudio (AudioBuffer &audio)=0 |
| |
| void | registerParameter (PatchParameterId pid, const char *name) |
| |
| void | registerParameter (PatchParameterId pid, const char *name, const char *desc) |
| |
| void | setButton (PatchButtonId bid, uint16_t value, uint16_t samples=0) |
| |
| void | setParameterValue (PatchParameterId pid, float value) |
| |
| virtual | ~Patch () |
| |
|
| static const float | EXP |
| | constant skew values for exponential, linear and logarithmic parameters More...
|
| |
| static const float | LIN |
| |
| static const float | LOG |
| |
| static const uint16_t | OFF |
| |
| static const uint16_t | ON |
| |
Definition at line 21 of file Patch.h.
◆ Patch()
◆ ~Patch()
| virtual Patch::~Patch |
( |
| ) |
|
|
virtual |
◆ buttonChanged()
| virtual void Patch::buttonChanged |
( |
PatchButtonId |
bid, |
|
|
uint16_t |
value, |
|
|
uint16_t |
samples |
|
) |
| |
|
inlinevirtual |
◆ createMemoryBuffer()
| AudioBuffer* Patch::createMemoryBuffer |
( |
int |
channels, |
|
|
int |
samples |
|
) |
| |
◆ encoderChanged()
| virtual void Patch::encoderChanged |
( |
PatchParameterId |
pid, |
|
|
int16_t |
delta, |
|
|
uint16_t |
samples |
|
) |
| |
|
inlinevirtual |
◆ getBlockRate()
| float Patch::getBlockRate |
( |
| ) |
|
◆ getBlockSize()
| int Patch::getBlockSize |
( |
| ) |
|
◆ getElapsedBlockTime()
| float Patch::getElapsedBlockTime |
( |
| ) |
|
◆ getElapsedCycles()
| int Patch::getElapsedCycles |
( |
| ) |
|
◆ getFloatParameter()
| FloatParameter Patch::getFloatParameter |
( |
const char * |
name, |
|
|
float |
min, |
|
|
float |
max, |
|
|
float |
defaultValue = 0.0f, |
|
|
float |
lambda = 0.0f, |
|
|
float |
delta = 0.0, |
|
|
float |
skew = LIN |
|
) |
| |
◆ getIntParameter()
| IntParameter Patch::getIntParameter |
( |
const char * |
name, |
|
|
int |
min, |
|
|
int |
max, |
|
|
int |
defaultValue = 0, |
|
|
float |
lambda = 0.0f, |
|
|
float |
delta = 0.0, |
|
|
float |
skew = LIN |
|
) |
| |
◆ getNumberOfChannels()
| int Patch::getNumberOfChannels |
( |
| ) |
|
◆ getParameter()
| FloatParameter Patch::getParameter |
( |
const char * |
name, |
|
|
float |
defaultValue |
|
) |
| |
◆ getParameterValue()
◆ getResource()
| Resource* Patch::getResource |
( |
const char * |
name | ) |
|
Get a resource (such as a stored FloatArray) from the firmware.
If the resource does not exist, this raises an error. If the resource exists but is not memory mapped, this will allocate new memory.
◆ getSampleRate()
| float Patch::getSampleRate |
( |
| ) |
|
◆ getSamplesSinceButtonPressed()
◆ isButtonPressed()
◆ processAudio()
| virtual void Patch::processAudio |
( |
AudioBuffer & |
audio | ) |
|
|
pure virtual |
◆ registerParameter() [1/2]
◆ registerParameter() [2/2]
| void Patch::registerParameter |
( |
PatchParameterId |
pid, |
|
|
const char * |
name, |
|
|
const char * |
desc |
|
) |
| |
|
inline |
◆ setButton()
| void Patch::setButton |
( |
PatchButtonId |
bid, |
|
|
uint16_t |
value, |
|
|
uint16_t |
samples = 0 |
|
) |
| |
◆ setParameterValue()
◆ EXP
constant skew values for exponential, linear and logarithmic parameters
Definition at line 26 of file Patch.h.
◆ LIN
◆ LOG
◆ OFF
| const uint16_t Patch::OFF |
|
static |
◆ ON
The documentation for this class was generated from the following file: