-
... n.bounds = win.bounds.height_(win.bounds.height + 30); uv.drawFunc = { |uv| var string = MKtl(\flatcat).elAt.deviceValue.collect { |val| (val.round(0.001).asString ++ " ").clipExtend(5) }; Pen.stringCenteredIn(string.join(" "), uv.bounds.ex ...
-
... 5, 0, 0 ] SMPTE .minSec( 70, 80.5 ); // -> SMPTE[ 1, 11, 20, 12, 50 ] SMPTE.fromString( string, fps ) string - a string with ":" characters as dividers for hours, minutes, seconds and frames SMPTE .fromString( "00:10:05:00" ); // -> SMPTE[ ...
-
... (); v_slider_position = 0; sv_slider = UserView(); hex_text_field = TextField().string_("#D9D9D9"); helper = UserView(); binded_function = nil; } hsvToColor { | hsv | var color = Color( 0, 0, 0 ); var h = hsv[0]; var s = hsv[1]; var v = hsv ...
-
GMFeedbackButton : GMUserView { var thisString = ""; var thisFontRatio = 0.8; var thisOrientation = \right; var thisSVG; var thisSVGPath = ""; var thisSVGRatio = 0.8; var thisSVGSize; var thisCurrentBackColor; var thisBlinkColor; var thisCu ...
-
... w.view.decorator = FlowLayout.new(w.bounds,2@2,2@2); StaticText.new( w, 200@22).string_( "XBee Network").align_( \center).font_( GUI.font.new( "Helvetica Bold", 18) ); dev = EZPopUpMenu.new(w, 164@22, "Device: ", SerialPort.devices.reverse. ...
-
... ter) } init { |parent, bounds, ir| var resize =0; if( parent.isNil or: parent.isString ) { bounds = bounds ? Rect( 72,256, 220, 4 + (ir.settings.size * (rowHeight + 12)) + //(ir.settings.collect(_.size).sum * (rowHeight + 4)) + 24 ); } { bo ...
-
... ame, cv, rect | rect = rect ?? ~labelRect; StaticText(win, rect).align_(\right).string_(name) }, numberBox: { |win, name, cv, rect | rect = rect ?? ~numericalRect; cv.asArray.do({ | cv | CVSyncValue(cv, NumberBox(win,rect)) }); }, smallNumb ...
-
... window = Window("DAC Tester") .layout_( VLayout( VLayout( HLayout( StaticText().string_("Default Server"), view.startButton, view.rebootButton, view.meterButton, ), HLayout( StaticText().string_("Output Channels"), view.channelSlider, view. ...
-
... = TextField(), ~textView = TextView()); ~textField.action_({|v| ~chatter.send(v.string); v.string = "" }); // to get updates, just add a dependant ~chatter.addDependant({|chatter, what, who, chat| { ~textView.string_(who ++ ": " ++ chat ++ ...
-
// addition to Note.sc // part of wslib + String { asNote { |cents| ^Note(this, cents:cents) } } + SimpleNumber { asNote { ^if(this < 128) {Note(midi:this)} {Note(freq:this)} } } + Symbol { asNote { |cents| ^Note(this.asString, cents:cents) ...