Update vibratopos according to the spec
This commit is contained in:
parent
0e47b13d83
commit
5af28d860e
1 changed files with 5 additions and 2 deletions
|
|
@ -71,8 +71,11 @@ function eff_t1_4(ch) { // vibrato
|
||||||
ch.vibratopos, ch.vibratospeed, ch.vibratodepth);
|
ch.vibratopos, ch.vibratospeed, ch.vibratodepth);
|
||||||
ch.periodoffset = 0;
|
ch.periodoffset = 0;
|
||||||
}
|
}
|
||||||
ch.vibratopos += ch.vibratospeed;
|
// only updates on non-first ticks
|
||||||
ch.vibratopos &= 63;
|
if (player.cur_tick > 0) {
|
||||||
|
ch.vibratopos += ch.vibratospeed;
|
||||||
|
ch.vibratopos &= 63;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getVibratoDelta(type, x) {
|
function getVibratoDelta(type, x) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue