HISE Logo Forum
    • Categories
    • Register
    • Login

    Choke groups

    Scheduled Pinned Locked Moved General Questions
    21 Posts 4 Posters 4.7k 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.
    • Christoph HartC
      Christoph Hart
      last edited by

      The script above already ignores the note off for the open hihat so it should behave like oneshot + choke group.

      1 Reply Last reply Reply Quote 0
      • L
        ludo
        last edited by

        Ah Ok! Sorry for my dumb's questions... So I could use Message.ignoreEvent(true) in the onNoteOff() function for the all drum set to emulate the one shot option, that's it?

        Thanks again for your time

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          Yep that should work.

          1 Reply Last reply Reply Quote 0
          • Dan KorneffD
            Dan Korneff
            last edited by

            Hey guys,
            Digging up this old thread. I'm working on a project that needs this function, but I'm unable to make it work. My background had been in Kontakt scripting, so a lot of this looks familiar. I see there are a million different places to add scripts in software. Does each script slot affect only a specific sampler?
            I've currently separated different instruments of a drum kit into containers, and placed samplers in each container for each instrument. Do I need to place this script in the midi slot of the main project container? or of the container for my hi-hat track?
            I've tried both with no luck.

            Dan Korneff - Producer / Mixer / Audio Nerd

            1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @Christoph Hart
              last edited by

              @christoph-hart Also want to add that I've copied/pasted Cristoph's script above into the project, only changing the notes associated with closeHiHatKey and openHiHatKey.

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart
                last edited by

                Still works:

                HiseSnippet 1399.3oc4X01ZabDD9NaePsRansjB8i6GJDIHQQJI0oPvDKKYmHRThwxMoPoDVe2b5V7ocut2dxQsj+i8mR9GzNy8tpu5XUZSf1CgP6L6ryy7LyN6d5HsxEhiUZK6qcxxHvx9ScltTZBFFvERqwirrutyDdrAzrLQ6uLhGGCdV11a9XRf81aYk97tGsOOjKcgJQVVuTIb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1.zVXtI4ZurbYEhyyaiG04BraTRbPcZrH60ojve6Epz88uhk5umbvqf7BXESLSpzPIaeapDbd1BW2hhpQZgYAhaGvMLr6QQmhy.HhQaiwO3dlKPuYdIMDaazIPyw3PkznUggTTfg41qpkN.sQE4l0VlR.2BaMEhdHedXK6UOSn0U6LArKGdUISsIpjikByKPBnXbV2mBI8rJyR0EUET0klFLMLsJQMbOlgYXhN7e7HtgSmMkKCmGdNgQPQn8HXAdSjrSp11YDDelQE8A7Buad0t0164n1sKv3T7nvP3.4BHDCx7a4NB74IglRo0A4DkTEEnjB25Wj4XvnEylA55Puw3Yfwfm9TI4F6cLf8BqeoruYumgWlhqQZB9aRE8u5Twkkt9ZmL3xnRJ1+MdOkM++46obrJwfMPmvwB02fu+L1QeJ99At.hDoDO6kde8MnFAYi6QiydAAoWuhWlOWYeZrctx9EJ+f3i4bWs50tYcznZ4OIUBF2xz+7hsclPiY8sRaUmwMywq0+ZWWhruMxNMawcWaKt2Zaw8WaK9101hcVaKdvZaw2cIVPuC0fDiZd1VOKq+.2caPgA
                

                And yes you can add scripts at different places, which is super useful for encapsulating functionality, so in your case, it should be enough to drop this on the sampler that contains the HiHat samples.

                1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff
                  last edited by

                  @christoph-hart I think I'm counting the keys wrong. I had C1 as 60

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff
                    last edited by

                    Once you collect the midi note number with Message.getNoteNumber(), how do you display this in the console?

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Dan Korneff
                      last edited by

                      @dustbro C4 is the usual standard for MIDI note 60 although some systems use C3. - https://en.wikipedia.org/wiki/C_(musical_note)#Middle_C

                      Console.print(Message.getNoteNumber());

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      Dan KorneffD 1 Reply Last reply Reply Quote 1
                      • Dan KorneffD
                        Dan Korneff @d.healey
                        last edited by

                        @d-healey OMG I'm so stupid... That's what I was doing, but it was returning an "unknown Function" error in the console...
                        I didn't capitalize the M in message!!

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 0
                        • Dan KorneffD
                          Dan Korneff
                          last edited by

                          Still struggling with this script. I've confirmed that I'm using note 44 for closed hat, and 46 for open hat. I adjusted the numbers accordingly in onINIT and placed this script in the associated container.
                          In debug mode, I can see that the array is capturing the eventID, and hitting the closedHat key clears the array, but it's not stopping the note playback. Is there any specific sampler settings I need to adjust for HISE to kill the note?

                          Dan Korneff - Producer / Mixer / Audio Nerd

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

                          45

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          101.8k

                          Posts