HISE Logo Forum
    • Categories
    • Register
    • Login

    Callback on drop?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 297 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.
    • B
      blezzbeats
      last edited by

      Is it possible to make a callback for when you drop something on AudioWaveform or MidiOverlayPanel for example?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @blezzbeats
        last edited by

        @blezzbeats nope.

        HISE Development for hire.
        www.channelrobot.com

        B 1 Reply Last reply Reply Quote 0
        • B
          blezzbeats @Lindon
          last edited by

          @Lindon Rubberduck-debugging said yes (at least for MidiOverlayPanel)

          In case anyone wonders in the future, just use MIDIPlayer.setSequenceCallback(yourfunction) on your MIDI Player. Might not work for every case but the sequence is usually updated when you drop a MIDI file on it so it did the trick for me, in my case calling repaint on another panel connected to another MIDI player.

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

            @blezzbeats You can attach a broadcaster to the audio file player that's connected to the audio waveform and then you're notified when you drop a sample (or if you use the file browser to load something new).

            B LindonL 2 Replies Last reply Reply Quote 2
            • B
              blezzbeats @Christoph Hart
              last edited by

              @Christoph-Hart Thanks for the tip!

              1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Christoph Hart
                last edited by

                @Christoph-Hart said in Callback on drop?:

                @blezzbeats You can attach a broadcaster to the audio file player that's connected to the audio waveform and then you're notified when you drop a sample (or if you use the file browser to load something new).

                oh really cool...

                HISE Development for hire.
                www.channelrobot.com

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

                43

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts