mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-28 07:23:01 +00:00
make clear the tuningoffset is okay to overflow
This commit is contained in:
parent
245fe1c092
commit
2365321d46
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ SafeWriter* DivEngine::saveZSM(unsigned int zsmrate, bool loop) {
|
|||
// displaying the entire song held in pitch bend.
|
||||
// Tunings offsets that exceed a half semitone
|
||||
// will simply be represented in a different key
|
||||
signed char tuningoffset=(signed char)round(3072*(log(song.tuning/440.0)/log(2)));
|
||||
signed char tuningoffset=(signed char)(round(3072*(log(song.tuning/440.0)/log(2))))&0xff;
|
||||
zsm.writeSync(0x01,tuningoffset);
|
||||
|
||||
while (!done) {
|
||||
|
|
Loading…
Reference in a new issue