Skip to content

Commit

Permalink
Swap auto-vibrato ramp up and down waveforms to be consistent with FT2.
Browse files Browse the repository at this point in the history
  • Loading branch information
sagamusix committed May 6, 2018
1 parent 8890d63 commit 69bd7f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/milkyplay/PlayerSTD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,16 +576,16 @@ mp_sint32 PlayerSTD::getfinalperiod(mp_sint32 c,mp_sint32 p)
case 1 : vl=vibtab[vp&31]; break;
// square
case 2 : vl=255; break;
// ramp down
// ramp down (down being the period here - so ramp frequency up ;)
case 3 : {
vl=((vp&31)*539087)>>16;
if ((vp&63)>31) vl=255-vl;
vl=-vl;
}; break;
// ramp up
// ramp up (up being the period here - so ramp frequency down ;)
case 4 : {
vl=((vp&31)*539087)>>16;
if ((vp&63)>31) vl=255-vl;
vl=-vl;
}; break;
}

Expand Down

0 comments on commit 69bd7f0

Please sign in to comment.