Forum

    • Register
    • Login
    • Search
    • Categories

    Unordered Stack...

    General Questions
    3
    6
    29
    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.
    • ustk
      ustk last edited by ustk

      What is it made for?

      I cannot help pressing F5 in the forum...
      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

      d.healey 1 Reply Last reply Reply Quote 1
      • d.healey
        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

        ustk 1 Reply Last reply Reply Quote 0
        • ustk
          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 🙂

          I cannot help pressing F5 in the forum...
          Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

          1 Reply Last reply Reply Quote 0
          • Christoph Hart
            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.

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

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

              I cannot help pressing F5 in the forum...
              Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

              1 Reply Last reply Reply Quote 0
              • Christoph Hart
                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

                12
                Online

                982
                Users

                6.6k
                Topics

                60.8k
                Posts