HISE Logo Forum
    • Categories
    • Register
    • Login

    Unordered Stack...

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 228 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.
    • ustkU
      ustk
      last edited by ustk

      What is it made for?

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

      d.healeyD 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @ustk
        last edited by

        @ustk I hadn't noticed this in the API until your post, looks interesting!

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @d.healey
          last edited by

          @d-healey Yeah, I tried to grab some info in the source, it seems related to event list kind of thing to display... We'll see :)

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

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            It's a stack with fast insert / removal - if you remove a element, it just moves the last element into that position (which makes it "Unordered"). You can use this to keep track of currently played events etc - I mainly use it for communication with OpenGL.

            ustkU 1 Reply Last reply Reply Quote 3
            • ustkU
              ustk @Christoph Hart
              last edited by

              @Christoph-Hart Cool! But midiList is fast too so why should it be better? It's even faster?

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

              1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart
                last edited by

                Insertion / Removal is very fast, plus the underlying data type is float, so you can reference it as a Buffer object which is required if you need to pass uniform arrays to OpenGL.

                Performance wise it should not be a big difference to the MidiList, but depending on the use case, it's simpler to use.

                And If you right click on it in the ScriptWatchTable, you will see a custom data inspector which is also helpful during debugging.

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

                29

                Online

                1.8k

                Users

                12.0k

                Topics

                104.2k

                Posts