3 ms·
Back when 8 bit micros were the "big" machines :-) Hal Chamberlin wrote a book called "The Musical Applications of Digital Microprocessors" which discusses this
by ChuckMcM 11y ago
Back when 8 bit micros were the "big" machines :-) Hal Chamberlin wrote a book called "The Musical Applications of Digital Microprocessors" which discusses this sort of frequency synthesis in detail. Recommended if you can find a used copy somewhere.
- jcr 11y agoIt seems the title is just: "Musical Applications of Microprocessors" http://www.amazon.com/Musical-Applications-Microprocessors-Hal-Chamberlin/dp/0810457687/ http://www.amazon.com/Musical-Applications-Microprocessors-H...
- ChuckMcM 11y agoThat is the one.
- msarnoff 11y agoI second this recommendation, especially Chamberlin's discussion of filters. He provides an implementation of a state-variable filter (low-pass, high-pass, band-pass, and notch) in, if I recall correctly, four lines of BASIC. I wrote a version of it in ARM Thumb assembler for the Cortex-M0 and it sounded quite good. [1] Despite being published over 30 years ago, it's a great resource for anyone interested in sound synthesis on resource-constrained systems. [1] - https://github.com/74hc595/LPC1114-Synthesizer/blob/master/kernel.S https://github.com/74hc595/LPC1114-Synthesizer/blob/master/k...
- a1k0n 11y agoHe even has a quadrature (as in, sine and cosine) oscillator for any frequency, using only integer adds and multiplies, which would obviate the lookup table used in this post. It's a bit like masswerk's post above, except with a derivation of what to set "epsilon" to. The book has been out of print forever, and I waited months for my copy, but it was worth it...