Forums > MaxMSP

check for a message

December 15, 2011 | 10:24 pm

I work with c74 the iphone app to make a connection between max and the iphone.
If i send a sound file then it sens a message back to max to tell:

soundID 1

(else it's 0), how can i check for it with code?

Also i can set gps on, then i receive messages like:
c74: gps 5.910074 162.798309 51.988766 10. 34.34433
c74: gps 5.910051 123.424767 51.988781 10. 33.656818
c74: gps 5.909274 100. 51.988888 190. 0.
c74: gps 5.909274 100. 51.988888 190. 0.

how can i grab those values?

[attachment=179486,3090]

Attachments:
  1. Schermafbeelding20111215om23.22.25.png

December 15, 2011 | 10:46 pm

off the top of my head, it’s probably something like:

[route SoundID] to [if $i1 == 1 then bang] or [if $i1 ==1 then $i1 else 0]

Something like that depending on what you are trying to accomplish.


December 16, 2011 | 10:33 pm

[route testSound] –> [sel 0 1] works too

and for GPS:

[route gps] –> [unpack f f f f f]

(5 floats in a list)


December 17, 2011 | 2:12 pm

thanks


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