Author Topic: .52 .xm Kxx misbehaviour  (Read 2178 times)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,772
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
.52 .xm Kxx misbehaviour
« on: January 14, 2009, 18:55:50 »
Full Version:
OpenMPT v1.17.02.52

Has the bug occured in previous versions? If yes, please specify version(s): (This option is optional, and doesn't need research. But in case you know...)
not tested

Description of the bug:
Kxx behaviour is wrong. It should work exactly like == (just with a delay). At the moment, it simply triggers a fade-out + release sustain.

The exact behaviour should be:
- If volume envelope is DISABLED, cut it off (like ==) <-- This is done wrong atm!
- If volume envelope is ENABLED, trigger sustain and fade it out (also like ==)

Also, modplug does not seem to respect the xx parameter at all: Fadeout begins immediately after the effect is called, there's no delay of xx ticks. Higher values than (song tempo - 1) have no effect, e.g. Kxx works for K00 to K05 when song tempo is 6.

Fixed in SVN release (using compatiblity flag)
ยป No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.