Drag and Drop MIDI (Develop Branch)
-
@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.
-
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).
-
@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+lDCjh87IWQCTr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1oHOZomh7YtR356DP3giDg5DtRa5PVGHPHT+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
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.
-
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.
-
@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. -
@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
-
@DimitrisSP Let's see what Christoph finds out.
-
@MikeB We Wait for the guru to make his magic...crossed fingers.
-
Yeah... erm, ... magic:
https://github.com/christophhart/HISE/commit/cded98d3f939b09c1e6051e904239433fcfff71c
-
@Christoph-Hart
Do you think about zoom 100% with keyboard shortcut comand/strg 0?
Thank you -
@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? -
@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?
-
@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-dawsIf 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 -
@DimitrisSP Yep, I get the same crash in Logic Pro X. It is intermittent and usually happens a time or two after the plugin has been freshly installed or recognized by Logic. This crash has been happening for a while when you use more than one midi overlay for the same midi player (I'm not certain and I have not tested this theory but it seems so)
-
@Mwins Here in my system it happens even if i use only one midi overlay...i think something is going on with the source code of midi overlay.