I Got A Question



  • Hey Folks
    Here is A Quick Question

    Let Say I Have 2 Samplers, And I Want The First One To Get Processed By Effects,
    But The Second One To Go Directly Out, Without A Touch.

    How Can I Route The Second Sampler To Go Directly Out?

    HiseSnippet 966.3oc6XEriaaCDkZsYS1hzEMA4PuT.enWag0taR5M60q8FrnqSEr1lzaALRyZSTIRAJpj37mja8SnW6sdMeG4Ttk+f1gTxqnbcV3ZjlzFXcxyibHeblgCevAJYDjmKUDucOedFP7tAMbtPO63YLtfb5Ph2dzwrbMn5TBMXdFKOGhIddstuAva21D62a6MfkvDQPMDg7PIOBNimx00nA8+AdRxIrX3bdpyrOr+oQRwwxDYAxmVztjLVzuvlBOfYl1NTh2mMJlqkpPMSC4Du1CjwyCmIelnb9OjmyeRBXL7Ig3BUBehLI1vXCJ43Y7j3fEm6bBtnA0QgVkQgaSGyi4WhWGM9R6.cp8vMd3syUQOeW50csoGwgcsKYGRBYbQBS2jYlzQ0.bYyL0oBMHx454toqOpz8lz.tNZ1p46NqfuXh5ea9Vk7+B5nKt.hz0jsM8jedSyzqtPr6pJD8B9aWG2iFxSyRfIvSA0SpRzkPcJw7aPrIRYZH+EKtU8qu7kuo2PVZFWLsBp+AG75dOBzmgdmTOsW0anZ9RXuo2i3w5Yt.mn.3E.l0b1geumWqlgiVqW3XEYiIxBMx0wLsh+bhG8AEogX6fH.SFBAjfKN0aGhwUqcWiso3HDDwVi+D+pFz2X6UMn+hAcy3ecYT9VzPsBXo3NGxLwVkMR+4zJK+2Gs8xV61dAJHQxhcxi32ezePAVVpZh9a8sa0QoxBQi8ph4SfLfocxW3206OYx8Uxhrk85s8r2IOWgscqKXrC7iB.ymZ2y3wJYd9E3wwtV4tCETnlZhU0H1Z07lXXt0MqZRT+TNXpg3QKJ.pmscW5dNyVGguEXs8Wxd+krOXI6CWx9NKYe2kruWscY.cLKyTYXdKpcyZ9qsd073BDvviryLGvmd4hWh31x5xvrkJNO1s8kr24KYsVO5tdsfWzucj.aNJQDCGuEcHbAqHQu.sYKhwRgLalTviZdI.KpmNETtbekGnizZ7NXMxs6OAR.Vtys3uo+YbAvTMua+OJV3u9whqJe8UzR51wzWqymFJPZ8IjBj2+gt8pdXrCt6J8+wyy2fZak2w7x6GKp9gPVSzhkBOaU+dHSyPNABySGVg0INJ7re4nnBCkvWz1.gQ6uUXzVgQaEFsUXz6VXz9aEFsUXzVgQaEF8+XgQeHXYJKRIeLJ3QqjVtdcKBxRg8u+dW5XicGexSYIEH.k1865RRw2pdbTj4hv2hQ3U6y9afOGrA9b3F3yc1.et6F3y81.e99qzGiLgiJzxzxljHPvnxBKuQWVX0h7WP7fsIp
    


  • I Know There Is Way To Add The FX Into A Container, And Not On Master FX.
    But I'm Way To Far To Go Back And Move The Modules, It Takes Too Much Time 😕



  • @Natan said in I Got A Question:

    But I'm Way To Far To Go Back And Move The Modules, It Takes Too Much Time

    That's the way to do it. If you edit the xml it might be quicker. You don't even need a container, just apply them directly in the sampler's FX slot.



  • @d-healey You Know I Like Headaches 🙂
    And One Last Question.

    I Want To Trigger Note Numbers 0,1,2,3 From Sampler 1 ( Using Buttons )
    And In Other Hand Don't Want To Send The Messages To Sampler 2.
    ( Sampler 2 Contains Full Range 0To127 Samples)

    How Can I Ignore Those Notes On Sampler 2 To Not Play Anything?

    And Yeah I Know I Can Change The LoKey On Sample Maps Editor, So They Start From Note 5 But What About A Simple Script Line?



  • @Natan Put the script in the sampler's MIDI processor slot, then it will only affect that sampler



  • @d-healey said in I Got A Question:

    t in the sampler's MIDI processor slot, then it will only affect that sampler

    Is This Correct?

    function onNoteOn()
    {
    	if (Message.getNoteNumber() == 0)
    	    Message.ignoreEvent(true);
    	    
    else if (Message.getNoteNumber() == 1)
    	    Message.ignoreEvent(true);
    
    else if (Message.getNoteNumber() == 2)
    	    Message.ignoreEvent(true);
    	    
    else if (Message.getNoteNumber() == 3)
    	    Message.ignoreEvent(true);
    
    }
    

    And Yeah It Is On MIDI processor slot Of First Sampler, That i Dont Want To Play Any Sounds.



  • @Natan

    Is This Correct?

    Nope. Put your script that plays notes in the sampler that you want to play those notes.



  • @d-healey Well, The Notes Triggers Both Samplers.
    I Just Want 0,1,2,3 To Play From Sampler 2,
    And At The Same Time Ignoring 0,1,2,3 From Sampler 1
    You have Any Snippet?



  • @Natan

    Well, The Notes Triggers Both Samplers.

    Did you put the script in the MIDI procesor slot of the sampler?



  • @d-healey Yes, And It Works Just Fine,
    I Dont Hear Any Sounds From The Sampler Anymore.
    Just The 0,1,2,3 From Sampler That Linked To The Butons.



  • @Natan I meant the script that triggers the notes



  • @d-healey Sir, Let Me Send You A Snippet In A Few Minutes 🙏



  • On This Example, All 3 Buttons Plays On Sampler One While Sampler 2 Ignores Exact Note Numbers, Used NOTES 0,1,2

    HiseSnippet 1886.3oc6Z8+aSbCE+RK2FIrLAHlD+xjrPSZoRktbI7kIXLB8KLEsEHpo.SBg.yc9Rr5E6SmcZIah+E1eK6OAj1+P6+fsmsuKmSZRZVWaGv5IgT7yum8m2G+reO6R6DtOQH3INEJtyvXhSgOysyPlr2F8vTlSyMA4talLn+q4uwY8gwXgfD3Tnvx+fp6BEOmi96Ou+53HLymjKxw4obpO4mn8oxboupwORihdHNfrCsuk12nQSeNaCdDe..kkcq5Di82E2k7HrRskbcJ7IaEPk7jNRrjHbJbt04AC6ziuOyn+SoB5qiHpFdNcfAxH9g7n.EhU+1Yidznf1YtrvAFz14DvxFB3JtsnAzQxyIhKp6.kagMeTXo4AOOa3UcpvyaZvqfE7NmAdWxsieBMVl2iBaWvsISRRBwvRfMrL55rzucd2M3fFL4Z8w6RdXBzXjEUtU0pqh7pVck6VtT4Rey2f5.dBAI6QPj8.aPz.DOT2tKgQR.WL.w3RBJjmnEqavYqUtDrLJjn8vIFSaFHP2C87q6sJx7uWjMGOQPPXTHMpuPBfDI4HwtTFLbTA50CjRNydzVWKwCFrLGoKQtAueLmAMpbsz9ulxGfQuE3kHpD0m2G5FmLDI3vPiAeIDMjO.kPhHXgwI6yGHHqpTeeH5DIHr..Z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QBLFj9HaeJjrWsxS8agg6k7Fas0yR0cv5Ue3N+51dSzt1DsqOQ6aLQ6aNQ6aMQ6am21Pnsvwp3D0aNLQVpOcwxRACPaL3xVZtNs6nA2Hw9gIFQyZnX8nFev8hEmdG3t7hA2C4QUJlgwNT0pyVr8fskfDyoraRBwChjijZCxVbFOtGmQ8GeO.DS2sKIwF5S0edfTBaAykbkFaaJsMWzW0.NhhfSFaq8+Lpvawoh4sbcUWCbQpi0Pebjmb4+2mmbdT2mmlkDAydh78704OyUeRNRk38+JntMefDRnlkTyEx70Ax16Sry+sjJmpoc0rZT6PXA5F+E7k1oWVxRUmdYc53mMTfuk9a8EZJrLgoxbnK+KBRCGYGRKfZJTPBRns3UI8EYUI8LprWytLdhpZgigRjhOEKQJdNkH4b9yJQ5DnDohGikHMdIBVpNy5k5PjpMgBKQOCtVXHOo+6eUU4cB72AprqduJQ8RNho9WB5OJ3hlxKeWV8BuEognY85rn6cOTU0CRpdQmLcn5IS+DPUxd48hlGU6vFKuEYrN7go1wHjpuXP5skKgl9ajOqm58X7Mh0JdfccW3344yp5jEPj+fZibPakx8KaoZ2YJpkK5Pxg9u6k59X5tGWdx6dT6rKeb1kON6xGmc4iOfu7woAJ6i8S3uz2j3Qg0yqk.njo+eRTQ2Vp1HOGcJUvN2pqU0oOTQ2K88UaDtNvvS2lZGAapeDr4FGAat4QvlacDr41GAa914ZipX5GLPx6aNjDDzdKSfUgsFEXsryeCTlayYK
    


  • You need to put the script that plays the samples inside the sampler's MIDI processor slot. You don't need a script that blocks notes. Don't use the global onControl callback, use a callback function, then you don't need to write as much code.



  • @d-healey said in I Got A Question:

    If you edit the xml it might be quicker.

    Sir, But How?
    XML File Is Very Confusing To Read!

    For Example, There is A FX On Master
    And One On Container, How You Can Move The One On Master To The Container? What Is Your Magic?

    <?xml version="1.0" encoding="UTF-8"?>
    
    <Processor Type="SynthChain" ID="Test" Bypassed="0" Gain="1" Balance="0"
               VoiceLimit="64" KillFadeTime="20" IconColour="0" packageName=""
               BuildVersion="650">
      <ChildProcessors>
        <Processor Type="MidiProcessorChain" ID="Midi Processor" Bypassed="0">
          <ChildProcessors/>
        </Processor>
        <Processor Type="ModulatorChain" ID="GainModulation" Bypassed="0" Intensity="1">
          <ChildProcessors/>
        </Processor>
        <Processor Type="ModulatorChain" ID="PitchModulation" Bypassed="1" Intensity="0">
          <ChildProcessors/>
        </Processor>
        <Processor Type="EffectChain" ID="FX" Bypassed="0">
          <ChildProcessors>
            <Processor Type="PolyphonicFilter" ID="MasterFilter" Bypassed="0" Gain="0"
                       Frequency="20000" Q="1" Mode="6" Quality="-2.13088e+09" BipolarIntensity="0">
              <ChildProcessors>
                <Processor Type="ModulatorChain" ID="Frequency Modulation" Bypassed="0"
                           Intensity="1">
                  <ChildProcessors/>
                </Processor>
                <Processor Type="ModulatorChain" ID="Gain Modulation" Bypassed="0" Intensity="1">
                  <ChildProcessors/>
                </Processor>
                <Processor Type="ModulatorChain" ID="Bipolar Freq Modulation" Bypassed="0"
                           Intensity="1">
                  <ChildProcessors/>
                </Processor>
                <Processor Type="ModulatorChain" ID="Q Modulation" Bypassed="0" Intensity="1">
                  <ChildProcessors/>
                </Processor>
              </ChildProcessors>
            </Processor>
          </ChildProcessors>
        </Processor>
        <Processor Type="SynthChain" ID="Container" Bypassed="0" Gain="1" Balance="0"
                   VoiceLimit="256" KillFadeTime="20" IconColour="0">
          <ChildProcessors>
            <Processor Type="MidiProcessorChain" ID="Midi Processor" Bypassed="0">
              <ChildProcessors/>
            </Processor>
            <Processor Type="ModulatorChain" ID="GainModulation" Bypassed="0" Intensity="1">
              <ChildProcessors/>
            </Processor>
            <Processor Type="ModulatorChain" ID="PitchModulation" Bypassed="1" Intensity="0">
              <ChildProcessors/>
            </Processor>
            <Processor Type="EffectChain" ID="FX" Bypassed="0">
              <ChildProcessors>
                <Processor Type="PolyphonicFilter" ID="ContainerFilter" Bypassed="0" Gain="0"
                           Frequency="20000" Q="1" Mode="6" Quality="-2.13088e+09" BipolarIntensity="0">
                  <ChildProcessors>
                    <Processor Type="ModulatorChain" ID="Frequency Modulation" Bypassed="0"
                               Intensity="1">
                      <ChildProcessors/>
                    </Processor>
                    <Processor Type="ModulatorChain" ID="Gain Modulation" Bypassed="0" Intensity="1">
                      <ChildProcessors/>
                    </Processor>
                    <Processor Type="ModulatorChain" ID="Bipolar Freq Modulation" Bypassed="0"
                               Intensity="1">
                      <ChildProcessors/>
                    </Processor>
                    <Processor Type="ModulatorChain" ID="Q Modulation" Bypassed="0" Intensity="1">
                      <ChildProcessors/>
                    </Processor>
                  </ChildProcessors>
                </Processor>
              </ChildProcessors>
            </Processor>
          </ChildProcessors>
          <RoutingMatrix NumSourceChannels="2" Channel0="0" Send0="-1" Channel1="1" Send1="-1"/>
        </Processor>
      </ChildProcessors>
      <RoutingMatrix NumSourceChannels="2" Channel0="0" Send0="-1" Channel1="1" Send1="-1"/>
      <macro_controls>
        <macro name="Macro 1" value="0.0" midi_cc="-1"/>
        <macro name="Macro 2" value="0.0" midi_cc="-1"/>
        <macro name="Macro 3" value="0.0" midi_cc="-1"/>
        <macro name="Macro 4" value="0.0" midi_cc="-1"/>
        <macro name="Macro 5" value="0.0" midi_cc="-1"/>
        <macro name="Macro 6" value="0.0" midi_cc="-1"/>
        <macro name="Macro 7" value="0.0" midi_cc="-1"/>
        <macro name="Macro 8" value="0.0" midi_cc="-1"/>
      </macro_controls>
      <MidiAutomation/>
      <MPEData Enabled="0"/>
    </Processor>
    
    


  • Copy everything in the child processors tags of the master one, and paste it into the child processors tag of the container. As long as the IDs are different everything should work fine.



  • @d-healey Nah, I Don't Get The Idea Of This 😕 Too Confusing, And Simply I Break The XML

    Can You Mark The Above Xml, From What Line, And Where It Needs To Get Pasted?



  • @d-healey Okey, I Moved The Modules Manually, Thank You Sir, Maybe In Future We Can See A Video From You To Learn About This Types Of Tips And Tricks 🙏





  • @d-healey HAHA, Right On Time 🙂 Thanks A Ton Sir


Log in to reply
 

7
Online

1.6k
Users

4.6k
Topics

42.7k
Posts