I have tried your library and I get somewhat inconsistent results.
According to the Ad Lib Programming Guide after writing to the register port you must wait 3.3us before sending the data; after writing the data, 23us must elapse before any other YM3812 operation may be performed.
I have added those delays to OPL2.cpp and it seems to work consistently now.
I have tried your library and I get somewhat inconsistent results.
According to the Ad Lib Programming Guide after writing to the register port you must wait 3.3us before sending the data; after writing the data, 23us must elapse before any other YM3812 operation may be performed.
I have added those delays to OPL2.cpp and it seems to work consistently now.
Kind regards
Robert