generating note event matrix is working