12 #ifdef USE_MIDI_CALLBACK
26 static const float EXP;
27 static const float LIN;
28 static const float LOG;
29 static const uint16_t
ON;
30 static const uint16_t
OFF;
63 #ifdef USE_MIDI_CALLBACK
float getElapsedBlockTime()
float getParameterValue(PatchParameterId pid)
IntParameter getIntParameter(const char *name, int min, int max, int defaultValue=0, float lambda=0.0f, float delta=0.0, float skew=LIN)
AudioBuffer * createMemoryBuffer(int channels, int samples)
void setParameterValue(PatchParameterId pid, float value)
FloatParameter getParameter(const char *name, float defaultValue)
virtual void buttonChanged(PatchButtonId bid, uint16_t value, uint16_t samples)
bool isButtonPressed(PatchButtonId bid)
static const uint16_t OFF
static const float EXP
constant skew values for exponential, linear and logarithmic parameters
FloatParameter getFloatParameter(const char *name, float min, float max, float defaultValue=0.0f, float lambda=0.0f, float delta=0.0, float skew=LIN)
virtual void encoderChanged(PatchParameterId pid, int16_t delta, uint16_t samples)
void registerParameter(PatchParameterId pid, const char *name, const char *desc)
void setButton(PatchButtonId bid, uint16_t value, uint16_t samples=0)
int getSamplesSinceButtonPressed(PatchButtonId bid)
virtual void processAudio(AudioBuffer &audio)=0
int getNumberOfChannels()
void registerParameter(PatchParameterId pid, const char *name)
Resource * getResource(const char *name)
Get a resource (such as a stored FloatArray) from the firmware.