No Exporting the IR
-
When compiling the plugins it doesn't copy the IR over to the compiled plugins
-
@jay Did you check the project preferences box to embed audio files in exported plugins?
-
@d-healey Yes I did. I always checked even if I don't use files
-
Are you using the development branch or the master branch? There's a new pool system in the development branch that sometimes leads to missing files when they are not updated manually.
-
@christoph-hart master branch
-
I've just built my first FX plugin with HISE using the convo reverb. When I open the VST in Reaper and try to load an IR from a dropdown menu on my UI it says the IR file was not embedded correctly. I checked the box in preferences to embed audio files, what did I miss?
-
@d-healey Bump bump
-
I just checked the ConvolutionReverb example here:
https://github.com/christophhart/hise_tutorial/tree/master/ConvolutionReverb
The embedding works correctly (you need to copy an impulse to the AudioFIles directory and load it before exporting).
-
@christoph-hart I have mine in sub-directories inside the AudioFiles folder, could that be the problem? I'll test out the example project and see what results I get.
-
Ok I've found the cause of the problem with this I think. If I load the IR file into the convo reverb then export, that file will be extracted correctly and will show up in the plugin. But I have a number of IRs I want to be able to load by selecting them from a combo box, these ones don't get extracted.
-
Ah I think I understand. The reason for this is that HISE only exports referenced files. There is a function somewhere that automatically loads all audio files once (or something like that). I‘ll take a look how this works.
-
@christoph-hart Any progress with this?
-
Not yet, but a workaround is to load every audio file once before you export the project to make sure it's pooled (you can do this in the onInit callback).
-
@christoph-hart I added a loop to load every IR. When I compile the plugin and open in Reaper I no longer get the popup about IRs not being embedded, but they won't load into the convo reverb using the the setFile command.
Here's the repo if you have time to take a look - https://github.com/davidhealey/sordina
-
I've added a scripting function called
Engine.loadAllAudioFilesIntoPool()
, which takes care of the initial loading for audio files (for the compiled plugin it doesn't do anything, so there's no overhead).Just call it whenever you need a dynamic amount of embedded audio files.
-
@christoph-hart Excellent, I'll give this a go later today.
-
@Christoph-Hart said in No Exporting the IR:
Engine.loadAllAudioFilesIntoPool()
note - if you're looking for this, this is now called:
Engine.loadAudioFilesIntoPool()