Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (46) Code (5) Doc (16) Help (10) Quark (15) SCDoc ↗ Forum ↗ Google ↗
  1. Pfuncn Help

    Pfuncn function pattern of given length superclass: Pattern Pfunc(func, repeats) Returns a stream that returns values from the func. func - stream function repeats - end after this number of times See also: Pfunc // example ( var a, b, c; a ...

  2. Pprotect Help

    ... r x; var func = { "an error happened" .postln }; a = Pprotect ( Pseq ([1, 3, 3, Pfuncn ({ Error .throw }), 2]), func); x = Pbind ( \degree , a, \dur , 0.5).play; )

  3. Pfunc Help

    ... unction resetFunc - function that is called when the stream is reset. See also: Pfuncn // example ( var a, x; a = Pfunc ({ exprand(0.1, 2.0) + #[1, 2, 3, 6].choose }, { \reset.postln }); x = a.asStream; x.nextN(20).postln; x.reset; ) // sou ...

  4. PatternsDocumentedAndNot Help

    ... tep3add Pstep2add Pwhite Pbrown Pgeom Pseries Pbind Pevent Pnaryop Pbinop Punop Pfuncn Prout Proutine Pfunc The following lists all the Pattern classes where embedInStream uses the default Pattern-embedInStream. These create a new stream wh ...

  5. PG_06a_Repetition_Contraint_Patterns Help

    ... tartTime = startTime ? ( thisThread .clock.beats.debug( "time" )) } ), 1, 4) ++ Pfuncn ({ thisThread .clock.beats.debug( "finish time" ); ( thisThread .clock.beats - startTime).debug( "elapsed" ); nil }, 1)).play; ) ( // in this case, the p ...

  6. Pchain Help

    ... 4)), Pbind ( \mtranspose , Pn (2, 7)) ], inf ); c = Prand ([ Pbind ( \detune , Pfuncn ( { [0, 10.0].rand }, 5), \legato , 0.2, \dur , 0.2), Pbind ( \legato , Pseq ([0.2, 0.5, 1.5], 2), \dur , 0.3) ], inf ); Pchain (a, b, c).trace.play; ) p ...

  7. PG_02_Basic_Vocabulary Help

    ... nc(nextFunc, resetFunc): Get the stream values from a user-supplied function. * Pfuncn(func, repeats): Get values from the function, but stop after 'repeats' items. * Proutine(routineFunc): Use the function like a routine. The function shou ...

  8. Undocumented-Classes Help

    ... Pbrown Pconst PeakFollower Peep Pen Pevent PfadeIn PfadeOut Pfindur Pfset Pfunc Pfuncn Pfx Pgeom Pindex Plag PlayButton PlayerAmpGui PlayerBinop PlayerBinopGui PlayerEffectGui PlayerEfxFuncGui PlayerMixerGui PlayerPoolGui PlayerSpec PlayerU ...

  9. Quant Help

    ... t in the Event. // schedule for a random number of beats after the next integer Pfuncn ({ thisThread .clock.beats.debug( "scheduled for" ); nil }, 1) .play(quant: ( nextTimeOnGrid: { |self, clock| clock.beats.roundUp(1).debug( "clock beats" ...

  10. PG_06g_Data_Sharing Help

    ... 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 made f ...

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow