HISE Logo Forum
    • Categories
    • Register
    • Login

    Stereo Display Buffers.... How to use?

    Scheduled Pinned Locked Moved Solved ScriptNode
    4 Posts 3 Posters 167 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • griffinboyG
      griffinboy
      last edited by griffinboy

      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

      e9278abe-ab14-487a-890f-ea881916afd7-image.png

      06d354ab-3c7d-4905-a278-1b75a2a0ccad-image.png

      (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.

      09c2d1f7-b589-48f6-8950-30eca84a6b4b-image.png

      7afdbadb-1bcc-49a3-a90b-1753837d6dbf-image.png

      ^ reference, and grab data from buffer.

      ustkU Matt_SFM 2 Replies Last reply Reply Quote 0
      • ustkU
        ustk @griffinboy
        last edited by

        @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

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 0
        • Matt_SFM
          Matt_SF @griffinboy
          last edited by

          @griffinboy to split the signal into left and right, take a look here:
          https://docs.hise.audio/scriptnode/101/panner.html

          Develop branch
          Win10 & VS17 / Ventura & Xcode 14. 3

          griffinboyG 1 Reply Last reply Reply Quote 1
          • griffinboyG griffinboy marked this topic as a question on
          • griffinboyG griffinboy has marked this topic as solved on
          • griffinboyG
            griffinboy @Matt_SF
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            32

            Online

            1.7k

            Users

            11.9k

            Topics

            103.5k

            Posts