Initial import.
[Faustine.git] / dsp_files / even-odd-circuit.22.tmp.cpp
1 //-----------------------------------------------------
2 //
3 // Code generated with Faust 0.9.58 (http://faust.grame.fr)
4 //-----------------------------------------------------
5 #ifndef FAUSTFLOAT
6 #define FAUSTFLOAT float
7 #endif
8
9 typedef long double quad;
10 /* link with */
11
12 #ifndef FAUSTCLASS
13 #define FAUSTCLASS mydsp
14 #endif
15
16 class mydsp : public dsp {
17 private:
18 public:
19 static void metadata(Meta* m) {
20 }
21
22 virtual int getNumInputs() { return 0; }
23 virtual int getNumOutputs() { return 8; }
24 static void classInit(int samplingFreq) {
25 }
26 virtual void instanceInit(int samplingFreq) {
27 fSamplingFreq = samplingFreq;
28 }
29 virtual void init(int samplingFreq) {
30 classInit(samplingFreq);
31 instanceInit(samplingFreq);
32 }
33 virtual void buildUserInterface(UI* interface) {
34 interface->openVerticalBox("even-odd-circuit.22.tmp");
35 interface->closeBox();
36 }
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 FAUSTFLOAT* output4 = output[4];
43 FAUSTFLOAT* output5 = output[5];
44 FAUSTFLOAT* output6 = output[6];
45 FAUSTFLOAT* output7 = output[7];
46 for (int i=0; i<count; i++) {
47 output0[i] = (FAUSTFLOAT)0;
48 output1[i] = (FAUSTFLOAT)2;
49 output2[i] = (FAUSTFLOAT)4;
50 output3[i] = (FAUSTFLOAT)6;
51 output4[i] = (FAUSTFLOAT)1;
52 output5[i] = (FAUSTFLOAT)3;
53 output6[i] = (FAUSTFLOAT)5;
54 output7[i] = (FAUSTFLOAT)7;
55 }
56 }
57 };
58
59