Hey guys!
Here’s a very strange and very specific problem…
Say you want a macro with a sound wave input:
And then you want to get the duration of that file inside the macro:
What happens? Well, the engine crashes. Note that you have to use the “duration” variable somehow, such as printing it, or using it as a delay.
However this is very specific. If instead of a pin variable you have a variable:
It works fine. Also, it works outside of a macro… just not inside.
I’ve tried multiple ways of using the duration, as well as different sound files. Nothing worked.
If anyone could help me, I’d be much obliged.
Thanks!