`p = ProxySpace.push(s); ( s.waitForBoot { ~g00.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g01.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g02.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g03.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g04.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g05.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g06.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g07.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g08.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g09.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g10.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g11.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g12.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g13.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g14.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g15.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g16.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g17.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g18.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g19.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); }; ~g20.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };`
~g21.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g22.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g23.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g24.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g25.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g26.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g27.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g28.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g29.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); }; ~g30.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g31.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g32.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g33.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g34.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g35.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g36.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g37.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g38.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
~g39.source = { |controlRateValue| Lag.kr(controlRateValue, 0.001); };
w = Window("MultiSliderView Example", Rect(100, 100, 575, 395)); w.background = Color.rand; m = (); m[\MultiSliderViews] = (); m[\MultiSliderViews][\0] = MultiSliderView(w, Rect(5, 5, 280, 180)); m[\MultiSliderViews][\0].elasticMode = 1; m[\MultiSliderViews][\0].valueThumbSize = 25; m[\MultiSliderViews][\0].indexThumbSize = 20; m[\MultiSliderViews][\0].background = Color.rand; m[\MultiSliderViews][\0].fillColor = Color.rand; m[\MultiSliderViews][\0].value = Array.fill(10, 0.5); m[\WindowText] = (); m[\WindowText][\0] = StaticText(w, Rect(10, 180,100,20)).string_("~g00-~g09"); m[\MultiSliderViews][\0].action = { |vals| vals.do { |val, i| ( if(i == 0) { ~g00.set(\controlRateValue, val.value.at(0)); }; if(i == 0) { ~g01.set(\controlRateValue, val.value.at(1)); }; if(i == 0) { ~g02.set(\controlRateValue, val.value.at(2)); }; if(i == 0) { ~g03.set(\controlRateValue, val.value.at(3)); }; if(i == 0) { ~g04.set(\controlRateValue, val.value.at(4)); }; if(i == 0) { ~g05.set(\controlRateValue, val.value.at(5)); }; if(i == 0) { ~g06.set(\controlRateValue, val.value.at(6)); }; if(i == 0) { ~g07.set(\controlRateValue, val.value.at(7)); }; if(i == 0) { ~g08.set(\controlRateValue, val.value.at(8)); }; if(i == 0) { ~g09.set(\controlRateValue, val.value.at(9)); };
) }; };
// -------------------------------------------------o---O-----0-----O---o------------------------------------------------- \
m[\MultiSliderViews][\1] = MultiSliderView(w, Rect(5, 200, 280, 180)); m[\MultiSliderViews][\1].elasticMode = 1; m[\MultiSliderViews][\1].valueThumbSize = 25; m[\MultiSliderViews][\1].indexThumbSize = 20; m[\MultiSliderViews][\1].background = Color.rand; m[\MultiSliderViews][\1].fillColor = Color.rand; m[\MultiSliderViews][\1].value = Array.fill(10, 0.5); m[\WindowText][\1] = StaticText(w, Rect(10, 375,100,20)).string_("~g10-~g19"); m[\MultiSliderViews][\1].action = { |vals| vals.do { |val, i| ( if(i == 0) { ~g10.set(\controlRateValue, val.value.at(0)); }; if(i == 0) { ~g11.set(\controlRateValue, val.value.at(1)); }; if(i == 0) { ~g12.set(\controlRateValue, val.value.at(2)); }; if(i == 0) { ~g13.set(\controlRateValue, val.value.at(3)); }; if(i == 0) { ~g14.set(\controlRateValue, val.value.at(4)); }; if(i == 0) { ~g15.set(\controlRateValue, val.value.at(5)); }; if(i == 0) { ~g16.set(\controlRateValue, val.value.at(6)); }; if(i == 0) { ~g17.set(\controlRateValue, val.value.at(7)); }; if(i == 0) { ~g18.set(\controlRateValue, val.value.at(8)); }; if(i == 0) { ~g19.set(\controlRateValue, val.value.at(9)); };
) }; };
// -------------------------------------------------o---O-----0-----O---o------------------------------------------------- \
m[\MultiSliderViews] = (); m[\MultiSliderViews][\2] = MultiSliderView(w, Rect(290, 5, 280, 180)); m[\MultiSliderViews][\2].elasticMode = 1; m[\MultiSliderViews][\2].valueThumbSize = 25; m[\MultiSliderViews][\2].indexThumbSize = 20; m[\MultiSliderViews][\2].background = Color.rand; m[\MultiSliderViews][\2].fillColor = Color.rand; m[\MultiSliderViews][\2].value = Array.fill(10, 0.5); m[\WindowText][\1] = StaticText(w, Rect(295, 180,100,20)).string_("~g20-~g29"); m[\MultiSliderViews][\2].action = { |vals| vals.do { |val, i| ( if(i == 0) { ~g20.set(\controlRateValue, val.value.at(0)); }; if(i == 0) { ~g21.set(\controlRateValue, val.value.at(1)); }; if(i == 0) { ~g22.set(\controlRateValue, val.value.at(2)); }; if(i == 0) { ~g23.set(\controlRateValue, val.value.at(3)); }; if(i == 0) { ~g24.set(\controlRateValue, val.value.at(4)); }; if(i == 0) { ~g25.set(\controlRateValue, val.value.at(5)); }; if(i == 0) { ~g26.set(\controlRateValue, val.value.at(6)); }; if(i == 0) { ~g27.set(\controlRateValue, val.value.at(7)); }; if(i == 0) { ~g28.set(\controlRateValue, val.value.at(8)); }; if(i == 0) { ~g29.set(\controlRateValue, val.value.at(9)); };
) }; };
// -------------------------------------------------o---O-----0-----O---o------------------------------------------------- \
m[\MultiSliderViews][\3] = MultiSliderView(w, Rect(290, 200, 280, 180)); m[\MultiSliderViews][\3].elasticMode = 1; m[\MultiSliderViews][\3].valueThumbSize = 25; m[\MultiSliderViews][\3].indexThumbSize = 20; m[\MultiSliderViews][\3].background = Color.rand; m[\MultiSliderViews][\3].fillColor = Color.rand; m[\MultiSliderViews][\3].value = Array.fill(10, 0.5); m[\WindowText][\1] = StaticText(w, Rect(295, 375,100,20)).string_("~g30-~g39"); m[\MultiSliderViews][\3].action = { |vals| vals.do { |val, i| ( if(i == 0) { ~g30.set(\controlRateValue, val.value.at(0)); }; if(i == 0) { ~g31.set(\controlRateValue, val.value.at(1)); }; if(i == 0) { ~g32.set(\controlRateValue, val.value.at(2)); }; if(i == 0) { ~g33.set(\controlRateValue, val.value.at(3)); }; if(i == 0) { ~g34.set(\controlRateValue, val.value.at(4)); }; if(i == 0) { ~g35.set(\controlRateValue, val.value.at(5)); }; if(i == 0) { ~g36.set(\controlRateValue, val.value.at(6)); }; if(i == 0) { ~g37.set(\controlRateValue, val.value.at(7)); }; if(i == 0) { ~g38.set(\controlRateValue, val.value.at(8)); }; if(i == 0) { ~g39.set(\controlRateValue, val.value.at(9)); };
) }; };
w.front; }; )`