How to get ENUMS(PARAM, X) with SIMD?

Hi,

is there any way to read “replicate” params using simd? Actually I do this way:

ENUMS(GAIN_PARAM, 4)
...
ENUMS(GAIN_INPUT, 4)
...

rack::simd::float_4 mGains;
for (int unitIndex = 0; unitIndex < 4; unitIndex++) {
	mGains[unitIndex] = params[GAIN_PARAM + unitIndex].getValue() + inputs[GAIN_INPUT + unitIndex].getVoltage() / 10.0f;
}

But I’d like to read them “once” using SIMD/vector. I see Rack treat simd only with poly input.

Best way to do this?

Not sure if cast inputs and params to float_4 would be a good practice…

As far as I know there is no other way.

What you have is the best/only way.