View Single Post
Old 3rd May 2006, 15:40   #249
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
Quote:
Originally posted by The Earthquaker
I need an advice on time-based evaluation.

eg set=rand(n) is evaluated approx. every 5 seconds.
m1=equal(set,1);
m2=equal(set,2);... go on after 'set' changes.

I used to make expressions like

change=bor(below(t*k-floor(t*k),deltat*0.5),above(t*k-floor(t*k),1-deltat*0.5));

with t*k-floor(t*k)(main expression), deltat*0.5 cached at the beginning, in timer based on expression timer=t*k-floor(t*k).

It works, but is too approximate, even more: this timer automates one variable, and cannot randomize.

And it seems the best solution is to work on custom BPM:
Skip 7 beats.

its like three totally disconnected statements glued together...

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote