I got the same array sizes Yameada found 🙂
Filter order is N-1 filter taps , a FIR filter kernel with only one element is no filter just gain 😄
And FIR filter kernel with odd elements have an easy to correct phase, just in case you want to correct it 😉
Seems that you want to use the kernels somewhere else, since Yamaedas solution allow to store (and load) the hole filter information.
If you want to exchange more than just the filter kernels to other applications, have a look at JSON
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'