1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
SplayZ {
*ar { arg numChans = 4, inArray, spread = 1, level = 1, width = 2, center = 0.0,
orientation = 0.5, levelComp = true;
var n = inArray.size.max(2);
var n1 = n - 1;
this.deprecated(thisMethod, SplayAz.class.findMethod(\ar));
if (levelComp) { level = level * n.reciprocal.sqrt };
^Mix(PanAz.ar(
numChans,
inArray,
((0 .. n1) * (2 / n1) - 1) * spread + center,
1,
width,
orientation
)) * level;
}
*arFill { arg numChans = 4, n, function, spread = 1, level = 1, width = 2, center = 0.0,
orientation = 0.5, levelComp = true;
this.deprecated(thisMethod, SplayAz.class.findMethod(\arFill));
^this.ar(numChans, function ! n, spread, level, width, center,
orientation, levelComp)
}
}
SharedOut : AbstractOut {
*kr { arg bus, channelsArray;
this.deprecated(thisMethod, Bus.findMethod(\getSynchronous));
this.multiNewList(['control', bus] ++ channelsArray.asArray)
^0.0 // Out has no output
}
*numFixedArgs { ^1 }
writesToBus { ^false }
}
SharedIn : AbstractIn {
*kr { arg bus = 0, numChannels = 1;
this.deprecated(thisMethod, Bus.findMethod(\setSynchronous));
^this.multiNew('control', numChannels, bus)
}
init { arg numChannels ... argBus;
inputs = argBus.asArray;
^this.initOutputs(numChannels, rate)
}
}
+ Server {
recordNode {
this.deprecated(thisMethod, Recorder.class.findMethod('recordNode'));
^recorder.recordNode
}
*set {
this.deprecated(thisMethod, this.class.findMethod('all'));
^all
}
*set_ { |item|
this.deprecated(thisMethod, this.class.findMethod('all_'));
all = item
}
}
+ Volume {
numChans { ^this.deprecated(thisMethod, this.class.findMethod(\numChannels)) }
numChans_ { ^this.deprecated(thisMethod, this.class.findMethod(\numChannels)) }
}
+ SimpleNumber {
quantize { arg quantum = 1.0, tolerance = 0.05, strength = 1.0;
var round = round(this, quantum);
var diff = round - this;
this.deprecated(thisMethod, SimpleNumber.findMethod('snap'));
if(abs(diff) < tolerance) {
^this + (strength * diff)
} {
^this
}
}
}
+ Server {
userSpecifiedClientID {
this.deprecated(thisMethod);
^false
}
}
|