-
Ptime: Filter: Class methods Inherited class methods Undocumented class methods new Instance methods Inherited instance methods Undocumented instance methods embedInStream repeats Examples Classes | Streams-Patterns-Events > Patterns'>Patte ...
-
Ptime derive relative time superclass: Pattern returns time in beats from moment of embedding in stream Ptime(repeats) ( a = Ptime .new; x = a.asStream; ) x.next; x.next; x.next; // post time in a playing event stream ( Pbind ( \pfunc , Pti ...
-
... ll. Only a scheduling context can ensure precise timing of requests for values. Ptime(repeats): Returns the amount of time elapsed since embedding. One nice trick with this pattern is to stop a value stream/pattern after a certain amount of ...
-
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 ...
-
... ll. Only a scheduling context can ensure precise timing of requests for values. Ptime(repeats) Returns the amount of time elapsed since embedding. One nice trick with this pattern is to stop a value stream/pattern after a certain amount of ...
-
... ).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 ...
-
... 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 ...
-
... 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 ...
-
... 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; //////////////////// ...
-
... fined 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; ////////////////////////// ...