IR Convolution plugin - sample location and best practices?
-
Regarding the Convolution plugin and delivering a plugin with convolution reverb .wav files:
(my HISE version is Scriptnode branch, 2020-11)
-
where should the IR sound files reside? AudioFiles or Samples folder?
-
do I have to deliver the files in a separate folder as a part of a .exe/.pkg installer? Or does it come with the plugin?
-
The
Engine.loadAudioFilesIntoPool()
function gathers up the audio files to be used in a plugin and is supposed to return a list of references, according to the manual . However, it does not return anything when used.- what folder does this function has as it's base? (/Samples or /AudioFiles? Or both? )
- I currently use is the
Engine.getSampleFilesFromDirectory(sub_folder, bool)
, which takes the input of thesub_folder
input, but that one works only on the/Samples
folder. Can I use another function that does the same for the AudioFiles folder?
-
-
@andioak said in IR Convolution plugin - sample location and best practices?:
(my HISE version is Scriptnode branch, 2020-11)
That branch is ancient. Upgrade to the master or develop branch.
@andioak said in IR Convolution plugin - sample location and best practices?:
where should the IR sound files reside? AudioFiles or Samples folder?
AudioFiles - https://docs.hise.audio/working-with-hise/project-management/index.html
@andioak said in IR Convolution plugin - sample location and best practices?:
what folder does this function has as it's base? (/Samples or /AudioFiles? Or both? )
AudioFiles
@andioak said in IR Convolution plugin - sample location and best practices?:
Can I use another function that does the same for the AudioFiles folder?
This is how you load files into the convo reverb, it automatically gets the file from the AudioFiles folder if it's there.
ConvolutionReverbEffect.setFile("{PROJECT_FOLDER}filename.wav");
-
That branch is ancient. Upgrade to the master or develop branch.
That one was just super popular :) What happened?
This is how you load files into the convo reverb, it automatically gets the file from the AudioFiles folder if it's there.
So no function to get all files and sub-folders of files then? We really need that one. That one would make it possible for users to copy-paste files that then show up n the plugin. Dynomite. ;)
Update: Found the
filesystem
now :) (->) , so usingFileSystem.findFiles(var directory, String wildcard, bool recursive)
is possible, assuming it will accept /AudioFiles/ sub path. -
@andioak said in IR Convolution plugin - sample location and best practices?:
That one was just super popular What happened?
Popularity has nothing to do with it. Git is a version control system, branches represent different versions of the source code, the scriptnode branch was a feature branch, once the feature (scriptnode) was stable it was merged back into the develop branch. Once the develop branch gets to a point where it's stable-ish it is merged into the master branch. So the master branch will always be out of date, but should at least build and export successfully. The develop branch is the cutting edge latest changes, unless there is a feature branch that is being actively worked on.
@andioak said in IR Convolution plugin - sample location and best practices?:
So no function to get all files and sub-folders of files then? We really need that one. That one would make it possible for users to copy-paste files that then show up n the plugin. Dynomite.
Yes you can use the file system and file apis (I have several videos about these on Patreon). This is not directly related to loading files into the convo reverb though.