battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share
 

 moan time gate

Go down 
AuthorMessage
Moti Barski
super
super
Moti Barski

Posts : 356
Join date : 2011-08-02

moan time gate Empty
PostSubject: moan time gate   moan time gate EmptyFri Jan 25, 2019 8:23 pm

I have created a formula that allocates the times in which a moan can be played
without overlapping with the next moans that play, assuming the moans are played in succession :


(time div (moan duration + extra tolerance time)) mod 2 == 0

if for example a moan is a 11 sec audio
it cannot be played at times :
1, 10, 20
or
1, 7, 13


and if you were to play it once per minute it would cause to much of a wait.


using the said formula :


21, 44, 5, 23 : no overlapping problem

granted the play would have to be disabled after been played until the next cycle arrives
in other words : one play per cycle

hisatsu

_________________
MB over and out emp it up
Back to top Go down
View user profile
 
moan time gate
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: