Frequency visualization in <canvas>