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
Anyone knows?
Multiball-eachball
Re: Multiball-eachball
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
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
- Attachments
-
- ballreset.jzml
- (6.67 KiB) Downloaded 77 times
-
- Newbie
- Posts: 10
- Joined: 04 Dec 2013 20:34
Re: Multiball-eachball
Amazing! thank you very much