variable audio rate metronome

Apr 8, 2010 at 10:52pm

variable audio rate metronome

Hello,

I would like to output single sample ‘clicks’ at a variable rate where the delay times between each click are stored in a buffer. The idea is to input a click and it steps through the buffer delaying the click by the stored time before sending another click. It’s dead easy using scheduler rate objects but I think it’s the feedback loop that is causing problems when running at audio rate. I’ve tried using delay and tapin/tapout but I just can’t quite get it…any ideas?

Thanks in advance!

Patch to demonstrate -

– Pasted Max Patch, click to expand. –
#49640
Apr 9, 2010 at 6:17pm

This would work with my dmach~ object. The downside is that data entry is cumbersome because the object is designed to do a lot more than what you described. But it would reproduce your sequence of click, with sample-accurate timing. I’ve shown how to do this with the first four durations in your sequence.

http://www.sarc.qub.ac.uk/~elyon/LyonSoftware/MaxMSP/

Eric

– Pasted Max Patch, click to expand. –
#178347
Apr 11, 2010 at 1:19pm

Eric,

I did check out dmach~ and have looked at your patch but can’t get my head around how to store a pattern of arbitrary times…

I’ve now changed the value I’m storing to the absolute time value rather than the delta time value. The input signal is compared to the first stored value in the buffer and when they match a counter increments and the signal is compared to the next sample. It’s all done at audio rate and it appears to be sample accurate.

– Pasted Max Patch, click to expand. –
#178348

You must be logged in to reply to this topic.