Page 1 of 1

Multiball-eachball

Posted: 06 Feb 2014 23:29
by raysperanza
Hi guys, i spend all day to try to set a default position for each ball...

what i want is one button able to set different position for each ball.
I've tried in many ways:

- Cut()
multiball.x=32
(multiball does not be affect as fader do)

- Setting different Control Change with one value that go to affect for feedback multiball. It's not stable.... balls move around :lol:

Anyone knows?

Re: Multiball-eachball

Posted: 06 Feb 2014 23:47
by Softcore
Singletons (values) inside Lemur are always on a range of 0 - 1 regardless the actual midi mapping....

the location of ball of a multiball object is defined by TWO values - X and Y

To place a ball of a multiball object to the center for example you need to type:

Multiball.x = 0.5;
Multiball.y = 0.5;

If you have more than ONE ball in a multiball object you access each ball the same way you do with all multi-enabled objects of Lemur (sliders, pads, switches) meaning that their x,y,z form vectors (arrays)

so for example if you have 3 balls you access them with x[0], y[0] - x[1], y[1] - x[2], y[2]

so to set three balls to locations - lets say, center, top left corner, bottom right corner you go:

MultiBall.x[0]=0.5;
MultiBall.y[0]=0.5;
MultiBall.x[1]=0;
MultiBall.y[1]=1;
MultiBall.x[2]=1;
MultiBall.y[2]=0;

here is the example

Re: Multiball-eachball

Posted: 07 Feb 2014 13:34
by raysperanza
Amazing! thank you very much