Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3508) Code (266) Doc (1134) Help (293) Quark (1779) Plugin (36) SCDoc ↗ Forum ↗ Google ↗
  1. RedDifferentialManchesterCode Quark

    ... 0; } encodeValue {|value| ^this.encode(value.asBinaryDigits(numBits)); } encodeArray {|array| ^array.collect{|x| this.encodeValue(x)}.flat; } //--positive edge clock (1= flip) encode {|bits| ^bits.collect{|x| [1-phase, phase= 1-x.bitXor(ph ...

  2. TuningRatios Quark

    ... to. calibratenote: What note number should match the calibratefreq. tunings: An array with stepsPerOctave numbers containing the ratio above the base. The base is the frequency at note 0. The array should begin with 1.0 (the ratio for the b ...

  3. TuningRatios Quark

    ... to. calibratenote: What note number should match the calibratefreq. tunings: An array with stepsPerOctave numbers containing the ratio above the base. The base is the frequency at note 0. The array should begin with 1.0 (the ratio for the b ...

  4. Strang Quark

    ... m.isKindOf(Char)) { elem } { elem.asStrang } } } asStrang { ^this } asString { ^array.join } ascii { ^array.ascii.flat } // printing printOn { arg stream; this.asString.printOn(stream) } deepFormat { |delim1 = "(", delim2 = ")"| var str = " ...

  5. ATSPeakDetector Quark

    ... ion: local maxima above threshold, parabolic-refined // Input: linear magnitude array, phase array // Output: Array of (freq, amp, phase, bin), sorted by frequency detect { |magnitude, phase| var peaks = Array.new; var freqPerBin = sampleRa ...

  6. SWDataPattern Quark

    ... slot ID. The labels or id's themselves can be output by other patterns too. If arrays are used, the patterns create multiple events as expected (multichannel expansion). - Example - x = SWDataNetwork .new; // build the device list and star ...

  7. PLshufn Quark

    ... e.use { x = p.play(quant: 0.2) }; f.use { y = p.play(quant: 0.2) }; // replace array elements ... e.a[0] = 97; f.a[0] = 98; // ... or arrays ( e.a = [80, 81]; f.a = (70..73); ) e.a[0] = Pwhite(60, 65, 1) + [0, -5, 29.5]; y.stop; x.stop; // ...

  8. PLxrand Quark

    ... e.use { x = p.play(quant: 0.2) }; f.use { y = p.play(quant: 0.2) }; // replace array elements ... f.a[0] = Pseq((0, 0.5..3) + 75); e.a[0] = Pseq(60 - (0, 0.5..3)); // ... or arrays f.a = (72, 72.5..77); e.a = [60]; e.a = [ Pseq ([60, 47.5] ...

  9. ArgSpec Quark

    ... gnu.org/licenses/>. */ /* f = { |a=1, b=2| a+b }; x = ArgSpec.fromFunc( f ); // array of ArgSpecs x.postln; // -> [ an ArgSpec(a, 1), an ArgSpec(b, 2) ] */ ArgSpec : Spec { var <>name, <>default, <>spec; var <>private = false; var <>mode = ...

  10. pruebas2 Quark

    ... e["/patchA/68/44"] thisProcess.recompile; // Supongamos que tienes el siguiente array a = [1, 2, 3, 4, 5]; // Para verificar si el número 3 está en el array a.includes(3); // Para verificar si el número 6 está en el array a.includes(6); "es ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow