summaryrefslogtreecommitdiff
path: root/mmband/waves/triangle.c
blob: bf805edaa2a4a416332ad0143cd37188d5773c59 (plain)
1
2
3
4
5
6
#include <math.h>
#include <mmband/waves/waveform.h>

float triangle (float phase) {
    return (acosf(sinf(phase))) / M_PI;
}