Sorry, posting now from my phone, so can't see your new code (or indeed your old code).
Your chan vectors are all the same length, so you 2D version would be int channel [N_CHANNELS][N_ELEMENTS];
Although, I noticed that some of the values are only 8 bits long, so you're wasting a little memory, so an array of structs would be more appropriate. Later perhaps.