I was occasionally getting type errors around the pow function after https://github.com/projectM-visualizer/projectm/pull/779. This appears to be because the type casting used in OutputExpressionList was being omitted. For the other functions with an added abs call, I use OutputExpressionList to recapture the previous casting behavior and for pow I use the function's return type, ensuring that all arguments are expanded into vectors where possible. pow in particular is often used in presets where the base or exponent is a scalar and the other argument is a vector.
I was occasionally getting type errors around the
pow
function after https://github.com/projectM-visualizer/projectm/pull/779. This appears to be because the type casting used inOutputExpressionList
was being omitted. For the other functions with an addedabs
call, I useOutputExpressionList
to recapture the previous casting behavior and forpow
I use the function's return type, ensuring that all arguments are expanded into vectors where possible.pow
in particular is often used in presets where the base or exponent is a scalar and the other argument is a vector.