-
... ready, select your GUI framework. Run this line: GUI.cocoa; // or this one: GUI.swing; // (I use swing on GNU/Linux) ( // This code launches the simpler test window. It has the control GUI // and the controlled sliders in the same window. v ...
-
... ow, 100@16 ) .font_( eq[ \font ] ).canFocus_(false) .resize_(7); if( GUI.id == \swing ) { eq[ \pumenu ].bounds = eq[ \pumenu ].bounds .insetBy(-3,-3) .moveBy( 0, 1 ) }; //eq[ \pumenu_check ].value; eq[ \pu_buttons ] = [ RoundButton.new( win ...
-
... keyUp(note) - resets the selected key. // choose a gui (see GUI helpfile) GUI .swing; GUI .cocoa; // examples MIDIKeyboard .new MIDIKeyboard .new(bounds: Rect (20, 10, 273, 60), octaves: 3) MIDIKeyboard .new(bounds: Rect (20, 10, 364, 60), ...
-
... so it's easy to change between the two. // choose a gui (see GUI helpfile) GUI .swing; GUI .cocoa; // create a grid BoxGrid .new BoxGrid .new(bounds: Rect (0, 0, 600, 400), columns: 4, rows: 2) BoxGrid .new(bounds: Rect (20, 20, 300, 200), ...
-
... range-1)/6).floor).select(_ != 0) * 6; var pts, strOffset = 11; if( GUI.id === 'swing' ) { strOffset = 14 }; bounds = vw.bounds.moveTo(0,0); ////// PREPARATION /////// // get freqs to plot freqs = ({|i| i } ! (bounds.width+1)); freqs = freq ...
-
... range-1)/6).floor).select(_ != 0) * 6; var pts, strOffset = 11; if( GUI.id === 'swing' ) { strOffset = 14 }; bounds = vw.bounds.moveTo(0,0); ////// PREPARATION /////// // get freqs to plot freqs = ({|i| i } ! (bounds.width+1)); freqs = freq ...
-
... color = node.outlinecolor; pen.strokeOval(node.rect); }); if(GUI.current.id == \swing, { if( node.string.size > 0, { pen.fillColor = fontColor; pen.stringInRect( node.string, Rect(node.rect.left+node.size+5, node.rect.top-3, 80, 16)); }); } ...
-
... le: The basic division of the beat: the default is 0.25, or 16th notes. You can swing the rhythm by giving an array such as [0.3, 0.2] -- this pattern will be propagated over the entire bar. beatsPerBar: Self-explanatory. Defaults to 4. mon ...
-
... le: The basic division of the beat: the default is 0.25, or 16th notes. You can swing the rhythm by giving an array such as [0.3, 0.2] -- this pattern will be propagated over the entire bar. beatsPerBar: Self-explanatory. Defaults to 4. mon ...
-
... he routine, but at the end of the loop. // choose a gui (see GUI helpfile) GUI .swing; GUI .cocoa; ParaSpace .new // use ctrl+click to create a Box ( w = Window .new( "ParaSpace" , Rect (10, 500, 400, 300)).front; a = ParaSpace .new(w, boun ...