Here is the complete library / toolkit for synthesizing FM (frequency modulation):
link1 link2
If you have time to save ... creating a simple synthesis of sound from scratch is really a fun activity. If you create a small buffer of 256 16-bit samples that are sine. sawtooth, block or impulse, you can copy them to a live audio block (for example, a small buffer (say, 16kb)) that constantly loops. By staying ahead of the game position and constantly filling the buffer with new values, you can create an audio output. You can use small buffers to combine them in interesting ways (the easiest way is to simply add them together (additive synthesis)).
The tone frequency can be manipulated using a larger or smaller sampling step through small buffers. The amplitude can be manipulated by scaling the samples before placing them in the output buffer.
Great fun experimenting with this!
If you have this step, you can add more complex effects such as filters (low pass, high pass, etc.) and effects (reverb, echo, etc.)
R
Toad
source share