HISE Logo Forum
    • Categories
    • Register
    • Login

    Bypassing Samplers ( 2 Method And What Is Your Solution )

    Scheduled Pinned Locked Moved General Questions
    11 Posts 3 Posters 389 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.
    • NatanN
      Natan
      last edited by Natan

      Hey Folks

      There are 2 Ideas to Bypass the samplers:
      First One is To Connect A Button to The Samplers Enable/Disable Button.
      And Second One Is To Use A Midi Muter, And Mute The Incoming Signal.

      Here Is The What Happens!
      On First, You Can Clearly Hear A Noise And Less Than A Second Of All Engine Mute.
      On the Second Idea, The Sampler Is Kinda In Use And Adds Maybe A Few Percents On CPU

      What's Your Best Solution?

      Is No Midi In, Mean The Samplers Is Kinda Bypassed?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Natan
        last edited by

        @Natan said in Bypassing Samplers ( 2 Method And What Is Your Solution ):

        Hey Folks

        There are 2 Ideas to Bypass the samplers:
        First One is To Connect A Button to The Samplers Enable/Disable Button.
        And Second One Is To Use A Midi Muter, And Mute The Incoming Signal.

        Here Is The What Happens!
        On First, You Can Clearly Hear A Noise And Less Than A Second Of All Engine Mute.
        On the Second Idea, The Sampler Is Kinda In Use And Adds Maybe A Few Percents On CPU

        What's Your Best Solution?

        Is No Midi In, Mean The Samplers Is Kinda Bypassed?

        option 3. Put a Simple Gain in the Sampler FX, and set it = -100dB when muted.

        HISE Development for hire.
        www.channelrobot.com

        NatanN 1 Reply Last reply Reply Quote 1
        • NatanN
          Natan @Lindon
          last edited by

          @Lindon Haha Thanks Lindon :folded_hands:
          My Concern Is To Achieve Best Solution In Terms Of CPU Usage

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

            Best Solution In Terms Of CPU Usage

            Midi muter, and set the sampler's voices to Amount 1 and Soft Limit 1.

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

            NatanN 1 Reply Last reply Reply Quote 1
            • NatanN
              Natan @d.healey
              last edited by

              @d-healey Thank you Sir :folded_hands:

              Mine is Set To 64 At The Moment, Is That Too High?

              And What is The Api For The voices Amount And Soft Limit?
              Thank You

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

                @d-healey Is This Good?
                And what is The Best number for VoiceLimit?

                const var Sampler1 = Synth.getChildSynth("Sampler1");
                const var MidiMuter = Synth.getMidiProcessor("MidiMuter");
                
                const var Button1 = Content.getComponent("Button1");
                
                
                inline function onButton1Control(component, value)
                {
                	if (value)  
                    {
                        Sampler1.setAttribute(Sampler1.VoiceLimit,64);
                        Sampler1.setAttribute(Sampler1.VoiceAmount,64);
                        MidiMuter.setAttribute(MidiMuter.ignoreButton,0); 
                    }
                    else
                    {
                        Sampler1.setAttribute(Sampler1.VoiceLimit,1);
                        Sampler1.setAttribute(Sampler1.VoiceAmount,1); 
                        MidiMuter.setAttribute(MidiMuter.ignoreButton,1); 
                    }
                };
                
                Content.getComponent("Button1").setControlCallback(onButton1Control);
                
                
                HiseSnippet 1321.3oc4X0raabCDlqkYPjRjaRPNzKEXgPOHC3ZH433XffhHKY6.iFYKn0Is2BnWQIQ3cIWvkqaTM7o9B0Gg9Hk2f1g6OZ4pJHKqh5925CVyPNC+lY39MiTOovkFFJjHqxmOIfhrdL1YBWMtyXBiiN4Pj0F3tjPEUZmnp8j.RXHc.xxpza0JrJuNJ94yuoMwivco4pPnOHXtz2w7Ypbs8Z8cLOuiICnmy7M18tsNwUv6H7DQ.dJgafBHtWRFQOkn21ZXj0CNZ.SIjNJhhFhrVusXvDmwhejmr+OvBYW3Q0BMQNfiRTervafFw5Oi5Ll4MnWVbGhPV3d4YgRIYgmi6xFvlpOOa7j3ErysvLeXs1hfWyUDdVFva8D38TriqjEnxWQisGgOgCEpgDnDXBqj8hV6mKg6HfcvUa6StjdrDDlZQ8l6r+V16r+lutZE8ePkHTYeEQZ6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NtMosdpl+tfZeQjtuV1DCXXrBGXTJWp4vEqo4YSjank0.xgxGDK7avS5hMylDQuXyrEQtYtBhszOG+sUrJQ45NuwSS6Ay33YdkNDFXSCIXZg6ET5SbkhO5lzNQi0GFqAPIO9m5pLtqV1d5W+BiarcCjOzt7itt5WD9FHCOea1YEr4EqfM6tB17xUvl8VAad0JXy9KzF8jJGDoD9IjjfhdGkbwx5noWrJg9c.qo6upB
                
                d.healeyD 1 Reply Last reply Reply Quote 1
                • d.healeyD
                  d.healey @Natan
                  last edited by

                  @Natan

                  Mine is Set To 64 At The Moment, Is That Too High?

                  If you want the minimal cpu usage set it to 1 and 1. If you're using the sampler (not bypassed) then set it to whatever you need to set it to depending on how many voices you expect to be playing at any one time. If it's a monophonic instrument with short release then 16 is probably fine if it's a complex polyphonic instrument then 256 might be necessary.

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

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

                    @Natan You know I always have to do this

                    inline function onButton1Control(component, value)
                    {
                    	Sampler1.setAttribute(Sampler1.VoiceLimit, 63 * value + 1);
                    	Sampler1.setAttribute(Sampler1.VoiceAmount, 63 * value + 1);
                    	MidiMuter.setAttribute(MidiMuter.ignoreButton, !value);
                    };
                    

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

                    NatanN 1 Reply Last reply Reply Quote 1
                    • NatanN
                      Natan @d.healey
                      last edited by

                      @d-healey said in Bypassing Samplers ( 2 Method And What Is Your Solution ):

                      @Natan You know I always have to do this

                      inline function onButton1Control(component, value)
                      {
                      	Sampler1.setAttribute(Sampler1.VoiceLimit, 63 * value + 1);
                      	Sampler1.setAttribute(Sampler1.VoiceAmount, 63 * value + 1);
                      	MidiMuter.setAttribute(MidiMuter.ignoreButton, !value);
                      };
                      

                      Haha That's Very Simple And Short :)
                      Is This Or What I Wrote Impact The Performance?

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

                        @Natan No won't make a difference.

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

                        NatanN 1 Reply Last reply Reply Quote 1
                        • NatanN
                          Natan @d.healey
                          last edited by Natan

                          @d-healey Great,Thanks A Ton Sir.

                          Is This Still Create Noise Sounds?
                          The Answer Is NO :) Thanks A Ton Sir

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

                          13

                          Online

                          1.8k

                          Users

                          11.9k

                          Topics

                          103.8k

                          Posts