What's the deal with this assert? isMonophonicOrInsideVoiceRendering()
-
/** If you know that you're inside a rendering context, you can use this function instead of the for-loop syntax. Be aware that the performance will be the same, it's just a bit less to type. */ T& get() const { jassert(isMonophonicOrInsideVoiceRendering()); return *begin(); }
My Hise project trips this assert every time I run it now. It never did before. Even reverting to old versions of my nodes and Hise scripts does not remove the behaviour.
-
@griffinboy yeah that's overly verbose, you can just get rid of that line.
-
Good to know that it wasn't anything bad. It didn't seem to be breaking anything.
Is it okay for me to use this function then? It says that I shouldn't here unless I'm rendering. But I couldn't really see why, so I've been using it