Increasing tempos in increments with bangs?

    Dec 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?

    • Dec 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.
    • Dec 10 2010 | 8:57 pm
      Use bonk~ to sense & transport to control tempo?
    • Dec 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:
    • Dec 10 2010 | 11:47 pm
      is it the 'increase and decrease' aspect that you wanted help with?
    • Dec 13 2010 | 1:26 pm
      Thats awesome! Exactly what I was trying to do! Cheers dude :)