8 #include "simpletools.h"
#define SQUARE
Square wave.
Functions for creating tones. 4 channels, tone waveform options include sine, square, triangle, and saw. Incorporates Spin to C translation of sound components from Brett Weir's LameStation package.
sound_t * sound_run(int pin, int npin)
start a talk process, uses a cog.
void sound_wave(sound_t *device, int channel, int wave)
Set the waveform of one of the process' four channels.
void sound_freq(sound_t *device, int channel, int freq)
Set Hz the frequency transmitted by one of the sound process' four channels.
#define TRIANGLE
Triangle wave.
void sound_note(sound_t *device, int channel, int note)
Make one of the sound process' four channels play a note.