Callback on drop?
-
Is it possible to make a callback for when you drop something on AudioWaveform or MidiOverlayPanel for example?
-
@blezzbeats nope.
-
@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.
-
@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).
-
@Christoph-Hart Thanks for the tip!
-
@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...