HISE Logo Forum
    • Categories
    • Register
    • Login

    Still problems with Message.sendToMidiOut();

    Scheduled Pinned Locked Moved Bug Reports
    74 Posts 8 Posters 4.1k 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.
    • P
      ps @ulrik
      last edited by

      @ulrik the plug-in host is a little helper app that comes with JUCE itself it‘s not included in HISE as far as I can remember.

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

        @ps thanks!

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

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

          @ulrik I assume the HISE implementation as it doesn‘t seem to be a problem wir JUCE plugins (assuming by not finding anything in the JUCE forum and being aware that a lot of JUCE plugins have the function working)
          But It‘s very strange that the plug-in host can receive the generated midi and the daw will pass the input notes. There is nothing logical that I could come up with that could explain it.

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

            @ps Which DAWs have you tested?

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

            P 1 Reply Last reply Reply Quote 0
            • P
              ps @d.healey
              last edited by

              @d-healey I tested Live 11 only - as I used midi out in live countless times with other plugins so i can be sure it‘s not a user error on my side and if something doesn‘t work in live it‘s not something I can implement because a fair share of my users are using it. But of course it would be interesting if it works in other daws - I’ll see if I can find my little midi out test project and post a snippet for others to try. Now that I think about it I believe I tried in logic as well.

              d.healeyD 1 Reply Last reply Reply Quote 2
              • d.healeyD
                d.healey @ps
                last edited by

                @ps Try Reaper too. If it works in some and not others it may help Christoph narrow down the cause.

                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 try the snippet in Reaper and tell if it's working for you

                  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 said in Still problems with Message.sendToMidiOut();:

                    @d-healey try the snippet in Reaper and tell if it's working for you

                    Doing some tests now. First thing I notice is you're using Message.sendToMidiOut(); but you haven't specified which message, I assume the call should be m.sendToMidiOut();

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

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      ps @d.healey
                      last edited by

                      @d-healey Here is the most basic and secure way I could come up with to demonstrate a MidiOut case. This snippet works in the JUCE plugin host but not in Live.

                      I'm using containers as they are making an encapsulated midi processing possible.

                      In the Daw the midi you receive from the plugin should equal the notes you hear and not the notes you input.

                      HiseSnippet 1058.3oc6X00aaaCEkz1Zn1scXcqXXOpG1CtXYAVdcMCHXnIweTXr5XiHmt8VAiDsMQjH0nn7lwv9GtG1+i8R+GrcojcjbphqifWwxp8CAg268Hd38iin8PovgFFJjHb0QyCnH7CLrmyUSaMkv3ndsQ3GZzuW6dCNeznN1iPmLOfDFRcQXb4WnCAWsBJ9yad9IDOB2glZBgdkf4PeIymoRsN7nef440k3RGw7yD8SOpmif2R3Ih.5T1nAJf3bIYB8ThNrRFH7G0wkoDRaEQQCQ3JmHbmaOU7K7j3eEKjcgGUuvBYCOnDycEdtZFqshZMk44Nb4wNDgvFCSSBkSRBO1nOykck8zjwmD6vLEQ17Atz5nmUV50XyoGNC8pjPuGYX6HYApTOZtceidbEUNl.kfrzJIVD9uLZIf.3p88IWR6JgEWAn9yZzXOS3OO4vZ0l3Itf3YxM+dyFGNNh6nXBtofepPQGvq+jZ+VspZm8g8FJO6OgpztNMx+BprN7D98ZlWG13wI3tlOMijBOOMtbbqaPjqCXcd7ltm4LhWD8p.gL0pkBiatTjsSwIIAkIPAuGmoFDP42TABsHqB+248ZSTDcMagMHt.pTwzT.2lNCFFRpfUMZSCuTIBfwg2p7BMYB2HOhZ0NO831BGPNXkRrtNxCYp4YGGud6X4MqcLmS3FRwGYLjobllOGKkCGgL0+FbbwP7CM5LdL0QkRvJFc+o0NwtU196cCBoOHd9CVQkVaCczfMVGEW9NktYgqBatV4msvZJirxSyrTKrg4Mn.tT8iMgKjzNyfw85JIHBcXspyHRSNDKHRF2DrefGYtFbc9WY0bOSqlGjMrl4E2AWE15zSSfwSLcx7XZzyst1fF5Zb27sDp2IFuSL9CPw3l6DiuSHFi+i2oVbHk6NRnOcChTuiahtgX1IJ99STbq7EldOJPt04awEK25T4iSnx8MrAMxXwyXh74wqM+QxLp4Knf5oNottqy9maeEzANJX6GII7v.Q3JOXapOajfqyHoFOOD91tze9LcUNq8VBhLWWu44cgCYtXrIpHYb6xw9hHtZk1ixabM4VnrW4+z+7D2AtwzJuHp5RNZy7C7nc3yndfBXLG+TPxaLIxSsz5p808EbQvTAm4jsneFUIYSlPkY4dtGniUJhykoVd7QmQ8njrMve4QuDZ7HRHOQKXtv5V+R4bqWegQBcM0Cil++PTu7Glh5mIhTL9j9DnQ8WgKZbZjuMnk5PAlv4TO8kOvkz5gIqanWmHlxciW72vmENszqwKbZsz4t83VrG9DGo30NIWOTOSduXKP8iG+CcW0nudsoEJ9Ji.NiF62.4CJ6u1wQ2170PcNeLMK.luo.XdZAv7sE.yyJ.lCJ.luasXzuT83HkvOQRALLrS78nw3NbBLQFO8h9GnReieM
                      
                      1 Reply Last reply Reply Quote 1
                      • d.healeyD
                        d.healey
                        last edited by

                        @Christoph-Hart @ulrik @ps MIDI out doesn't appear to be working here.

                        I made an incredibly simple snippet. Just click the on screen keyboard.

                        HiseSnippet 925.3ocsUsraabCEkT1zHRoEsAnq5pAAYgMfqvHWW+nYQbrdjHjHagHE2toHfdFJIBygb.GN1YPP1zur9YjOi7G3bImQZF4p5lJfpEB593v6gWduGMTqBXIIJMBWebVLCg+FxnLoYV6YTt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                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        jonhallurJ 1 Reply Last reply Reply Quote 2
                        • jonhallurJ
                          jonhallur @d.healey
                          last edited by

                          @d-healey said in Still problems with Message.sendToMidiOut();:

                          @Christoph-Hart @ulrik @ps MIDI out doesn't appear to be working here.

                          I made an incredibly simple snippet. Just click the on screen keyboard.

                          You snippet works fine for me after I have added a few settings

                          b820cb30-924c-425d-830b-3b22985f67cf-image.png

                          and

                          1992bac0-88a2-431c-853d-5ea26d2b9ab2-image.png

                          reaper_midi.gif

                          Notice how you have to add a new channel in Ableton Live to grab the midi out of the plugin.
                          Explained here
                          ableton_midi.gif

                          d.healeyD ulrikU 2 Replies Last reply Reply Quote 3
                          • d.healeyD
                            d.healey @jonhallur
                            last edited by

                            @jonhallur Oh that looks promising. @Christoph-Hart Why it no work without those extra defs (or why they not added automatically when the Enable Midi Out checkbox is enabled)?

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

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

                              @jonhallur ok, and you haven't changed anything in the source code, or in the projucer project file when compiling Hise?

                              I tried your settings (changed in Hise) but still no luck, I compiled the project as an instrument au and vst3, nothing in Live or Reaper.

                              I'll try to compile it as an FX Plugin instead..

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

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

                                @ulrik We are indeed compiling as fx.

                                https://lalalandaudio.com/

                                https://lalalandsynth.com/

                                https://www.facebook.com/lalalandsynth

                                https://www.facebook.com/lalalandsynth

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

                                  @lalalandsynth ok, Davids snippet works when compiled as fx but not my snippet.
                                  The difference between them is that David has the Message.sendToMidiOut() in the NoteOn callback and I have it in an inline function, the TransportHandlers onGridChange function, and I have to have it there to be able to send on 4 midi channels from 4 MidiPlayers... ;(

                                  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 Did you try changing Message.sendToMidiOut() to m.sendToMidiOut()?

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

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

                                      @d-healey No, will do right away, thanks

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

                                      1 Reply Last reply Reply Quote 0
                                      • jonhallurJ
                                        jonhallur @d.healey
                                        last edited by jonhallur

                                        @d-healey said in Still problems with Message.sendToMidiOut();:

                                        @ulrik Did you try changing Message.sendToMidiOut() to m.sendToMidiOut()?

                                        I did try to use the Engine.createMessageHolder() method but with no luck. What I ended up doing was to just use the Synth.addNoteOn|NoteOff|Controller() and making a child script that had the Message.sendToMidiOut() in both onNoteOn() and onNoteOff() and onController() callbacks which would take all the Synth.add... events and pass them to the midi output.

                                        What it looked like if I added it to your setup.

                                        f97f4639-991f-41a6-8330-c8ba2497d1a6-image.png

                                        ulrikU d.healeyD 2 Replies Last reply Reply Quote 2
                                        • ulrikU
                                          ulrik @jonhallur
                                          last edited by ulrik

                                          @jonhallur @d-healey @lalalandsynth @ps

                                          heros.gif

                                          Now we need to get rid of the NoteOn number 60 coming from the TransportHandler, see this thread

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

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

                                            @ulrik I used the extra script processor as @jonhallur suggested and it works both in Live and Reaper :)

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

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

                                            15

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.3k

                                            Posts