Open jpcima opened 5 years ago
Found here the likely source of the issue for tuning problems. It's in the resampler. It's needed for OPM to have 64 not 144 as the scaling factor.
In these emus (of which I just tried MAME 2151) you can't usually set clock and sampling rate in independence. Neither can we in OPN as you see, as it sets a fixed factor 144.
So I thought it's wise for chip APIs to set only the clock, and provide the appropriate native sample clock for the chip family according to the fixed divisor value.
(having nativeClockDiv
and nativeClockRate
, as opposed to current nativeRate
and nativeClockRate
)
In the future, if we'd want to match a MSX extension board, OPM would need clock 3.58 MHz; and a clock at 4 MHz which matches X68k. Native sampling rates will vary in linear relation.
Please pull to your side my "opm" branch to fix conflicts.
Is it still being considered?
yeah, ading YM2151 support to this will enchace the library
Support the basis of YM2151. Can play back on 8 FM channels. LFO possibly needs more work to enable.
Detune2 could be had in WOPN without a format update, becase it's stored in unused bit space of
decay2_70
.87