Hey, I’m new. I’m trying to build a sampler like VST instrument. And I have 3 Questions related to that project. I hope it’s not too much to ask all 3 in 1 go.
Question 1:
I need the VST to recall multiple paths. As for now, the only way I have found to recall a path in the VST is the File Button, which of course recalls just one path. Having a File Button for each sample and making them all invisible except of the one that’s currently in “edit mode” feels like a very desperate solution. I also would like to use drag & drop of samples into the VST, and ideally store much more data like start & ending points, which wouldn’t work out this way. I’m sure there’s an elegant way to store variables/strings that I just don’t see yet. Anyone care to help me out?
Question 2:
If I want to use file writing opcodes, is it possible to obtain the path of the host applications project file, so the files that I save can be saved with/in the same place of the project?
Question 3:
Is it possible to obtain text that’s been dragged into the VST UI? It seems like the so called VST-XML that Studio One uses when drag-dropping audio clips from the timeline isn’t recognised as a file by the “LAST_FILE_DROPPED” variable, so I guess it’s just text and not a file yet. I can copy paste it into the Csound Output Widget. I can drag it from Studio one to the Desktop, which creates a .textClipping - File. If I drag that onto the VST it’s recognised. Is there a workaround to this problem? Do I need to script in Python for something like this?
Thanks in advance!
I’m on OSX 10.14.6, if that’s relevant.