-
... 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 ...
-
... ry polyrhythms and some control over generated timing and amplitude variations. Swing is not implemented, but most likely one can use the approach from the pattern guide. Why search the net for drum loops in your preferred tempo if you can ...
-
... prefix. For example, to make a window, the CocoaGUI kit uses SCWindow , or the swing kit uses JSCWindow . It is generally discouraged to use the kit-dependant classes directly. Instead, you simply use the subclasses of ViewRedirect . In mo ...
-
... th guidance on writing new pattern classes See also: Pattern Guide Cookbook 08: Swing Inner workings of patterns Patterns as streams As noted, patterns by themselves don't do much. They have to be turned into streams first; then, values are ...
-
... This is tricky to explain briefly; see the help file for some good examples. // Swing notes with Prorate ( p = Pbind ( \degree , Pseries (4, Pwhite (-2, 2, inf ).reject({ |x| x == 0 }), inf ).fold(-7, 11), \dur , Prorate (0.6, 0.5) // actua ...
-
... ready, select your GUI framework. Run this line: GUI.cocoa; // or this one: GUI.swing; // (I use swing on GNU/Linux) ( // Simple test, all in one window. // First, create any window with some sliders... var win, button, slider, numberBox, c ...
-
... 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 ...
-
... This is tricky to explain briefly; see the help file for some good examples. // Swing notes with Prorate ( p = Pbind( \degree, Pseries(4, Pwhite(-2, 2, inf).reject({ |x| x == 0 }), inf).fold(-7, 11), \dur, Prorate(0.6, 0.5) // actually yiel ...
-
... indow dynamically with Pen ( var w, much = 0.02, string, synth; w = Window.new("swing", Rect(100, 100, 300, 500)).front; w.view.background_(Color.new255(153, 255, 102).vary); string = "swing ".dup(24).join; w.drawFunc = Routine { var i = 0; ...
-
... 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), ...