Stereo Display Buffers.... How to use?
-
After messing around in scriptnode for a long time, I still cannot figure out how this was intended to be done.
I am trying to get a display buffer for the first two channels (left,right).
There is a peak node in scriptnode that I have set to an external buffer, and to my frustration I cannot figure out how to read stereo information from it.
I can get one channel quite easily, but I cannot find any code that can extract the second channel.
I then decided to see if I could create two buffers in scriptnode, that way I can have one for the left and one for the right channel, but figuring out how to split channels in scriptnode is driving me crazy.
I think I've worked out a way but it's so messy that i cannot belive it's the right way.
And since there is a property in the display buffer to set up stereo, I feel that there must be a way to extract the info!
Help would be greatly appreciated!
Thanks(the buffer at the top can be ignored, the reason that it's set to external is so that I can initialise the length of the buffer using code) They are both set to stereo.
^ reference, and grab data from buffer.
-
@griffinboy peak nodes are mono so you'll need to put two of them in a multi and set a different external buffer for each I think
-
@griffinboy to split the signal into left and right, take a look here:
https://docs.hise.audio/scriptnode/101/panner.html -
G griffinboy marked this topic as a question on
-
G griffinboy has marked this topic as solved on
-
@Matt_SF
Thanks, it's a little crazy that it's like that.
But this is what I was looking for.I should really do it in C++ lol.