Forums > MaxMSP

Increasing tempos in increments with bangs?

December 10, 2010 | 8:01 pm

I’m making a patch to use with my electronic drum kit, I’m looking to make two of the toms increase and decrease (respectively) the tempo of a sample. For example when a tom is hit the tempo will increase by 0.05 and then by the same amount again each time the drum is hit. I’ve tried several methods and can’t seem to figure it out.

Any ideas?


December 10, 2010 | 8:43 pm

Sounds interesting; I guess you’re using the midi note# from the electronic kit to trigger the sample, and also using either [play~] or [groove~] to read from the sample [buffer~]? Or maybe not. Anyway, the first thing you need is the [counter] object to count how many times that note number comes in, and use a [+ 0.05] or [incdec] object to increase the playback speed; this will, however, also increase/decrease the perceived pitch of the sample.

?

Brendan



kp*
December 10, 2010 | 8:57 pm

Use bonk~ to sense & transport to control tempo?


December 10, 2010 | 9:35 pm

and if you want to preserve pitch you can use gizmo~, give it the reciprocal of the sig~ value by running through [!/ 1.]

so a signal rate of 1.2 would give you 0.8333. try patch below:

– Pasted Max Patch, click to expand. –

December 10, 2010 | 11:47 pm

is it the ‘increase and decrease’ aspect that you wanted help with?

– Pasted Max Patch, click to expand. –

December 13, 2010 | 1:26 pm

Thats awesome! Exactly what I was trying to do! Cheers dude :)


Viewing 6 posts - 1 through 6 (of 6 total)