#include #include "tune.h" static float tune_play(struct tune *tune, double time, float in) { return 0.99 * (sin(2. * M_PI * time * 440.) * 0.25 + in * 0.75); } const struct tune TUNE = { .play = tune_play, };