git ssb

0+

cel / foostudio



Tree: 8c106851aec7aaf152d2963081ee09044b05d1fb

Files: 8c106851aec7aaf152d2963081ee09044b05d1fb / tune.c

223 bytesRaw
1#include <math.h>
2#include "tune.h"
3
4static float tune_play(struct tune *tune, double time, float in)
5{
6 return 0.99 * (sin(2. * M_PI * time * 440.) * 0.25 + in * 0.75);
7}
8
9const struct tune TUNE = {
10 .play = tune_play,
11};
12

Built with git-ssb-web