HISE Logo Forum
    • Categories
    • Register
    • Login

    MidiFX Plugin issues in Logic Pro X

    Scheduled Pinned Locked Moved Scripting
    27 Posts 3 Posters 1.7k 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 @Christoph Hart
      last edited by

      @Christoph-Hart bump...

      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

        @Christoph-Hart this is a minimal MidiFX example, when any key is pressed a timer will spit out that key every 100ms

        NotePnl.setTimerCallback(function()
        {
        	var ev = Synth.addNoteOn(1, this.data.nn, this.data.vel, 0);
        	Synth.noteOffDelayedByEventId(ev, 1000);
        });
        

        Still I get all the crazy data from it when using Logic, and if a different track, than the plugin track, is selected, it will not work.
        Do you think you have the time to take look and see what is wrong?

        HiseSnippet 925.3oc4V0saiSDEdljZfDnRrR7.XsW4JEhRfkEjPUTZRJJZosQjREb0po1GGOpimwxdbVrP7.v6FOL7F.mi+Yi8RVZUD6UDoVkyOey7Mm47MmrJ03CYYlTFevMEI.i+QNqKz1nYQBolsbNieryZYbhBbuAxrryKRDYYP.iy6+cTJ7AGwJ+7mey4BkP6C6bwX2Zj9v2Kik1cdWc1KjJ0Eh.3FYbqre1YK8M5YFkIGoSemIrDg+8hMvUBJsdNL96sHPZMoqsBKjw3GctInXcj4U5p7uUlIuSAjwT1ZbgpbegQEPLl7xlEIUAqZN1YLbUVsqHzupH7INWJCju1+thwGWFvcGh10CdutzqeG5MsM8lzhd6gR8ZQoipnzSbV6mJSr6hP74CcVpsPZn.K6soRUtrd+dOmYFLCscbr3d3hTz30H7d9jIibw+cxWObHV5yrtaEotWYrvJsx8T2Fna.6LSbhQiFdOsN9SIT0eebFXoKyzYBk5N7VyKLW6akFs2IC+0gCnkE1hqXYu0XQP.A7Zs2zQt1HY13.gULVqaasETibIpMnBjlPDFNGThBH37hEaQ1rLvC1Nxc5jxCwug+0rwtFc8dTxfKwZF1JMVtQaRgRrd1zbfV+gCZNF0z.IZS93QmBdUd7cPpGkcmbQR1M4aAkwWZK5jZlUjVUe7lVQzgtuIOCCeLDUF55UUNHhkGuJEnq7W.EYdm3d5oXAa3fV6qIoZa+G6Ic0lZTJJ1CrscAVudDl8ujd5xZ0HrWRg3aRDaj6pNbd6pi1hW+pdvVIZzK0R60If9sIoY0Mt329wkyw6ITRwq8g4k.oVIQA9bXK99Tk.afybH6drhUlac2Ni+91xnG2H+DZPwjAT90kY1uz9Euh1FuRFXi143mOKBjahrs8rs4Xy6ydrp9AkuBcctceZd9e339.hfLPGbiodM7db8iO.l2re5+ecM641CmVXBxUBa2QHzby5.XMnycH81rNCe+n8b0+ylq7Xo3SbVIs9Q6mi81CGoQVuC3X8z3icVDFB91cD7HmK9o2MidY+fI2J0atTXSknv1AejcM9CR7Ab20n1m5A48ntkJ6IjMUAViBjRi+B+TGbJYyqCNsIHKV3mZdoeUmOMu+CJ8fbRW9ScP8MY6NkUpFPbNSFOgEihuW56SG+OEaf2OlO6.v74G.lmc.X9hC.yyO.Le4Af4q9WwPu68s4VSbkb.crZQ4SDb9Bs.6rJ6BY+M2dkKcB
        

        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 you should use the synth timer. In a non deferred 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 yeah but this will make no difference to the issue, still the same garbage events and will still not work if another track is selected

            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 You've tried the synth timer? A panel timer isn't accurate so I would expect problems with that.

              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 yes, same issue

                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
                  Is it possible to modify Hise to compile working MidiFX plugins?
                  I know that you have been very busy the last days and I don't expect you to make this happen right away, but what do you think, will it be on the roadmap for Hise in a near future?

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

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

                    @Christoph-Hart bump

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

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

                      @Christoph-Hart bumpelibump 🙏🏻

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

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

                        @Christoph-Hart I feel I'm a bit nagging but do you have any plans for making Hise compile decent MidiFX plugins?

                        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 A friendly bump!

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

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

                            @ulrik Have you checked other hosts?

                            Also, what David said. The example is never supposed to work correctly (and the timer might even be deactivated when the UI isn't visible, which is a feature not a bug.

                            For this kind of stuff you HAVE to use the synth timer callback, this guarantees sample accurate execution.

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

                              @Christoph-Hart Here's the same snippet as before but using the synth timer

                              HiseSnippet 840.3oc4V0saSCCE1osAQJLIlDO.QiaRkpJMv3GooIF8OT0naUzwD2M4kbZq0bsqbbJqBwaHOL7F.Gmjslt0oNUwthbQa742Oe7243zWICfnHohX4bx7o.w5o1ClKziaNlxDjtsHVaYOgExFdoqFhzjFymRihfPhkUwOYLwxoDI442enAkSEAvBQDxoRV.7Y1Dldgz9GbHiy6PCgSXSxY8tGzMPJZJ4xXDNEsqSlRCtfNBNhZLqfMw5QsCYZoZflhfgXUpgLb9fwxuKRs+TVD6bNXV3SFfAJUbGIOzfXiTRywLdX+q11QDLJ8WTDJlVDdtcObOes7EEimknvcgG4qGVEVFdEWBd94gW8bvaEPpPNHUJERaaOHPwlpWnwfmmX2UnA0PJV1yCkTaIEdQA6lRzBgt1D5EPGEt3ZO7da85UcweprW4xJXjqPrWx+y.NJYXrHPyjBWo3HoFNV3Uo7OJ6zCyNdnTiMRHUP6YXr8zpX.ChSYGgvce2qLYDnMddT7jyAkmw.LxKq+TfKCX54IZSXd0hzTk1PMTd9uz2.teV18lfY3v6CZXCc8RCpAJwS5q.SE5PXdjWE2822sdkxNWmV4zzrdqLZJgJImazsljtriYwy3CtMobWXFt8SyGMLLqr5WEq7UMU8pt0WTGDo6yV.mNGBaLOIOcC8fYUc8qmbp4fHKRxgZSULDC6nM4am6B+dhjCBLSTNBVCpLFhTrk4s12MuMeaUPJwJmgRQWASe7TPbWMajL1H91W61hpoHY2JSFZ2TPoYFHX0BlgSNRo9N1sfnKviGb1w8ruvIoO83X8p5Jr9ks6ZH2QfH7DYVL7teTv03yMIQ2MU4+nSObdpLLlS0KOj0byRlBrFrzYnY5kHBmXj+lm+YSduuPba69Lcv3UiwBq.ilg5O.XL69psraObHDnW.vR1c91CykSjuHi0LwndTshcIx2v4pCvqrC.L6BAvMbPqBF1R555l0lJv.rAIYwevmLk9l0VYJ8uRIYBMPIOKHk4atQ7wIRPLIR9X.r+1r10mjzMjuNa9ZkyBBVNT2xwWsoN95M0wc2TGeyl53a2TGe2l536Wuil4ieLVKmj11PH852NYThkUaAEYfIrUxewQXqfq
                              

                              I still have the same problems in Logic, it's working when the instrument track is selected, both playback and record, as soon as I select another track, the MidiFX function stop working. it seems like it gets "bypassed"
                              That doesn't happen when I run the Juce compiled MidiFX

                              Here's 2 videos comparing this simple snippet from Hise, with the arpeggiator project compiled in Juce

                              HISE:
                              HISE MidiFX

                              JUCE:
                              JUCE MidiFX

                              As you can see the Hise MidiFX is not fully functional but the Juce MidiFX is.
                              How can I build a fully functional MidiFX in Hise, is there some code in Juce that is not implemented in Hise?
                              Is it possible to implement it myself (I doubt that :)) If so, can you give a hint?

                              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 don't know if it will make a difference since the script isn't deferred in your snippet, but you should put this stuff outside of the UI Midi Processor.

                                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 MidiFX Plugin issues in Logic Pro X:

                                  @ulrik I don't know if it will make a difference since the script isn't deferred in your snippet, but you should put this stuff outside of the UI Midi Processor.

                                  It made no difference, I moved the stuff to a different script processor and compiled again, same issue 😔

                                  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 ulrik

                                    @Christoph-Hart Ok, new example using an Arpeggiator module
                                    Still same malformed "Midi messages" inside Logic if another track than the arp track is selected
                                    Compiled as MidiFX au version

                                    Skärmavbild 2023-12-17 kl. 14.07.58.png

                                    See video here:
                                    ArpLogic

                                    Compiled as VST3 Instrument works as it should in both Live and Reaper
                                    Videos here:
                                    ArpLive
                                    ArpReaper

                                    Tested on MacOS 14.2

                                    Is it possible to fix this?
                                    Project Snippet

                                    HiseSnippet 1596.3oc6Y0sbSaDEVxIKD6j.DZlVtnSGeQmNIsLdroTfNbQj+KTC4GOQlzxMkQQZs8Rj2UHsJfam1oOJ8Qo8MnOJ4Mn8rRx1qrkcTLFlBC9BM4r+bNemyd1yOaZ5xLwddLWE0rs56fUTWCo2mx6VsqAgpznFLNprqSKrGWoReGCOOrkhp5RORLsZ1kUB9c9NULrMnl3QConbLiXh2izivGMZSsmPrs20vB2hzSZ02UqgIiVkYy7AnrDpnhig4oFcvGXHVVFjh5UpaQ3LWctAG6ontbElUe8trWQCW+wDOxI1XAQIEcfQgCuKy1RfXwnJU6RrsZNPk8T.l1bjAXoPCvln8IVjgiOxPbifIxOZGx1C0Lwg2RwfWIY3UTBdI.oLRPZ4PHsAR2zk3vGMi.OqhZP4X21FfYWFJgqUQ8uQUYvBn7B8LNEuqKPLbCacuhEucd3y1OLWaepImvn4YzCXb7gzs1N2ulKateKW9wmpc6DmSHGWlsM1MwoEG0tyZiaQ86cB1814Oyv1GObgf9G2nhltQU9L2LTskVHi1fR3G5foSySPIxVI7IhPErTdf4+ZQl+J9bNipPrD1d3RQnQWI.zxN9JCYvxgL3lQLP2lXgcaBd1ALYcjvndPftOAaVQyxfann9Mn67fBvOZgxv2p6AeZ0TLP4pEJzrVM3udrf9rBUSsfygNFayLI79iK0aMlTeQEPpzFfTZ6HjxiBnerPpLA82Wtbpk5Jn8vzN7tiKyy2IlLaepPFEBjgoPFGKnONf1VPWohrLG6LJTlAxaMDXZComv594ZogCWEo6fgKUis4uVS4oMpIvLbcKxuA7kbvtbhvMUsF9LHzW3c2rnZXuS4Lm.GqdNLpvKSckT4Z85QB8.s9iHpo8JhEXIGNvyz5hIc5xkWhy.26F.Wuhfq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Dt4EW.y+9ahfk9Xhf2zDAuKjQOCSW1yMCKyR3mtRvHfdSC9+pB0mJnyWZxFF6AQ4dtoYbVMwFuy7twucd23cm2M9cy6Fu27tw6Oua7AW7FEIgJ6yY8BuZpnrey5A0sppF9NWA2HT9OPzW.23
                                    

                                    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 bump

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

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

                                      21

                                      Online

                                      1.7k

                                      Users

                                      11.8k

                                      Topics

                                      102.5k

                                      Posts