synced tapin tapout with a tempo object

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

Hello everybody!
I am trying to synchronize the tapin tapout objects with the tempo object. So if I have a 110 bpm and a bar unity of 16, then I would like i.e. a delay of 1/32. I did this little patch (which include also a sequencer, it is from my work in progress) but it seems it is not working. Could somebody give me a hint?

Medd's icon

Haven't looked at your patch but take a look at [transport] for syncing stuff, as well as [translate].

elisabatti's icon

Yes thx, but I think my problem is about the understanding of the meaning of tapin and tapout:

tapin is the length of the 'recorded' part (in ms)

tapout is the time interval (in ms) before the 'recorded' part is played back.

So for example: if I have a rythm in 4/4, I want the delay to occur at 1/8. That means that if I have a bpm of 120 and a unit of 4 and 4 beats in the transport, if I want a delay to occur at 1/8, then, what should be the tapin value in ms? and the tapout in ms?

Christopher Dobrian's icon

I agree that the transport object and the translate object will be helpful to you.

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

The math is simple to do on your own, too. Divide 60000 (the number of milliseconds in a minute) by the tempo (beats per minute) to get the result (in milliseconds per beat). Divide that result by 2 to get milliseconds per half beat (eighth notes), etc.

Steven Miller's icon

Elisabatti, your understanding of tapin/tapout, as explained in your last post, is not quite correct. [tapin] sets not the length of the recorded part, but rather the maximum limit - the actual 'recording' (actually delay) time is set by [tapout], and can not exceed the maximum as set by [tapin]. Essentially, [tapin] reserves the memory that [tapout] then uses. It's more involved than that, but that's a fair approximation for answering your query.

Hope this helps.

elisabatti's icon

Yes, now everything is working fine...of course! My mind got stuck in stupid things (as always happens..)

Still, @Steven, the concept of tapin and tapout is not totally clear to me. As I figure it out is like from the first tape recording method. So the tapin is the buffer in ms I am going to copy and the tapout is the delay in ms (after how long this buffer will be played back). Is it correct in this way?
elisa