News for hackers. Stuff that matters.
Re:Pluckable Strings by adrianmonk on Wednesday May 22, 2024 @02:11PM (#40444123)
FYI, in Chrome on Linux, there's a glitchy crackling noise. Maybe a buffer under run or something. It happens a lot more often if you strum lots of strings quickly.

It also happens in Firefox but a lot less.

Re:Pluckable Strings by elihu on Wednesday May 22, 2024 @04:25PM (#40445999)
Can confirm on Chromium/Linux.
Re:Pluckable Strings by TazeTSchnitzel on Wednesday May 22, 2024 @02:34PM (#40444449)
This can happen a lot with web audio stuff like this, it's the browser struggling to keep up.
Re:Pluckable Strings by petrichorko on Wednesday May 22, 2024 @03:30PM (#40445243)
Yes, modifying buffer_size in audio_shader.js to 4096 completely fixes this issue on Windows (chrome).
Re:Pluckable Strings by moffkalast on Wednesday May 22, 2024 @02:14PM (#40444152)
Chrome on Windows as well.
Re:Pluckable Strings by l3x4ur1n on Wednesday May 22, 2024 @02:27PM (#40444328)
Brave on Android also
Re:Pluckable Strings by wayoverthecloud on Wednesday May 22, 2024 @02:50PM (#40444665)
Chrome on Android too
Re:Pluckable Strings by ikari_pl on Wednesday May 22, 2024 @02:32PM (#40444416)
Firefox on Android is fine
Re:Pluckable Strings by plasticeagle on Wednesday May 22, 2024 @04:56PM (#40446440)
Arc on MacOS too.
Re:Pluckable Strings by chaosprint on Thursday May 23, 2024 @04:16AM (#40451971)
I also have serious popping in chrome on my mac.

This shouldn't happen.

The main reason is the use of createScriptProcessor.

This should be replaced with AudioWorklet. Use WASM + SharedArraybuffer for calculation.

The visual of picking the strings is great, I spent a lot of time on it, I believe the vote is also a recognition of this.

Here is a similar idea (karplus) implemented with Rust + WASM, which is much better in terms of audio quality:

https://jackschaedler.github.io/karplus-stress-tester/

I also wrote a simple api to use Rust wasm audio here:

https://glicol.js.org/

If you are interested in doing some use cases, leave a message. I am actively maintaining it recently.

Re:Pluckable Strings by SimDeBeau on Thursday May 23, 2024 @10:20AM (#40455088)
No sound on firefox on mac or ipad, and glitchy sound on safari on mac