You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sin(0.01) * 0.02 + 0.03 should range between 0.03 +- 0.02 = 0.01 to 0.05, but the white circle quite obviously moves much faster than the green one at times. That would be explained only if the calculation is being done incorrectly. But the calculation seems to be correct for audio. I'm mystified.
Forcing order of operations with extra brackets doesn't help: sin(sin(0.01) * 0.02 + 0.03) and sin((sin(0.01) * 0.02) + 0.03) appear to behave identically.
The text was updated successfully, but these errors were encountered:
I think this may be because the oscillators in the WebGL implementation of Punctual are stateless (just functions of their argument and time) while those in the Web Audio API are stateful (output depends on arguments, time, and preceding state/output of the oscillator). It's an interesting case - I'm not sure the behaviour is "incorrect" just different although I can see how it could be counter-intuitive. A different approach to modulation might be needed/possible to coexist with the generally stateless aspect of things in WebGL, but I'm not sure what that would look like.
I was looking for more "interesting" (less obviously cyclical) modulation shapes. On the graphics side, we might be stuck with additive approaches for now, if the oscillators' phases in WebGL aren't accumulative.
Not sure if this is the right place for it...
I was just trying a frequency-modulation expression as a position, and it seems like the values go out of range somewhere.
In audio, frequency modulation works exactly as you would expect.
OK, let's translate that to graphics:
But:
sin(0.01) * 0.02 + 0.03
should range between 0.03 +- 0.02 = 0.01 to 0.05, but the white circle quite obviously moves much faster than the green one at times. That would be explained only if the calculation is being done incorrectly. But the calculation seems to be correct for audio. I'm mystified.Forcing order of operations with extra brackets doesn't help:
sin(sin(0.01) * 0.02 + 0.03)
andsin((sin(0.01) * 0.02) + 0.03)
appear to behave identically.The text was updated successfully, but these errors were encountered: