# What is DPCM, and how is derivative defined in it? Are the messages coming with constant time intervals? # I was thought that the simplest model of the derivative in discrete signals is calculated by taking the differences between successive samples and dividing the difference to the time interval between them. # Where do you keep the last 4 values? Maybe using a table is easier. -ugur-
On 9/3/07, Oded Ben-Tal oded@ccrma.stanford.edu wrote:
Does anyone know of a patch/object that calculates the derivative of an incoming sequence of messages (not signal)? I am trying to figure out a way of calculating the derivative (by DPCM) but all I can come up with are very cumbersome and ugly (keeping the last 4 values and then switching their positions ready for the next iteration works in c, but seems awkward in pd) I presume there is a simple elegant way of doing it but I just can't see it.
Thanks Oded
-- ___________________________________________________ Oded Ben-Tal http://ccrma.stanford.edu/~oded oded@ccrma.stanford.edu
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list