-
... hts; this.equweights = this.pitchSet.equweights; "READY...".postln; ^this } calcPolarity {|polarity, filteredScale| var interweights; interweights = this.pitchSet.calcPolarity(polarity, filteredScale); // the following is for backwards comp ...
-
... s = { |i| (2pi * (i / num)) + angleOffset }.dup(num); ^angles.collect { |angle| Polar(radius, angle).asPoint }; } *ring { |num=6, radius=0.7, angleOffset=0, server, parent, bounds| var locs = this.ringPos(num, radius, angleOffset); ^this.ne ...
-
... n; var dft; dft = sqrt(n).reciprocal * super.fill(n, { |r| Array.fill(n, { |c| Polar(1, -2pi * r * c / n) }) }); ^dft } *newIDFT { arg n; var idft; idft = sqrt(n) * n.reciprocal * super.fill(n, { |r| Array.fill(n, { |c| Polar(1, 2pi * r * ...
-
... sum of the indigestibilties of p and q, with its sign indicating the interval's polarity. H(P,Q) = sgn ( ξ(Q) - ξ(P) ) / ( ξ(P)+ξ(Q) ) Negative polarity means that the interval is weighted towards its upper tone and not towards its lower to ...
-
... ect| // \move Pen.width = 0.8; 4.do({ |i| Pen.arrow( rect.center, rect.center + Polar( rect.height * 0.35, i * 0.5pi ).asPoint, rect.height / 6 ); }); Pen.stroke; }, \zoom: { |bt, rect| // \zoom Pen.width = 1; rect = rect.insetBy( rect.widt ...
-
... oor, { 0 }) ++ this[index].pow(n)) }, { if(n.isKindOf(Complex) or: { n.isKindOf(Polar) }, { ^(Polynomial.fill(d*n.magnitude.floor, { 0 }) ++ this[index].cpow(n)) }) }) }) }); if(this.isBinomial, { if(n > 1 and: { n.isKindOf(Integer) }, { ^t ...
-
... k, // 2D or 3D? 1, { positions = Matrix.with( // 2D directions.collect({ |item| Polar.new(1, item).asPoint.asArray }) ) }, 2, { positions = Matrix.with( // 3D directions.collect({ |item| Spherical.new(1, item[0], item[1]).asCartesian.asArra ...
-
... Point(drawRect.left+interval,drawRect.bottom-intervalV)); Pen.stroke; Pen.line( Polar( xSq.width / 2, 1.25pi ).asPoint + xSq.center, Polar( xSq.width / 2, 0.25pi ).asPoint + xSq.center ); Pen.line( Polar( xSq.width / 2, 1.75pi ).asPoint + x ...
-
... dows, <>fftCosTables, <>hannWindows, startTime; classvar serverNum, server; *getPolar {|complex, lowBin, highBin, linkwitzRileyWindow, filterOrder| var mags, mags2, phases2; if(filterOrder<129){ mags2 = complex.magnitude*linkwitzRileyWindow ...
-
... dimension being Dual(0,1) asComplex { ^Complex(this, this.class.new(0, 0)) } asPolar { ^Polar.new(this, this.class.new(0, 0)) } asPoint { ^Point.new(this, this.class.new(0, 0)) } asDual { ^this } asDerivative { ^DerivativeNumber(this.real, ...