HISE Logo Forum
    • Categories
    • Register
    • Login

    I Got A Question

    Scheduled Pinned Locked Moved General Questions
    22 Posts 3 Posters 756 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 @Natan
      last edited by

      @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.

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

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

        @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?

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

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

          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 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.

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

              @Natan

              Is This Correct?

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

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

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

                @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?

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

                  @Natan

                  Well, The Notes Triggers Both Samplers.

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

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

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

                    @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.

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

                      @Natan I meant the script that triggers the notes

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

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

                        @d-healey Sir, Let Me Send You A Snippet In A Few Minutes :folded_hands:

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

                          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.y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AprqduJQ8RNho9WB5OJ3hlxKeWV8BuEognY85rn6cOTU0CRpdQmLcn5IS+DPUxd48hlGU6vFKuEYrN7go1wHjpuXP5skKgl9ajOqm58X7Mh0JdfccW3344yp5jEPj+fZibPakx8KaoZ2YJpkK5Pxg9u6k59X5tGWdx6dT6rKeb1kON6xGmc4iOfu7woAJ6i8S3uz2j3Qg0yqk.njo+eRTQ2Vp1HOGcJUvN2pqU0oOTQ2K88UaDtNvvS2lZGAapeDr4FGAat4QvlacDr41GAa914ZipX5GLPx6aNjDDzdKSfUgsFEXsryeCTlayYK
                          
                          1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey
                            last edited by

                            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.

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

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

                              @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>
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey
                                last edited by

                                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.

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

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

                                  @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?

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

                                    @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 :folded_hands:

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

                                      @Natan https://www.youtube.com/watch?v=I2AA9PaR70o

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

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

                                        @d-healey HAHA, Right On Time :) Thanks A Ton Sir

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

                                          @d-healey said in I Got A Question:

                                          @Natan https://www.youtube.com/watch?v=I2AA9PaR70o

                                          Excellent, Thank YOu For The Video, Very Clear Now :)

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

                                            @Natan said in I Got A Question:

                                            @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?

                                            -- one alternative here is to think about using MIDI Channels...

                                            HISE Development for hire.
                                            www.channelrobot.com

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

                                            26

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.2k

                                            Posts