battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programming a forum for elite programmers with extreme will power to sharpen their skills
HomeGallerySearchRegisterLog in

 moan time gate

Go down 
Moti Barski
Moti Barski

Posts : 573
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
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


MB over and out emp it up
Back to top Go down
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: