HISE Logo Forum
    • Categories
    • Register
    • Login

    MIDIPlayer "Clear All"

    Scheduled Pinned Locked Moved Scripting
    9 Posts 4 Posters 206 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.
    • ulrikU
      ulrik
      last edited by

      I've searched and searched and tried everything I could think of (maybe not so much 🤪)
      but I can't find the way to script the "Clear All" function
      Anybody know how to?

      Skärmavbild 2022-03-23 kl. 07.35.53.png

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ChazroxC 1 Reply Last reply Reply Quote 0
      • ChazroxC
        Chazrox @ulrik
        last edited by

        @ulrik have you figured out how to do this?

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

          @Chazrox I think this is the action clicking that button does

          clearButton.onClick = [this]() { allInputEvents.clear(); allOutputEvents.clear();  rebuildEventsToShow(); };
          

          Are you able to replicate that behaviour via scripting?

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

          ChazroxC 2 Replies Last reply Reply Quote 0
          • ChazroxC
            Chazrox @d.healey
            last edited by

            @d-healey I didnt know about a couple of those. That looks like it might help for sure. 🙏

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

              @Chazrox This is in c++, I don't know if those functions are available via scripting, but you might be able to replicate the behaviour.

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

              1 Reply Last reply Reply Quote 0
              • ChazroxC
                Chazrox @d.healey
                last edited by

                @d-healey can you add a callbacks to a midiDrop overlay panel? I want to add this script to it. Would I have to script a panel from scratch? I did one already I just cant figure out how to connect it to midiDrop feature specifically on the midiplayer.

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

                  @Chazrox Not sure, might be possible with a broadcaster

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

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @d.healey
                    last edited by

                    What's wrong with https://docs.hise.dev/scripting/scripting-api/midiplayer/index.html#clearallsequences ?

                    ChazroxC 1 Reply Last reply Reply Quote 0
                    • ChazroxC
                      Chazrox @Christoph Hart
                      last edited by

                      @Christoph-Hart nothing. I ended up finding that as well. 🙏

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

                      32

                      Online

                      1.9k

                      Users

                      12.3k

                      Topics

                      106.8k

                      Posts