Author Topic: Multiple Sequences (mptm): Rearrange  (Read 4558 times)

Offline Skaven

  • Workaholic artist
  • ***
  • Posts: 112
    • http://www.mikseri.net/skaven
Multiple Sequences (mptm): Rearrange
« on: August 26, 2010, 07:36:17 »
I'm running pretty close to the 255 Order limit in my game music project, and it would help if I could sort the unused / test / sketch patterns I want to keep to the last sequence.

Would it be technically feasible to make the multiple sequences re-arrangeable? Right Click: "Move Up" / "Move Down", drag & drop or such?

What is the maximum number of Patterns an .it or a .mptm can contain? I can of course simply remove the unused / test / idea patterns from the Sequence and just find them in the Patterns list, but the Sequence is a handy way to keep them available and visible.

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,128
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Multiple Sequences (mptm): Rearrange
« Reply #1 on: August 26, 2010, 11:12:59 »
I guess reordering sequences would be doable. For now, it's possible to select a range of order items and use the cut&paste functionality (it just copies the order numbers, so it does about the same thing).

Quote
What is the maximum number of Patterns an .it or a .mptm can contain?
240 patterns for IT, 4000 for MPTM.
» 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.

Offline Skaven

  • Workaholic artist
  • ***
  • Posts: 112
    • http://www.mikseri.net/skaven
Multiple Sequences (mptm): Rearrange
« Reply #2 on: August 27, 2010, 04:20:15 »
4000? Wow. :)  Too bad game tunes still need to be converted to .IT so we can't use that many patterns in games. Unless BASS.DLL and/or FMOD start supporting .mptm format directly. It's not radically different from the other tracker formats, is it?

Oh yeah, and since the Order list is still clamped at 255 (otherwise the Bxx command couldn't work), there wouldn't be a way to include all those 4000 patterns into a sequence....

Offline Skaven

  • Workaholic artist
  • ***
  • Posts: 112
    • http://www.mikseri.net/skaven
Multiple Sequences (mptm): Rearrange
« Reply #3 on: August 27, 2010, 05:08:31 »
Yeah, except... if .mptm is supported directly, then each separate sequence can contain 255 orders and patterns, and then you could indeed make use of 4000 patterns  (how many sequences can there be?).

Then seeking different sub-tunes could be done by seeking Sequences instead of Offsets within the sequence. That would be very convenient indeed, since there would be no need to convert the .mptm back to .it.

Hmmmm. Interesting indeed.

But this would have to be implemented by the authors of BASS.DLL and FMOD.

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 707
Multiple Sequences (mptm): Rearrange
« Reply #4 on: August 27, 2010, 15:36:48 »
Quote from: "Skaven"
It's not radically different from the other tracker formats, is it?

Currently mptm is extended(hacked) IT-file.

Quote from: "Skaven"
Oh yeah, and since the Order list is still clamped at 255 (otherwise the Bxx command couldn't work), there wouldn't be a way to include all those 4000 patterns into a sequence....

Sequences can also be 4000 items long, but there indeed are limitations like the one you mentioned.

Quote from: "Skaven"
(how many sequences can there be?).

Currently 50.

Offline Skaven

  • Workaholic artist
  • ***
  • Posts: 112
    • http://www.mikseri.net/skaven
Multiple Sequences (mptm): Rearrange
« Reply #5 on: August 29, 2010, 07:47:26 »
I sent an email to Ian Luck (author of BASS.DLL) if .mptm could be supported directly. Let's see if it would be feasible. :)

Offline Skaven

  • Workaholic artist
  • ***
  • Posts: 112
    • http://www.mikseri.net/skaven
Multiple Sequences (mptm): Rearrange
« Reply #6 on: September 11, 2010, 15:46:09 »
Ian looked at the .mptm format and understood it's basically .IT with extended metadata. He said it should be possible to seek from .mptm with sequence numbers, then offset, but added that since the .mptm format still gets changed, he'd prefer to do it later.

Works for me. :)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,128
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Multiple Sequences (mptm): Rearrange
« Reply #7 on: September 11, 2010, 15:47:54 »
Yeah, things might still change, so it's probably a bit too early for doing an "official" release with MPTM support (though ultimately it would nice to have that, of course)
» 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.

Offline LPChip

  • Administrator
  • *****
  • Posts: 4,937
    • http://lpchip.nl
  • Operating System: Windows 7 (x64bit)
Multiple Sequences (mptm): Rearrange
« Reply #8 on: September 11, 2010, 17:37:27 »
How hard would it be to make an in_mptm for say, winamp and xmplay?

I'm sure if we can create a plugin for that, Ian can use the code for that part to generate what he needs for bass etc. Perhaps even as an interface to a plugin we develop?
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,128
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Multiple Sequences (mptm): Rearrange
« Reply #9 on: September 11, 2010, 19:24:55 »
This "in_mptm" you are talking about does already exist and is called libmodplug (it just lacks the MPTM loading functionality, but then again, it shouldn't be difficult to create an updated version of libmodplug from the OpenMPT core). Why write a plugin if XMPlay/BASS already has all the functionality apart from reading the extended fields like multiple sequences? This just doesn't make sense at all.
» 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.

Offline LPChip

  • Administrator
  • *****
  • Posts: 4,937
    • http://lpchip.nl
  • Operating System: Windows 7 (x64bit)
Multiple Sequences (mptm): Rearrange
« Reply #10 on: September 12, 2010, 19:43:31 »
Quote from: "Jojo"
This "in_mptm" you are talking about does already exist and is called libmodplug (it just lacks the MPTM loading functionality, but then again, it shouldn't be difficult to create an updated version of libmodplug from the OpenMPT core). Why write a plugin if XMPlay/BASS already has all the functionality apart from reading the extended fields like multiple sequences? This just doesn't make sense at all.


I was thinking about this because we're the ones who continue to build on the mptm format, not un4seen. If they want to wait with adding support for our mptm format because its subject to change, we can take a midway.

Just my 2 cents.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 707
Multiple Sequences (mptm): Rearrange
« Reply #11 on: September 12, 2010, 22:13:40 »
Quote from: "Jojo"
This "in_mptm" you are talking about does already exist and is called libmodplug (it just lacks the MPTM loading functionality, but then again, it shouldn't be difficult to create an updated version of libmodplug from the OpenMPT core). Why write a plugin if XMPlay/BASS already has all the functionality apart from reading the extended fields like multiple sequences? This just doesn't make sense at all.

I think it's misleading to say that libmodplug "just lacks" the MPTM loading functionality: as far as I know it lacks more or less every extension and playback fix introduced by OpenMPT and there are plenty of those(accumulated since 2004). Many of them may require significant changes in the source and simply updating libmodplug sounds like an arduous task.

Offline Skaven

  • Workaholic artist
  • ***
  • Posts: 112
    • http://www.mikseri.net/skaven
Re: Multiple Sequences (mptm): Rearrange
« Reply #12 on: October 26, 2010, 13:55:17 »
Also, how does BASS.DLL's .mo3 format sit in the picture, if libmodplug (or its future equivalent) is used?

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,128
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Re: Multiple Sequences (mptm): Rearrange
« Reply #13 on: October 26, 2010, 16:03:45 »
Also, how does BASS.DLL's .mo3 format sit in the picture, if libmodplug (or its future equivalent) is used?
libmodplug does not natively support mo3; unmo3.exe would have to be used. If someone does a "new" libmodplug based on the OpenMPT code, it would support mo3 through the unmo3.dll specially created for OpenMPT; in both cases, the license of the mo3 package would apply.
» 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.