Live data from Hacker News

Web FM synthesizer made with HTML5

taktech.org

41–50 of 51 posts

Re: Web FM synthesizer made with HTML5

#41
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…

Less diff noise when adding/removing lines in a commit.

If you put the comma at the end, and then you need to add a line, you either:

* Insert the new item "in the middle" of the list. This is often possible, but not always.

* Add the new item to the end of the list, in which case the the line that was at the end before will now need to be modified to add a line.

Lines that begin with the coma can be more easily moved around/resorted. With the comma at the end, if you put the "last" item in the middle, you also need to add a comma at its end (and remove the comma from the new item that is now the final one).

Personally, I like languages where you can simply leave a comma at the end of a list or enumeration without this being deemed a syntax error (for example, in Lua the table {1,2,3,} is equivalent to {1,2,3} )

Re: Web FM synthesizer made with HTML5

#45
I found the wikipedia article [1] on the subject to be helpful to understand a little bit whats going on here.

I wonder if there's more performant wasm implementations that can interface with the WebAudio API [2]? Quick search brings up things like [3]

[1] https://en.wikipedia.org/wiki/Frequency_modulation_synthesis

[2] https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_A...

[3] https://github.com/a-cordier/wasm-audio

Re: Web FM synthesizer made with HTML5

#47

Is there no way to play the notes on the keyboard (without clicking)?

Here you go! I made some javascript to put in the js console to enable keyboard binding (a through ' for white keys and w through ] for black keys)

https://gist.github.com/jacobd/e08fc227671328f6de5cd5a337262...

Re: Web FM synthesizer made with HTML5

#50
post #35

Earlier quoted context omitted.

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 ;)

RIP autoplay...
Post reply on HN