Changing a Pdef elsewhere in code

How do you change a Pdef without redeclaring it?
e.g. if I set this somewhere in the code:
Pdef(
\pattern1,
Pbind(
\instrument, \keys,
\pitch, Prand([60, 64, 67, 69, 72], inf),
\dur, Prand([1/2, 1/4, 1/8, 1], inf),
\amp, Pseq([0.87, 0.6, 0.4, 0.5], inf)

);

);

Then, could you elsewhere change this in a way similar to when creating a new synth

e.g. something like

Pdef(\pattern1, [\pitch, Pseq([48, 52], inf)])

Take a look at Pbindef.

http://doc.sccode.org/Classes/Pbindef.html

(fyi, if you place three ticks ``` before and after you code block it will be formatted nicely:

Pdef(\pattern1, Pbind(
\instrument, \keys,
\pitch, Prand([60, 64, 67, 69, 72], inf),
\dur, Prand([1/2, 1/4, 1/8, 1], inf),
\amp, Pseq([0.87, 0.6, 0.4, 0.5], inf)
);