counter problem

Apr 3, 2013 at 1:49pm

counter problem

Hi All,

My counter increments much more than by one each time there is a change in signal in the patch below. Any ideas?

Cheers

Zlatko

– Pasted Max Patch, click to expand. –
#67502
Apr 3, 2013 at 1:51pm

and the funny bit…. now that I have repasted the code it does not count at all….

#242889
Apr 3, 2013 at 2:06pm

using codebox increments by 64 seemingly….

– Pasted Max Patch, click to expand. –
#242890
Apr 3, 2013 at 3:36pm

It seems this is something related to number~.

– Pasted Max Patch, click to expand. –
#242891
Apr 3, 2013 at 6:02pm

… and I belive it’s due to internal ramping of signal within number~. Somehow 0. ms doesn’t mean “no ramp” (and 64 is coincidentally default vector size).

record and zoom in buffer’s waveform…:

– Pasted Max Patch, click to expand. –
#242892
Apr 4, 2013 at 12:08pm

ah, thanks Andrzej, I thought it was the vector size lurking…. In the meanwhile I have coded a counter inside my funny subharmonic algorithm…. I wonder – is there a better way to debug than waveform display, can we get a listing of 100 samples somehow…?

Much Appreciated

z

– Pasted Max Patch, click to expand. –
#242893
Apr 4, 2013 at 2:16pm

maybe [capture~] ?

#242894
Apr 4, 2013 at 8:57pm

you can fill a buffer with poke and look at the values with peek

#242895

You must be logged in to reply to this topic.