Packages, VST3/AU and samples
-
Ok, so I have made this instrument that contains samples.
I have:
One VST3-file
One AU, (component) file
Three hr files containing the compressed samples, (hr1, hr2 and hr3)I've built an installer for Mac that puts the VST3 and AU file where it should, but not sure where to place the hr-files Should the just go on the users desktop together with the instructions on how to install the samples when first using the instrument?
Is there a way to avoid the process with hr-files, and just include the ch1 files and somehow make it so the instrument finds the samples without any user actions?
-
@Sampletekk Yes you can make a separate installer for the samples which writes a 'Link' file into the Plug-In's AppData folder which directs the Plug-In to where the user has installed the ch1 files.
There's lots of info on the Forum about this so have a dig and come back if still stuck!
-
@DanH Thanks! Would something like this work: https://forum.hise.audio/post/50152
And if so, could I use the same Package project for the VST3/AU files and the samples? -
@Sampletekk Depends on a few things.... Do you want the user to be able to choose the location of the samples? Is it a big library? If not I'd suggest installing everything into the AppData folder in one packages project / installer... and the vst/au files into their respective folders as well.
If the samples library is large and you want the user to have control over it's location then you will need to create a separate installer for this. Currently the setup in Packages for choosing the sample location isn't great. I actually created my own installer using Hise for this (as did many others).
On Windows with InnoSetup it is much more straightforward.
That was definitely one of the threads but there are several others. I'd have to dig them out.
EDIT - @Christoph-Hart This might actually be a useful Tutorial / Snippet / Docs addition. It explains a lot of the file system APIs and is very useful to many people :)
-
@DanH For this project, not that big. About 680mB, but I'll be making instruments larger than that.
I guess that the best would be for the user to choose where to put the samples.
Are you saying that one can use Hise to build installers? That's awesome! Where can I learn about this? -
@Sampletekk There's a fair amount on the forum for sure, but not a complete thread a don't think. The FileSystem API is where you want to be looking. FYI Hise can't install the VST / AU files. But it will let the user define the sample install location and write the necessary link files. You will need to tweak each project for Mac / PC / Linux (?! ) to get the location strings correct.
Do you subscribe to @d-healey 's youtube channel or patreon? He's covered a lot of what you need.
-
@DanH Yes, I'm a subscriber to Davids patreon page, and he's very helpful! Probably build a installer for just the VST3/AU files and then include the samples on the side. Not that complicated to do the process of installing the samples