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 8; }
23 virtual int getNumOutputs() { return 8; }
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("fft_test.4.tmp");
35 interface
->closeBox();
37 virtual void compute (int count
, FAUSTFLOAT
** input
, FAUSTFLOAT
** output
) {
38 FAUSTFLOAT
* input0
= input
[0];
39 FAUSTFLOAT
* input1
= input
[1];
40 FAUSTFLOAT
* input2
= input
[2];
41 FAUSTFLOAT
* input3
= input
[3];
42 FAUSTFLOAT
* input4
= input
[4];
43 FAUSTFLOAT
* input5
= input
[5];
44 FAUSTFLOAT
* input6
= input
[6];
45 FAUSTFLOAT
* input7
= input
[7];
46 FAUSTFLOAT
* output0
= output
[0];
47 FAUSTFLOAT
* output1
= output
[1];
48 FAUSTFLOAT
* output2
= output
[2];
49 FAUSTFLOAT
* output3
= output
[3];
50 FAUSTFLOAT
* output4
= output
[4];
51 FAUSTFLOAT
* output5
= output
[5];
52 FAUSTFLOAT
* output6
= output
[6];
53 FAUSTFLOAT
* output7
= output
[7];
54 for (int i
=0; i
<count
; i
++) {
55 float fTemp0
= (float)input1
[i
];
56 float fTemp1
= (float)input0
[i
];
57 float fTemp2
= (fTemp1
+ fTemp0
);
58 float fTemp3
= (float)input2
[i
];
59 float fTemp4
= (float)input3
[i
];
60 float fTemp5
= (fTemp4
+ (fTemp3
+ fTemp2
));
61 float fTemp6
= (float)input4
[i
];
62 float fTemp7
= (float)input5
[i
];
63 float fTemp8
= (float)input6
[i
];
64 float fTemp9
= (float)input7
[i
];
65 output0
[i
] = (FAUSTFLOAT
)(fTemp9
+ (fTemp8
+ (fTemp7
+ (fTemp6
+ fTemp5
))));
66 output1
[i
] = (FAUSTFLOAT
)(0 - ((fTemp9
+ (fTemp8
+ (fTemp6
+ fTemp7
))) - fTemp5
));
67 float fTemp10
= (fTemp3
+ fTemp4
);
68 output2
[i
] = (FAUSTFLOAT
)(0 - ((fTemp9
+ (fTemp8
+ fTemp10
)) - (fTemp7
+ (fTemp6
+ fTemp2
))));
69 output3
[i
] = (FAUSTFLOAT
)(0 - ((fTemp7
+ (fTemp6
+ fTemp10
)) - (fTemp9
+ (fTemp8
+ fTemp2
))));
70 float fTemp11
= (fTemp1
+ fTemp3
);
71 float fTemp12
= (fTemp0
+ fTemp4
);
72 output4
[i
] = (FAUSTFLOAT
)(0 - ((fTemp9
+ (fTemp7
+ fTemp12
)) - (fTemp8
+ (fTemp6
+ fTemp11
))));
73 output5
[i
] = (FAUSTFLOAT
)(0 - ((fTemp8
+ (fTemp6
+ fTemp12
)) - (fTemp9
+ (fTemp7
+ fTemp11
))));
74 float fTemp13
= (fTemp1
+ fTemp4
);
75 float fTemp14
= (fTemp0
+ fTemp3
);
76 output6
[i
] = (FAUSTFLOAT
)(0 - ((fTemp8
+ (fTemp7
+ fTemp14
)) - (fTemp9
+ (fTemp6
+ fTemp13
))));
77 output7
[i
] = (FAUSTFLOAT
)(0 - ((fTemp9
+ (fTemp6
+ fTemp14
)) - (fTemp8
+ (fTemp7
+ fTemp13
))));