fixed up some constants

svn-id: r42276
This commit is contained in:
Norbert Lange 2009-07-09 00:19:17 +00:00
parent d25f481421
commit 84e96bc513

View file

@ -235,8 +235,8 @@ int MaxTrax::calcNote(VoiceContext &voice) {
voice.periodOffset = 0;
const int maxOctave = patch.sampleOctaves - 1;
while (tone > PREF_PERIOD && octave < maxOctave) {
tone -= 1 << 4;
voice.periodOffset += 1 <<4;
tone -= 1 << 16;
voice.periodOffset += 1 << 16;
octave++;
}
tone -= voice.periodOffset;