1
0
C-bytebeat-render/samples/melody.c

8 lines
249 B
C

// RENDER PARAMETERS: sample_rate = 44100, custom_return_code
// FIXME: The sound disappears after a few cycles
static const long double array[] = {1, 1.25, 1.5, 2};
long double v = array[3 & (t >> 13)];
return (long double) t * v / 3.1415926535;