The OPL chip contains a 256-byte buffer which can be accessed by writing to specific ports. For information on accessing these ports, as well as how to initialize the card, follow this link . The OPL chip provides a number of channels which are split into a carrier and modulator operator cell. For information about these definitions, follow this link. For information on which operator cells to access, follow this link.
Music is generated by indicating the notes to play on each channel.
For information on playing notes, follow this link. MIDI Music Programming MIDI is a relatively powerful music language intended to be very portable, both between computers and digital instruments. More information about the history of MIDI is given below, in the MIDI Music Primitives section. That section is critical to understanding what data to send to the MIDI ports. You might think that MIDI programming would deserve its own page, but quite frankly, programming in MIDI is as simple as writing to a port.