Script needed: block Poly Aftertouch 'value 0' events on all note numbers

AlexB
AlexB Member Posts: 2 Newcomer
edited April 2023 in Scripting Workshop

Can you please help me to script the following (should be quite easy for an expert) :

block incoming Polyphonic Aftertouch 'value 0' events (Polyphonic Aftertouch events on or from all note numbers). All other Polyphonic Aftertouch events (like events with value 127) shall pass.

Thanks so much for your help in advance! 😊

Alex

Comments

  • stephen24
    stephen24 Member Posts: 277 Pro

    Interesting request.

    This is a multiscript so will affect all instruments in the multi. Paste in KSP slot and click Apply

    on midi_in
     if ($MIDI_COMMAND = $MIDI_COMMAND_POLY_AT and $MIDI_BYTE_2 > 0)
      ignore_midi
     end if
    end on
    


  • AlexB
    AlexB Member Posts: 2 Newcomer

    Thanks you so much Stephen. Works like a charm. Highly appreciated! :)

  • EvilDragon
    EvilDragon Moderator Posts: 1,023 mod

    I'm curious why would you want to block just that one value?

Back To Top