Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (786) Code (22) Doc (235) Help (67) Quark (457) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. MIDISliderWindow Quark

    ... { |i, v ... h| val.do({ |subval, j| if( (v >= subval) && (h[0] < subval) ) { up.wrapAt(j).value(i, v, *h) }; if( (v < subval) && (h[0] >= subval) ) { down.wrapAt(j).value(i, v, *h) }; }); }; } *midiRecorderAdd { |i, val| // by default recor ...

  2. VBAP Doc

    ... // draw the speaker layout Pen.translate(200,200); ((actPoint.theta + (0.5pi)).wrap2(pi) * rtoang).round(0.01).asString.drawCenteredIn( Rect.aboutPoint(0@170, 30, 10), Font.new("Arial", 10), Color.grey(0.8) ); Pen.strokeOval(Rect.aboutPoin ...

  3. 03b_shared_coding_drawer Quark

    ... ongMessage; }); // -> stops drawing all others too!!! // MFdef can handle this: wrap every function in case it fails: MFdef(\demoDraw).useTry = true; // and posts which line fails MFdef(\demoDraw).disable(\line0); // enable it again MFdef(\ ...

  4. GeneralHID Help

    ... lass to access HID devices Inherits from: Object GeneralHID is a cross platform wrapper for accessing HID devices. Currently the MacOSX and Linux HID support has been wrapped. Some of the code is inspired by the GUI wrapper. It is advised t ...

  5. CVWidgetKnob Doc

    ... te see CVWidget: -setCalibrate . default: true controllersAndModels if a widget wraps a CV that has been created within some CVWidget the models and controllers of that other widget can be added here. However, it is not recommended to do so ...

  6. PG_05_Math_on_Patterns Help

    ... bs, reciprocal, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite (1, 5, inf ).asStream.nextN(10); // Random integers 1-5, ...

  7. Vapor Doc

    ... chID; // sometimes, a touch ends VERY quickly, before the node // even starts - wrap in a defer to catch these { [msg, touchID].postln; n[touchID].set(\gate, 0); n[touchID] = nil; }.defer(s.latency); }); // stuck notes? (the ones above do h ...

  8. chord-vc Quark

    ... tion: 2), shift = freq * Rand(inharmonicity.neg, inharmonicity), sig = SynthDef.wrap(oscfunc, prependArgs: [freq * detunes - shift]); sig = Splay.ar(sig, min(panWidth, panCenter.abs - panWidth), 1, panCenter); // can't make this an fx synth ...

  9. Automation Doc

    ... d also, for example, stop at the end: control.onEnd = { control.stop; }; ⧉ ✔ Or wrap back to the start: control.onEnd = { control.seek(0); }; ⧉ ✔ . seekLatency Add headstart given to the onSeek callback, i.e. call onSeek, and carry out the ...

  10. HoaMatrix Quark

    ... |dir| Array.with(dir, 0.0) }) }, 2, { argDirections } ).collect({ |thetaPhi| // wrap to [ + /-pi, +/-pi/2] Spherical.new(1, thetaPhi[0], thetaPhi[1]).asCartesian.asSpherical.angles }) }) } initFromMatrix { |aMatrix| var size, matrixOrder; / ...

prev 61 62 63 64 65 66 67 68 69 70 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow