blob: 8decddd41f625601a81cc38fb9cf5a0dfddc316f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "osc.h"
osc_t OSC_sin = {
.name = "f_sin",
.len = 1,
.start = 0,
};
float
osc_sin(float offset)
{
return sin(2 * M_PI * offset);
}
float
osc_sin_next(float f, float offset)
{
return osc_next_offset(&OSC_sin, f, offset);
}
|