Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ; }; } test_Sort_and_Scramble { var listSize = 100; numTests.do { var ratList = Array.fill(listSize, { Rational(rrand(minIntVal, maxIntVal), 1 + maxIntVal.rand * [-1, 1].choose) }); this.assertEquals(ratList.sort, ratList.scramble.sort, "So ...

  2. arpoctave Quark

    ... ed: freqk = ((freq * 2.pow(2/3)).cpsmidi.mod(12) + 16).midicps; freqk = freqk * Array.fill(6, {arg i; 2.pow(i)}); // try 2 to 9 instead of 6 //This randomly jumps between those octaves: freqarp = Select.kr(LFNoise0.ar(arprate).range(0, freq ...

  3. XiiEventRecorder Quark

    ... front; a = XiiEventRecorder(s, 1, w); // next to do: instead of diskin, make an array of small buffers // buffer recording starts when onset detected and stopped when off. then put into array. SynthDef(\xiiEventAnalyser, {arg out=122, fftbu ...

  4. Chuck ext Quark

    ... args) }); } free { this.do(_.free) } clearAdapt { this.do(_.clearAdapt) } asNoteArray { ^this.collect(_.asNoteArray).flat } // convert array of freqs, durs, lengths and gates to sequencenotes asNotes { ^this.flop.collect(_.asSequenceNote) } ...

  5. NetworkDescriptionAdditions Quark

    ... ollect{ |v| IO{ defer{ this.value_(v) } } }.reactimate; } //signal should carry array of form ['methodName', arg1, arg2, ...] sink { |signal, method| ^signal.collect{ |v| IO{ defer{ this.perform(*v) } } }.reactimate; } *sink { |signal, meth ...

  6. envir_set Quark

    ... the variable (default: 'a') n: number of values. If n > 1 the value will be an Array type: the type of parameter (\value, \freq, \amp, \boolean, \time) -- this is an Udef definition file part of the Unit lib default UDefs set */ ( var defs ...

  7. AlgaSynthDef Quark

    ... ternally.").algaThrow; }); }); }); // protect from accidentally returning wrong array shapes if(output.containsSeqColl) { // try first unbubble singletons, these are ok output = output.collect { |each| each.unbubble }; // otherwise flatten, ...

  8. misDroneADSR Quark

    ... 100, dec = 0.3, sus = 0.5, rel = 6, amp = 0.75, gate = 1, win = \sin| var bnq = Array.with( 1-SinOsc.ar(freq, mul: 0.7), 1-SinOsc.ar((freq * 4) * 1.0533610359546 * (SinOsc.kr(0.01, mul: 0.01)+ 1), mul: 0.6), 1-SinOsc.ar((freq * 5) * 1.25411 ...

  9. SWDataNetworkLog Quark

    ... et.add( it ); }; playset.do{ |it| network.addExpected( it ); playnodes.put( it, Array.new ) }; playids.do{ |it,i| playnodes.put( it, playnodes[it].add( i ) ) }; } readLine{ |update=true| var dt,line,data,nd; var oldid; if ( hasExtraTab ){ l ...

  10. TestSCScrollView Quark

    ... dd(lastView); lastx = x; x = x + 12; }; w.front; views }); // bounds of each vs array should be equal trueBounds = vs[0].collect({ |v| v.absoluteBounds }); falseBounds = vs[1].collect({ |v| v.absoluteBounds }); // says it right, looks wrong ...

prev 131 132 133 134 135 136 137 138 139 140 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow