att.midiInstrument/@midi.instrnumCaptures the General MIDI instrument number. Use an integer for a 0-based value.
Use an integer followed by an "o" (oh) for a 1-based value.
att.midiInstrument/@midi.patchnumRecords a non-General MIDI patch/instrument number.