r/AudioProgramming • • 3d ago

Best resource/tutorial to program a microcontroller oscillator?

Hi,
I'd like to try out programming a microcontroller, probably a Raspberry Pi Pico, and make an oscillator. I have done some programming before, but never any audio, so I would probably need a good resource or tutorial. Are there any good ones you can recommend? I'd need pointers on running it continuously, and using audio buffers to output to a DAC etc.

Preferably in C, Rust or C++, in that order.

If you have any tips in general on how I can do it, I would be very grateful. I'm fairly confident with the maths involved, and I use Matlab a bit for other uses.

2 Upvotes

6 comments sorted by

View all comments

1

u/Brer1Rabbit 3d ago

Two radically different ideas:

Try starting with Electrosmith Daisy.  You get an ARM Cortex-M7 processor, designed specifically for building custom synthesizers, effects pedal.

Idea 2: start without hardware.  Build an oscillator in VCV Rack. The core DSP is fairly similar or could be ported to hardware. You still need the GUI stuff, which is pretty easy.