How display a Message if the current Track is an Audio or Midi track?

David Birdwell's icon

I've tried all I know, but I'm still new to LOM

If someone could help me

All I want to do is have a message box in my M4L device that displays the words AUDIO or MIDI (depending on the Track type the device is loaded onto)

I've tried has_midi_input but I think IO may have it all setup wrong as it never prints anything to the message box. I think I need to start from scratch

Thanks for any help!

DavidB

Greg Ross's icon

has_midi_input should work for that I believe? Here's one way to do it, there's probably several ways that are simpler/better depending on what you're doing?

Max Patch
Copy patch and select New From Clipboard in Max.