send a bang only when specific numbers are received
I am creating a digital musical instrument which will receive serial data from a microcontroller hooked up via USB. My goal is to create a patch that will play specific MIDI notes using makenote only when a specific number has been received. For example, when the number 34 is sent from the serial object, it might send a 76 note (E4) to makenote, which is then sent to noteout and routed to GarageBand.
Is there an object (or series of objects) that will send a bang only when a specific set of numbers are received?
Thanks a bunch, [select] was exactly what I was looking for!