Strange behaviour when loading plugin in host
-
This message is what I get when I launch one of my plugins in Logic Pro X:
if I then just close the plugin window (not removing the plug) and then open the plug window the message is gone and it works as it should.The behaviour happens every time I launch this particular plugin and it's a bit frustrating...
Anybody got a clue on what's happening here...? -
@ulrik I should say that Hise is compiled from the "scriptnode" source code 2019-08-02
-
Further explorations:
Opening the plug in Reaper I'll get the same error message (both for au and for vst3 version)
Same with DSP-Quatro (au version)
Opening in Steinbergs Vst3PluginTestHost and in Dorico 2 is working with no error messages (vst3 version) -
@ulrik Anyone having a clue what's going on?
-
Are you using MIDI files in your project?
It seems like you've passed an empty string into the
loadFile()
method, but it's weird that this doesn't fail consistently. -
@Christoph-Hart Yes I am, but no midi file named .mid only (as it says in the message)
-
@Christoph-Hart Could it be this code that make this happen:
const var DemoSongsArr = ["Bel viso", "Lorda mornar", "Sakkijarven polkka", "Vals i natta", "Miss Karting", "Marias vinter", "Pigornas tango", "Nocturne", "Kass theme", "Libertango", "Hej va de gar"];
MIDIPlay.setFile("{PROJECT_FOLDER}"+DemoSongsArr[value]+".mid", true, true);
-
@ulrik Comment it out and see if it works ;)
Or use
Console.print(DemoSongsArr[value]+".mid");
To see if it's the expected file name.
-
@d-healey Haha, beautiful David, I used the "Console.print(DemoSongsArr[value]+".mid");" and at initialising I have nothing chosen in the combobox so it looks for ".mid" :)
So I guess I have to set a default value for the combobox when init, right? -
@ulrik said in Strange behaviour when loading plugin in host:
So I guess I have to set a default value for the combobox when init, right?
Or check if the value is 0, which means no selection.
-
@Christoph-Hart @d-healey Thank you both, now it's solved, I saved the project with a value assigned to the combobox! :)
-
Console.print()
- the most important function. -
@d-healey true, true, true.....
I just have to remember that :)