Forum

    • Register
    • Login
    • Search
    • Categories

    Synth.sendController with specified midi channel? (solved)

    Feature Requests
    2
    8
    36
    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.
    • ulrik
      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 13, Xcode 14.0.1
      http://musikboden.se

      ulrik 1 Reply Last reply Reply Quote 0
      • ulrik
        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 13, Xcode 14.0.1
        http://musikboden.se

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

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

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

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

            Hise Develop branch
            MacOs 13, Xcode 14.0.1
            http://musikboden.se

            ulrik 1 Reply Last reply Reply Quote 0
            • ulrik
              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 13, Xcode 14.0.1
              http://musikboden.se

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

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

                Hise Develop branch
                MacOs 13, Xcode 14.0.1
                http://musikboden.se

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

                  @ulrik ok, it was

                  Synth.addMessageFromHolder();
                  

                  Hise Develop branch
                  MacOs 13, Xcode 14.0.1
                  http://musikboden.se

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

                    @Christoph-Hart worked great! 🙂

                    Hise Develop branch
                    MacOs 13, Xcode 14.0.1
                    http://musikboden.se

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

                    22
                    Online

                    982
                    Users

                    6.6k
                    Topics

                    60.7k
                    Posts