Forums > MaxMSP

visual metronome question.

Nov 16 2008 | 3:17 pm

i made this virtual metronome but the way i did it(i’m quite a noob) it is quite glitchy.
is there a way to make the line i made go smoother or a simple solution to make this thing in an other way wich is better.
(i’m on max5 and have jitter too).

— Pasted Max Patch, click to expand. —
Nov 17 2008 | 4:50 am


because of formating the hard disk and loading a new system, please
send me a new response, thanks ! attachment is the Challenge.

best regards


Shing-kwei Tzeng

Nov 17 2008 | 9:25 am


Nov 17 2008 | 12:42 pm

Try this:

— Pasted Max Patch, click to expand. —

Nov 17 2008 | 1:02 pm

thanks a lot, that’s way better. i’m quite a noob and can’t see wat’s actually happening in that patch. could you explain what you did?

Nov 17 2008 | 10:24 pm

You’d probably learn more by figuring out what I did on your own (i.e. looking at help files for unfamiliar objects, tracing signals through the patch, etc.)

I’ll give you a few explanations to start you off though:

1. Originally you had a metro object banging "clear" messages to the lcd object. Since the metro object was not necessarily in sync with the rest of the patch, you were getting multiple lines drawn before the lcd cleared. I got rid of the metro and added the clear message right before the linesegment message, which guarantees that the previous line will be cleared before the next one is drawn.

2. Starting from the top of the patch and working down, I changed the location of the change object so that the transport’s tempo is only sent out if it changes, so that you can still freely change the tempo from the number box. From there, I sent the tempo to an [int] object, where it is stored. The tempo (in milliseconds) gets banged out of the int object through a gate. Initially, the tempo goes out the left outlet of the gate. It gets to a trigger object, which first triggers a 2 to open the gate’s second outlet, and then the trigger object outputs the int (tempo) to the rest of the patch which sets up the line object. Once the line object is done, it sends a bang back up to the int object (I do it this way so that if you change the tempo, the tempo doesn’t actually change until you get to the next beat). This time, the tempo goes through the gate and goes out the right outlet. The gate gets switched back to 1 and the process continues.

Make sense?

Nov 18 2008 | 9:31 am

I’d link it to the transport more directly:

— Pasted Max Patch, click to expand. —

Stefan Tiedje————x——-
–(_|_ —-|—–|—–()——-
— _|_)—-|—–()————–

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

Forums > MaxMSP