79 double freqHz(
void)
const noexcept {
return(hz_); }
123 Beep(
double dur,
double pitch);
140 double duration(
void)
const noexcept {
return(dur_); }
146 double phase(
void)
const noexcept {
return(ph_); }
Frequency(Note n)
Constructor from a note. Exception if N is not within one octave.
static constexpr unsigned char NUMSEMITONESINOCTAVE
Number of semi-tones in one octave.
static const double FREQNOTES[NUMNOTES]
Frequencies of the notes of the standard octave in Hz.
Frequency(double hz)
Constructor from a frequency in Hz.
double duration(void) const noexcept
Return the duration in seconds of the Beep.
Frequency operator++(int) noexcept
(Only postfix operator) Increment one octave this frequency.
Frequency & operator+=(unsigned nos) noexcept
Increment this frequency in NOS octaves.
Beep(double dur, Frequency freq, double phase=0.0)
Constructor of an arbitrary square wave.
Beep(unsigned char clic=0)
Default constructor: the beep corresponding to the zx keyboard clic.
Beep(double dur, Frequency::Note note)
Constructor of a beep of DUR seconds and NOTE note.
Note
Musical notes in one octave.
double freqHz(void) const noexcept
Return the frequency in Hz.
double phase(void) const noexcept
Return the phase in seconds of the wave.
Beep(double dur, double pitch)
Constructor from a ZX-BASIC beep command.
Frequency frequency(void) const noexcept
Return the frequency in Hz of the Beep.
The frequency of a square-wave sound.
The main namespace of the library, that spans across all the zx modules.