Convolution Reverb newFileLoaded method gone?
-
Hi @Christoph-Hart I'm bringing a 2021 Hise RAW C++ project to HISE 3.0.0 and I cannot figure out how to make convolution to work. newFileLoaded is not there anymore and IR is not loaded (I guess). Any clue?
auto mainIr = [mc, storagePtr](int index) { raw::Builder builder(mc); // Conv Reverb auto convolutionReverb = builder.create<ConvolutionEffect>(mc->getMainSynthChain(), raw::IDs::Chains::FX); convolutionReverb->setId("convolutionReverb1"); convolutionReverb->setAttribute(ConvolutionEffect::WetGain, 0, dontSendNotification); convolutionReverb->setLoadedFile("{PROJECT_FOLDER}hammerIR.wav"); // convolutionReverb->newFileLoaded(); convolutionReverb->setAttribute(ConvolutionEffect::DryGain, -7, dontSendNotification); convolutionReverb->setAttribute(ConvolutionEffect::ProcessInput, 1, dontSendNotification); }; mainIr(0);```
-
@Christoph-Hart can you drop a simple example of ConvolutionEffect implementation on RAW API?? cannot find any in docs nor forum. plz :)
Also I found .wav file is not loaded as it was in HISE 2021. I've pooled as usual. What's the actual way to load a wav into ConvolutionEffect nowadays?
JUCE v6.1.3 WARNING: Not found: {PROJECT_FOLDER}hammerIR.wav
-
@hisefilo
I think the attribute you're searching for is named "FileName". (instead of "LoadedFile")
On the other part, I can't see whats wrong ... -
@VorosMusic Hi mate! No luck. FileName is not a method nor attribute of ConvolutionEffect as far as I can see.
I guess the problem is that I am not able to make the pool correctly because still getting this:
WARNING: Not found: {PROJECT_FOLDER}hammerIR.wav
Meaning C++ RAW is not finding this file in the pool. (I guess:)
Do we need to embed audio files and IR in some other way for HISE 3.0 RAW C++ ?
-
@hisefilo I'm hitting this warning
-
Well!! Figured it out. For others facing this: HISE 3.0.0 (AFAIK) and newer needs Engine.loadAudioFilesIntoPool(); in order to correctly pool audio files for C++ API
So basically add:
Engine.loadAudioFilesIntoPool();
into the main script processor for your HISE project and proceed with the normal export.