This took me a while to figure out, with a lot of hard work already done for me (thanks Philippe OLLIVIER!). I realize this is not a new concept. But I thought since I spent days hunting down details, it might save someone the hassle. I added functionality like:
-Command the iTunes EQ presets (and any new ones you save)
-Command your iTunes playlists
-Refined FF(cue) and RW(cue) to toggle on/off for precise cue-ing
-Auto-play start: as soon as iTunes is launched, it will begin playing, and at a volume of 50 (out of 100). I actually set a delay of several seconds to give iTunes a chance, since it might be synching up with your ipod too... Victoria will greet you also (just change the name from "Martin" to yours, lol.
The reason I am making this patch, is because I am using Max to control functions in my car, like the TVIS system (variable intake runner butterfly valves) using a microcontroller, Maxuino, and an aircraft servo. And since there is no room to have a laptop open all the time around the dash area, I am displaying TVIS function, Air-to-water intercooler temps, and stereo controls on my iTouch, which is mounted like a multi-gauge near my console. The iTouch controls my laptop (which can be in the trunk in a case, or under my seat, etc) via an ad-hoc wifi connection. I am using TouchOSC. And since I will have my laptop with me in the car often, I may as well get rid of my old deck/10-disc changer, and put the laptop and iTouch to good use. Instead of getting the soundfeed from the iTouch, I am leaving the iTouch as wireless, and controlling my laptop to send the sound. This allows for higher-quality soundfiles to be played (Apple lossless etc instead of 128 MP3 settings), as well as I will be installing a firewire connection to my amps. I hate the degradation of sound using an ipod with a radio frequency to the stereo deck, as well as the clutter of connecting cables around the dash.
I am currently completing the stereo portion of the iTouch control page. I have set up the stereo patch with mostly toggles, so that you only need one button each for play/pause, EQ enabled/disabled, mute, shuffle on/off, and so forth. I have set up each EQ preset individually, because I won't be able to display a variable dialogue or number box on the iTouch. Just change the names of the presets to match your own. Same deal with the playlists, just change them to match your own iTunes playlists. Before I start making all the connections to the OSC objects, I though i'd share the iTunes portion of the patch.
I actually made several youtube videos explaining what I am doing, although none of them so far deal with the stereo/iTunes portion of it:
I am impressed with the ability of the iTouch to display and control functions. The iTouch pages are reasonably programmable, including labels etc, thanks to TouchOSC... which has an acclerometer function ready to go too.
Anyways, I am rambling, so here is just the Maxpatch to control iTunes. Hope someone enjoys it! :)