|
|
@@ -47,6 +47,12 @@ DEPRECATED inline float interpf(const float *p, float x) {return interpolateLine |
|
|
|
DEPRECATED inline void complexMult(float *cr, float *ci, float ar, float ai, float br, float bi) {complexMult(ar, ai, br, bi, cr, ci);} |
|
|
|
DEPRECATED inline void cmultf(float *cr, float *ci, float ar, float ai, float br, float bi) {return complexMult(ar, ai, br, bi, cr, ci);} |
|
|
|
|
|
|
|
//////////////////// |
|
|
|
// string |
|
|
|
//////////////////// |
|
|
|
|
|
|
|
#define stringf string::f |
|
|
|
|
|
|
|
//////////////////// |
|
|
|
// random |
|
|
|
//////////////////// |
|
|
@@ -126,6 +132,15 @@ DEPRECATED TParamWidget *createParam(math::Vec pos, Module *module, int paramId, |
|
|
|
return o; |
|
|
|
} |
|
|
|
|
|
|
|
template <class TParamWidget> |
|
|
|
DEPRECATED TParamWidget *createParamCentered(math::Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) { |
|
|
|
TParamWidget *o = createParamCentered<TParamWidget>(pos, module, paramId); |
|
|
|
if (module) { |
|
|
|
module->configParam(paramId, minValue, maxValue, defaultValue); |
|
|
|
} |
|
|
|
return o; |
|
|
|
} |
|
|
|
|
|
|
|
/** Use createInput() and createOutput() without the `type` variable */ |
|
|
|
template <class TPortWidget> |
|
|
|
DEPRECATED TPortWidget *createPort(math::Vec pos, PortWidget::Type type, Module *module, int inputId) { |
|
|
|