4 ^super.newCopyArgs(dur)
6 // for use by Pfunc and Pfuncn
8 inval.put(\isRest, true);
12 inval.put(\isRest, true);
15 // for use e.g. in ListPatterns
16 *embedInStream { |inval|
17 ^this.processRest(inval).yield; // the actual return value is the next inval
19 embedInStream { |inval|
20 ^this.processRest(inval).yield;
25 inval = this.embedInStream(inval);
32 inval = this.embedInStream(inval);
44 this.do(_.processRest(inval))
50 // Some patterns call .delta on the eventstream's yield value
51 // since a SimpleNumber is a valid rest, it must answer 'delta' with itself
53 // but Ppar and several other patterns do "put(\delta, ...)"
54 // so they need to convert the simplenumber into a real rest event
55 asEvent { ^Event.silent(this) }
63 // Ppar etc. need stream.next(event).asEvent to be nil when the stream ends