HISE Logo Forum
    • Categories
    • Register
    • Login

    Directly fade in and out samples from two samplers on one MIDI note?

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 208 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.
    • CatABCC
      CatABC
      last edited by

      Directly fade in and out samples from two samplers on one MIDI note?
      I want to switch samples through KeySwitch on a note, and when the second KS starts, Sampler1 will fade out and Sampler2 will fade in,How can this be done?
      1150be0d-2658-4c12-b51f-a91bbd4753c5-c93691db-2da2-434d-8692-f92c82014417.png

      //I am a new student at HISE._
      //Windows11 & MacOS Ventura 13.6.7_

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

        @CatABC You'll need to have both samples playing at the same time. Then when the keyswitch is pressed you can fade one in and the other out.

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

        CatABCC 1 Reply Last reply Reply Quote 0
        • CatABCC
          CatABC @d.healey
          last edited by

          @d-healey I don't know how to edit the code😢 , Could you please help me?Thank you very much

          //I am a new student at HISE._
          //Windows11 & MacOS Ventura 13.6.7_

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

            @CatABC said in Directly fade in and out samples from two samplers on one MIDI note?:

            Could you please help me

            You're going to need to start scripting. It's not the most simple thing to implement though and the exact method will depend on how you've mapped your samples.

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

            CatABCC 1 Reply Last reply Reply Quote 0
            • CatABCC
              CatABC @d.healey
              last edited by

              @d-healey
              I want to use

              Synth.addVolumeFade(int eventId, int fadeTimeMilliseconds, int targetVolume)
              

              to control the Gain parameter of Simple Gain, but I don't know what to write as eventId,
              Do you know how to edit it?🤔

              //I am a new student at HISE._
              //Windows11 & MacOS Ventura 13.6.7_

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

                @CatABC I recommend you start with my scripting 101 video. The addVolumeFade function is for controlling the volume of individual events, it's not used for controlling the simple gain.

                I think addVolumeFade is probably a good option though, deepening on how the samples are mapped and being triggered.

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

                CatABCC 1 Reply Last reply Reply Quote 0
                • CatABCC
                  CatABC @d.healey
                  last edited by

                  @d-healey OK, thank you for your guidance. I think I can achieve the effect I want in the near future.😎

                  //I am a new student at HISE._
                  //Windows11 & MacOS Ventura 13.6.7_

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

                  31

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.0k

                  Posts