JS "Psuedo Objects" by Index???
I guess I'm not completely sure how to even word the question.
What I'm wanting to do right now is to find and manipulate the RMS envelope for multiple audio inputs. But I'd like to avoid redundant code as much as possible, and perhaps more importantly, I'd like to not spend CPU ticks on processing empty channels. I'd like to be able to tell it how many channels are actually running and dynamically create the psuedo-objects as necessary.
thing[0].RMS_set(rms_ms); gave me a syntax error. Is there a way to do this without having to mess with the memory buffer array? I can see how to do that, but...
|