https://toitlang.org/ logo
Mostly for learning, but I wanted to generate audi...
# general
n
Mostly for learning, but I wanted to generate audio waveforms using the DAC or PWM. E.g. make a 440 Hz sine wave by PWM on a 48 kHz carrier. Sample rate needs to be more than 20 kHz so you can't hear the 'steps' in the waveform as a high pitched sound over the intended tone. Probably a job for C given how fast it needs to run, but I like easier languages...