class:: Pdiff
summary:: returns the difference between the current and previous values of an enclosed pattern
related:: Classes/Pseries
categories:: Streams-Patterns-Events>Patterns

description::

A pattern that returns the difference between the current and previous values of an enclosed pattern.

Examples::

code::
p = Pbind(
	\degree, Pxrand([0,2,3,4,6,7],12),
	\dur, Pdiff(Pkey(\degree)).abs/4,
).play;
::
