Identify DAW (check if FL Studio, etc.)

Post any examples or modules that you want to share here
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Identify DAW (check if FL Studio, etc.)

Post by Perfect Human Interface »

Here's a potential solution to check whether a plugin is loaded in FL Studio or any other DAW, or just return the DAW name.

Not certain if it works, so you'll have to help me out and test it, if you don't mind.

I'm banking on the idea that MIDI In Devices will always return the used DAW as the first device. If not, I think this should still work for identifying whether or not the plugin is loaded in FL at least.


Potential problems: I don't actually know what determines the order of the MIDI Devices. If it's something like the order in which they're installed in Windows, that will break this. But in that case you MAY be able to just check all devices for the DAW name or something of that nature.
Attachments
Identify DAW.fsm
(1 KiB) Downloaded 1193 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Identify DAW (check if FL Studio, etc.)

Post by KG_is_back »

Can you make that into a VSTi (.dll) that will write a DAW name? I'm probably stupid, but I can't seem to make it work in VST form... wanna check this in other daws
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Identify DAW (check if FL Studio, etc.)

Post by Perfect Human Interface »

KG_is_back wrote:Can you make that into a VSTi (.dll) that will write a DAW name? I'm probably stupid, but I can't seem to make it work in VST form... wanna check this in other daws


Unfortunately not. I don't have VST export license (still using the FL version of Flowstone), and I don't have any other DAWs either. So I'm relying on you guys here.

When you say you can't make it work, does it just output nothing? The MIDI In Devices prim should surely output something, right?

Oh perhaps you mean the export won't work at all? I haven't a clue.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Identify DAW (check if FL Studio, etc.)

Post by tulamide »

Sorry to disappoint you. The midi in devices prim does not list the daw, since they are no midi in devices. That's why it won't work.

Fl test.jpg
Fl test.jpg (152.19 KiB) Viewed 29447 times


(USB-Audiogerät is my midi controller keyboard)
"There lies the dog buried" (German saying translated literally)
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Identify DAW (check if FL Studio, etc.)

Post by Perfect Human Interface »

tulamide wrote:Sorry to disappoint you. The midi in devices prim does not list the daw, since they are no midi in devices. That's why it won't work.


It doesn't list FL Studio in the string array at all (the text box inside the module)? It does on both of my machines.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Identify DAW (check if FL Studio, etc.)

Post by tulamide »

Perfect Human Interface wrote:It doesn't list FL Studio in the string array at all (the text box inside the module)? It does on both of my machines.
Right, I added the text box to see if it is listed below the first entry. The FL version of Flowstone seems to be handled completely different. Kind of like a host inside the host, where the inside host is fed with midi in from the outer host. If that makes sense at all :?:
"There lies the dog buried" (German saying translated literally)
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Identify DAW (check if FL Studio, etc.)

Post by Perfect Human Interface »

tulamide wrote:The FL version of Flowstone seems to be handled completely different. Kind of like a host inside the host, where the inside host is fed with midi in from the outer host. If that makes sense at all :?:


Ohh I see. What a bummer!
Well if that's the case, how do you even get MIDI messages into a Flowstone plugin from FL in a VST export??
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Identify DAW (check if FL Studio, etc.)

Post by tulamide »

By sending a special structure called VSTMidiEvent. This structure is sent by the host, when the VST sends a wantEvents request.
"There lies the dog buried" (German saying translated literally)
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Identify DAW (check if FL Studio, etc.)

Post by Perfect Human Interface »

tulamide wrote:By sending a special structure called VSTMidiEvent. This structure is sent by the host, when the VST sends a wantEvents request.


Not intending to drag this off-topic (seems it was a failed attempt anyways), but I'm deep into a plugin project that requires MIDI input to an effect plugin. I need to know if I can still do that with a VST version export and not just with the FL export.
I had just use a "MIDI Out" plugin in FL, then in Flowstone pulled in MIDI data from FL Studio and filtered it with the MIDI port number. How can I take MIDI notes in with Flowstone if FL Studio isn't recognized as a MIDI in device?
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Identify DAW (check if FL Studio, etc.)

Post by tulamide »

Perfect Human Interface wrote:
tulamide wrote:By sending a special structure called VSTMidiEvent. This structure is sent by the host, when the VST sends a wantEvents request.


Not intending to drag this off-topic (seems it was a failed attempt anyways), but I'm deep into a plugin project that requires MIDI input to an effect plugin. I need to know if I can still do that with a VST version export and not just with the FL export.
I had just use a "MIDI Out" plugin in FL, then in Flowstone pulled in MIDI data from FL Studio and filtered it with the MIDI port number. How can I take MIDI notes in with Flowstone if FL Studio isn't recognized as a MIDI in device?

I hope to give the correct answer, but I'm doing it just from my mind, so take it with care.

You don't need to access a device directly when exporting as VST, since you get midi data from the host. That's what Midi to Poly is for. Just give your module an input set to midi. If there's only one input and it's midi, then you can even export it as both, an instrument or an effect.

For exporting, a VSTi is defined by one midi input and two mono outputs. A VST effect can have any number of inputs and outputs (of all kinds), as long as the host can handle those.
"There lies the dog buried" (German saying translated literally)
Post Reply