"device for connecting computers and electronic musical instruments," 1983, acronym for Musical Instrument Digital Interface.
"machine for separating cotton from seeds," 1796, American English, used earlier of other machineries, especially of war or torture, from Middle English gin "ingenious device, contrivance" (c. 1200), from Old French gin "machine, device, scheme," shortened form of engin (see engine). The verb in this sense is recorded from 1789. Related: Ginned; ginning. Middle English had ginful "ingenious, crafty; guileful, treacherous" (c. 1300).
1650s, "one who regulates" in any sense, agent noun in Latin form from regulate. In English history from 1680s; in American history from 1767, applied to local posses that kept order (or disturbed it) in rural regions. From 1702 as "device for controlling machinery in motion;" the specific sense of "mechanical device or clock used to set the time of other pieces" is from 1758.
"device to listen in secretly on telephone calls," 1923, from tap (v.2) in the "listen secretly" sense.