1 //-----------------------------------------------------
3 // Code generated with Faust 0.9.58 (http://faust.grame.fr)
4 //-----------------------------------------------------
6 #define FAUSTFLOAT float
9 typedef long double quad
;
13 #define FAUSTCLASS mydsp
16 class mydsp
: public dsp
{
19 static void metadata(Meta
* m
) {
22 virtual int getNumInputs() { return 0; }
23 virtual int getNumOutputs() { return 4; }
24 static void classInit(int samplingFreq
) {
26 virtual void instanceInit(int samplingFreq
) {
27 fSamplingFreq
= samplingFreq
;
29 virtual void init(int samplingFreq
) {
30 classInit(samplingFreq
);
31 instanceInit(samplingFreq
);
33 virtual void buildUserInterface(UI
* interface
) {
34 interface
->openVerticalBox("even-odd-circuit.24.tmp");
35 interface
->closeBox();
37 virtual void compute (int count
, FAUSTFLOAT
** input
, FAUSTFLOAT
** output
) {
38 FAUSTFLOAT
* output0
= output
[0];
39 FAUSTFLOAT
* output1
= output
[1];
40 FAUSTFLOAT
* output2
= output
[2];
41 FAUSTFLOAT
* output3
= output
[3];
42 for (int i
=0; i
<count
; i
++) {
43 output0
[i
] = (FAUSTFLOAT
)0;
44 output1
[i
] = (FAUSTFLOAT
)2;
45 output2
[i
] = (FAUSTFLOAT
)4;
46 output3
[i
] = (FAUSTFLOAT
)6;