summaryrefslogtreecommitdiff
path: root/src/mdaPianoVoice.cpp
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-16 08:18:35 +0800
committerrekado <rekado@elephly.net>2013-01-16 08:18:35 +0800
commit3bae19eb9196300b9ad89becabaff72313dd0d82 (patch)
treeb31fbafe8ecda02fccb9756c185423ad4c206173 /src/mdaPianoVoice.cpp
parente21d94d5ec2e15bd5d2ce60cf55ea962a1c951eb (diff)
move cmax constant to where it is used
Diffstat (limited to 'src/mdaPianoVoice.cpp')
-rw-r--r--src/mdaPianoVoice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp
index 19e944f..b2fba28 100644
--- a/src/mdaPianoVoice.cpp
+++ b/src/mdaPianoVoice.cpp
@@ -191,7 +191,7 @@ if(!(r > -2.0f) || !(r < 2.0f))
/////////////////////
}
comb[cpos] = l + r;
- ++cpos &= cmax;
+ ++cpos &= 0x7F;
x = cdep * comb[cpos]; //stereo simulator
// TODO: processReplacing simply assigned instead of adding