HISE Logo Forum
    • Categories
    • Register
    • Login

    Set midichannel to Omni?

    Scheduled Pinned Locked Moved Scripting
    10 Posts 2 Posters 438 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.
    • ulrikU
      ulrik
      last edited by

      I have a 5 voices synth project which make use of midi channels 1 to 5, if I want the 5 different synth groups to respond to Midi CC, like Pitch Bend, is there a way to set the controller value to omni, or to duplicate it so it sends to channel 1 to 5?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        @ulrik Global modulator should do the job because it will be outside of the synth groups.

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

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey I can't use that, I need the CCs sent on different channels, is it possible you think?

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            @ulrik I thought you want it to be omni? I'm confused, please clarify

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

            ulrikU 2 Replies Last reply Reply Quote 0
            • ulrikU
              ulrik @d.healey
              last edited by

              @d-healey
              I have 5 different groups, receiving on 5 different channels.
              I want all groups to receive the same CC ControllerValues.
              Each group has its own Script Processor, and I need to read the controller values from the onController callback on each processor.

              So if I log the controller values from each processor, the groups with channel filter 2 to 5 will not receive the values and I can't use a global modulator for this because I will manipulate the CC values differently for each group.

              That is why I want the incoming controller values (from a keyboards pitch wheel, or modulation wheel) to be sent on all channels, so the values will be read inside each onController callback.

              So is there way to transform the incoming CCs to omni?

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @d.healey
                last edited by

                @d-healey and if I set this in the main script

                function onController()
                {
                	if (Message.getControllerNumber() == 128) // pitchbend
                	{
                		Message.ignoreEvent(true);
                		
                		for (i = 1; i < 6; i++)
                			Synth.addController(i, 128, Message.getControllerValue(), 0);
                	}
                }
                

                I'll get an error saying:

                CC number must be between 0 and 127
                

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                ulrikU 1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @ulrik
                  last edited by

                  @ulrik Ok I solved it by setting this in the main script processor

                  function onController()
                  {
                  	if (Message.getControllerNumber() == 128) // pitchbend
                  	{
                  		Message.ignoreEvent(true);
                  		local v = Message.getControllerValue();
                  		
                  		for (i = 1; i < 6; i++)
                  		{
                  			local m = Engine.createMessageHolder();
                  			m.setChannel(i);
                  			m.setType(m.PitchBend);
                  			m.setControllerValue(v);
                  			Synth.addMessageFromHolder(m);
                  		}
                  	}
                  }
                  

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

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

                    @ulrik there's a constant for pitch wheel, I think it's PITCH_CC. The CC stuff should probably not go in your ui script.

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

                    ulrikU 1 Reply Last reply Reply Quote 0
                    • ulrikU
                      ulrik @d.healey
                      last edited by

                      @d-healey said in Set midichannel to Omni?:

                      @ulrik there's a constant for pitch wheel, I think it's PITCH_CC. The CC stuff should probably not go in your ui script.

                      Yes I searched for it and found "PITCH_BEND_CC", but I couldn't make it work.
                      The CC stuff is not in my ui script

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

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

                        @ulrik Message.PITCH_BEND_CC I think

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

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

                        21

                        Online

                        1.7k

                        Users

                        11.9k

                        Topics

                        103.7k

                        Posts