HISE Logo Forum
    • Categories
    • Register
    • Login

    Ignore sustain pedal

    Scheduled Pinned Locked Moved Scripting
    8 Posts 2 Posters 1.6k 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.
    • d.healeyD
      d.healey
      last edited by

      Is there a way to disable the default behavior of the sustain pedal? I want to use it for other things and the "sustain" is getting in the way.

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

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

        You could just add a script in the main container that changes the cc number and it would stop acting like a sustain pedal?

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

          Sounds simple enough :) would Message.ignoreEvent() have the same effect?

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

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

            Yes but then your "other things" would not receive the message.

            1 Reply Last reply Reply Quote 1
            • d.healeyD
              d.healey
              last edited by

              I've hit an issue with redirecting the sustain pedal CC to another CC number, if a later script is expecting CC64 it doesn't receive it.

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

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

                I'm playing with this more and I can't really see a difference between changing the controller number and using ignoreEvent. Either way later scripts can't pick up CC64 or the Synth.isSustainPedalDown() function. I think it would be good if there was a per synth/sampler option to disable the default sustain pedal behavior.

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

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

                  What if you ignore the sustain pedal in the last script of each synth?

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

                    Yep that did it :) thanks!

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

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

                    42

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    102.1k

                    Posts