A better way make Pbind transitions when Live Coding

This is not an inspired piece of code… I wanted to see about making transitions while live coding to multiple Pbinds at the same time… this worked but it’s far from ideal. Seems like it could be done a lot smarter, please educate me. essentially I am just duping a clump and then swapping out the \instrument and \dur like so…


Ndef(\a1_pat).clock_(t).quant_(4).fadeTime_(2).play;
Ndef(\a2_pat).clock_(t).quant_(4).fadeTime_(2).play


(
Ndef(\a1_pat,Pbind(
	\instrument, \kick,
	\dur, 1
));
Ndef(\a2_pat, Pbind(
	\instrument, \hH,
	\dur, 0.25,
))
)

/////////////// inst + dur swap 
(
Ndef(\a1_pat,Pbind(
	\instrument, \cB,
	\dur, 2
));

Ndef(\a2_pat, Pbind(
	\instrument, \hC,
	\dur, 0.5,
))
)