YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
SoundUtils.h File Reference
#include <yarp/sig/Sound.h>
+ Include dependency graph for SoundUtils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yarp
 The main, catch-all namespace for YARP.
 
namespace  yarp::sig
 
namespace  yarp::sig::utils
 

Functions

bool yarp::sig::utils::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.
 
bool yarp::sig::utils::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 yarp::sig::utils::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.
 
Sound yarp::sig::utils::mix (const Sound &A, const Sound &B, double percentage)
 Mixes two sounds together into a single sound.