blob: 8decddd41f625601a81cc38fb9cf5a0dfddc316f (
plain) (
tree)
|
|
#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);
}
|