Forums > MaxMSP

Variables & MIDI

May 3, 2014 | 11:37 am

Hey everybody.

I’m new to Max, I’m currently trying to get to grips with the basics, and I’m a little stuck with my current patcher (which I’ve attached to this post).

I have an object with the following variable "if $i1 >= 0 & $i1 <= 48 then…" but I don’t know what should follow ‘then’. I’m basically trying to display the MIDI pitch in the number object if it has a value of 48 or less. If it has a value of over 48, I don’t want to display it in the number object. I’m stuck as to how to move the value from the variable to the number object.

I hope I’ve explained that well enough! Any help would be much appreciated.

Regards,

Kevin

Attachments:
  1. maxtest.maxpat

May 3, 2014 | 12:06 pm

Oops. Figured out how to post my patch properly!

– Pasted Max Patch, click to expand. –

May 3, 2014 | 1:55 pm

1.)
it is &&.

2.)
then $i1
then $i1 else out2 $i1
then within else outside


May 3, 2014 | 3:56 pm

Excellent! Thanks for your help.



SID
May 3, 2014 | 4:44 pm

The split object can do this.

– Pasted Max Patch, click to expand. –

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