I am trying to learn a bit about how to use [i] to create multiple filters out of the same lines of code. I am not sure what the name of this is, sorry.
I basically want to make 6 bandpass filters, that share the same input, but has individual outputs.
I've tried setting it up, so I only have to write the code once and then use [i] to set how many filter I actually want.
I am down to a couple of errors now, which I am not sure how to fix, so I was hoping that someone
might have some suggestions on what can be done to fix it. AxoLOG;
Generate code complete
Creating directory on sdcard : /Stages Filter 2
Done creating directory
Changing working directory on sdcard : /Stages Filter 2
Done changing working directory
Start compiling patch
Compiling patch... with /Applications/Axoloti.app/Contents/Java/firmware
BDIR = /Users/jakobskouborg/Documents/axoloti/build
FIRMWARE = .
/Users/jakobskouborg/Documents/axoloti/build/xpatch.cpp: In member function 'void rootc::instancebp__1::dsp(const int32_t*, int32_t, int32_t, int32_t (&), int32_t (&), int32_t (&), int32_t (&), int32_t (&), int32_t (&), int, int, int, int, int, int, int, int)':
/Users/jakobskouborg/Documents/axoloti/build/xpatch.cpp:212:24: error: array must be initialized with a brace-enclosed initializer
int32_t out[i] = band[i];
make: *** [/Users/jakobskouborg/Documents/axoloti/build/xpatch.bin] Error 1
shell task failed, exit value: 2
Compiling patch failed ( /Volumes/Jaffa II/1. Music stuff/Axoloti/Axoloti OWN/Jaffy Jaf (1.0.12)/0. Favourites/+2018+/SMR 2018/Stages Filter 2 .axp )
As far as I know I have all ready initialised the band[i] that gives and error. In init i have this:
low[i] = 0;
band[i] = 0;
Not sure where to go from here.
Here is the patch if anyone would be so kind at take a look at it:
Stages Filter 3 .axp (4.7 KB)
Thanks, and happy easter