Locate samples UX
-
@Lumi283 Ship the ch files within a zip and use the File and FileSystem APIs to extract the zip file(s)
-
@d-healey @Lumi283 or create installers for osx & windows to install the ch files and write the link file.
Use these preprocessors as well in order to bypass the default Hise HR sample install process...
HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=1 HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0 HISE_DEACTIVATE_OVERLAY=1
-
-
@0x7887 Project preferences
-
@d-healey Thanks!
-
@DanH @d-healey I understand the process, but how does it work in practice? I need to create an installer on windows, which installs the CH files in which folder? App data? How will the plug-in know that the samples are extract in this location? And what's the difference between hr and ch files? Thanks
-
@Lumi283 hr is an archive, like a zip file. The samples need to be installed in a location selected by the user. A link file needs to be added in the appdata folder to tell the plugin where the samples are.
This can all be done with the file and file system APIs.
I believe Dan's method is different.
-
@d-healey @Lumi283 Yes it's a different method which uses InnoSetup rather than HISE to achieve this. Either method is good but I imagine the HISE way will be much more time consuming for you (I actually use both methods).
With InnoSetup you can use a script to deal with everything you need. There are examples on the forum or I can share one tomorrow.
-
-
@Lumi283 In
AppData/Expansions/Expansion Name/Samples
If you're using expansions you can always use this - https://docs.hise.audio/scripting/scripting-api/expansionhandler/index.html#installexpansionfrompackage
-
@d-healey No way to only use a text file ?
-
@Lumi283 I think the first thing you need to do is decide which method you are going to use:
a) HISE
b) InnoSetup
-
-
@DanH Inno Setup for the default plugin, but I don't know about expansion how to do (the expansions are downloaded and installed automatically)
-
@Lumi283 said in Locate samples UX:
(the expansions are downloaded and installed automatically)
How?
-
@DanH I check if there is a new version with the API, after i download the expansion and unzip it in appadata>vst>Expansions. I juste need now to locate new samples
-
@d-healey
I wanted to ask if there is an equivalent of LinkWindows for expansions? -
@Lumi283 yes. In appData/Expansions/YourExpansion/Samples
-
@DanH Hi, what did you write in LinkOSX for macOS using Hise scripting?
I tried, but it doesn't work...
And this path returns: objectXXX
How to specify correctly the ~/Library/ folder?
Thank you -
@Lumi283 said in Locate samples UX:
@DanH Hi, what did you write in LinkOSX for macOS using Hise scripting?
I tried, but it doesn't work...
And this path returns: objectXXX
How to specify correctly the ~/Library/ folder?
Thank youtake the objectXXX as you call it and:
Console.print(objectXXX.toString(objectXXX.FullPath));