An oscillator that generates multiple waveform outputs from a single counter, and allows the mixing of them. Available waveforms: * sawtooth: The basic output of the counter. * triangle: Produced from the counter by using the top-bit of the counter to invert the next 16 bits. * pulse: Produced from the counter with a simple logic of testing the counter against the pulseWidth variable. * sawpulse: Sawtooth and pulse logically AND-ed together The amounts can be set to minus, this way the output will be inverted.
An oscillator that generates multiple waveforms from 4 separate counters, and allows the mixing of them, with 4 possible outputs. Available waveforms: * sawtooth: The basic output of the counter. * triangle: Produced from the counter by using the top-bit of the counter to invert the next 16 bits. * pulse: Produced from the counter with a simple logic of testing the counter against the pulseWidth variable. * sawpulse: Sawtooth and pulse logically AND-ed together The amounts can be set to minus, this way the output will be inverted.