What's wrong with my patch

liamcarey's icon

I've made a screen that randomly-ish generates white lines on a black screen - it works if I trigger it with a bang, but not if I trigger the very same bang from a metro object. Why?

The patch uses (uzi) to fill the screen - is it some sort of scheduling problem?

Any help would be much appreciated.

Liam

3867.blackandwhitelines.maxpat
Max Patch
Jeremy's icon

You need to set an initial value for your metro (and you should probably use a qmetro, as well). You're overflowing the scheduler (614400 bangs for each bang into the fills_and_lines subpatcher). Consider refactoring your patcher, too -- you only need 1 set of Uzis, reducing your total number of bangs generated to 76800.

jb

liamcarey's icon

It works with qmetro (the intial value was intentionally left out, btw).

Your right about the number of bangs - I probably do only need 1 set of Uzis.

thanks for the reply

Liam