ref: cc0cc9fb0c806f6533dca794b1e829a626323d8b
parent: 100b658b470ecaf9ff5e2c3407bfff224e91fb01
author: Simon Howard <fraggle@gmail.com>
date: Fri Sep 11 12:54:06 EDT 2009
Implement the fine tuning field, based on research. Subversion-branch: /branches/opl-branch Subversion-revision: 1664
--- a/src/i_oplmusic.c
+++ b/src/i_oplmusic.c
@@ -839,6 +839,14 @@
freq_index = 64 + 32 * voice->note + voice->channel->bend;
+ // If this is the second voice of a double voice instrument, the
+ // frequency index can be adjusted by the fine tuning field.
+
+ if (voice->current_instr_voice != 0)
+ {
+ freq_index += (voice->current_instr->fine_tuning / 2) - 64;
+ }
+
// The first 7 notes use the start of the table, while
// consecutive notes loop around the latter part.