audio files not embed (Engine.loadAudioFilesIntoPool) added
-
@Yannrog said in audio files not embed (Engine.loadAudioFilesIntoPool) added:
and a script processor doesn't work
You need to give more information
-
@David-Healey I have IR Reverbs working in Hise,
I have code lines for reverbs
const var audiofiles = Engine.loadAudioFilesIntoPool();
const var reverbfile1 = Synth.getAudioSampleProcessor("//reverbname");const var reverbfile2 = Synth.getAudioSampleProcessor("//reverbname");
Works fine Hise. But doesn't work in plugin
I have too a midi script processor on a sampler working on Hise.
But doesn't work in plugin -
@Yannrog said in audio files not embed (Engine.loadAudioFilesIntoPool) added:
"//reverbname"
Is this a placeholder? Where are you calling
.setFile()? -
@David-Healey
I placed in the code lines the name of the reverbs instead of “//reverbname“I thought it was targeting for the file in the folder. Sorry for the beginner questions.
-
@Yannrog
getAudioSampleProcessorthis is used to get a reference to the effect in the module tree. Once you have that you use.setFileto tell it which IR to use. You need to use the project_folder wildcard too, check the documentation link I posted above. -
@David-Healey oh, ok. I'll try thanx
-
@David-Healey
const var reverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");reverb1.setFile("Reverb 4");
I have a message “const var must be on global level“, what does it mean?
-
@Yannrog said in audio files not embed (Engine.loadAudioFilesIntoPool) added:
I have a message “const var must be on global level“, what does it mean?
That means the variable need to be declared in
on init.For set file you need to use the project folder wildcard like I mentioned, so it knows where to look for the IR. Check the docs.
-
@David-Healey It's better
I am on oninit, why is it saying again?

exemple :
const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");
ConvolutionReverb1.setFile("{PROJECT_FOLDER}Reverb 4.wav");*
const var ConvolutionReverb2 = Synth.getAudioSampleProcessor("Convolution Reverb2");
ConvolutionReverb2.setFile("{PROJECT_FOLDER}reverb.wav");*
-
@Yannrog That looks good, but why the
*at the end of the lines?