Playing an accurate square wave pattern

I’m currently trying your code with a sine wave at the moment.

In Flash the wave sounds exactly as you expect, but on Neko legacy, it’s very different.

This is the same on Windows legacy as well.

Awe! I was hoping to use OpenFL to experiment with building my own music production software, samplers, mixers and everything. I doubt I would finish it but it’s worth the learning experience.