Can I control and get triggers for a midi interface in AppleScript?

I know midi could be used as an interface with hypertalk but can I conrtole and get trigers fro midi in applescript

I have found some light controls that I want to use in a haunted house, I already use applescript and hypertalk to play sound effects when triggerd.

thanks
sam cornn

http://www.osxaudio.com/index.php?rssStory=784