1 2 3 4 5 6
#include <math.h> #include <mmband/waves/waveform.h> float triangle (float phase) { return (acosf(sinf(phase))) / M_PI; }