-
TestFloat : UnitTest { test_storeOn { var stored; stored = String.streamContents({ arg stream; stream <<< 1e-05}); this.assert(stored != "1e-05.0", "scientific notation should not have a .0 at the end"); this.assertEquals(stored , "1e-05", ...
-
... Rect); win.layout= HLayout( VLayout( //--amplitude control section StaticText().string_("Amplitude control"), VLayout( HLayout( StaticText().string_("AmpHi").fixedWidth_(50), [ampHiElement.addView(Slider().orientation_(\horizontal)), stretc ...
-
... topped; var recorder, scoper; var countsViews, ctlr; var dumping=false; var infoString, oldOnClose; var font; var cpuMeter, composite; font = Font(Font.defaultSansFace, 10); onColor = onColor ? Color.new255(74, 120, 74); if (window.notNil, ...
-
... Integer(); }, { value = value.asSymbol; }); valueOff = value; textFieldValueOff.string = value; this.mapSteps(); } valueOn_ { |value| // duplicate code. reformat this if (value.asSymbol() == value.asInteger().asSymbol(), { value = value.asI ...
-
... name or size. Creation / Class Methods *new (name, size) name - An instance of String. Must coincide with the name of a font on the system. See * availableFonts size - An Instance of Float. g = Font .new("Helvetica", 12); *availableFonts R ...
-
# Path-to-RegExp Turn an Express-style path string such as `/user/:name` into a regular expression. **Note:** This is a legacy branch. You should upgrade to `1.x`. ## Usage ```javascript var pathToRegexp = require('path-to-regexp'); ``` ### ...
-
... with lower leading digits are sorted before lower numbers: (1..11).collect(_.asString).scramble.postcs.sort.cs; // -> [ "1", "10", "11", "2", "3", ... ] ////////// natLess can be used to sort "naturally": (1..11).collect(_.asString).scramb ...
-
... ); *at { arg key, doc = Document.current; var docstr, strs, bounds; key = key.asString; MagicPreset.prCheckKey(key); docstr = doc.string; bounds = MagicPreset.prFindPreset(docstr,key); if (bounds.notNil) { ^docstr[bounds[0]..bounds[1]].inte ...
-
... gs, func, mul, add, min, val, warp, lag]); if(lag.notNil, { this.lag(ndef.key.asString.divNumStr[1], key, lag); }); ^modMap; } *unmap {arg ndef, key, value; var indexNodes, thisArr, num; if(key.isInteger, { key = ndef.controlKeys[key]; }); ...
-
... n.settings[ i ] ); }); Menu( CustomViewAction( operation.comp ) ).title_( key.asString ) }, Function, { MenuAction( key, { var res; res = operation.value( inView[ \val ] ); if( res.notNil ) { action.value( res ); if( this.respondsTo( \unmap ...