Actually,
I had a bug with the matrix as well. I transposed and then dissected the matrix to missing variables. This was in the sound calculation I posted. I needed to change my snipped from counting rows to counting columns for it to work, so there is a bug somewhere in there