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.
    • ulrikU
      ulrik @ps
      last edited by

      @ps hmm..what extra definitions do you have in the Hise preferences?

      I think I had the

      ENABLE_ALL_PEAK_METERS=1
      

      before, but I had to remove that to get it to work

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

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

        @ulrik had nothing else in there :/

        As I believe Midi Out is a pretty important topic - especially for commercial developers (A user / client will not understand why it's not possible as it is a pretty basic thing with most plugins eg. Kontakt) we have to have a "typical" case working in a DAW so we can say HISE can do MIDI OUT.

        By typical case I mean a virtual instrument that is modifying the input midi and you are able to fetch that generated midi on another Midi track. This is at least what I got hundreds of request for.

        So the most simple scenario would be a sine wave generator and for example an arpeggiator or any other artificial note generation - and what we wanna be able to record as midi is the notes that we hear not that we input.

        I'm clearly failing to make it work and got left with maximum confusion as it works in the JUCE Plugin Host but not in the DAW.

        @d-healey @Christoph-Hart @ulrik any pointers where the missing link might be? It seems to work in the JUCE plugin host but not in the DAW.
        In the DAW I always get the input notes passed. (And I'm sure I'm routing it properly)

        ulrikU 2 Replies Last reply Reply Quote 0
        • ulrikU
          ulrik @ps
          last edited by

          @ps Agree, it's important, I wish it was easy and a no brainer to code.

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

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

            @jonhallur I still can't get it to work. Could you try with this snippet and if you get it to work let me know what you changed? Also are you exporting as a MIDI FX?

            HiseSnippet 1258.3oc6Xs0aaaCElxNrn1Y25VwvvdRnXO3fkEXklkKqXn4hsyBZbiQra5dYnfQ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ZP4YMc2YNmtuv+8ltW5lNc+KR3lhnUKZJeoe2BaeMivaClAqPsBa.WHoMGCiRpo6xszCpVwW3R7scs+Q6oZMfNsAVsTE34UPe5ws8yny375bBEXCU4FMLY+qP77Rvk6xvQ9sv.AXX+x1v1GyZMi2QX7pnDbeFX9lX7Cq6fl+j36W3pp+weaNbHk60SnKQOJRUa14M2Pa9Pb78fUOx84PUlhwtrQA9zl7wPcLvQiwOGmrB4Tt4mr1VvEACEbla1wNGSUR1fATYVrW3EZGkB1AMkyc29XpOkjcD52r8gvnOhTuA5b9V37O9SCKLd8U3X3Zqygse+ckwx++dkwiEQ5uBrMARBgOBDCSs5Bap4RSlwo6cXURWkGSWWSGupF2yPn+dtDgNZZqDgNSE9NwGiHtRwybi6JpySusgCbu4l+6MUvs0z1NHSmRvNb8UpiFAMlelqq9I96flaEaypygM2eNrYs4vlueNrY84vlMlCa1bl1nmItSD7s3wkb.iNMMiOrrZxIP1qISG8W.T2wiNB
            

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

            ulrikU lalalandsynthL 2 Replies Last reply Reply Quote 0
            • ulrikU
              ulrik @ps
              last edited by

              @ps Here's the project, try with that
              TEST PROJECT

              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 Do you have "JucePlugin_ProducesMidiOutput=1" as an extra definition in the preferences?

                And I see you don't use "Message.sendToMidiOut()"?

                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

                  JucePlugin_ProducesMidiOutput=1

                  Yes.

                  And I see you don't use "Message.sendToMidiOut()"?

                  Ah crap. Something went weird and it's duplicated my script. I'll fix it an update the snippet.

                  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 ps

                    @d-healey I think for narrowing it down it would be important to know if Message.sendToMidiOut() equals for example what Message.getNoteNumber() is receiving at the same point of the midi signal flow. Or if the events need to be specified somehow.

                    EDIT:
                    Those are the callbacks that appear once I add sendtomidiout to a script processor - percentages that don't change value when I play notes...

                    Bildschirmfoto 2022-10-26 um 12.32.09.png

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

                      ok so i figured that my last tests in the JUCE plugin host didn't work anymore - now looking at the callback I realised why. I didn't kill the initial notes - so it seems there have to be artificial notes only in the midi buffer. So I have a very simple snippet now that does work in plugin host but in ableton I still get the input notes instead of the single artificial note the plugin is generating. If it does what it should in the plugin host we have to be so damn near to have it working in the daw...

                      HiseSnippet 1287.3oc6Xs0SibCE1CIyJRX6kc6ppp9znU8grRTTBkxkVUsPtQiVBDQBr8kpUlYbRrXF6od7.DsZeo+xp5uf9qnOu+CnG6IgYF1IozTPpEQd.w4l8m8wmui8zQvsIAAbAxnPuQ9DjwiM6NhIGVaHlxPspiLVzbmC6bvQ8PUG4iCBHNHCib6prZTHOR+68urJ1EyrIwpPni4TaxdTOpLVamseE00sI1gzi5kv601tkMmUi6xCAjjyrLxGaeJd.YerxsELQFOpgCUxEckXII.YjuJ2YT2g7yYQ9eLMfdhKQITA0EFnH0M4tNJDqzhpMj55zYxJN.gLL6Du9yEs9elYapC8J8w6Cep1fUbDI2OLVHM7xkBdURBuxIfWFPxHAjxGAomX10VP8kwVT3YIyVLIQzGCa6IgRjuHie2rFGbfIWwCeJoo.DtJfRqWt7xVvedw2WrX+PlsjxYVb19bI4.VoWT7sEKT7cEstto98yzlZhDbWWhHSypbsXVAVhE5cBQrr0YX2PxUNBa.o2UMm9tZxjtcz5NgibVKFUdfOgMsiBnwaVv+cTq5XIVkJFqC7ymHjTEDLpSNCNWGkXJXVmDbpj6q80ymyTifwRxwmjhREMc4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EcZnaQYXzfggJDc0D5ufq7JlQ
                      
                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @ps
                        last edited by

                        @ps Did you follow @jonhallur link about setting up a special MIDI out channel in Ableton?

                        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 yes - same as with any other plugin I use midi out in live with :/

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

                            @ps @d-healey Here I made a minimal test with an arp and 3 slider packs in the gui, however I had to manually connect them to the arp, it was not working using the Property Editor.

                            Try it and see if it works for you.

                            VIDEO

                            PROJECT

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

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

                              @ulrik very interesting what you are doing here - the way you setup ableton is def not how it is intended to be. haha
                              Are you compiling as MIDI FX or AUDIO Fx?

                              1 Reply Last reply Reply Quote 0
                              • lalalandsynthL
                                lalalandsynth @d.healey
                                last edited by

                                @d-healey Export as FX.

                                https://lalalandaudio.com/

                                https://lalalandsynth.com/

                                https://www.facebook.com/lalalandsynth

                                https://www.facebook.com/lalalandsynth

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

                                  @ulrik compiled your project exactly the same setup but doesn't work.
                                  This is killing me haha
                                  Are you inputting notes with a keyboard?

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

                                    @ps compile as audio fx, yes keyboard

                                    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 I'm on the Master code from yesterday

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

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

                                        @ulrik does it work when drawing notes or using the computer keyboard as input?

                                        ulrikU 2 Replies Last reply Reply Quote 0
                                        • ulrikU
                                          ulrik @ps
                                          last edited by

                                          @ps I don't know, have not tried yet

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

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

                                            @ps Yes it's working

                                            arpout.gif

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

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

                                            16

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.4k

                                            Posts