-
... , // X azim.sin * elevcos * sinInt, // Y pointsource.phi.sin * sinInt // Z ] //.select({arg chan, i; i <= pointsource.dims}); // maybe more efficient: copyRange is a primitive, select uses a loop .copyRange( 0, pointsource.dims ); // Scale ...
-
... f","rtfd","sc","scd","html","HTML","schelp"] . openAction a function run on the selected path. Typically open a file. {|path,action,what,val| doSomething()} for action,what,val, see Menu You can set it on the instance, or you can set a defa ...
-
... ncements + SequenceableCollection { // collectIfNotNil // basically collect and select in one loop collectIfNotNil { |func| var result = this.species.new(this.size); this.do { |item, i| var mapped = func.value(item, i); if(mapped.notNil) { ...
-
... ; var <session; var <sessionView, bounds; var <sessionController, objGuis; var <selectedObject; var compTop = 0; *new { |session, bounds| ^super.new.init( session) .addToAll .makeGui(bounds) } init { |inSession| session = inSession; session ...
-
... p, 1 ), \sustain, Pseq( [0] ++ sustainEvents[6], 1 ) ) } { nil } }!this.tracks).select({ |item| item.notNil }) ); } { ^nil } } play { |clock, protoEvent, quant, inst, amp = 0.2| ^this.p( inst, amp ).play( clock, protoEvent, quant ); } *from ...
-
... e=0 -> [-2pi, 2pi], mul=0.4 -> [0,1], lag = 0.01 => [0,0.1]; var chord; chord = Select.kr(key, [ ([60, 64, 67]+0).midicps*oct, ([60, 64, 67]+1).midicps*oct, ([60, 64, 67]+2).midicps*oct, ([60, 64, 67]+3).midicps*oct, ([60, 64, 67]+4).midicp ...
-
... = { |parms| var synthDesc; // ~setParms.(parms); ~nodes = ~iterator.activeCmds.select({ |cmd| cmd.tryPerform(\isSynth) ? false }); if(~nodes.size > 0) { ~nodes.do({ |node| synthDesc = node.synthDesc; ~args = ~getArgs.(parms); if(node.laten ...
-
... ct({ |pair| if(pair[0] != pair[1], { pair[0].asInteger }, { nil }) }); if(margs.select({ |i| i.notNil }).size > 0, { widget.midiConnect(uid: margs[0], chan: margs[1], num: margs[2], slot: thisSlot); }, { widget.midiConnect(slot: thisSlot); ...
-
... Pattern = #{ ~compactPatterns.if({ Pseq(((~amps[0] == 0).if({ #[0] })) ++ ~amps.select(_ > 0), 1); }, { Pseq(~amps, 1) }); }; ~makeDefPattern = #{ |repeats = 1| var outArray = Array.new(~amps.size), array = ~def.asArray; ~amps.do({ |amp, i| ...
-
... le: after a brief history and a grouping of content the tour will guide through selected topics in an order which, hopefully, will outline the central ideas. It will start with VarGui, PLx, then go over PbindFx, EventShortcuts to live codin ...