Initialization of MIDI Player (Floating Tiles in Exported Plugin) + MIDI ticks timing issue
-
I am hoping to get some help as I have not seen this topic anywhere on the forum and I do not know where else to turn.
When I export my plugin with a MIDI player and 2 floating tiles referencing that one player: (One for viewing the MIDI (midiviewer) and one for Drag and drop), the displays don't always load. Sometimes it does and sometimes it wont. When it doesn't load, opening a new instance won't fix it. I usually have to restart the DAW to get it to load up. The play button will still play the file but I can't see the midi or drag and drop the midi because the floating tiles connected to it failed to load properly. Big issue for the user.
What could be happening here? I have a typed reference to the MIDI player near the bottom of the code. Should I always pre-load a midi file or something so that it is guaranteed to load up? I tried placing the reference to the MIDI player at the top.. it still happens.
Also, I am creating MIDI data in hise but the bar tick lengths are off in the exported plugin. In hise, I had to set the bar tick length to 96000 to get MIDI files that are correctly on time when imported to any DAW. However, when the plugin is exported, the times are off and my loop cuts off short, plus, all the timing in the loop before it cuts off is incorrect. What do I do to sync the times and code it properly within Hise? The midi files generate perfectly and export exactly as they should within hise no matter the tempo. When the plugin is exported, its all off.
I am hoping this is not uncharted MIDI player territory and someone knows about this already...