I'm trying to put a wu shader visualization in my skin by using
SystemObject.getLeftVuMeter(); etc....
now this is a problem:
I don't know how to run my function constantly, because
when I press Play button it runs only once, but I would want it
to run constantly.
Is there any way to code it? Maybe running it every 10 miliseconds?
This is a code:
System.onPlay(){
wushader();
}
wu_shader(){
int L, R;
L = System.getLeftVuMeter();
L = L/255 * 128;
R = System.getRightVuMeter();
R = R/255 * 128;
WuImageL.resize(215,86,L,4);
WuImageR.resize(215,100,R,4);
}
SystemObject.getLeftVuMeter(); etc....
now this is a problem:
I don't know how to run my function constantly, because
when I press Play button it runs only once, but I would want it
to run constantly.
Is there any way to code it? Maybe running it every 10 miliseconds?
This is a code:
System.onPlay(){
wushader();
}
wu_shader(){
int L, R;
L = System.getLeftVuMeter();
L = L/255 * 128;
R = System.getRightVuMeter();
R = R/255 * 128;
WuImageL.resize(215,86,L,4);
WuImageR.resize(215,100,R,4);
}
Comment