Continual randomness soon becomes dull:
Pbindef(\x, \degree, Prand((0..9),inf), \dur, 1/4).play
Repeating a randomly generated phrase is more interesting:
// step 1: generate a fixed melody
~mel = Array.rand(16,0,9)
// step 2: use it
Pbindef(\x, \degree, Pseq(~mel,inf))
// step 3: redefine
~mel = Array.rand(16,0,9)
// step 4: use new melody
Pbindef(\x, \degree, Pseq(~mel,inf))
Question: how would one be able to redefine ~mel and have the Pbindef immediately pick that up? In other words, without needing step 4 above. There must be a way, using something like Pdefn or Pfunc, but I can’t figure it out!