-
... on: // make a little keyboard to try the different modes: ( ~win = Window("PianoLayout", Rect(0, 200, 400, 200)).front; // switch between modes: ~pop = EZPopUpMenu(~win, Rect(4, 4, 192, 24), "mode", MPadView.modeKeys, { |pop| pop.item.postl ...
-
... .0,3.0],inf), // a pattern 0.1), 0, 0.3 ]); p.gui; ) ⧉ ✔ A metronome ( var nome,layout; nome = Patch({ arg beat,freq,amp; Decay2.ar( K2A.ar(beat), 0.01,0.11, SinOsc.ar( freq, 0, amp ) ) },[ BeatClockPlayer.new(4.0), StreamKrDur( Pseq([ 750, ...
-
... rs Automatic positioning and resizing of views View's resize options Decorators Layouts Customizing appearance Colors Palette Fonts Other visual properties Actions and hooks: Make that button do something! Default actions Keyboard and mouse ...
-
... s. ( a = Button().states_([["+"]]); b = Button().states_([["-"]]); w = Window().layout_(HLayout(a,b)).front; ) //sum and subtract ( ENdef(\x).clear; ENdef(\x, { var aES = a.enIn.collect{{|x| x+1 }}; var bES = b.enIn.collect{{|x| x-1 }}; (aE ...
-
... instance methods . asMenu Examples Simple checkable menu item ( ~view = View().layout_(HLayout( Button() .states_([["Options..."]]) .action_({ ~menu.front }) )); ~menu = Menu( MenuAction("enabled") .checkable_(true) .action_({ |a, enabled| ...
-
... rray of OSC values and access them in array style, therefore ( o = OSCMapper(\myLayout, layout: ( '/my': OSCMapperArray(), )); ) // send a message to ourselves NetAddr("localhost", NetAddr.langPort).sendMsg("/my", 4, 3, 2, 1, 0); // now acc ...
-
... class could be made more flexible: supporting different display sizes, keyboard layouts, and ways of switching between several KeyPlayers may be useful. (current the useList options gives one choice. Dragging and dropping actions could also ...
-
... PlayFileStereo(); //or pass in SPlayFileQuad for mixing to 4ch var fv; win.view.layout_(VLayout( StaticText().string_("embedded"), Button().states_([ ["show controls"], ["show controls"] ]).action_{|view| fv.controls= view.value.booleanValu ...
-
... FileDiskStereo(); //or pass in SPlayFileQuad for mixing to 4ch var fv; win.view.layout_(VLayout( StaticText().string_("embedded"), Button().states_([ ["show controls"], ["show controls"] ]).action_{|view| fv.controls= view.value.booleanValu ...
-
... les embedding of interactive components to a Menu or ToolBar . ( ~view = View().layout_(HLayout( ToolBar( MenuAction("Min", { ~slider.value = 0 }), MenuAction("Max", { ~slider.value = 1 }), CustomViewAction( ~slider = Slider().orientation_( ...