From: salsaman <sal...@xs...> - 2004-10-02 10:22:20
|
Dennis Smit wrote: >On Fri, 2004-10-01 at 23:10 +0300, Vitaly V. Bursov wrote: > > >>>which returns 1 with a propability of p (0.0 <= p <= 1.0) >>> >>> >>:) Nice idea. >> >>int lv_random_decide(float a) >>{ >> float x=(float)random()/RAND_MAX; >> return x <= a; >>} >> >> > >You guys probably figured by now that my math skills really suck :) > >Thanks for the translation to code heheheh. > >I think I'll be implementing this today, and some other randomness >functions. > >Cheers, >Dennis > > > Great. I implemented a really nice feature in LiVES yesterday. Now you can load in an audio file, hit record, then trigger an actor. The video frames are grabbed and then rendered so you can have an instant video to accompany any audio. This feature really needs the randomness fixes, otherwise you just get the same visuals for every audio piece. Hope to have another LiVES dev release out soon. Cheers, Salsaman. |