Is there any chance of getting a Volume parameter added to the Beeper class? Either in the Beep function call as in:
Dim b as Beeper
b.Initialize(500, 440)
b.Beep(.5)
or in another initialization, as in:
Dim b as Beeper
b.Initialize3(500, 440, .5)
b.Beep
This would allow us to construct arbitrary waveforms by creating an array of Beeper objects with the appropriate relative amplitudes as specified by the waveform's Fourier coefficients. Playing the waveform would then be a simple matter of calling the Beep member function for each element of the array in rapid succession.
I would even be happy to write and upload a Waveform class that allows the programmer to create and play square waves, saw tooth waves, sharktooth waves, and arbitrary programmer-specified waveforms. All I need is a Volume parameter in the Beeper object.
Thanks,
Royce