HISE Logo Forum
    • Categories
    • Register
    • Login

    Don't trigger release samples if sustain pedal is down

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 285 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.
    • virtuscapeaudioV
      virtuscapeaudio
      last edited by

      Re: Ignore sustain pedal

      When sustain is held the release samples still play when I let of the keys (pdl still down)

      Tried looking here but no luck.

      Very new to scripting...How would I achieve this?

      Thanks in advance!

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

        @virtuscapeaudio Add a midi processor with this in the on note off callback

        if (Synth.isSustainPedalDown())
            Message.ignoreEvent(true);
        

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

        virtuscapeaudioV 2 Replies Last reply Reply Quote 0
        • virtuscapeaudioV
          virtuscapeaudio @d.healey
          last edited by

          @d-healey Thank you!

          Is there a tutorial on the Time Attenuator for Release Trigger script?

          Where would i find more info on it?

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

            @virtuscapeaudio

            You can see the entire script here. It's c++ but as you'll see it's not that dissimilar from HISE script.

            Link Preview Image
            HISE/hi_scripting/scripting/HardcodedScriptProcessor.h at develop · christophhart/HISE

            The open source framework for sample based instruments - HISE/hi_scripting/scripting/HardcodedScriptProcessor.h at develop · christophhart/HISE

            favicon

            GitHub (github.com)

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

            1 Reply Last reply Reply Quote 0
            • virtuscapeaudioV
              virtuscapeaudio @d.healey
              last edited by

              @d-healey this would be placed in the sampler with the releases, correct?

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

                @virtuscapeaudio Yeah before the release trigger script

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

                virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                • virtuscapeaudioV
                  virtuscapeaudio @d.healey
                  last edited by

                  @d-healey BEFORE , gotcha. Works perfectly and thanks very much!

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

                  46

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.2k

                  Posts