#includespectrum::fft RealFFT(myData, N); RealFFT.fft();
#includespectrum::filter::butterworth highpass(N, Fs, Fc, spectrum::filter::high); highpass.process(myData, N);
#includeThis code snippet generates a sine wave with amplitude `A`, frequency `F`, sampling rate `Fs`, and phase `phi`. It uses the `sine` class in the Spectrum library to create the sine wave, and the `generate()` method to fill an output data array `myData` of length `N` with the generated wave. The package/library of Spectrum can be determined by the `#include` statements at the beginning of each code snippet. The library has several sub-libraries, such as `fft`, `filter`, and `signal`, which are included using the `spectrum::signal::sine mySine(A, F, Fs, phi); mySine.generate(myData, N);