6#ifndef YARP_SIG_SOUNDUTILS_H
7#define YARP_SIG_SOUNDUTILS_H
23bool YARP_sig_API makeSawTooth(Sound& outSound,
double duration_s=1.0,
size_t channels=1,
size_t sampleRate=16000,
double frequency=1,
size_t amplitude=30000);
35bool YARP_sig_API makeTone(Sound& outSound,
double duration_s=1.0,
size_t channels=1,
size_t sampleRate=16000,
double frequency=440,
size_t amplitude=30000);
47bool YARP_sig_API makeSquareWave(Sound& outSound,
double duration_s=1.0,
size_t channels=1,
size_t sampleRate=16000,
double frequency=1,
size_t amplitude=30000);
71Sound
YARP_sig_API mix(
const Sound& A,
const Sound& B,
double percentage);
bool makeSawTooth(Sound &outSound, double duration_s=1.0, size_t channels=1, size_t sampleRate=16000, double frequency=1, size_t amplitude=30000)
Generate a sound containing a sawtooth signal.
Sound mix(const Sound &A, const Sound &B, double percentage)
Mixes two sounds together into a single sound.
bool makeTone(Sound &outSound, double duration_s=1.0, size_t channels=1, size_t sampleRate=16000, double frequency=440, size_t amplitude=30000)
Generate a sound containing a sine wave tone.
bool makeSquareWave(Sound &outSound, double duration_s=1.0, size_t channels=1, size_t sampleRate=16000, double frequency=1, size_t amplitude=30000)
Generate a sound containing a square wave signal.