Show HN: Building musical synthesizers with SQL queries

If you already know what bytebeat is, you don't need an explanation. If not, check my project :)

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
176 points zX41ZdbW 3 years ago 14 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton