from Hacker News

Show HN: A UI for generating WebAudio code

by ISNIT on 9/13/18, 10:50 AM with 12 comments

  • by mrspeaker on 9/13/18, 3:38 PM

    Very cool! I'd recommend changing the default oscillator. 1000hz sine wave becomes aggravating extremely quickly! Maybe 500hz (lower?), and 0.05 gain? Or at least a filter after the oscillator.

    But I really like this idea - you could take it much further (I'm sure you plan too!) From a UX perspective I think most people will run quickly from this page, because unless you understand modular synths it will be very daunting to figure out how to make something that sounds nice. A dropdown with some defaults would at least let them play to get an intuition of what's happening.

    I'd also make it easier to see how to add nodes - it's quite unintuitive at the moment. And a panic button to stop/play sound... The more I tried to make the sound quieter, the louder I accidentally made it!

    But again, super cool idea - it would be great to make a SFXR/BFXR-type sound effect generator that would spit out web audio code!

  • by madmonk on 9/13/18, 5:56 PM

    Thanks for this! I've been looking for something like this for a while now. I've made a couple ambient music generators that utilize webaudio and have been looking for something like this to generate new timbres. If you're interested my 2 generators can be found here...

    https://madmonk13.github.io/relax/

    https://madmonk13.github.io/musicforspaceports/

    The first one is more of a proof of concept where as music for spaceports is much more feature complete.

    Thanks again!

  • by akx on 9/13/18, 3:24 PM

    Trying to change a gain node to a biquad filter seems to do nothing.
  • by kowdermeister on 9/13/18, 3:03 PM

    How to do anything in this? Add node or edit code?
  • by bluetwo on 9/13/18, 3:16 PM

    Nice and simple!