Learning Mid-Level Codes for Natural Sounds