Send midi note with AbleSet's stop button

Is there a way to use AbleSet’s stop button to send a MIDI note? Before using AbleSet we mapped a hardware MIDI controller to stop playback and simultaneously send a MIDI note to the video computer to also stop video. How can I achieve the same functionality with AbleSet now that we don’t use the controller?

Hey @BEL, welcome to the forum!

This would be possible with AbleSet 3’s scripting features. To send a MIDI note when playback is stopped, add the following code to your project script:

onOscChange("/global/isPlaying", ([isPlaying]) => {
  if (!isPlaying) {
    sendMidiNote("<MIDI OUTPUT>", 1, "C1");
  }
});

You can replace the MIDI output with the output that is connected to your video computer and modify the channel (1) and MIDI note (“C1”) to your liking.

Now, whenever playback is stopped, AbleSet sends this MIDI note to the specified output.

If you’d like to give AbleSet 3 a try, you can download the latest beta here.

Let me know if this helps :slight_smile:

2 Likes

Thanks so much, I will give that a try. I appreciate your help!

1 Like

Adding to this — if you prefer to have more control over when the video should stop, instead of sending a MIDI note automatically on every stop event, you can also set this up using a Canvas button in AbleSet 3.

This gives you a more intentional workflow: the button will stop playback and send the MIDI note only when you explicitly trigger it.

Canvas → Script on Press

sendOsc("/global/stop");
sendMidiNote("MIDI_OUTPUT", 1, "C1");

Here’s a small example you can drop into your Canvas in case you want to try this approach:

Stop.json

Make sure to drop the file into your AbleSet > Canvases folder inside your current project for it to load.

Hope it helps!

Thank you very much, I appreciate your help

1 Like