OPZ: possibly fix fixed freq emulation

This commit is contained in:
tildearrow 2022-05-02 01:22:49 -05:00
parent 34f7750c27
commit a0db8ab49a
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ uint32_t opz_registers::compute_phase_step(uint32_t choffs, uint32_t opoffs, opd
// additional 12 bits of resolution; this calculation gives us, for
// example, a frequency of 8.0009Hz when 8Hz is requested
uint32_t substep = m_phase_substep[opoffs];
substep += 75 * freq;
substep += 75 * 1024 * freq;
phase_step = substep >> 12;
m_phase_substep[opoffs] = substep & 0xfff;