Using Pchain inside Psym

hello everybody I want to use Pchain inside Psym to be able to refer my Pdefs with their \keys only but I am not getting the effect I want. Am I doing something wrong? here is the example code; thanks in advance

here is my Pdefs I am trying to chain

(
Pdef(\melody,
	Pbind(
		\scale, Scale.dorian,
		\degree, Pseq(Array.exprand(4, 1,12).round(1), inf),
		\root, 4,
		\dur, Pseq(Array.fill(8, {[Rest(0.1250), 0.1250].wchoose([0.2,0.5])}),inf)
		
	)
);

Pdef(\random_pan,
	Pbind(
		\pan, Pwhite(-1.0, 1.0, inf)
	)
);
)

this one works just fine without Psym

(
Pdef(\test,
		Pchain( Pdef(\melody), Pdef(\random_pan))
);
)

this one with Psym is just playing \melody without chaining it with \random_pan

(
Pdef(\test,
	Psym(Pchain( \melody, \random_pan))
);
)

I’m afraid that it just doesn’t work that way. You can chain patterns but you can’t chain symbols by themselves.

hjh

ok, thank you for your answer jamshark <3

cheers
basic