HISE Logo Forum
    • Categories
    • Register
    • Login

    Synth.sendController with specified midi channel? (solved)

    Scheduled Pinned Locked Moved Feature Requests
    8 Posts 2 Posters 265 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 ulrik

      Could we have

      Synth.sendController(int channel, int controllerNumber, int controllerValue, int timeStampSamples)
      
      just like the addNoteOn?
      
      Synth.addNoteOn(int channel, int noteNumber, int velocity, int timeStampSamples)
      

      I could use this for sending cc's outside the Controller Callback

      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 and the Message.setChannel() doesn't seem to work in this project.
        It's a MidiFX plugin and, as I wrote in this thread
        https://forum.hise.audio/topic/6492/midichannel-is-always-1-in-noteon-when-logging-midi-players-output/6

        The NoteOn callback always send the messages on ch 1, even though the 4 MidiPlayers events send on ch 1 -4.
        So in that example I moved all midi out events to the TransportHandlers Grid Callback and used the

        Synth.addNoteOn(int channel, int noteNumber, int velocity, int timeStampSamples)
        

        to specify the midi channels, and that worked so....
        I was thinking that maybe it will work with sending continuous controllers as well?

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

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @ulrik
          last edited by

          @ulrik if you use Synth.sendMessageFromHolder you can specify almost every event property including the channel.

          ulrikU 3 Replies Last reply Reply Quote 1
          • ulrikU
            ulrik @Christoph Hart
            last edited by

            @Christoph-Hart Ok, I'll try that thank you!

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

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

              @Christoph-Hart the

              Synth.sendMessageFromHolder(MH);
              

              gives me error

              Function / constant not found: Synth.sendMessageFromHolder
              

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

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

                @ulrik is this function new, I don't find it in the API

                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, it was

                  Synth.addMessageFromHolder();
                  

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

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

                    @Christoph-Hart worked great! :)

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

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

                    16

                    Online

                    1.8k

                    Users

                    11.9k

                    Topics

                    103.8k

                    Posts