Crate monotron_synth[−][src]
Structs
Duration |
The length of a note in sample ticks. |
Frequency |
A frequency in centi-hertz. |
Sample |
A single signed 8-bit audio sample. |
Synth |
Our synthesiser. You can tell it to play notes, then repeatedly ask it for samples (which are calculated as you ask for them). You could either buffer those samples and dispatch the to a PC sound card, or pass them to a DAC in real-time. The samples are calculated by summing together the outputs of the four channels. |
Enums
Channel |
We have a four channel synthesiser. |
Note |
Notes on an piano keyboard, where A4 = 440 Hz. |
Waveform |
Our oscillator produces one of four waveforms. |
Constants
CHANNEL_0 | |
CHANNEL_1 | |
CHANNEL_2 | |
CHANNEL_3 | |
MAX_VOLUME |