Nuked-OPL3 icon indicating copy to clipboard operation
Nuked-OPL3 copied to clipboard

More than 8 octaves?

Open fawtytoo opened this issue 2 years ago • 1 comments

OPL is limited to 8 octaves by hardware design. Could this limit be lifted?

fawtytoo avatar Nov 16 '22 18:11 fawtytoo

I made the common mistake of referring to the frequency blocks as "octaves". However ...

I've been studying this. The limitation is NOT the number of blocks but the range of frequencies within each block. So the range within each block which would need to be doubled for block 7 to reach midi note 127 (currently wraps at note 115). To do that, the f_num would require 11 bits instead of 10. This could be achieved using 2 spare bits available in register B0 (bits 6 & 7). Bit 6 could be the extra required bit for f_num, and bit 7 could be used as a test bit so the "feature" could be turned on/off.

fawtytoo avatar Mar 28 '24 16:03 fawtytoo