A pattern that returns the difference between the current and previous values of an enclosed pattern.
p = Pbind(
\degree, Pxrand([0,2,3,4,6,7],12),
\dur, Pdiff(Pkey(\degree)).abs/4,
).play;