Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Isadora: General:
making a random video player with isadora

 

 


mrtamale
Novice

Jun 2, 2008, 7:14 PM

Post #1 of 6 (1011 views)
Shortcut
making a random video player with isadora Can't Post

hi everyone,

i'm trying to make a two-channel random video player with isadora, which sounds simple but it's being a bit tricky.

the basic setup is two random actors connected to the "movie" inputs of two movie players that selects the clip to be played which is then connected to two projectors (set for stage 1 and stage 2). to trigger the random loops i have the "loop end" of the movie player connected to the "trigger" input of the random actor. i have set the "value out" of the random actor to minimum 1 and maximum 36 (i'm testing the project with 36 loops but eventually i'll add about 150 loops).

my problem is that 50 percent of the time it keeps playing loop number 36 (the max number setting on the random actor). is there another way to generate a random number with isadora? any other suggestions on how to do this more efficiently?

i would also like to randomize the number of times the clips loop but i can't figure out how to do it.

thanks in advance,

antonio


Mark Coniglio
TroikaTronix / Moderator

Jun 2, 2008, 11:02 PM

Post #2 of 6 (1007 views)
Shortcut
Re: [mrtamale] making a random video player with isadora [In reply to] Can't Post

I have a feeling you set the 'limit min' and 'limit max' of the Random actor. This is not the correct way to do it; if you, for instance, set the limit of the Random actor to 0 and 50, then 50% of the time the numbers will be above 50, and they will no longer be random because they are limited. Does this make sense?

Instead leave limit min and limit max at 0 and 100, respectively. Then set the 'scale min' and 'scale max' of the 'movie' input of the Movie Player to limit which movies are being played.

Best,
Mark

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Mark Coniglio / TroikaTronix
Creator of Isadora


mrtamale
Novice

Jun 3, 2008, 10:33 AM

Post #3 of 6 (990 views)
Shortcut
Re: [Mark Coniglio] making a random video player with isadora [In reply to] Can't Post

Thanks, Mark, that did the trick. now the randomizing is perfect. i connected the "random" actor to the "limit-scale value" actor and set the "out min" to 1 and the "out max" to 36 and then connected that to the movie player.


mrjonesy
Novice

Jun 3, 2008, 1:28 PM

Post #4 of 6 (984 views)
Shortcut
Re: [Mark Coniglio] making a random video player with isadora [In reply to] Can't Post

Hi Mark - I've been using the limit-scale value along with the random actor and it works well. The only thing is, the randomization seems to select some video and audio clips more than others - i.e. it's not as random as it should be. In the limit scale values I've put the min and max relating directly to the videos I want it to select from, i.e. 110 min, 120 max - is this right?

Many thanks

Tim


Mark Coniglio
TroikaTronix / Moderator

Jun 5, 2008, 1:38 AM

Post #5 of 6 (955 views)
Shortcut
Re: [mrjonesy] making a random video player with isadora [In reply to] Can't Post

Well, the thing is there is a an incosistency in the Limit-Scale Value actor that I have to address. When you set the out min and out max inputs, it automatically changes the 'limit min' and 'limit max' settings for the output. So, due to the automatic scaling features of Isadora, this might mean that you are still selecting all the clips.

For instance, assume we set 'out min' and 'out max' to 5 and 10. Then you connect it to a Movie Player's 'movie' input whose 'scale min' and 'scale max' inputs have been set to 1 and 30 respectively. Because both the 'limit min/max' and 'scale min/max' are set for the output and input, Isadora will scale the output values, ranging between 5 and 10,to a range that includes 1 through 30. So, you won't just get movies 5-10; you'll get the whole range of 1 to 30.

I probably need to remove the automatic adjustment of the 'limit min' and 'limit max'; but this is not so nice for people's previous patches; it's sure to break something.

The only workaround at the moment is to connect a Calculator actor between the output of the Limit Scale Value and the actor to which you are connecting it. Just set the mode to 'add' and connect the Limit Scale Value's output to the 'value 1' input. The reason this makes a difference is that the Calculator actor's Limit Min and Limit Max output will be set to MIN and MAX, thus preventing any scaling.

Sorry if that's confusing... but hopefully it helps you understand what's going on.

Best Wishes,
Mark

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Mark Coniglio / TroikaTronix
Creator of Isadora


fubbi
Novice


Jun 26, 2008, 8:46 AM

Post #6 of 6 (790 views)
Shortcut
Re: [Mark Coniglio] making a random video player with isadora [In reply to] Can't Post

I usually send the random actor into a modulo operation(calculator) to tame it. this in combination with the media count/index actors does about the same as above but with more settings to tweak and it lets you set random bins as well.

I dont really know much about modulo operations, and I just do it on gut feeling, but so far it has given me good results for a "tuned" random value.

fub

 
 
 


Search for (options) copyright © TroikaTronix 2007