@d-healey OK I managed to do it :)
I needed a local variable to get the IDs of the component being used and an if statement to compare that number with the counter:
inline function changeFreq0(component, value)
{
local idx = freq.indexOf(component);
for (i = 0; i <= 13; i++)
{
if (i == idx)
EQ[i].setAttribute(EQ[i].Freq, value);
}
}
@Christoph-Hart did you happen to take a look at why it plays back differently on DAWs? I was hoping you see something when you sorted out the sample rate thing.
@ulrik@d-healey Major lesson learnt! I had been doing some tests with building a swift app on my iPhone and somehow it was still doing it with HISE! So always double-check if you have any outputs activated
in Xcode>Window > Devices and Simulators.
Although now I did find a major bug on an instrument we are building, so I will do a separate post on that.