Where does a compiled plugin find the sample maps?
-
I have a file player in a script node which I want to use to play samples from a sample map. In Hise everything works fine but after compiling and opening in a DAW the plugin doesn't play the samples anymore. I suspect that I have not copied the samplemap and the samples to the right places. In the docs and in the forum I have not found any exact information (only outdated links that don't lead anywhere: https://docs.hise.dev/glossary/export.html).
Since I am on Linux, I moved the “Samples” and the “SampleMaps” folders from the project directory to “home/username/.config/company/plugin/”.
Is this the correct directory? Do I have to set anything else, for example in the “GeneralSettings.xml”? Do I have to export the samples as an archive? Or do I have to load the SampleMap in the script somehow analogous to “Engine.loadAudioFilesIntoPool()” for audio files?
Thank in advance for your help!
-
The sample maps are embedded in the plugin binary. The samples can be placed anywhere, HISE will look in the app data/Samples folder for your plugin and in there you should put a file called LinkLinux, inside that file you should put the path to the folder where the samples are.
-
@d-healey Thank you very much, with your help I got it to work, at least somehow. The “LinkLinux” file must, if I see correctly, be placed directly in the app data folder.
However, it is very strange that it creates a new folder named “Samples\n” (i.e. “Samples” with line break) under the specified path. Only when I copy my samples into this folder does the plugin find them. I can't imagine that this should be the case.
-
@Consint said in Where does a compiled plugin find the sample maps?:
The “LinkLinux” file must, if I see correctly, be placed directly in the app data folder.
It should go in the Samples folder
-
@d-healey Ok, that's strange, because then it doesn't work at all.
-
@Consint Inside the Samples folder within the app data folder?
-
@d-healey Yes: home/username/.config/company/plugin/Samples/LinkLinux
And if I put it here: home/username/.config/company/plugin/LinkLinux
then it works with the curiosities described above. -
I tried the whole thing again in a new project and got the same result. If I put the LinkLinux file directly into the appdata folder (see first screenshot), the plugin creates a new folder at the specified path, whereby the last character of the folder name is a line break. If I then copy the samples into this folder, the plugin finds them and can play them without errors.
However, if I move the LinkLinux file to the appdata/Samples folder (see second screenshot), nothing happens and the plugin does not play any samples.
Does anyone have an idea what is going on here or what else I can try?
-
@Consint not really sure what your problem is?
HISE requires the path to the sample files it is supposed to use:
on windows this is the LinkWindows file and is located in the folder:
c:\Users<user name>\AppData\Roaming<companyname><productname>
on MacOs the file is LinkOSX and is in:
~/User/username/Library/Application Support/Company name/productname
(I think this is right I can never remember unless Im on the Mac)
on Linux its LinkLinux and is in the location David outlined above .. is it not there?
-
@Lindon Thank you for your answer. My first irritation is that @d-healey says the LinkLinux file must be in the samples subfolder in the appdata directory. But that doesn't work and doesn't match the paths you gave for Windows and Mac.
My second irritation is that if I put the LinkLinux file directly into the appdata directory, my plugin does not search for the samples directly in the path specified there, but creates a new folder with a strange name (line break at the end) and I then have to put the samples into this folder for everything to work.
Maybe I have to deal with the fact that Hise creates such a strange folder even if the line break in the folder name will certainly cause problems in the future development...
-
Which distro are you using?
-
@d-healey Ubuntu Budgie 22.04
-
@Consint Hmm it could be something related to your OS but I'm not sure.
-
@d-healey Yes, maybe. For the final compilation I'll install an older system anyway and then write again if I have the problem there too. Thanks for the support!
-
@d-healey is the same priciple for for Mac? If so, How I should named for mac?
-
@djalexx1 Yes, LinkOSX.
-
@Consint In case others have the same problem: If I set the sample location via FloatingTile - CustomSettings, everything works perfectly.