Show name of Convolution Reverb IR in a label?
-
I just tried adding this:
const var Reverb1 = Synth.getAudioSampleProcessor("Reverb1");
...but now I get a duplicate const var declaration
-
@SteveRiggs do you have two variables with the same name?
-
It's probably because there is:
const var Reverb1 = Synth.getAudioSampleProcessor("Reverb1");
and
const var Reverb1 = Synth.getEffect("Reverb1");
but not sure which one I need now so it will work for both things. The other reference to it is for a button that bypasses and enables Reverb 1
-
@SteveRiggs Why not have both but with different names?
-
Good point! I just changed one to
const var Verb1 = Synth.getAudioSampleProcessor("Reverb1");
and left the other as
const var Reverb1 = Synth.getEffect("Reverb1");
but I'm still getting 'function not found' in the console
-
@SteveRiggs I'll look at it in the morning when I'm at my PC
-
@d-healey Ok thanks. Could be a bug. Seems weird its not working. I'll leave it for now until tomorrow then and come back to it. Cheers for your help
-
Ok it turns out the
getCurrentlyLoadedFile
function is part of the AudioFile class, not the AudioSampleProcessor class.How are users selecting the IR they want to use in your plugin?
-
@d-healey Got ya. Thats why it doesn't work then. Cheers for checking.
At the moment the IR's are being loaded just by right clicking on the audio waveform on the GUI and choosing from the AudioFiles folder
-
Does that provide any kind of callback function?
-
@d-healey Not that I know of. I just have the AudioWaveform linked to Reverb1 in the property editor/processorId