Author Topic: Zxx Macros?  (Read 14018 times)

saga

  • Posts: 2179
Zxx Macros?
« on: 26 Mar '09 - 23:13 »
MO3 files obviously store macro configuration, as my highpass filter macros (configured in MPT) still work in an encoded file. However, when using unmo3, the macros seem to be gone and I get lowpass filters again. Is it possible that unmo3 simply "forgets" to write the macro container into IT files? If it is a bug, could you also fix it in the unmo3.dll please? :)

Ian @ un4seen

  • Administrator
  • Posts: 20400
Re: Zxx Macros?
« Reply #1 on: 27 Mar '09 - 14:36 »
I tried with the JEFF93.IT demo file just now, and the filters seemed to be retained through the MO3/UNMO3 process with that, so please upload a file that you're having the trouble with to have a look at here...

   ftp.un4seen.com/incoming/

saga

  • Posts: 2179
Re: Zxx Macros?
« Reply #2 on: 27 Mar '09 - 14:45 »
I've uploaded menu.mo3 (just in case, the _original_ menu.it is also there). Starting at position 5 (pattern 4), A melody pops in (channel 6 to 11), the instrument is going through a hi-pass filter which has been activated in the first pattern (and in the very same pattern as well). If I play the mo3 in XMPlay or any other BASS-driven application, it sounds like it's supposed to sound. The unmo3'ed version uses a low-pass filter instead, as it does not seem to understand the Z92 command anymore.
« Last Edit: 27 Mar '09 - 14:50 by saga »

Ian @ un4seen

  • Administrator
  • Posts: 20400
Re: Zxx Macros?
« Reply #3 on: 27 Mar '09 - 16:29 »
The MIDI macros are being written by UNMO3, but MPT is apparently refusing to read them because bit 7 of the "Flags" field isn't set. I think it should be checking bit 3 of the "Special" field instead, which seems to be what Impulse Tracker looks for, as well as XMPlay/BASS. Is it only MPT that isn't seeing the macros, or does the UNMO3'd file sound wrong in XMPlay/BASS too?

saga

  • Posts: 2179
Re: Zxx Macros?
« Reply #4 on: 27 Mar '09 - 21:53 »
Ok, this seems to be only MPT's fault indeed, I'll look into it and try to figure out what's going wrong here.
« Last Edit: 27 Mar '09 - 22:07 by saga »

saga

  • Posts: 2179
Re: Zxx Macros?
« Reply #5 on: 5 Apr '09 - 06:25 »
Ok, it was ignoring the macros for exactly the reason you gave. :) I've fixed that now, it's now checking for both bit 7 of "Flags" and bit 3 of "Special".