Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (37) Code (8) Doc (15) Help (4) Quark (10) SCDoc ↗ Forum ↗ Google ↗
  1. Ptiming Quark

    Ptiming : Pattern { var <>offset, <>jitter, <>drift, <>driftRatio, <>range, <>length, <>startVal; *new { arg offset=0.0, jitter=0.003, drift=0.01, driftRatio=0.1, range, length=inf, startVal; ^super.newCopyArgs(offset, jitter, drift, driftR ...

  2. GUI Quark

    ... ).resize_(5).background_(Color(0,0,0,0)) .drawFunc_({|uview| //*** Draw SCMIR hoptime grid line*** block{|break| var linelocation = 0; while({linelocation < uview.bounds.width}, { Pen.strokeColor_(Color.gray) .moveTo(linelocation @ 0) .line ...

  3. ddwMiscPatternExtensions Quark

    ... falsepattern, default) } oneValuePerBeat { |minDelta = 0| ^Penvir((delta: Pdiff(Ptime(inf)).asStream), Pclutch(this, Pfunc { ~delta.next > minDelta }), true) } } + Pseries { *fromEndpoints { |start, end, length = 2| (length >= 2 and: { leng ...

  4. ddwMiscPatternExtensions Quark

    ... falsepattern, default) } oneValuePerBeat { |minDelta = 0| ^Penvir((delta: Pdiff(Ptime(inf)).asStream), Pclutch(this, Pfunc { ~delta.next > minDelta }), true) } } + Pseries { *fromEndpoints { |start, end, length = 2| (length >= 2 and: { leng ...

  5. Event patterns and LFOs Quark

    ... ned as Function f = { |x| (x * 2).sin * 3 + (x * 0.3).sin }; p = Pbind ( \dev , Ptime ().collect(f), // current time passed to function \midinote , Pkey ( \dev ) + 60 + [0, 4], \amp , 0.05, \dur , 0.15 ).play; ) p.stop; //////////////////// ...

  6. GUI Quark

    ... unds.width-30, win.bounds.height-100)) .resize_(5) .gridResolution_(soundfile.hoptime) .gridOn_(false) .soundfile_(SoundFile.openRead(filename)).read(closeFile: true).refresh .background_(Color(1,1,1)) .background_(colorSet1[0]) ; //*** Dra ...

  7. UGenPatterns Overview Quark

    ... ns) a= Pbind ( \dur , 0.25, \freq , Pn ( Pstutter (4, Pseq ([800, 400])))+(sin( Ptime ()/ Pkey ( \dur )*2pi*(1/40))*10).trace).play a.stop //and the equivalent (well, roughly) synth as well... (compare how time is handled differently in the ...

  8. multichannel-test Quark

    ... gato, 1.0 ) ) ).play; ) ( Pdef(\x, Pwavesets( Pbind( \name, \some, \startTime, (Ptime() * 0.02).wrap(0, Pwavesets.currentDuration), \num, 1, \legato, 1, \rate, 1 ) ) ).play; ) ( Pdef(\x, Pwavesets( Pbind( \name, \some, \start, Pbrown(0, Pwa ...

  9. AudioMulchClock Quark

    ... , 1], inf )*[1, 0.5], \strum , 0.2, \dur , 0.5, \pan , [0.5, -0.5], \amp , cos( Ptime ()*0.3), \legato , Pfunc ({a.beatDur})).play(a, quant:4); c= Pbind ( \instrument , \audiomulchclock , \degree , Pn ( Pshuf ([0, 5, 2, 1, 0, 5, 2, 1], 4), ...

  10. Buffer Granulation Quark

    ... windowBuf , w, \dur , 1 / PL ( \trigRate ), \granDur , PL ( \granDur ), \time , Ptime (), \pos , Pfunc { |e| var relTime = ~posRate * e.time / e.sndBuf.duration, relDif; relDif = ~posHi - ~posLo; relTime + rand2(~posDev) % relDif + ~posLo; ...

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow