Live data from Hacker News

Web FM synthesizer made with HTML5

taktech.org

31–40 of 51 posts

Re: Web FM synthesizer made with HTML5

#33
post #12

Very neat! Though I got prominent clicks and artifacts in both chrome and firefox. If anyone's interested, some years ago I made a wrapper library for things like this, to wallpaper over the famously hairy WebAudio synthesis API. Basically you pass in a static object describing the audio graph and parameters you want, and the lib creates the WebAudio nodes and then cleans them up after the sound releases (hopefully w…

Nice one! At BBC R&D we built a similar declarative library for React https://github.com/bbc/r-audio

Re: Web FM synthesizer made with HTML5

#34
post #20

As in most cases, "HTML5" has little to do with this and it's all javascript.

TFA is old enough that the "HTML5" here means "as opposed to Flash".

the only downside to flash going away was zombo.com no longer works correctly.

Re: Web FM synthesizer made with HTML5

#35
post #20

Earlier quoted context omitted.

TFA is old enough that the "HTML5" here means "as opposed to Flash".

the only downside to flash going away was zombo.com no longer works correctly.

You scared me for a sec. Life is dull without that site. I did check right away and it does work. Phew ;)

Re: Web FM synthesizer made with HTML5

#38
post #6

It has click artifacts in my browser (Firefox). PS. I've recently implemented an FM / additive / modular synthesizer entirely in SQL: https://github.com/ClickHouse/NoiSQL

I have a question regarding this formatting style:

    44100 AS sample_frequency
    , number AS tick
    , tick / sample_frequency AS time
I see this used a lot in Haskell, nix, and sometimes other languages (first time here with SQL)

. I personally find it very odd to read

. It feels like starting a sentence with a dot, instead of ending it with one, which feels quite jarring

. What is the primary motivation for employing this style, especially in languages (like SQL) where this doesn't seem to be the norm? And especially for the languages (Haskell, nix) where this is the standard (?) coding style, wouldn't it be preferable to use a different token as the separator, one that doesn't look as odd at the beginning of a line?

Re: Web FM synthesizer made with HTML5

#40
post #38
post #6

It has click artifacts in my browser (Firefox). PS. I've recently implemented an FM / additive / modular synthesizer entirely in SQL: https://github.com/ClickHouse/NoiSQL

I have a question regarding this formatting style: 44100 AS sample_frequency , number AS tick , tick / sample_frequency AS time I see this used a lot in Haskell, nix, and sometimes other languages (first time here with SQL) . I personally find it very odd to read . It feels like starting a sentence with a dot, instead of ending it with one, which feels quite jarring . What is the primary motivation for employing this…

Aesthetically: Keeps the names lined up nice.

Practically: Overkill to avoid "no final commas in JSON" moments.

Post reply on HN