Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (317) Code (69) Doc (87) Help (34) Quark (127) SCDoc ↗ Forum ↗ Google ↗
  1. Pirama Quark

    ... ostln; inval = outval.yield; } ^inval } } PiramaOffset { *new { arg leveldict; ^Pfunc { |event| leveldict[event[\irama].value] ?? { leveldict[\default] } } } } /*PiramaOffset2 : Pcollect { *new { arg pattern, leveldict; ^super.new(pattern, ...

  2. scrolless by vividsnow (vividsnow) Code

    ... // or Pspawn( Pbind(*[ method:\par, delta:Pseq((1..4),inf), pattern:Pfunc({ |ev| // choose some random pattern from dict Pfindur(ev.delta, dict.values.choose.selector(ev)) }) ]); ).play )

  3. AudioMulchClock Doc

    ... 0, -1], inf), \dur, Pseq([1, 1, 1, 1, 0.25, 0.25, 0.5, 1, 1, 1], inf), \legato, Pfunc({a.beatDur})).play(a, quant:4) a.shift= -3; //latency compenstation. 3 ticks early //now try changing tempo in AudioMulch b.stop a.clear //--show manual s ...

  4. Event patterns and array args Quark

    ... (1..7))), // use Function ~seti (2d) for SC versions without method seti: \do , Pfunc { |e| s.makeBundle(s.latency, { ~seti .(x, \otAmps , e.i, e.otAmp) }) } // for newer SC versions with method seti you can use this line instead: // \do, P ...

  5. Pmail Quark

    ... y { *new { ^super.new.init } init { this.envir = this.class.event; this.source_(Pfunc { |inval| composeEvents(inval, envir) }) } getNews { var ev = super.get(\news); if(ev.isNil) { super.set(\news, ev = ()) }; ^ev } set { arg ... args; this ...

  6. startup04-rhythmProfiles Quark

    ... durStream = ~durMarkov.asStream; currentEnvironment }; ~asPattern = #{ var dur; Pfunc(inEnvir { [dur = ~durStream.next, ~lenMarkov.next(dur)] // .debug("markovRhythm output") }) }; }) => PR(\markovRhythm); }; AbstractChuckArray.defaultSubTy ...

  7. startup04-rhythmProfiles Quark

    ... durStream = ~durMarkov.asStream; currentEnvironment }; ~asPattern = #{ var dur; Pfunc(e { [dur = ~durStream.next, ~lenMarkov.next(dur)] // .debug("markovRhythm output") }) }; }) => PR(\markovRhythm); }; AbstractChuckArray.defaultSubType = s ...

  8. Pstep Doc

    ... Pseq([0, -4, -2, -4, -3, -4, -3, -4], inf) - 20 ), 0.2), Pstep( Pbind( \degree, Pfunc({ { 10.rand }.dup(10) }), \scale, Pfunc({ { rrand(1, 2) }.dup(7).integrate }) ), 5 ) ).play ) // change one parameter ( Pbind( \degree, Pstep(Pseq([1, 2, ...

  9. PG_Cookbook03_External_Control Doc

    ... ID The best approach is to save an incoming value into a variable, and then use Pfunc to access the variable for each event. ( ~legato = 1; c = MIDIFunc.cc({ |value, num, chan, src| ~legato = value.linlin(0, 127, 0.1, 2.5) }, 1); // 1 means ...

  10. PG_06g_Data_Sharing Help

    ... value pattern). Access to the environment depends on function-driven patterns: Pfunc, Pfuncn, Proutine, .collect, .select, .reject, and similar. The 'independent' flag specifies whether the environment will be kept separate for each stream ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow