Update generated source

This commit is contained in:
Jean Pierre Cimalando 2020-02-07 02:22:28 +01:00
parent 9999ca65d3
commit d12b3f490d
48 changed files with 672 additions and 672 deletions

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chApf1p : public dsp { class faust2chApf1p : public sfzFilterDsp {
public: public:
@ -43,13 +43,13 @@ class faust2chApf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faust2chApf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -89,16 +89,16 @@ class faust2chApf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -110,28 +110,28 @@ class faust2chApf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chApf1p* clone() { virtual faust2chApf1p* clone() {
return new faust2chApf1p(); return new faust2chApf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBpf1p : public dsp { class faust2chBpf1p : public sfzFilterDsp {
public: public:
@ -45,13 +45,13 @@ class faust2chBpf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -69,7 +69,7 @@ class faust2chBpf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -91,16 +91,16 @@ class faust2chBpf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec2[l0] = 0.0; fRec2[l0] = 0.0;
} }
@ -118,28 +118,28 @@ class faust2chBpf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBpf1p* clone() { virtual faust2chBpf1p* clone() {
return new faust2chBpf1p(); return new faust2chBpf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBpf2p : public dsp { class faust2chBpf2p : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faust2chBpf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -72,7 +72,7 @@ class faust2chBpf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -94,17 +94,17 @@ class faust2chBpf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -128,28 +128,28 @@ class faust2chBpf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBpf2p* clone() { virtual faust2chBpf2p* clone() {
return new faust2chBpf2p(); return new faust2chBpf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBpf2pSv : public dsp { class faust2chBpf2pSv : public sfzFilterDsp {
public: public:
@ -49,13 +49,13 @@ class faust2chBpf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -73,7 +73,7 @@ class faust2chBpf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -95,17 +95,17 @@ class faust2chBpf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec3[l0] = 0.0; fRec3[l0] = 0.0;
} }
@ -132,28 +132,28 @@ class faust2chBpf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBpf2pSv* clone() { virtual faust2chBpf2pSv* clone() {
return new faust2chBpf2pSv(); return new faust2chBpf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBpf4p : public dsp { class faust2chBpf4p : public sfzFilterDsp {
public: public:
@ -50,13 +50,13 @@ class faust2chBpf4p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -74,7 +74,7 @@ class faust2chBpf4p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -96,17 +96,17 @@ class faust2chBpf4p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -136,28 +136,28 @@ class faust2chBpf4p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBpf4p* clone() { virtual faust2chBpf4p* clone() {
return new faust2chBpf4p(); return new faust2chBpf4p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBpf6p : public dsp { class faust2chBpf6p : public sfzFilterDsp {
public: public:
@ -52,13 +52,13 @@ class faust2chBpf6p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -76,7 +76,7 @@ class faust2chBpf6p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -98,17 +98,17 @@ class faust2chBpf6p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -144,28 +144,28 @@ class faust2chBpf6p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBpf6p* clone() { virtual faust2chBpf6p* clone() {
return new faust2chBpf6p(); return new faust2chBpf6p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBrf1p : public dsp { class faust2chBrf1p : public sfzFilterDsp {
public: public:
@ -45,13 +45,13 @@ class faust2chBrf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -69,7 +69,7 @@ class faust2chBrf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -91,16 +91,16 @@ class faust2chBrf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec2[l0] = 0.0; fRec2[l0] = 0.0;
} }
@ -118,28 +118,28 @@ class faust2chBrf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBrf1p* clone() { virtual faust2chBrf1p* clone() {
return new faust2chBrf1p(); return new faust2chBrf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBrf2p : public dsp { class faust2chBrf2p : public sfzFilterDsp {
public: public:
@ -46,13 +46,13 @@ class faust2chBrf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -70,7 +70,7 @@ class faust2chBrf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -92,17 +92,17 @@ class faust2chBrf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -120,28 +120,28 @@ class faust2chBrf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBrf2p* clone() { virtual faust2chBrf2p* clone() {
return new faust2chBrf2p(); return new faust2chBrf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chBrf2pSv : public dsp { class faust2chBrf2pSv : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faust2chBrf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -72,7 +72,7 @@ class faust2chBrf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -94,17 +94,17 @@ class faust2chBrf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec5[l0] = 0.0; fRec5[l0] = 0.0;
} }
@ -128,28 +128,28 @@ class faust2chBrf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chBrf2pSv* clone() { virtual faust2chBrf2pSv* clone() {
return new faust2chBrf2pSv(); return new faust2chBrf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -28,7 +28,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chEq : public dsp { class faust2chEq : public sfzFilterDsp {
public: public:
@ -51,13 +51,13 @@ class faust2chEq : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -75,7 +75,7 @@ class faust2chEq : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -97,20 +97,20 @@ class faust2chEq : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))); fConst0 = std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)));
fConst1 = (6.2831853071795862 / fConst0); fConst1 = (6.2831853071795862 / fConst0);
fConst2 = (2.1775860903036022 / fConst0); fConst2 = (2.1775860903036022 / fConst0);
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fBandwidth = FAUSTFLOAT(1.0); fBandwidth = FAUSTFLOAT(1.0);
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -131,28 +131,28 @@ class faust2chEq : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chEq* clone() { virtual faust2chEq* clone() {
return new faust2chEq(); return new faust2chEq();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chHpf1p : public dsp { class faust2chHpf1p : public sfzFilterDsp {
public: public:
@ -43,13 +43,13 @@ class faust2chHpf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faust2chHpf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -89,16 +89,16 @@ class faust2chHpf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -110,28 +110,28 @@ class faust2chHpf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chHpf1p* clone() { virtual faust2chHpf1p* clone() {
return new faust2chHpf1p(); return new faust2chHpf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chHpf2p : public dsp { class faust2chHpf2p : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faust2chHpf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -71,7 +71,7 @@ class faust2chHpf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -93,17 +93,17 @@ class faust2chHpf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -124,28 +124,28 @@ class faust2chHpf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chHpf2p* clone() { virtual faust2chHpf2p* clone() {
return new faust2chHpf2p(); return new faust2chHpf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chHpf2pSv : public dsp { class faust2chHpf2pSv : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faust2chHpf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -72,7 +72,7 @@ class faust2chHpf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -94,17 +94,17 @@ class faust2chHpf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec4[l0] = 0.0; fRec4[l0] = 0.0;
} }
@ -128,28 +128,28 @@ class faust2chHpf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chHpf2pSv* clone() { virtual faust2chHpf2pSv* clone() {
return new faust2chHpf2pSv(); return new faust2chHpf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chHpf4p : public dsp { class faust2chHpf4p : public sfzFilterDsp {
public: public:
@ -49,13 +49,13 @@ class faust2chHpf4p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -73,7 +73,7 @@ class faust2chHpf4p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -95,17 +95,17 @@ class faust2chHpf4p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -132,28 +132,28 @@ class faust2chHpf4p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chHpf4p* clone() { virtual faust2chHpf4p* clone() {
return new faust2chHpf4p(); return new faust2chHpf4p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chHpf6p : public dsp { class faust2chHpf6p : public sfzFilterDsp {
public: public:
@ -51,13 +51,13 @@ class faust2chHpf6p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -75,7 +75,7 @@ class faust2chHpf6p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -97,17 +97,17 @@ class faust2chHpf6p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -140,28 +140,28 @@ class faust2chHpf6p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chHpf6p* clone() { virtual faust2chHpf6p* clone() {
return new faust2chHpf6p(); return new faust2chHpf6p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chHsh : public dsp { class faust2chHsh : public sfzFilterDsp {
public: public:
@ -49,13 +49,13 @@ class faust2chHsh : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -73,7 +73,7 @@ class faust2chHsh : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -95,18 +95,18 @@ class faust2chHsh : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -130,28 +130,28 @@ class faust2chHsh : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chHsh* clone() { virtual faust2chHsh* clone() {
return new faust2chHsh(); return new faust2chHsh();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chLpf1p : public dsp { class faust2chLpf1p : public sfzFilterDsp {
public: public:
@ -43,13 +43,13 @@ class faust2chLpf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faust2chLpf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -89,16 +89,16 @@ class faust2chLpf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -110,28 +110,28 @@ class faust2chLpf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chLpf1p* clone() { virtual faust2chLpf1p* clone() {
return new faust2chLpf1p(); return new faust2chLpf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chLpf2p : public dsp { class faust2chLpf2p : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faust2chLpf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -71,7 +71,7 @@ class faust2chLpf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -93,17 +93,17 @@ class faust2chLpf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -124,28 +124,28 @@ class faust2chLpf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chLpf2p* clone() { virtual faust2chLpf2p* clone() {
return new faust2chLpf2p(); return new faust2chLpf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chLpf2pSv : public dsp { class faust2chLpf2pSv : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faust2chLpf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -72,7 +72,7 @@ class faust2chLpf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -94,17 +94,17 @@ class faust2chLpf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec3[l0] = 0.0; fRec3[l0] = 0.0;
} }
@ -128,28 +128,28 @@ class faust2chLpf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chLpf2pSv* clone() { virtual faust2chLpf2pSv* clone() {
return new faust2chLpf2pSv(); return new faust2chLpf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chLpf4p : public dsp { class faust2chLpf4p : public sfzFilterDsp {
public: public:
@ -49,13 +49,13 @@ class faust2chLpf4p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -73,7 +73,7 @@ class faust2chLpf4p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -95,17 +95,17 @@ class faust2chLpf4p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -132,28 +132,28 @@ class faust2chLpf4p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chLpf4p* clone() { virtual faust2chLpf4p* clone() {
return new faust2chLpf4p(); return new faust2chLpf4p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chLpf6p : public dsp { class faust2chLpf6p : public sfzFilterDsp {
public: public:
@ -51,13 +51,13 @@ class faust2chLpf6p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -75,7 +75,7 @@ class faust2chLpf6p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -97,17 +97,17 @@ class faust2chLpf6p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -140,28 +140,28 @@ class faust2chLpf6p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chLpf6p* clone() { virtual faust2chLpf6p* clone() {
return new faust2chLpf6p(); return new faust2chLpf6p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chLsh : public dsp { class faust2chLsh : public sfzFilterDsp {
public: public:
@ -49,13 +49,13 @@ class faust2chLsh : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -73,7 +73,7 @@ class faust2chLsh : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -95,18 +95,18 @@ class faust2chLsh : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -130,28 +130,28 @@ class faust2chLsh : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chLsh* clone() { virtual faust2chLsh* clone() {
return new faust2chLsh(); return new faust2chLsh();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chPeq : public dsp { class faust2chPeq : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faust2chPeq : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -72,7 +72,7 @@ class faust2chPeq : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -94,18 +94,18 @@ class faust2chPeq : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -126,28 +126,28 @@ class faust2chPeq : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chPeq* clone() { virtual faust2chPeq* clone() {
return new faust2chPeq(); return new faust2chPeq();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -26,7 +26,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faust2chPink : public dsp { class faust2chPink : public sfzFilterDsp {
public: public:
@ -39,13 +39,13 @@ class faust2chPink : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 2; return 2;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 2; return 2;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -63,7 +63,7 @@ class faust2chPink : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -85,14 +85,14 @@ class faust2chPink : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 4); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 4); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -101,28 +101,28 @@ class faust2chPink : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faust2chPink* clone() { virtual faust2chPink* clone() {
return new faust2chPink(); return new faust2chPink();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* input1 = inputs[1]; FAUSTFLOAT* input1 = inputs[1];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustApf1p : public dsp { class faustApf1p : public sfzFilterDsp {
public: public:
@ -42,13 +42,13 @@ class faustApf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -62,7 +62,7 @@ class faustApf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -80,16 +80,16 @@ class faustApf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -98,28 +98,28 @@ class faustApf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustApf1p* clone() { virtual faustApf1p* clone() {
return new faustApf1p(); return new faustApf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * ((fConst0 * double(fCutoff)) + -1.0)); double fSlow0 = (0.0010000000000000009 * ((fConst0 * double(fCutoff)) + -1.0));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBpf1p : public dsp { class faustBpf1p : public sfzFilterDsp {
public: public:
@ -43,13 +43,13 @@ class faustBpf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -63,7 +63,7 @@ class faustBpf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -81,16 +81,16 @@ class faustBpf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec2[l0] = 0.0; fRec2[l0] = 0.0;
} }
@ -102,28 +102,28 @@ class faustBpf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBpf1p* clone() { virtual faustBpf1p* clone() {
return new faustBpf1p(); return new faustBpf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::exp((fConst0 * (0.0 - (6.2831853071795862 * double(fCutoff)))))); double fSlow0 = (0.0010000000000000009 * std::exp((fConst0 * (0.0 - (6.2831853071795862 * double(fCutoff))))));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBpf2p : public dsp { class faustBpf2p : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faustBpf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faustBpf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -85,17 +85,17 @@ class faustBpf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -116,28 +116,28 @@ class faustBpf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBpf2p* clone() { virtual faustBpf2p* clone() {
return new faustBpf2p(); return new faustBpf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBpf2pSv : public dsp { class faustBpf2pSv : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faustBpf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faustBpf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -85,17 +85,17 @@ class faustBpf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec3[l0] = 0.0; fRec3[l0] = 0.0;
} }
@ -116,28 +116,28 @@ class faustBpf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBpf2pSv* clone() { virtual faustBpf2pSv* clone() {
return new faustBpf2pSv(); return new faustBpf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff)))); double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff))));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBpf4p : public dsp { class faustBpf4p : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faustBpf4p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -68,7 +68,7 @@ class faustBpf4p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -86,17 +86,17 @@ class faustBpf4p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -120,28 +120,28 @@ class faustBpf4p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBpf4p* clone() { virtual faustBpf4p* clone() {
return new faustBpf4p(); return new faustBpf4p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBpf6p : public dsp { class faustBpf6p : public sfzFilterDsp {
public: public:
@ -49,13 +49,13 @@ class faustBpf6p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -69,7 +69,7 @@ class faustBpf6p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -87,17 +87,17 @@ class faustBpf6p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -124,28 +124,28 @@ class faustBpf6p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBpf6p* clone() { virtual faustBpf6p* clone() {
return new faustBpf6p(); return new faustBpf6p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBrf1p : public dsp { class faustBrf1p : public sfzFilterDsp {
public: public:
@ -43,13 +43,13 @@ class faustBrf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -63,7 +63,7 @@ class faustBrf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -81,16 +81,16 @@ class faustBrf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec2[l0] = 0.0; fRec2[l0] = 0.0;
} }
@ -102,28 +102,28 @@ class faustBrf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBrf1p* clone() { virtual faustBrf1p* clone() {
return new faustBrf1p(); return new faustBrf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * ((fConst0 * double(fCutoff)) + -1.0)); double fSlow0 = (0.0010000000000000009 * ((fConst0 * double(fCutoff)) + -1.0));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBrf2p : public dsp { class faustBrf2p : public sfzFilterDsp {
public: public:
@ -45,13 +45,13 @@ class faustBrf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -65,7 +65,7 @@ class faustBrf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -83,17 +83,17 @@ class faustBrf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -108,28 +108,28 @@ class faustBrf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBrf2p* clone() { virtual faustBrf2p* clone() {
return new faustBrf2p(); return new faustBrf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustBrf2pSv : public dsp { class faustBrf2pSv : public sfzFilterDsp {
public: public:
@ -46,13 +46,13 @@ class faustBrf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -66,7 +66,7 @@ class faustBrf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -84,17 +84,17 @@ class faustBrf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec5[l0] = 0.0; fRec5[l0] = 0.0;
} }
@ -112,28 +112,28 @@ class faustBrf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustBrf2pSv* clone() { virtual faustBrf2pSv* clone() {
return new faustBrf2pSv(); return new faustBrf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff)))); double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff))));

View file

@ -28,7 +28,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustEq : public dsp { class faustEq : public sfzFilterDsp {
public: public:
@ -50,13 +50,13 @@ class faustEq : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -70,7 +70,7 @@ class faustEq : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -88,20 +88,20 @@ class faustEq : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))); fConst0 = std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)));
fConst1 = (6.2831853071795862 / fConst0); fConst1 = (6.2831853071795862 / fConst0);
fConst2 = (2.1775860903036022 / fConst0); fConst2 = (2.1775860903036022 / fConst0);
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fBandwidth = FAUSTFLOAT(1.0); fBandwidth = FAUSTFLOAT(1.0);
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -119,28 +119,28 @@ class faustEq : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustEq* clone() { virtual faustEq* clone() {
return new faustEq(); return new faustEq();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = std::max<double>(0.0, double(fCutoff)); double fSlow0 = std::max<double>(0.0, double(fCutoff));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustHpf1p : public dsp { class faustHpf1p : public sfzFilterDsp {
public: public:
@ -42,13 +42,13 @@ class faustHpf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -62,7 +62,7 @@ class faustHpf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -80,16 +80,16 @@ class faustHpf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -98,28 +98,28 @@ class faustHpf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustHpf1p* clone() { virtual faustHpf1p* clone() {
return new faustHpf1p(); return new faustHpf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::exp((fConst0 * (0.0 - (6.2831853071795862 * double(fCutoff)))))); double fSlow0 = (0.0010000000000000009 * std::exp((fConst0 * (0.0 - (6.2831853071795862 * double(fCutoff))))));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustHpf2p : public dsp { class faustHpf2p : public sfzFilterDsp {
public: public:
@ -46,13 +46,13 @@ class faustHpf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -66,7 +66,7 @@ class faustHpf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -84,17 +84,17 @@ class faustHpf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -112,28 +112,28 @@ class faustHpf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustHpf2p* clone() { virtual faustHpf2p* clone() {
return new faustHpf2p(); return new faustHpf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustHpf2pSv : public dsp { class faustHpf2pSv : public sfzFilterDsp {
public: public:
@ -46,13 +46,13 @@ class faustHpf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -66,7 +66,7 @@ class faustHpf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -84,17 +84,17 @@ class faustHpf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec4[l0] = 0.0; fRec4[l0] = 0.0;
} }
@ -112,28 +112,28 @@ class faustHpf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustHpf2pSv* clone() { virtual faustHpf2pSv* clone() {
return new faustHpf2pSv(); return new faustHpf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff)))); double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff))));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustHpf4p : public dsp { class faustHpf4p : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faustHpf4p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faustHpf4p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -85,17 +85,17 @@ class faustHpf4p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -116,28 +116,28 @@ class faustHpf4p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustHpf4p* clone() { virtual faustHpf4p* clone() {
return new faustHpf4p(); return new faustHpf4p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustHpf6p : public dsp { class faustHpf6p : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faustHpf6p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -68,7 +68,7 @@ class faustHpf6p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -86,17 +86,17 @@ class faustHpf6p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -120,28 +120,28 @@ class faustHpf6p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustHpf6p* clone() { virtual faustHpf6p* clone() {
return new faustHpf6p(); return new faustHpf6p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustHsh : public dsp { class faustHsh : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faustHsh : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -68,7 +68,7 @@ class faustHsh : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -86,18 +86,18 @@ class faustHsh : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -118,28 +118,28 @@ class faustHsh : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustHsh* clone() { virtual faustHsh* clone() {
return new faustHsh(); return new faustHsh();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = std::pow(10.0, (0.025000000000000001 * double(fPkShGain))); double fSlow0 = std::pow(10.0, (0.025000000000000001 * double(fPkShGain)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustLpf1p : public dsp { class faustLpf1p : public sfzFilterDsp {
public: public:
@ -42,13 +42,13 @@ class faustLpf1p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -62,7 +62,7 @@ class faustLpf1p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -80,16 +80,16 @@ class faustLpf1p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (1.0 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -98,28 +98,28 @@ class faustLpf1p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustLpf1p* clone() { virtual faustLpf1p* clone() {
return new faustLpf1p(); return new faustLpf1p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::exp((fConst0 * (0.0 - (6.2831853071795862 * double(fCutoff)))))); double fSlow0 = (0.0010000000000000009 * std::exp((fConst0 * (0.0 - (6.2831853071795862 * double(fCutoff))))));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustLpf2p : public dsp { class faustLpf2p : public sfzFilterDsp {
public: public:
@ -46,13 +46,13 @@ class faustLpf2p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -66,7 +66,7 @@ class faustLpf2p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -84,17 +84,17 @@ class faustLpf2p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -112,28 +112,28 @@ class faustLpf2p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustLpf2p* clone() { virtual faustLpf2p* clone() {
return new faustLpf2p(); return new faustLpf2p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustLpf2pSv : public dsp { class faustLpf2pSv : public sfzFilterDsp {
public: public:
@ -46,13 +46,13 @@ class faustLpf2pSv : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -66,7 +66,7 @@ class faustLpf2pSv : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -84,17 +84,17 @@ class faustLpf2pSv : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (3.1415926535897931 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec3[l0] = 0.0; fRec3[l0] = 0.0;
} }
@ -112,28 +112,28 @@ class faustLpf2pSv : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustLpf2pSv* clone() { virtual faustLpf2pSv* clone() {
return new faustLpf2pSv(); return new faustLpf2pSv();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff)))); double fSlow0 = (0.0010000000000000009 * std::tan((fConst0 * double(fCutoff))));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustLpf4p : public dsp { class faustLpf4p : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faustLpf4p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faustLpf4p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -85,17 +85,17 @@ class faustLpf4p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -116,28 +116,28 @@ class faustLpf4p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustLpf4p* clone() { virtual faustLpf4p* clone() {
return new faustLpf4p(); return new faustLpf4p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustLpf6p : public dsp { class faustLpf6p : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faustLpf6p : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -68,7 +68,7 @@ class faustLpf6p : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -86,17 +86,17 @@ class faustLpf6p : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
@ -120,28 +120,28 @@ class faustLpf6p : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustLpf6p* clone() { virtual faustLpf6p* clone() {
return new faustLpf6p(); return new faustLpf6p();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustLsh : public dsp { class faustLsh : public sfzFilterDsp {
public: public:
@ -48,13 +48,13 @@ class faustLsh : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -68,7 +68,7 @@ class faustLsh : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -86,18 +86,18 @@ class faustLsh : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -118,28 +118,28 @@ class faustLsh : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustLsh* clone() { virtual faustLsh* clone() {
return new faustLsh(); return new faustLsh();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = std::pow(10.0, (0.025000000000000001 * double(fPkShGain))); double fSlow0 = std::pow(10.0, (0.025000000000000001 * double(fPkShGain)));

View file

@ -27,7 +27,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustPeq : public dsp { class faustPeq : public sfzFilterDsp {
public: public:
@ -47,13 +47,13 @@ class faustPeq : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -67,7 +67,7 @@ class faustPeq : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -85,18 +85,18 @@ class faustPeq : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate)))); fConst0 = (6.2831853071795862 / std::min<double>(192000.0, std::max<double>(1.0, double(fSampleRate))));
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
fCutoff = FAUSTFLOAT(440.0); fCutoff = FAUSTFLOAT(440.0);
fQ = FAUSTFLOAT(0.0); fQ = FAUSTFLOAT(0.0);
fPkShGain = FAUSTFLOAT(0.0); fPkShGain = FAUSTFLOAT(0.0);
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) {
fRec1[l0] = 0.0; fRec1[l0] = 0.0;
} }
@ -114,28 +114,28 @@ class faustPeq : public dsp {
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustPeq* clone() { virtual faustPeq* clone() {
return new faustPeq(); return new faustPeq();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff))); double fSlow0 = (fConst0 * std::max<double>(0.0, double(fCutoff)));

View file

@ -26,7 +26,7 @@ Compilation options: -lang cpp -inpl -double -ftz 0
#define exp10 __exp10 #define exp10 __exp10
#endif #endif
class faustPink : public dsp { class faustPink : public sfzFilterDsp {
public: public:
@ -38,13 +38,13 @@ class faustPink : public dsp {
void metadata(Meta* m) { void metadata(Meta* m) {
} }
int getNumInputs() { virtual int getNumInputs() {
return 1; return 1;
} }
int getNumOutputs() { virtual int getNumOutputs() {
return 1; return 1;
} }
int getInputRate(int channel) { virtual int getInputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -58,7 +58,7 @@ class faustPink : public dsp {
} }
return rate; return rate;
} }
int getOutputRate(int channel) { virtual int getOutputRate(int channel) {
int rate; int rate;
switch ((channel)) { switch ((channel)) {
case 0: { case 0: {
@ -76,41 +76,41 @@ class faustPink : public dsp {
static void classInit(int sample_rate) { static void classInit(int sample_rate) {
} }
void instanceConstants(int sample_rate) { virtual void instanceConstants(int sample_rate) {
fSampleRate = sample_rate; fSampleRate = sample_rate;
} }
void instanceResetUserInterface() { virtual void instanceResetUserInterface() {
} }
void instanceClear() { virtual void instanceClear() {
for (int l0 = 0; (l0 < 4); l0 = (l0 + 1)) { for (int l0 = 0; (l0 < 4); l0 = (l0 + 1)) {
fRec0[l0] = 0.0; fRec0[l0] = 0.0;
} }
} }
void init(int sample_rate) { virtual void init(int sample_rate) {
classInit(sample_rate); classInit(sample_rate);
instanceInit(sample_rate); instanceInit(sample_rate);
} }
void instanceInit(int sample_rate) { virtual void instanceInit(int sample_rate) {
instanceConstants(sample_rate); instanceConstants(sample_rate);
instanceResetUserInterface(); instanceResetUserInterface();
instanceClear(); instanceClear();
} }
faustPink* clone() { virtual faustPink* clone() {
return new faustPink(); return new faustPink();
} }
int getSampleRate() { virtual int getSampleRate() {
return fSampleRate; return fSampleRate;
} }
void buildUserInterface(UI* ui_interface) { virtual void buildUserInterface(UI* ui_interface) {
} }
void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) {
FAUSTFLOAT* input0 = inputs[0]; FAUSTFLOAT* input0 = inputs[0];
FAUSTFLOAT* output0 = outputs[0]; FAUSTFLOAT* output0 = outputs[0];
for (int i = 0; (i < count); i = (i + 1)) { for (int i = 0; (i < count); i = (i + 1)) {