There are no usage examples for
Pdef.map in the help files as far I can tell, and it seems to me it’s pretty bugged.
Pdefn(\nums, Pseq((1..5))) Pdef(\huh).map(\degree, \nums) Pdef(\huh).envir // -> ( 'degree': Pdefn('nums') ) Pdef(\huh, Pbind(\dur, 0.2)).play Pdef(\huh).envir.clear // now it plays something
The problem is that
envir in general is a simple Event, so map should probably instantiate streams or something like that.
Has this been discussed somewhere before?