Apple's GarageBand program has excellent MIDI and audio facilities at track level but its mixing is a bit primitive: I have detailed a method for recording in GarageBand but mixing in Cubase LE.
I have listed the major control codes sent by the M-Audio iControl to GarageBand.