-
... to be evaluated if true. Unlike Object-switch, this is inlined and is therefore just as efficient as nested if statements. ( var i, x, z; z = [0, 1, 1.1, 1.3, 1.5, 2]; i = z.choose; x = case { i == 1 } { \no } { i == 1.1 } { \wrong } { i == ...
-
... unlike the .load message, doesn't first write the synthdef to disk; instead it just transmits the synthdef directly to the server. This is therefore the message to use to define a synthdef on one computer but send it to another. ( var aSer ...
-
... r(ins, spread, level / ins.size, center, levelComp: false); // no compensation, just tune level by hand Splay.ar(ins, spread, level, center, levelComp: false); Splay.ar(ins, spread, level, center, levelComp: 0); // levelComp by float: level ...
-
... History.document; // For quitting republic: ( g.remove; r.leave; ); // when you just quit SC or recompile, you will leave automatically. // you can save the republic setup as a startup file, // which contains something like this file: "star ...
-
... get rid of using a DAW like Ableton in a live coding setup, because the author just used it for mixing a live setup. This mixer helps to realize tonal depth, clean frequency separation, signal compression and a stereo panorama and makes th ...
-
... // store direction in extra result; }, \speed: { |node, val = 0 ...moreArgs| // just measure and return the speed (val - node.lastVal).abs / node.deltaTime; }, \speedAbove: { |node, val = 0| var speed; speed = (val - node.lastVal).abs / nod ...
-
... the file and class, MyWidget , to whatever you want to call your class. Then adjust the class methods to fit your design. The following narrates the code in SCUserViewTutorial.sc: 1. Setup instance vars appropriate to your widget You inher ...
-
... ate scheduling. quant can be an array [quant, phase, timingOffset, outset] , or just [quant, phase] etc. * defaultQuant_(beats) Set the default quantisation for new instances (default: 1.0) This can be an array [quant, phase, timingOffset, ...
-
... == addr.hostname }; // if nonexistent or in the republic already but local, we just add the server anew // this only happens when we keep several republics with the same name locally if(server.isNil or: isLocalAndInRepublic) { server = thi ...
-
... spec: \midiCC, // e.g. hid buttons send values of 0 or 1: spec: \hidBut, // or just spec: \but, ⧉ ✔ valueType Either \absolute or \relative . \absolute this is what most elements send, e.g. fader position, so it is the default valueType. \ ...