HISE Logo Forum
    • Categories
    • Register
    • Login

    Drag and Drop MIDI (Develop Branch)

    Scheduled Pinned Locked Moved General Questions
    22 Posts 6 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.
    • M
      Mwins
      last edited by

      Has anyone had any success with the new external drag and drop of files using a recent version of the develop branch?

      DimitrisSPD 1 Reply Last reply Reply Quote 0
      • DimitrisSPD
        DimitrisSP @Mwins
        last edited by

        @Mwins Hi bro!
        Unfortunately no luck to my end.
        Tried in Logic, Reaper, and Studio One without any success.

        I also noticed that it was impossible to control play, stop buttons and PlaybackSpeed (either by script or Property editor).

        So it seems that Midi Player needs some extra work from @Christoph-Hart in order to work properly (And unfortunately i suppose he has tons of work for the whole new environment of Hise so i just cross fingers and wait).

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

          @DimitrisSP It's possible to control both play and stop in the midi player, to control the playback speed you have to fiddle with the

          Engine.setHostBpm()
          

          Skärmavbild 2021-08-19 kl. 17.31.17.png

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

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

            @DimitrisSP You have to make a reference to the MidiPlayer like this:

            Skärmavbild 2021-08-19 kl. 17.38.38.png

            then you get a reference like this:

            const var MIDIPlayer1 = Synth.getMidiPlayer("MIDI Player1");
            

            and you will be able to set play & stop and a lot of other stuff

            Skärmavbild 2021-08-19 kl. 17.45.28.png
            Skärmavbild 2021-08-19 kl. 17.45.41.png

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

            DimitrisSPD 1 Reply Last reply Reply Quote 1
            • DimitrisSPD
              DimitrisSP @ulrik
              last edited by

              @ulrik Hi my friend and thanks a lot for the usefull information.
              I checked again and i saw that you are right.
              I was also making reference as typed MIDI Player but i was trying to get play and stop controlled by setAttribute and i came to the wrong conclusion.

              I was fool enough to not press the "Esc" button and to see what is available.

              By the way did you managed to have drag to DAW working?

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

                @DimitrisSP I have not tried the midi drag & drop yet

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

                1 Reply Last reply Reply Quote 0
                • B
                  BWSounds
                  last edited by

                  you might know, you might not, but you can export midi from the midi player and have it saved in a specific location that will work for mac and pc...

                  DimitrisSPD 1 Reply Last reply Reply Quote 0
                  • DimitrisSPD
                    DimitrisSP @BWSounds
                    last edited by DimitrisSP

                    @BWSounds Hi my friend.
                    I know about the export of midi file...but it does not cover the drag to DAW.
                    I am creating Acoustic Drums plugins (Similar to Superior or Ez Drummer from Toontrack, or BFD from Fxpansion, or SSD4, SSD5 from Steven Slate or ADDICTIVE Drums etc).
                    In all those Drumming instruments (and the same goes for mine also) apart from all the other features there is a huge Midi-Groove Browser (with Hundrends or even Thousands of MIDI files) and the end user can play any file on the browser and simply drag n drop to DAW...this is the standard workaround for all proffessional Drumming Instruments...So there is not any advantage to save an already loaded midi file that actualy already exists in the Library.

                    And anyway if drag to DAW does not work then the user must open the folder with the existing or saved midi files in a separate window and drag to DAW from there (Something that does not serve the practical and productive way of working on a Studio project)...so in the end your Drumming Instrument will be considered as non practical...no proffessional...and it will definitely not sell...Thats why i told in an other topic that Drumming Instruments without the Drag to Daw feature or/and advanced Midi Browser are completely doomed.

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

                      Please make a demo snippet with how you use the export and a list of OS / DAWs that don't work. Last time I checked it worked pretty well (and PercX is using almost the same functionality and nobody complained about the drag and drop not working yet).

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

                        @Christoph-Hart Hi Christoph.
                        Based on what you said about PercX and almost the same functionality
                        I suppose i am doing something wrong or maybe miss something...

                        Here is a snippet of a basic set of midi files loaded to the MIDIPlayer using 2 viewports and a play and stop button to control playback

                        HiseSnippet 2237.3oc4Y72aZjbcWauWqI0o4Ncpp+4JT+Crh6F.iw1sJJXiAWtXGi.Rt6z0nngcGfIdYFtcGv1MxR2mrp6iP+njuAsu2r6xNfw1bVWtV0iDYwLu27l2um26Qy.gKMLTDXXtdmqFQML+cVsuhKGTc.gwMZbjgYFqSYdriBH8MN7pQjvPpmgo4pGivMWeMC0mO9hCI9DtKMcKCi2HXtzSXCYxzcaV4kLe+5DOZG1PMrKUogqfWU3KFC7xpV4MFQbOmzm9JBh1JVFleVMOlTDzVRjzPCy0NT3cU6AhK3Q3+FVHqqOEWTvnMPnnsqK78PNF20n5.luWyDYNzvvzpYpFX0HMvWpD3o6mpIdhBfc5Iz0GlqbWrWAc1K+xydqnwd+lDCjh87IWQCTrErQiiZDugNKUcbP.kKaS+9wzYLMe7Ewf5D.JY88OQHFUiS.F0Seaj3cATaOhNK.yUmUpW81kZcixMkTCTnpy7onTalr.vFkPv5eDQRLLeqU4xN7Nke4dUa07zicb57xls6zu925.ep6zzw4nIk3+iid8kg0gcl7UNNMZ7zZ+stNsNrYsCq8d+u4x9NGva3bvjmN1YhiS2qp53TLeuKa6Xf2Xj6VVqOzr0YeUspcdW8yN4nZst9PRHy83.gXBsfyPFpeQG31r9bhbb.bFqWMd3gDPVzTOuRLjAvUgWwa9jJGQ4KZaT0Cpw.odHTj8XFUtglKwZQtDetUa2.1HYJDTq8HqFbIMnGAL85tEQ3Zrx+LiUUAfAW5LjbNsd.rX5IxUNe9sr2Ie9M+qajYiLO6Ysn8nAnajsTXm5vsQFHrMTZOgDnsq8ysUYQb5Skodq4xlhQ1H5NGsCQhKGPsmvnWLRDHC0o+wTd.8v.wEgpaHg4g6npX3HAGVjKqNRpKQ67Jy28R.crxlH9MGKULVej7g1LtMA9eP.4pavgJuXf7eW1VB2yytkc1lhQYe6bDBgY2WcW2J4T3fD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CR4rusx.Jq+fzVnrcqLNjdBjzHxzpp4AmoA9ndF3AVij3crO5Bk1tXwR6te9hFogvHfRE2O+t6WN+NEz.TLBRgR6Tduhk1wHzE8xgV.6Lf4dNG7cfd1sJTdGGrg2kUzm2dqI6jeVj8Csz6lHidqD5K1VeQI8E67eAc15x3QyDoypCOYJY79cvYDDo0z2pflV6Gapo09wAUh8W6DaCv2NNCRpCgGMIbpulr8HqxEyu6Nk2e+aJZ6sags2c+h6cSQauhkKWJe9RwSrnjk5chrSylzvK6ewVuQ3sTvav8nWBPxCoomQxstuf5TQshtn9DYk.hGS.1rwilI1cIItJx+VH9OL41H9MGNwSrNU3gMmM6nzv4GFC.x1Oy.JvgPvCYxqlYRSeJlu1xxtetUSlzcvh42UV.+hit6SL+FOsxMrpAc75JSY10rp+Me5GMoNq73HV4QVsgh4TC9QwH+A0Z6ulLQ03OM.UpEtioH+uV1oHOZomh7YtR356DP3giDg5DtRa5PVGHPHT+1dcHsd.86agVY88qJHAKDzGeQcPHW3YZiSFT4tbvPwX9LC1a9Amt1xU7x8Lt309e5oY+KWxgUWN1cAZPyl23WD4Ifa7vQ9zZ7ITenJGEO9EPYM8Hi8kI6Nqe8oBtXz.Am4pazaQkAr98oA579BEnCjxYlL+WVoE0mRzcf+SUNAb7HAfdh9.0EEVdcwcYu9iVQrqMFLZ++GI0W8WmI0aIFiEQcJAbTuL52znMjK0kBbBGJOBayxbELeXz57IcSzlx8TK92vmXfEv0lw.Kj.7Wj6XHAJr7ctQc3f9x+V0NfbyU+.OqacJt1tvzdhrxCkbhif4cttn59OC5mEelhOfyr8C3Lkd.mYmGvYJ+.NytOfyr2cdF7wnCFKECiBEgMZVKpDZyo+fjlqZ7e.Xq.SlN
                        

                        I also send the MidiFiles folder of the project in order everything should be identical

                        MidiFiles.zip

                        Loading a midi file, Play and Stop work like a charm but when i try to drag the loaded midi to DAW i see the grabbing hand on the Floating Tile, i see the renctancle during the drag 'n' drop operation but i dont have any midi file dropped on the instrument track of the DAW.

                        In my end i tested with Logic Pro X, Reaper, and Studio One

                        Maybe i am working on a very wrong way on that Drag to DAW functionality.

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

                          Can you drag it to a finder window? It basically just creates a temporary midi file and from the on the OS / DAW overtakes the dragging so this might be the first thing to check.

                          1 Reply Last reply Reply Quote 0
                          • MikeBM
                            MikeB
                            last edited by

                            @DimitrisSP @Christoph-Hart
                            I just pulled the snippet from DimitrsSP and tried it out - on the Mac. It does not work.
                            You can't drag & drop an open MidiFile onto the Finder.

                            Bildschirmfoto 2021-08-21 um 10.09.24.png

                            "One hour of trial and error can save 10 minutes of reading the manual."
                            "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                            HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                            DimitrisSPD 1 Reply Last reply Reply Quote 1
                            • DimitrisSPD
                              DimitrisSP @MikeB
                              last edited by DimitrisSP

                              @MikeB @Christoph-Hart Confirmed in my end also...i tried with Hise Standalone, Hise plugin and through compiled Vst and Au plugin with no luck

                              I am also on Mojave 10.14.6

                              MikeBM 1 Reply Last reply Reply Quote 1
                              • MikeBM
                                MikeB @DimitrisSP
                                last edited by

                                @DimitrisSP Let's see what Christoph finds out.

                                "One hour of trial and error can save 10 minutes of reading the manual."
                                "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                                HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                                DimitrisSPD 1 Reply Last reply Reply Quote 0
                                • DimitrisSPD
                                  DimitrisSP @MikeB
                                  last edited by

                                  @MikeB We Wait for the guru to make his magic...crossed fingers.

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

                                    Yeah... erm, ... magic:

                                    Link Preview Image
                                    - fixed MIDI file drag and drop not working · christophhart/HISE@cded98d

                                    The open source framework for sample based instruments - - fixed MIDI file drag and drop not working · christophhart/HISE@cded98d

                                    favicon

                                    GitHub (github.com)

                                    MikeBM DimitrisSPD 2 Replies Last reply Reply Quote 5
                                    • MikeBM
                                      MikeB @Christoph Hart
                                      last edited by

                                      @Christoph-Hart
                                      Do you think about zoom 100% with keyboard shortcut comand/strg 0?
                                      Thank you 🙏

                                      "One hour of trial and error can save 10 minutes of reading the manual."
                                      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                                      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                                        @Christoph-Hart Yes....Yes....Yesssss.....Master....You are a living Legend ​:flexed_biceps:

                                        It works on the Hise plugin, and to the exported Au and Vst plugins...
                                        Confirmed in Logic Pro x, Cubase, Reaper and Studio One.
                                        But there are 2 small problems....
                                        1) If you load a midi and drag n drop to any daw it works like a charm...but if you load another midi after that(or try to drag n drop the same midi for second time) it does not work...I noticed that if you close the interface from the edit button of the daw and load again the instrument you can drag n drop again any loaded midi file...and that story goes on...Or if you try it from Hise plugin in any daw the same thing happens...you can drag n drop any loaded midi file but in order to drag again a second midi file you have to close and open again the (interface preview, or Hit compile and it works...and so on)

                                        It looks to me (Without been sure) like it is not deleting the temp midi file and it stucks there but when the inerface opens again or you hit compile it is refreshed and probably the temp file is deleted.

                                        2) The midi file that is created and dropped to daw is named as temp...
                                        Is there a way to have the name of the actual midi file that was loaded?

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          Mwins @DimitrisSP
                                          last edited by

                                          @DimitrisSP Yes this is exactly the problem I am having, it's a major inconvenience if you have multiple midi files in the plugin. However, If you reload the plugin, the drag/drop resets and everything works again. Is there a way to reset the plugin or initialize the engine via scripting @Christoph-Hart ?

                                          Right now we are basically limited to one single drag and drop action per plugin instance. It only allows for the drag to take place once... Is there any workaround?

                                          DimitrisSPD 1 Reply Last reply Reply Quote 0
                                          • DimitrisSPD
                                            DimitrisSP @Mwins
                                            last edited by DimitrisSP

                                            @Mwins Exactly...I looked further in that situation because my instrument depends a lot on that functionality (Acoustic Drums with about 2000 midi files/performances) and the worst is that i found that i have crashes...
                                            See this topic...https://forum.hise.audio/topic/4656/midi-overlay-panels-in-compiled-plugin-crashing-daws

                                            If it is easy for you please check if you have also the same crashes...or maybe it is a problem in my system?

                                            In this way we should confirm if it is a Hise bug or not.
                                            If it is a Hise bug it has to be fixed...otherwise it is a dead end for anyone who uses a midi overlay panel for drag n drop or any other functionality in his plugin

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

                                            15

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.3k

                                            Posts