KSP script to stop Open Hi-Hat when Closed HH midi note comes in

nerdydrums
nerdydrums Member Posts: 1 Newcomer
edited March 6 in Scripting Workshop

Hi! Please help to make the code that stops midi note that triggers open hh sound when closed hh midi note comes in.

My library works with bunch of round robbing groups, so the code must operate with midi notes and not the "exclusive group" feature that possibly could mute open hihats.

ChatGPT didn't help me…

Open HH midi notes: C#1, D1, D#1, E1, A1, A#1, B1
Closed HH midi notes: A#0, B0, C1, F#1, G1, G#1

Comments

  • theodorech
    theodorech Member Posts: 79 Member

    You don’t need to use KSP for that. Just assign the open and close hihat groups to the same voice group in the group editor and set the voice limit to 1. This ensures that no more than two voices will ever play when triggering the open and close hihat.

  • theodorech
    theodorech Member Posts: 79 Member
    edited March 19

    Re-posting because the gif url is broken.

Back To Top