Here is how it looks:
SELECT mono(output(
arraySum(x -> 1 / 6
* running_envelope(30 * (1 + x / 6), time, 0.05 * x, 0.005, lfo(0, 0.25, sine_wave, time / 8), 0.1)
* sine_wave(time * 80 * exp2(x / 3)),
range(12))))
FROM table;
To check how it sounds, find the examples in the repository https://github.com/ClickHouse/NoiSQL