[HN Gopher] Cracked - Method chaining/CSS-style selector web aud...
       ___________________________________________________________________
        
       Cracked - Method chaining/CSS-style selector web audio library
        
       Author : stephenhandley
       Score  : 88 points
       Date   : 2025-05-16 02:46 UTC (20 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | stephenhandley wrote:
       | WebAudio-based library that provides quick way to set up a web
       | audio graph.
       | 
       | Desktop wrapper: https://github.com/billorcutt/Cracked
       | 
       | Cat examples: https://idroppedmyphonethescreencracked.tumblr.com/
        
       | wesz wrote:
       | This is brilliant! I'm gonna use it to prototype synths for my
       | drum patterns/bass lines website.
        
         | gravitronic wrote:
         | You should check out webaudiomodules and sequencer party.
        
       | nailer wrote:
       | Just in case you scrolled past it, the live demo was in the
       | github website link:
       | 
       | https://idroppedmyphonethescreencracked.tumblr.com/
        
         | hdjrudni wrote:
         | THese all sound awful. I don't get it.
        
           | promiseofbeans wrote:
           | I think the idea is that you can use this to build synths
           | that you then control woth midi, etc
        
           | DrSiemer wrote:
           | Would this also work for adding effects to existing audio? A
           | simple reverb and pitch bend on a recorded vocal would make
           | me a lot more excited than experimental synth effects.
        
           | stephenhandley wrote:
           | You didn't even like this one!? https://idroppedmyphonethescr
           | eencracked.tumblr.com/post/9350...
           | 
           | That said, guessing a bunch of those are meant to be concise
           | examples.
           | 
           | For what its worth my quick take on a lot of the text-based
           | sound coding environments [1] is that they provide a
           | relatively quick way to approach creating audio
           | programmatically differently compared to a more traditional
           | spatial / grid-based daw.
           | 
           | One nice thing about Cracked is that you can treat it as an
           | audio input in Ableton, Logic, etc. and so you could use it
           | to generate a sound to sample / process further in a daw
           | arrangement. I had stumbled across it originally from the
           | author's Wikipedia page which mentions that he uses it to
           | create longer albums / pieces
           | https://en.wikipedia.org/wiki/Bill_Orcutt
           | 
           | Interview with him about it
           | https://www.thewire.co.uk/news/41540/bill-orcutt-releases-
           | op...
           | 
           | [1] https://tidalcycles.org/ https://sonic-pi.net/
           | https://chuck.stanford.edu/ https://supercollider.github.io/
        
         | thenthenthen wrote:
         | I think i-dropped-my-phone-in-the-toilet-and-the-audio-stopped-
         | working-and-yes-i-checked-the-mute-switch because it does not
         | seem to generate any sound on iOS Safari, not supported?
        
       | freeamz wrote:
       | Hmm seems like the jQuery of Web Audio API? How are the browser
       | support on mobile?
       | 
       | Edit: with a bit pure data flavor mixed in... super nice!
        
         | jeremyleach wrote:
         | This is wonderful - a very immediate and intuitive way to
         | construct and create audio graphs!
        
       | phantomathkg wrote:
       | Interesting library with a rather weird name.
        
         | mattigames wrote:
         | Its just social engineering to make people who drop their
         | phones get involved in audio creation.
        
       | tristanMatthias wrote:
       | Would love to plug this into https://synthia.app
        
         | jeremyleach wrote:
         | Nice app!
        
         | stephenhandley wrote:
         | cool app. maybe its already possible but i'm missing how but
         | would be awesome if dragging a new node between an existing
         | connection it would automatically insert it between the nodes
         | to avoid the steps to disconnect / reconnect
        
       | gitroom wrote:
       | This is super cool, Im definitely gonna mess around with it for
       | my own synth experiments!
        
       | xipix wrote:
       | Can it handle "nodes" that emit a different number of audio
       | samples than they consume?
       | 
       | I'm thinking of time stretch effects like mine
       | https://github.com/bungee-audio-stretch/bungee
        
         | stephenhandley wrote:
         | It's basically just a wrapper around WebAudio, I've generally
         | just used the builtin nodes, but I think you could do sample-
         | level processing with this? https://developer.mozilla.org/en-
         | US/docs/Web/API/AudioWorkle...
         | 
         | love the demo https://bungee.parabolaresearch.com/change-audio-
         | speed-pitch
         | 
         | have you thought about wrapping it as an audio unit or vst via
         | juce/clap/iplug so its usable in a daw?
         | 
         | https://juce.com/ https://cleveraudio.org/developers-getting-
         | started/ https://github.com/iPlug2/iPlug2
        
       | noelwelsh wrote:
       | I find the underlying premise a bit odd. I can name values in
       | Javascript just fine:
       | 
       | const whatever = ...
       | 
       | I would rather refer to them by these names than by strings. It's
       | both faster and safer to do so.
        
         | zamadatix wrote:
         | This provides ID + class based selection of nodes with a syntax
         | which allows combining multiple filters. It's more akin to the
         | methodology of selecting nodes in the DOM than just providing a
         | name alone.
        
       | chaosprint wrote:
       | if you are looking for some performant declarative web audio lib
       | in js, check:
       | 
       | https://glicol.js.org/
       | 
       | it's ported from Rust
        
         | stephenhandley wrote:
         | looks cool but wasn't able to get audio output from the
         | stackblitz demo
        
       ___________________________________________________________________
       (page generated 2025-05-16 23:01 UTC)