Thanks. But Tempo isn't BPM. Tempo is Microseconds per Quarter Note (maybe I should have been clearer). So my formula would be time=time+DeltaTime/PPQN*(MPQN/1000000)*60
This should turn DeltaTime into 60ths of a second. But it doesn't. The weird thing is that I actualy tested it. Say PPQN=30, MPQN=500,000 and DeltaTime=10. That would mean 10/30*0,5*60. That makes 10 again, wich is correct. With PPQN=60 it would mean 10/60*0,5*60=5. Also correct. However, it doesn't work when I actually use it. Ofcource, I did try your formula, but it put all the commands in the same 60th of a second. Maarten On 12/08/06, stephane richard <[EMAIL PROTECTED]> wrote:
time=time+DeltaTime/Division*(Tempo/1000000)*60 should be time=time+DeltaTime/Division*(Tempo/(1000000*60)) 60,000,000 is the amount of microseconds in a minute which won't every change no matter what the bpm could be.
_______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
