Hey, happy Valentine’s Day.
I’ve been struggling hard trying to wrap my puny little human brain around the Web Audio API; it was clearly developed by professional audio… mixologists? mixographers? lol idk… people who understand every last nano-detail of how audio works, to the point where only God knows more. But to us mere mortals, it’s a frustrating rabbit-hole that I’ve gone too far down to quit.
Anyway, I notice that when I try to connect i.e. an oscillator to a volume control (or “gain” to the mixomystics out there) depending on the phase of the moon and the day of the week, for reasons that are far above and beyond me, I get an “Uncaught DOMException: input index <anything I try> is out of bounds”. I don’t even know what the “bounds” ARE, so… yeah, I’ve kind of just had to fiddle and tinker and experiment to guess out which components are allowed to be connected to which others, but ideally, I’d like to learn what the heck this stupid thing expects for these numbers. The MDN docs point you at their page on “channels” (more super-low-level voodoo) but the channel numbers (i.e. zero for left and 1 for right etc.) don’t work. Anyone here ever fought with this one before?
PS: As a side note, does anyone know of a good Web Audio API walkthrough that can help me convert the magic to logic? Most of what I’ve found on i.e. YouTube is very Hello World