@JamesC said in Custom Display panel questions...:
inline function onrvbfilenameControl(component, value)
{
local currentReverb = ConvolutionReverb1.getCurrentlyLoadedFile();
if (currentReverb == "")
{
rvbfilename.set("text", currentReverb);
}
else
{
rvbfilename.set("text", currentReverb);
}
rvbfilename.repaint();
};
Ok well lets look at this:
local currentReverb = ConvolutionReverb1.getCurrentlyLoadedFile();is trying to get a file name..... from ConvolutionReverb1....
ConvolutionReverb1 is an AudioSampleProcessor, because of this:
const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");but when we look in the documentation at AudioSampeProcessor it has no method called
.getCurrentlyLoadedFile();
https://docs.hise.dev/scripting/scripting-api/audiosampleprocessor/index.html
..it does however have:
https://docs.hise.dev/scripting/scripting-api/audiosampleprocessor/index.html#getfilename