increment at signal rate

montagne's icon

Hi I need an increment or accumulate functionality at the signal rate in MSP. I'm implementing a variable length delay using a buffer and need to increment my read pointer by non-integer increments. This is a school project, and I need to manage the read pointer myself.
I just can't find anything to do this.
thanks
tim.m

Roald Baudoux's icon
montagne's icon

Thanks, but I don't see how I can do what I need with that. I need the output of the +~ to be fed back into it (or for it to preserve its state somehow). I've tried this by routing its output straight to its input but it doesn't work. I also tried using a send~ to send its output back to its input, but for some reason it increments very slowly, even when i set the increment value to be a signal of value 1.
What am I missing?

Matthew Aidekman's icon

> [+~]
or... [+=~ ] ?

what a cool looking post....

montagne's icon

Hurray! that works.
that one doesn't appear in my object list for some reason, so I didn't see it.
thx

Roman Thilenius's icon

Quote: montagne wrote on Sun, 10 December 2006 15:32
----------------------------------------------------
> Thanks, but I don't see how I can do what I need with that. I need the output of the +~ to be fed back into it (or for it to preserve its state somehow). I've tried this by routing its output straight to its input but it doesn't work. I also tried using a send~ to send its output back to its input, but for some reason it increments very slowly, even when i set the increment value to be a signal of value 1.
> What am I missing?
----------------------------------------------------

didnt you say you have to find it out yourself?

montagne's icon

err...well, what I meant was that I need to implement the pointer control rather than just using a patch that implements a continuously variable delay line for me.
tim.m

Roman Thilenius's icon

[count] could be a helpful object for you then.

Jean-Francois Charles's icon
montagne's icon

actually I have been through most of the MAX/MSP Tutorials and Topics document and done about 15 of the tutorials from start to finish as well as some class assignments.
In the end, I have used a buffer and index~ objects to read from it. I'm using the +=~ object to increement the read pointers at each sample.
It seems to work pretty well. I'm using 2 read pointers, spaced one sameple apart and using linear interpolation between the two. It doesn't sound so great for waveforms like a pure sinusoid, but sounds ok for other waveforms. I suppose that a quadratic or cubic interpolation would do a better job.

Thanks for all yoru help.

montagne's icon

so does anybody know a good objectfor quadratic or cubic signal interpolation?
I'm still looking...
thx
tim.m

montagne's icon

I've started a new thread for this...

Roman Thilenius's icon

Quote: jeanfrancois.charles wrote on Mon, 11 December 2006 22:24
----------------------------------------------------
> Great to know that it works.
> Using objects like [+=~] and [count~] is not obvious, it gets often tricky.

what makes me going mad cow sometimes is the lack of
comparison operators for floats. ([>= 0.5])

theuse of count is usually a matter of trial and error
for me - and some other people i know.

>=110