diff options
Diffstat (limited to 'Table.cpp')
-rw-r--r-- | Table.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,8 +17,8 @@ void Table::update(const Cursor& cursor) for (int i = 0; i < _depth; i++) { LZR_StopSound(i); if (_strength[i][t] > 0) { - float pitch = float(_strength[i][t]) / CFG_DHEIGHT; - float pan = float(_notes[i][t]) / CFG_DHEIGHT; + float pitch = float(_strength[i][t]) / _yend; + float pan = float(_notes[i][t]) / _yend; LZR_SetSoundPitch(i, 0.5 + pitch * 1.5); LZR_SetSoundPan(i, -1.0 + pan * 2.0); LZR_PlaySound(i, 0); |