Looks like I’m doing option 2 for now, which maybe later I’ll turn in to option 4. 🙂
Actually I realized that I can do a ton of stuff with this, like pausing and unpausing iTunes, setting the volume inside of iTunes, and even turning on and off lights on the mixTrack. I’m building the applescript to do more, but so far it looks like this:
on runme(message)
if (item 1 of message = 176) and (item 2 of message = 23) and (item 3 of message > 0) then
set volume output volume ((item 3 of message) * 0.78)
end if
if (item 1 of message = 176) and (item 2 of message = 22) and (item 3 of message > 0) then
tell application "iTunes"
set sound volume to ((item 3 of message) * 0.78)
end tell
end if
if (item 1 of message = 144) and (item 2 of message = 59) and (item 3 of message > 0) then
tell application "iTunes"
playpause
if player state is playing then
return {144,59,127}
else
return {144,59,0}
end if
end tell
end if
end runme
The return message is then passed back to the mixTrack to turn the play button light on or off based on if the music is playing.