HISE Logo Forum
    • Categories
    • Register
    • Login

    Some Help with HISE Envelopes 101?

    Scheduled Pinned Locked Moved Unsolved General Questions
    10 Posts 3 Posters 175 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.
    • clevername27C
      clevername27
      last edited by clevername27

      Could someone please help with some HISE envelopes 101?

      I have a drum playback sampler for a single articulation of an instrument. Samples are simply played back—nothing fancy.

      I'd like to add behaviour for fading them to silence. Samples should always cut each other off, with the only overlap being the fade-out of the first sample while the second one begins.


      1. Choking Option

      If one note is sustaining, and another begins, the first one fades (quickly) after the second one begins. (As I understand, the Choke Group Processor is for different samplers to affect each other, like if one sampler is playing back hi-hat opens, and another sampler plays back hi-hat closings.)

      2. Note Duration Option

      A sample quick fades out when a note-off is received.

      3. Manual Control Duration

      Users can specify a time (globally) for when samples begin to fade.


      Here's what my Module chain looks like, with the time and modulation bits annotated.

      4cf224e5-b7e9-4182-a117-ceb4a78b6a51-Sampler copy2.png


      I'm eager to learn the best "HISE" way to do things. This bit in the documentation looked interesting, and an interesting post about deferring callbacks (tho I'm unclear how that's relevant here):

      a8618512-cabc-4776-b9bf-02509586795f-image.png

      I'm unclear on the best way to have multiple factors affect how a sample fades out—or even if this a case of that. Obviously, I can't daisy-chain amplitude envelopes, but I don't think I should be manually computing continuous amplitudes constants, either. I've struggled a bit with some of the other documentation but these bits (below) looked relevant.

      Cheers and thank you. 🙏

      94fe3486-fe10-4578-b817-bd06a1ccd6b4-docs.png

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

        One method is set your sampler's Retrigger setting to Kill Duplicates and set the voice count to 1 and adjust the fade out time to your liking.

        Another way is to use Synth.addVolumeFade() then it's totally under your control.

        You could also use Synth.noteOffByEventId() and then the release part of the gain envelope will control the fade out time.

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by clevername27

          @d-healey said in Some Help with HISE Envelopes 101?:

          One method is set your sampler's Retrigger setting to Kill Duplicates and set the voice count to 1 and adjust the fade out time to your liking.

          OMG. Thank you. Done.

          @d-healey said in Some Help with HISE Envelopes 101?:

          Another way is to use Synth.addVolumeFade() then it's totally under your control.
          You could also use Synth.noteOffByEventId() and then the release part of the gain envelope will control the fade out time.

          Based on experimentation with those methods (thank you), I've realised that I don't want to fade the samples out—they already fade to silence (and one-shot will work). It's the rate (curve) at which this happens I want to control—for all notes, with a single knob.

          Is there a built-in solution for this? (I've tried searching the docs, but "curve" doesn't yield any hits.)

          Cheers.

          LindonL d.healeyD 2 Replies Last reply Reply Quote 0
          • LindonL
            Lindon @clevername27
            last edited by

            @clevername27 said in Some Help with HISE Envelopes 101?:

            Based on experimentation with those methods (thank you), I've realised that I don't want to fade the samples out—they already fade to silence (and one-shot will work). It's the rate (curve) at which this happens I want to control—for all notes, with a single knob.

            Is there a built-in solution for this? (I've tried searching the docs, but "curve" doesn't yield any hits.)

            Cheers.

            Sadly there is no Release curve in HISE, tho I have asked for it in the past.....

            HISE Development for hire.
            www.channelrobot.com

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

              @clevername27 said in Some Help with HISE Envelopes 101?:

              Is there a built-in solution for this? (I've tried searching the docs, but "curve" doesn't yield any hits.)

              You can control the release curve if you're using a table envelope.

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

              LindonL 1 Reply Last reply Reply Quote 1
              • LindonL
                Lindon @d.healey
                last edited by

                @d-healey said in Some Help with HISE Envelopes 101?:

                @clevername27 said in Some Help with HISE Envelopes 101?:

                Is there a built-in solution for this? (I've tried searching the docs, but "curve" doesn't yield any hits.)

                You can control the release curve if you're using a table envelope.

                at which point its programmatically difficult at best to control the attack time and shape... so its a compromise....

                HISE Development for hire.
                www.channelrobot.com

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

                  @Lindon said in Some Help with HISE Envelopes 101?:

                  at which point its programmatically difficult at best to control the attack time and shape..

                  Yes, but Bill was only asking about release.

                  You can use an ahdsr for the attack, set the release to max and place a table envelope after it to control the release time and shape.

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

                  LindonL clevername27C 2 Replies Last reply Reply Quote 1
                  • LindonL
                    Lindon @d.healey
                    last edited by

                    @d-healey said in Some Help with HISE Envelopes 101?:

                    @Lindon said in Some Help with HISE Envelopes 101?:

                    at which point its programmatically difficult at best to control the attack time and shape..

                    Yes, but Bill was only asking about release.

                    You can use an ahdsr for the attack, set the release to max and place a table envelope after it to control the release time and shape.

                    yeah thats a do-able thing -- of course thats two envelopes to do the job of one with a release shape that you can apply.... so I still think its a valid feature request...

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Lindon said in Some Help with HISE Envelopes 101?:

                      so I still think its a valid feature request...

                      Yes, that along with the hinted at flex envelope Christoph mentioned a few weeks ago.

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

                      1 Reply Last reply Reply Quote 3
                      • clevername27C
                        clevername27 @d.healey
                        last edited by

                        @d-healey said in Some Help with HISE Envelopes 101?:

                        at which point its programmatically difficult at best to control the attack time and shape..
                        Yes, but Bill was only asking about release.

                        You can use an ahdsr for the attack, set the release to max and place a table envelope after it to control the release time and shape.

                        I'm just happy people are talking about me.

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

                        12

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.0k

                        Posts