HISE Logo Forum
    • Categories
    • Register
    • Login

    Make the Gain knob smooth the gain?

    Scheduled Pinned Locked Moved General Questions
    77 Posts 3 Posters 1.0k 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 @CatABC
      last edited by

      @CatABC said in Make the Gain knob smooth the gain?:

      @d-healey I thought that if working between multiple generators, each generator should have separate controls, maybe I'm wrong?

      I don't think it's needed for this use case because we want to work with both as a single unit. You might even only need one sampler, depending on how many samples you have and how you want to map them.

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

      1 Reply Last reply Reply Quote 0
      • ChazroxC
        Chazrox @CatABC
        last edited by

        @CatABC said in Make the Gain knob smooth the gain?:

        I need to rethink my thinking

        I really think you do.

        And

        Link Preview Image
        HISE | Introduction

        An introduction to HISE

        favicon

        (docs.hise.dev)

        ๐Ÿ‘

        CatABCC 1 Reply Last reply Reply Quote 0
        • CatABCC
          CatABC @Chazrox
          last edited by

          @Chazrox Yes, I have searched the HISE documentation many times, but because I am a novice, I donโ€™t know how to use many APIs, and I am crying because of my stupidity.๐Ÿ˜‚

          //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 Make the Gain knob smooth the gain?:

            crying because of my stupidity

            You're not stupid. We all start at the beginning. Everything is hard until it becomes easy. Keep going.

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

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

              @d-healey

              Thanks for the encouragement David,Please teach me again, when I trigger the second C#0, how can I add a fade-out to the note that responded to the first time?

              a0dfdeab-6679-4c8b-9e2c-14fb7881e3e3-QQ_1752058364900.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 Replace the Synth.noteOff with Synth.addVolumeFade - set the volume to -100 and that will also turn the note off.

                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 think I have it working. Next I need to move on to multiple generators to test!
                  Thank you so much for your teaching ๏ผŒDavid, I love you๐Ÿ˜˜

                  function onNoteOn()
                  {
                  	local n = Message.getNoteNumber();
                  	
                  	if (n == ks)
                  	{
                  		if (eventIds.getValue(lastNote) != -99)
                  		{
                  			 Synth.noteOffByEventId(eventIds.getValue(lastNote));
                  		}
                  	
                  		if (Synth.isKeyDown(lastNote))
                  			eventIds.setValue(lastNote, Synth.playNote(lastNote, Message.getVelocity()));		
                  		
                  	
                  		return Message.ignoreEvent(true);
                  	}
                  	if (n == 25)
                  		{	 
                  			if (eventIds.getValue(lastNote) != -99)
                  				{
                  					Synth.addVolumeFade(eventIds.getValue(lastNote), 500, -100);
                  				}
                  			return Message.ignoreEvent(true);
                  		}
                  	lastNote = n;
                  	eventIds.setValue(n, Message.makeArtificial());	
                  
                  }
                  

                  //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 Looks like it's almost there. But you have added that n == 25 block. If 25 is your keyswitch then you should be using the code I put already above that and just replace the noteOff with the volumeFade. No need for the extra block.

                    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 tried to replace it directly, but it brought some problems, such as the note received the new KS and the previous note could not be stopped.

                      //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 Make the Gain knob smooth the gain?:

                        I tried to replace it directly, but it brought some problems, such as the note received the new KS and the previous note could not be stopped.

                        Show me what you tried, we do it all one step at a time.

                        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

                          When I do this, there will be errors like this, addVolumeFade seems to be invalid on the second KS

                          function onNoteOn()
                          {
                          	local n = Message.getNoteNumber();
                          	
                          	if (n == ks)
                          	{
                          	
                          
                          		if (eventIds.getValue(lastNote) != -99)
                          		{
                          			 //Synth.noteOffByEventId(eventIds.getValue(lastNote));
                          			 Synth.addVolumeFade(eventIds.getValue(lastNote), 500, -100);
                          		}
                          	
                          		if (Synth.isKeyDown(lastNote))
                          			eventIds.setValue(lastNote, Synth.playNote(lastNote, Message.getVelocity()));		
                          		
                          	
                          		return Message.ignoreEvent(true);
                          	}
                          	
                          	lastNote = n;
                          	eventIds.setValue(n, Message.makeArtificial());	
                          
                          onNoteOn() - Line 12, column 24: NoteOn with ID173 wasn't found 
                          onNoteOn() - Line 12, column 24: NoteOn with ID178 wasn't found
                          

                          //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 Working here

                            HiseSnippet 1152.3oc2W01aaaCDlJNZXxcqXcnXXeTCaevdHMvJwwMFAAMu4zYz3Fi3zz8sBVpS1DQhTihJaFC4+39oz+AaGk7KRItYoFqCqyevv73c7d38xCO2WIYPRhTQrpd93XfX8E1CFKziNbDkKHcOhX8P6dzDMnbyEcv3XZRB3Srrp7bi.KmUIYed2yNfFRELXtHB4BImAmvi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Xh9LPq3CGBphXegWn80Zb1x4Rd7dmAg.sXQ6Or2IXwFUgwIXIiEdevCssv702ZmCWWSCn6mtjzU9+MI8YxTMWLrGEKB+Mbn.bdmAH2HCPuKDPnYPAqUL7a4qaXVmSNJ7yV7m3mIa5YVaMYSuoa9uhOhnLk7Mr7QfL0oedlD7dKx9iXN3+HDW65QxFKpXtLBY4dCiU9ntkgarrFt4xZXyk0vsVVCasrF9zk0vs+6Mz7Hz9oZYTdqIgzqemrYJsr5HnXUdVGA4u.bWGmC
                            

                            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 After playing it once completely, the MIDI will start to display when you play it again.

                               onNoteOn() - Line 9, column 23: NoteOn with ID5 wasn't found 
                              

                              5c3f5916-44de-468f-b62b-203be5d15b5f-QQ_1752248899919.png

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

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

                                @d-healey However, this error does not seem to affect what happened

                                //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 d.healey

                                  @CatABC Is there a reason you are triggering the keyswitch and E2 at the same time?

                                  We need to reset the stored event ID in note off.

                                  HiseSnippet 1160.3oc2W01aaaCDlJNZXxcqXcnXXeTCXevdHMvxwwMFAAMuXmNiFmXDmlsuUvRcxlHRjZRTYyXH+G2Ok9OX6njskThaVpw5v57GLLOdGuGdu7vyCijLHNVFQLpdwzPfX7ElilJTSNZBkKH86RLdr4.ZrBhryDc3zPZbL3RLLp7Rs.Cq0Ioed2KNj5SELHWDgbojyfS3AbUtzg6+Jtu+wTW3BdPAsaseelTbjzWlf3ohYCRHkcEcLbJUq1ZljejFOgX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d.EKB+Mbn.bXnQH2HCPuKDfudPAi0z7aYqanWmQNJbSW7m3mYa5nWaLaSm4a9uhOBnrH4aXYi.oqS+7TI38Vj9O0rv+xHt11gjNVTwbY.xx8FFq7QcGCatpFt0pZXqU0vsWUCaupF97U0vc96MT+HzAIJYPVqIgLXXuzYJML5InXUdZGA4u.rTF5YI
                                  

                                  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 C0 will be a KeySwitch, and I will have many other keyswitch involved after this, so I need to trigger a KS first to ensure it is the articulation of C0

                                    //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 see, that makes sense.

                                      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 CatABC

                                        @d-healey

                                        I upgraded the sampler to two and used MidiMuter to switch the KS. When C#0 was in, it worked fine, but when I switched back to C0 again, it couldn't reproduce the logic.

                                        HiseSnippet 1760.3oc6a0raaaDDlzxLMRoMMoH.oGYC5Ao.GCQpeRLLLh+StwHwwBQNN8PAB1PtRZgo1UkboaDB7CP6CPAxkh7Rz1q4ZeK5sdMnG501YIoDIkoTjksUsLjArQ1Y2Y2uYlcmY9jPpZyLvNNLaI4L60oMVR9SUp0gxatQSDgJs8lBA6yrbag2BYhkVuSajiC1TRVN02HVgb54k794CObcjEhZfCEIIsOiXfeBoEgGJs5pOlXYI1s8Hshr5hqtsAitAyh4BnIkRdo1HiCPMvOEIV1bJROB4zTR9tJkzKXTz79l55kVprApLdo5n500JXVrX4GrjVgkPEePYb9RRxWohIgyrqwQ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BWgofzieEfFFhErDVCpXWmXPPVPTd4g0Myn+133lJMhiR3j7cPT+se8NU7UHQE87HIZF9urOVKXyZyJg9CtlRuFYC9fABajNdAgTibAAsg2kPOaPdt.OKrTtGZtdPgA+dokHlBQQauVxy2Gs3qzHrGetRcxqqwcMNPbszo+MQZZn+yXeb.o6hwZjVssvUnGBYjAIBL9EP3tNx0h2UZ733NLJqcSFkXD0A7LLvqoQCrcTrmnAALfPFGDJ4Vq9LrEFEsypud0m.UfQ1feBOl9BsS7GMRhwquTwGtphG2pSu7FRc4l2vyXtbBswNH3R3qgDnPgiZPC7FX3zoTrkHop7bhTG9iyKF62AO0zav+B+DLolXrbvjZcmLpId6to9dAvLHF2D8AwMY0+9w+14N2DsDImDSZeZnmnFwjtIzg.M9V6KJ1pDdhsX1shrtqtZWg5QEVEQisYv3X6zNhHX2g+4CqPQvcfZXvxM20w.bLhq8QeoU00xA+BhIuoVTECEqGU7iP1lPHy37mJ0UltoRoeRnRUZFUpoapTEmVoRchg8E.xTynRMiJ0IiJk9T.UpfsaFUpgPkReFUpYTolV9JXF9qOnO8K1Qwaq.7EzU8Bkp++DKuvvKsvf3k9t69S+5kTdou6susz6SfW5MRhWJPibz4kl669qyRdo.P+iKC7ROwv6TyQsvv3n9i8wQs7LNpSabTm9InNk7UTNiV5DkV5UNqnkN7T8STJpEl8s8cofhZgYTTO8TTmezhaejmuSN5pm43c7otNQccmdZrST3dlQo8rA0SB5sShynExvl8RC+JChDFW0SBX2Tu+WljVYGwXUsiWJnET96kFFw2pion93pXgwUwhiqhkFWEKOtJd+wUwG7wUTzcxZtbVK+2I.K9pU7ZDRV1m.u2SFo+CXHo9dI
                                        

                                        20d3f5d8-e394-461f-af33-ea15a851d03c-QQ_1752250667477.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 I posted a video to Patreon at the start of the month about keyswitching using midi muters. It will probably help you here.

                                          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 studied the relevant videos you posted on Patreon, but they don't apply to the problem I'm facing now.

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

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            21

                                            Online

                                            1.8k

                                            Users

                                            12.1k

                                            Topics

                                            105.5k

                                            Posts