//================================================================================================== // // README: // // 12.7.09 Joe Mariglio // // // //------------------------------------------------------------------------------------------------- // Some changes to SCLang are necessary for running Keith's Software Instrument //================================================================================================== 12.7.09: file 'ConnectCVToViews.sc' was altered to include SCKnob class. code is identical to Knob class extension, except calls to 'this.knob' were changed to simply 'this'. extension to 'SCKnob' class as follows: +SCKnob { connect { arg ctl; var link; this.value = ctl.input; this.action_({ctl.input_(this.value); }); link = SimpleController(ctl).put(\synch, { defer({ this.value = ctl.input; nil }); }); this.onClose = { link.remove }; } } 12.7.09: file 'GUIEvent.sc' was altered to fix hslider bug. code is as follows: hslider: { |win, name, cv, rect| rect = rect ?? ~sliderRect; ~label.value(win, name); ~slider.value(win, name, cv, rect); },