-
... .getMonoChnList; }); ) .value_(params[2]) .font_(GUI.font.new("Helvetica", 9)) .background_(Color.white) .canFocus_(false) .action_({ arg ch; inbus = if(numChannels == 2, {ch.value * 2}, {ch.value}); ampAnalyserSynth.set(\inbus, inbus); par ...
-
... window var win= Window("gui example mind mirror", Rect(10, 100, 600, 400)); win.background= Color.black; win.view.minSize= Size(260, 144); win.front; win.onClose= { board.stop; mindSynth.free; OSCdef(\mind).free; }; CmdPeriod.doOnce({ mindS ...
-
... .new("Additive Synthesis - Inharmonics", Rect(500, 100, 800, 550)).front; win.background = Color.grey; win.alpha = 0.95; win.onClose = {s.freeAll; "Done!".postln}; CmdPeriod.doOnce({win.close}); // Change the gaps and margins ...
-
... ield.action_({ updateValue.value(textField.string.asFloat); }); // Clicking the background removes // slider and textField focus, // allowing to use arrow keys // to control the value directly window.view.mouseDownAction_({ slider.focus(fal ...
-
... .width - (scrollerMargin+6))@18, collapsed[ cat ] ? true ); views[ cat ].button.background = nil; views[ cat ].addFlowLayout( 0@0, 4@4 ); StaticText( views[ cat ], (bounds.width - (18 + scrollerMargin + 6))@18 ) .string_( " " ++ cat.asStrin ...
-
... mat(title)).front.alwaysOnTop_(true); var tv = StaticText(w, w.view.bounds); tv.background_(Color(1, 0.75)); tv.align_(\center); w.alpha_(0.9); tv.string_(string).font_(Font("Arial", 24)); } } MeTA_Utils { classvar listCmd = "ls -1Abp"; // ...
-
... = Window(bounds: Rect(0, 0, 1920, 780)); v = UserView(w, w.view.bounds); v.background_(Color.white); v.animate_(true); v.drawFunc_({ var startPoint = Point(~allPoints[0].x,~allPoints[0].y); Pen.moveTo(startPoint); ~allPoin ...
-
... nth player stop / reset button and mode buttons are greyed out, // pause button background color is blue as Synth is new and paused. // Playing and stopping the stream player will also cause the synth's running // (and stopping with asTask' ...
-
... tton = Button(window, 20@20) .states_([[ c.asString ]] ) .action_(displayFunc) .background_(color); var slider = EZSmoothSlider( // var slider = EZSlider( window, elemExt@sliderHeight, // "".format(c).asString, nil, [ 0, 1].asSpec, {|me| mo ...
-
... ostInfo; }); u = UserView(w, w.bounds.moveTo(0,0).insetBy(4, 4).height_(64)); u.background_(Color.white); u.resize_(5); u.drawFunc = { var ubounds = u.bounds; var point, size; var rescale = [ubounds.width / 300, ubounds.height / 64]; var fi ...