Sign In:     


Forum: Addons

Topic: VideoRotation
 

Posted yesterday @ 3:57 pm
 

This is good, thank you
 

I'll second that, a bit of beat-aware script automation [locally] to change axis is the icing on the cake, the cherry on the cake would be rotation speed as effect_beats, but I can probably work it out with script or source.
I look forward to poking at the sauce. I'm not really at any level with dev'ing video plugins , but I can bodge stuff.
 

To have a rotation based on one beat, an idea is:

#include <math.h> // for the function floor()

double x = SongPosBeats - floor(SongPosBeats);
m_Angle = float(x) * 360.0f;


For 'm_Speed' beats :

double x;
if (m_Speed == 0) x = 0;
else x = fmod(SongPosBeats, m_Speed) / m_Speed;
m_Angle = float(x) * 360.0f;