ok thanks everyone. I used the "Jeff Thompson" solution.
Here is my patch.
(my first patch on max :) I used to work with puredata)
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.