10 Commits

Author SHA1 Message Date
Alice R
755c28071d Don't increment voice position by step value at loop/tick end. (#496)
Since commit b7d6a6ea, libxmp has added an extra step to voice
positions if they are close to or at the end of their loop on a tick
boundary. This results in samples with loops being very slightly
too fast. This patch corrects this behavior so samples with loops
play at the correct speed.

The issue can be demonstrated with two looping samples, where one
sample is two inverted copies of the other sample. When played back
at the same pitch, they should cancel entirely and be silent, but
this extra step causes them to gradually diverge instead.
2021-12-22 08:06:29 -07:00
Claudio Matsuoka
f3a1115d74 test-dev: update reference mixing data
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2020-12-07 11:06:55 -03:00
Claudio Matsuoka
2666d38abe [test] Update a few more tests
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-07-13 22:28:08 -03:00
Claudio Matsuoka
a1ddeffd27 [test] Update test data for fixed IT envelope and fadeout
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-08-02 09:33:07 -03:00
Claudio Matsuoka
99aec1e5e3 [test] Update note after cut IT test reference data
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-04-02 10:41:14 -03:00
Claudio Matsuoka
fe9d252c3b [test] Update note_after_cut.it reference data
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-04-01 12:56:45 -03:00
Claudio Matsuoka
b71864f79d Refactor vibrato code
Keep sine vibrato as a table, and generate other waveforms in code.
Note: S3M/IT square wave has a minimum value of 0 while MOD/XM doesn't,
but we're using the S3M waveform for everyone.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-12-28 00:07:25 -02:00
Claudio Matsuoka
54e146c22d Fix vibrato waveforms
Low value in square wave should be 0, not -255. Also fix ramp up waveform
index to 4, and leave 3 as the random waveform.

To check: is ramp up actually used by any format? And is vibrato depth
	ok in MOD/S3M/XM? It does seem correct in IT.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-12-26 19:08:01 -02:00
Claudio Matsuoka
6ebe4f7c6f Adjust vibrato depth
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-12-24 20:03:47 -02:00
Claudio Matsuoka
8d16103fed Rename compreensive test suite to test-dev
The regression test suite is important for development but for end user
tests a simpler check is sufficient.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-05-18 11:18:52 -03:00