Kore G
Member
Hello guys!
I have a 4 layer library and i want to control the volume
with an XY pad. Here is the code:
I want the volume to be at maximum when the cursor go to each corner
and the others at minimum.
This code not work for me.
I try this one but it saws me 2 cursors instead...
I have a 4 layer library and i want to control the volume
with an XY pad. Here is the code:
Code:
on init
make_perfview
declare ui_xy ?xy[2]
make_persistent(?xy)
end on
on ui_control (?xy)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[1] * 1000000.0),0,-1,-1)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[0] * 1000000.0),1,-1,-1)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[1] * 1000000.0),2,-1,-1)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[0] * 1000000.0),3,-1,-1)
end on
I want the volume to be at maximum when the cursor go to each corner
and the others at minimum.
This code not work for me.
I try this one but it saws me 2 cursors instead...
Code:
on init
make_perfview
declare ui_xy ?xy[4]
make_persistent(?xy)
end on
on ui_control (?xy)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[0] * 1000000.0),0,-1,-1)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[1] * 1000000.0),1,-1,-1)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[2] * 1000000.0),2,-1,-1)
set_engine_par($ENGINE_PAR_VOLUME,real_to_int(?xy[3] * 1000000.0),3,-1,-1)
end on