Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (163) Code (5) Doc (50) Help (10) Quark (97) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. Dissonance Quark

    ... 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 ...

  2. SpatioScope Quark

    ... 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 ...

  3. Matrix Quark

    ... 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 * ...

  4. numberExtras Quark

    ... 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 ...

  5. WFSPathView Quark

    ... 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 ...

  6. Polynomial Quark

    ... 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 ...

  7. FoaMatrix Quark

    ... 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 ...

  8. JMDrawIcon Quark

    ... 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 ...

  9. TimeStretch Quark

    ... dows, <>fftCosTables, <>hannWindows, startTime; classvar serverNum, server; *getPolar {|complex, lowBin, highBin, linkwitzRileyWindow, filterOrder| var mags, mags2, phases2; if(filterOrder<129){ mags2 = complex.magnitude*linkwitzRileyWindow ...

  10. DualNumber Quark

    ... 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, ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow