-
... 8 notes. if (glob[\pnotes].size > 9) { glob[\pnotes].pop; }; // always return state at the end [glob, loc]; }, nil], // whenever you e ...
-
... strings, it's easy -- use ListView. If, for example, each "line" should have a pop-up menu, a text field and a toggle button, there's ScrollView. We also have Qt layouts, which are supposed to save us from the trouble of calculating coordi ...
-
... kKnock", {arg out = 0, pan = 0, amp = 0.3; var main, mainFreq, mainAmp; var pop, popFreq, popAmp; var click, clickAmp; var snd; mainFreq = EnvGen.ar(Env([261, 120, 51], [0.035, 0.08], curve: \exp)); mainAmp = EnvGen.ar(Env.lin ...
-
... prevPos[c] = prevPos[c].add(i) }; tokens.do { | c, i | n = n.add([c, prevPos[c].pop, i]) }; prevPos.keysValuesDo{ |k, v | if (v.size >0) {d = d ++ [k,v, nil].flop } }; d ++ n; } } diff3 { diffFunc = {| prevTokens, tokens | var sz, d, n, pre ...
-
... tMinis.value; }; /* Some extras: a volume slider for simple mixing, a popup menu for switching syndefnames; a button to stop/start the skipjack for refreshing, so one can use numberboxes to enter values. */ EZSlider(w, ...
-
... rks: Quarks.updateDirectory; // if you get an error on OSX in the terminal that pops up that says something about the svn version being outdated, use this line to set the svn path: QuarkSVNRepository.svnpath_( "/opt/local/bin/svn" ); // upd ...
-
... .stringCenteredIn(name.asString, zone, Font("Monaco", 24), white, \center); Pen.pop; Pen.translate(0, height); }; Pen.pop; if (NTMI.webMouse.downCount > 0) { // "drawFunc - gets here?".postln; mouseXY = NTMI.webMouse.xy.asPoint; NTMI.webMou ...
-
... ; } *useWithSkin { |skin, function| this.pushSkin( skin ); function.value; this.popSkin; } *pushSkin { |skin| this.skins = this.skins.add( skin ); } *popSkin { this.skins.pop; } *skin_ { |skin| if( skin.isNil ) { skins = [] } // remove all ...
-
... ); vw.action = { action.value( this, key ); }; views[ key ] = vw; }); RoundView.popSkin; } remove { composite.remove; } resize_ { |resize| composite.resize_(resize) } font_ { |font| views.values.do({ |vw| vw.font = font }); } viewHeight_ { ...
-
... ) { convert.( [\push] ); cmd[1..].do({ |item| convert.( item ) }); convert.( [\pop] ); } { // cmd[0].post; " converting now".postln; array = switch ( cmd[0], \push, { [ "gsave" ] }, \pop, { [ "grestore" ] }, \strokeRect, { cmd[1].asArray + ...