opl3 – OPL3 chip emulator
is an emulator of a single Yamaha 262 chip, also known as
The emulated chip is programmed by a stream of commands either from
or from standard in.
It then synthesizes a number of stereo 16 bit little-endian samples for a sampling rate of 44.1 kHz,
and writes them to standard out.
Commands are 5 bytes wide, in little-endian byte order:
Each command specifies a
to be written to an
modifying its internal state.
field provides timing.
It is a multiple of a command period, during which the
chip may be sampled before processing the next command.
The period itself is the inverse of the command rate, 44100 Hz by default.
This rate can be set using the
first appeared in 9front (July, 2018), based on
from the Multiple Arcade Machine Emulator (