-
... .collect{ |x| putStrLn(string++" : "++x) }.reactimate; } //Utilities mapWith { |spec| ^this.collect{ |v| spec.map( v ) } } selectSome { ^this.select(_.isDefined).collect(_.get) } storePrevious { |init = 0.0| ^this.inject( Tuple2(init,init), ...
-
RadiationPatternSpec : Spec { var <>default; *new { |default = #[0,1,0,1]| ^super.newCopyArgs( default ); } *testObject { |obj| ^(obj.isKindOf( ArrayedCollection ) ) && (obj.size == 4); } constrain { |value| value = value.asCollection; if( ...
-
... yout.addSpanning(togglePlay, 0, 1, rowSpan: 2); sliderVolume = SCMSliderView() .spec_(\db.asSpec) .value_(volume) .labelText_(patternBoxView.patternBoxName) .action_({ |sender | this.onSliderVolumeChanged(sender); }) .actionTextChanged_({ | ...
-
... ^paramsHiLo; } scalePointLists { // this is the envelope sent to the Synth var spec, yloclists; yloclists = pointlists.collect({arg pointlist, i; pointlist.collect({arg point; point.y}) }); //[\paramshilo, paramsHiLo, \controls, controls]. ...
-
... Arguments: rank The depth at which the list is expanded. For instance the Klank spec has a rank of 2. `([[[100, 200], 500], nil, [[[0.01, 0.3], 0.8]]]).multichannelExpandRef(2); [`[[100, 200], nil, [0.2, 0.8]], `[[130, 202], nil, [0.2, 0.5] ...
-
... l[\clients].add(object); coll[\lastChange] = SystemClock.seconds; } *registerOutSpec { |object, function, rate, numChannels| var coll = this.findCollFor(object, function); if(coll.isNil) { "Can't register output spec for non-registered func ...
-
... can access note number and velocity by Pkey(\midinote) and Pkey(\velocity) , respectively. All key-value pairs in the pattern's output events will be passed to the Voicer as note-onset synth arguments. Uses: Map note number or velocity ont ...
-
... test: %\n".postf(sl.value) }); // now slider also sets Ndef(\a), using a global spec Ndef(\a, { |freq = 200| LFPulse.ar(freq * [1, 0.1, 0.01]).product * 0.1 }).play; m.add(\set_a, { |sl| Ndef(\a).set(\freq, \freq.asSpec.map(sl.value)) }); / ...
-
... these can be useful for testing that code works // on various conditions, e.g. specific platforms: NTMI.hasGui = false; // headless mode, e.g. for raspi or bela NTMI.isPi = true // simulate default raspi OS account NTMI.isPatch = false; // ...
-
... .1)}); windowPlot.value = windows; transferPlot.value = transfers; transferPlot.specs = ControlSpec(minDb, 0, \lin); // variable minDb transferPlot.domainSpecs = ControlSpec(0, drawnSize, 4, 1, 440, units: "bin"); [windowPlot, transferPlot] ...