Any hints on where to look?
Any hints on where to look?
I have implemented several soft synths on the Teensy, both with and without the audio library. It works.
Here's the datasheet for the ATMega328: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42735-...
From what I gather, the technique is to change the PWM in an interrupt continuously to match the amplitude of your output wave. During that 1ms, what happens? Does the PWM still output a regular wave but I can’t adjust it? Or does the PWM wave itself stop?
So you can find the asm guide here: [0]
The Atmega328's datasheets are here: [1], which includes things like a register breakdown.
[0] https://www.microchip.com/webdoc/avrassembler/index.html
[1] https://www.microchip.com/wwwproducts/en/ATmega328#documents