-
... ndow = Window.new( name: "Browse SCLOrkSamples [scroll down for more]", bounds: Rect(140, 0, 750, 290), resizable: true, scroll: true ); browseWindow.onClose = ({ browseWindow = nil; "sample browser has been closed".postln; }); browseWindow ...
-
... trol {|name, position| //--settings var prefName= "%.json".format(name); var winRect= Rect(position.x, position.y, 400, 200); //x, y, w, h var palette= SGUI.palette; var fnt= SGUI.font; var fntMono= Font.monospace(10); var fps= 15; //maximu ...
-
... 0.1, 0.1, 0.1, 0] ).add; // make the window w = Window("another control panel", Rect(20, 400, 440, 180)); w.front; // make window visible and front window. w.view.decorator = FlowLayout(w.view.bounds); w.view.decorator.gap=2@2; // add a but ...
-
... te, record, play, have fun var click_out = 0; var win = Window("Super Looper", Rect(100, 200, 800, 600)).front; var numbufs = 64; var layout = win.addFlowLayout((0@0), (0@0)); var container = (); var size = (40@40); var metronome = () ...
-
... { |nKeys = 36, startOctave = 1, channel = 0, bounds| var out; bounds = bounds ? Rect( 128, 64, 600, 100 ); out = super.newCopyArgs( nKeys, startOctave, channel, bounds, [], 64, () ) .downAction_( { |chan, note, velo| [chan, note, velo].post ...
-
... .kr( 0, 3 ); trigxy = (2.55..-0.45).collect{ |yi| (-0.45..4.55).collect{ |xi| InRect.kr( x, y, Rect( xi, yi, 0.9, 0.9 ) ) } }.flatten; itrig = 1 - trigxy; SendTrig.kr( impuls + trigxy, (0..23), trigxy ); SendTrig.kr( itrig, (24..47), trigxy ...
-
... ID; server = inServer ? Server.default; w = Window( "record : " ++ server.name, Rect.aboutPoint( Window.screenBounds.center, 150, 75 ), false ).front; w.decorate; w.onClose = { all.remove( this ) }; StaticText( w, 60@20 ).string_( "#channel ...
-
... ame CtLoop with a 2D controller: ( w = Window("play me").front; t = Slider2D(w, Rect(0,0,400,400)) .action_({ |sl| var x, y; x = sl.x; y = sl.y; c.recordEvent(\x, x); c.recordEvent(\y, y); Ndef(\test).set( \pFreq, \pFreq.asSpec.map(x), \pWi ...
-
... are too small, you will be unhappy layout = FlowView(masterLayout, bounds ?? { Rect(0, 0, 290, 310) }, margin: 2@2); layout.onClose = { this.free; }; // gc so automatic browser updates don't break this.initStates; this.makeViews; this.chan ...
-
... are too small, you will be unhappy layout = FlowView(masterLayout, bounds ?? { Rect(0, 0, 290, 310) }, margin: 2@2); layout.onClose = { this.free; }; // gc so automatic browser updates don't break this.initStates; this.makeViews; this.chan ...