Loading samples into compiled plugin



  • I currently have the problem that my compiled vst sampler only loads audio files if I specify a fixed path in the samplemap. E.g. "C:\Users\Public\MyPlugin\Samples\trumpet_080-G#.wav" But I want to be able to load the samples relative to the plugin location, so that both samples and plugin are in one place and loadable from anywhere. But if I compile the whole thing with something like "{PROJECT_FOLDER}trumpet_080-G#.wav" instead, I get no sound in my DAW. Unfortunately, for the time being, I have not been able to find a solution for this.



  • You should use relative paths with {PROJECT_FOLDER} etc. and then let the user choose to locate the samples, because there is no guarantee the user will keep the file structure you give them.



  • That's what I tried, but it didn't work.
    Can't I just point to a subfolder somehow?

    Or how can I give the user the choice to locate a folder?



  • @JeHathor If you haven't changed anything in the default HISE setup then the user will be prompted on first run to locate/install the samples. If you're using the settings floating tile there is also a button there where they can change the location.



  • @d-healey said in Loading samples into compiled plugin:

    @JeHathor If you haven't changed anything in the default HISE setup then the user will be prompted on first run to locate/install the samples.

    Only in the standalone application...



  • @JeHathor Plugin also.



  • Hmmm. I'll check it again.
    Maybe it's something with my samplemap.

    [edit]
    Let's assume I have already set a location.
    How can I relocate it then? @d-healey



  • @JeHathor Either through the settings floating tile or remove the link file that HISE created in the appData folder for your plugin and then next time you run the plugin you'll be prompted again.



  • Nevermind.
    I must have tried to load the samples before and pointed the plugin to the wrong project folder. After identifying and temporarily moving this folder I was able to relocate my samples.

    Thanks anyway!

    It's good to know were to find these files.


Log in to reply
 

7
Online

954
Users

3.4k
Topics

28.7k
Posts