An Audio engine I made for the NES, using CC65 and it's hl macro set, it totals 863 bytes in size, and uses 144 bytes of WRAM, and 21 bytes of the Zero Page,
Anyone is free to use it, but as a few additional notes for the format are in each file, to hopefully provide extra details