2024-09-23 01:21:13 +03:00
|
|
|
// RENDER PARAMETERS: sample_rate = 44100, custom_return_code
|
2024-05-27 08:07:42 +03:00
|
|
|
|
2024-09-23 01:15:31 +03:00
|
|
|
// FIXME: The sound disappears after a few cycles
|
|
|
|
|
2024-09-23 01:14:36 +03:00
|
|
|
static const long double array[] = {1, 1.25, 1.5, 2};
|
2024-05-27 08:07:42 +03:00
|
|
|
long double v = array[3 & (t >> 13)];
|
|
|
|
return (long double) t * v / 3.1415926535;
|