HISE Logo Forum
    • Categories
    • Register
    • Login

    Hi Hat Choke Script Help

    Scheduled Pinned Locked Moved Newbie League
    4 Posts 2 Posters 134 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.
    • zach.mxZ
      zach.mx
      last edited by zach.mx

      Hi all, this is obviously a subject that has been beat to death on this forum, and I hate to resurrect this question with so many threads, but I need some help.

      While I was digging through the archives looking at discussions on how to do Choke scripts as I am doing some hi hat programming, and I came across this thread.

      Link Preview Image
      Choke groups

      Thanks for your answer and for your app by the way, it's great! Do you think something like that could work? var closeHiHatKey = 66; var openHiHatKey = 70; ...

      favicon

      Forum (forum.hise.audio)

      The script seems to be fairly simple, and after going through the logic on it, it seemed to be a good solution. Except I can't get it to work 😅

      I broke down the script piece by piece troubleshooting it, and Console.printed all of the variables as I went through just to double check that every piece was working. It all seems to be working except for one thing -

      Synth.noteOffByEventId() does not seem to cut the voice associated with the ID that is stored in the array.

      Any ideas on why that might be? The hi hat event checks out as artificial when I run the event through Message.isArtificial()

      Here's what I have in my scripting window.

      Screenshot 2025-01-28 151424.jpg

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @zach.mx
        last edited by

        @zach-mx you know there is a choke group MIDI processor available in HISE now? For basic choke group functionality you don't need to script anything anymore (that post you're referring to is 8 years old).

        zach.mxZ 1 Reply Last reply Reply Quote 1
        • zach.mxZ
          zach.mx @Christoph Hart
          last edited by zach.mx

          @Christoph-Hart

          I see, I tried it but was a little confused. When I saw the thread I referenced, I thought it would be a quick solution since I was trying to keep both of the samples in the same sampler. Just found another thread on choke group processor, and didn't realize I would need to break the samples out to different samplers for the choke group processor to work.

          Might be something worth adding to the docs? I had gone to read about it but couldn't find anything there.

          zach.mxZ 1 Reply Last reply Reply Quote 0
          • zach.mxZ
            zach.mx @zach.mx
            last edited by

            Is there any difference between Piano roll midi events, and Midi events coming in from an external midi keyboard?

            The Choke Group Processor works when I click midi keys on the piano roll using my mouse, but doesn't trigger the choke when I use my midi keyboard 🤔

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

            32

            Online

            1.7k

            Users

            11.7k

            Topics

            102.3k

            Posts