Increasing tempos in increments with bangs?

Doovet's icon

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?

brendan mccloskey's icon

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*'s icon

Use bonk~ to sense & transport to control tempo?

seejayjames's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

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

Samuel Freeman's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Doovet's icon

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