Okay that worked fine. But now I’ve got another problem regarding dsp::FIR::Coefficients. I make a vector of dsp::FIR::Coefficients, initialize them and then I assign them to the corresponding dsp::FIR::Filter with

`firFilter.at(n * numberOfInputChannel + m).coefficients = &filterCoefficients.at(n*numberOfInputChannel + m);`

My class now looks like that:

```
class mimo
{
public:
mimo(int numberOfInputChannel, int numberOfOutputChannel, int samplesPerBlock, const std::vector<float>& firFilterCoefficients)
{
filterLength = firFilterCoefficients.size() / (numberOfInputChannel * numberOfOutputChannel);
filterCoefficients.assign(numberOfOutputChannel * numberOfInputChannel, juce::dsp::FIR::Coefficients<float>(filterLength));
for (int n = 0; n < numberOfOutputChannel; n++)
{
for (int m = 0; m < numberOfInputChannel; m++)
{
auto* c = filterCoefficients.at(n*numberOfInputChannel + m).getRawCoefficients();
for (int i = 0; i < filterLength; i++)
{
c[i] = firFilterCoefficients.at(n * numberOfInputChannel * filterLength + m * filterLength + i);
}
}
}
std::vector<juce::dsp::FIR::Filter<float>> tmp(numberOfOutputChannel * numberOfInputChannel);
firFilter.swap(tmp);
for (int n = 0; n < numberOfOutputChannel; n++)
{
for (int m = 0; m < numberOfInputChannel; m++)
{
firFilter.at(n * numberOfInputChannel + m).coefficients = &filterCoefficients.at(n*numberInputChannel + m);
}
}
}
private:
std::vector<juce::dsp::FIR::Coefficients<float>> filterCoefficients;
std::vector<juce::dsp::FIR::Filter<float>> firFilter;
....
};
```

That code compiles but when I start debugging, I get an exception at this *jassert()* :

```
bool decReferenceCountWithoutDeleting() noexcept
{
jassert (getReferenceCount() > 0);
return --refCount == 0;
}
```

I hope someone can give me a hint

Thanks!