It should generate a note based on a set of variables. See these for ideas: Gameboy: https://youtu.be/HyzD8pNlpwI?t=24m10s Pico-8: https://www.youtube.com/watch?v=Wj1LJQutMCY bfxr: https://github.com/increpare/bfxr