Forums > MaxMSP

change Pictures in fpic with integer values


hgh
March 25, 2013 | 5:33 pm

Hi,

in dependence of integer Values, i wants to change pictures in an fpic-object…
valuse above 100 should trigger/load picture 01.png in fpic-object, values over 100 fpr example should load picture 02.png!
Problem: every valuechange creates a bang. How can i realize that, without a bang with every valuechange?
Please look at the patch small patch (in Attachment).

Thank you yery much, for your help…

[attachment=218918,5270]

Attachments:
  1. hghfpic.png

March 25, 2013 | 5:56 pm

You’are basically asking to reload the picture every time a value is send out of line (every 20 ms or so). You might want to filter the repetition to only send the read message when appropriate:

– Pasted Max Patch, click to expand. –


hgh
March 26, 2013 | 8:31 am

Great… I´ve changed [zl.change] into [zl change] — So i´ve removed the dot… Now it works very fine. Was that a typing error or have the "." a meaning?

Thank you very much!!!

– Pasted Max Patch, click to expand. –

March 26, 2013 | 4:31 pm

zl.change is another way to spell the zl object with the change mode in Max 6. The behavior is the same.

FWIW, another way would be to filter the repetition before sending the read message.

– Pasted Max Patch, click to expand. –

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