Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1] 2   Go Down

Author Topic: Size limit for ProTracker samples  (Read 37057 times)

0 Members and 2 Guests are viewing this topic.

Subi

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Size limit for ProTracker samples
« on: April 05, 2012, 18:09:27 »

Just found this while I was doing my MOD for Revision.  With Options->Playback Mode set to PT 2.x Milky lets me save MODs with samples that are 128K (0x1ffff), but PT can only handle  samples of 64K (0xffff) as I was reminded when I tried the finished MOD on an A1200.  :)
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Size limit for ProTracker samples
« Reply #1 on: April 09, 2012, 18:53:04 »

I wouldn't even say that this is a bug, since a play mode shouldn't influence how samples are stored in the file. Though one could of course think about actually only playing the first 64k of samples in that mode.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Subi

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Size limit for ProTracker samples
« Reply #2 on: April 11, 2012, 18:53:38 »

True, but the bug for me is that it let me save the MOD with samples over 64k but under 128k, while not letting me save with samples over 128k.  It's trying to help me make a valid Amiga MOD, it's just using the wrong value.  :)
« Last Edit: April 11, 2012, 18:57:06 by Subi »
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Size limit for ProTracker samples
« Reply #3 on: April 11, 2012, 19:31:17 »

You technically cannot save samples > 128k in MOD files.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Subi

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Size limit for ProTracker samples
« Reply #4 on: April 12, 2012, 13:07:52 »

You technically cannot save samples > 128k in MOD files.
You technically cannot save samples > 64k in MOD files, but Milky only warns you if they're over 128k, that's my point.  :)
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Size limit for ProTracker samples
« Reply #5 on: April 12, 2012, 15:26:41 »

You technically cannot save samples > 64k in MOD files
That's not true. The sample length field is 16 bits wide, but the lowest bit of the sample length is not stored. Effectively, that means that you can only save samples whose length is a multiple of 2, and furthermore, it means that you can save samples that are up to 1FFFF bytes (or 128K) instead of FFFF bytes (or 64K) long. Most Amiga trackers don't support sampels that are longer than 64K bytes, but there is nothing wrong with storing them in the file. It is technically perfectly possible, it's just that Amiga trackers can't handle it.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Subi

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Size limit for ProTracker samples
« Reply #6 on: April 12, 2012, 16:01:05 »

Surely "Not handled by Amiga trackers" should count for something when trying to write authentic MODs?
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Size limit for ProTracker samples
« Reply #7 on: April 12, 2012, 16:34:10 »

See, I do agree with you here from the very first post, but as said in my first reply already - this shouldn't be handled by a play mode. Maybe there should be a special save mode that only allows you to write out 4 channel MODs with 64k samples only. The point is that using the ProTracker play mode might even be desirable for "PC mods", so it shouldn't depend on the play mode whether large samples are allowed or not.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Subi

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Size limit for ProTracker samples
« Reply #8 on: April 12, 2012, 18:55:37 »

Ah, I see what you mean now.  Maybe it could look at the bitrate of the sample and only allow 64k if the sample is 8-bit?
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Size limit for ProTracker samples
« Reply #9 on: April 13, 2012, 14:32:12 »

That would be too intransparent and hard to understand, since all samples are converted to 8-bit for MOD anyway (MOD cannot save 16-bit samples). As said, adding a "Amiga MOD" save mode to the already existing save modes (XM, MOD, WAV) would be the easiest to understand and easiest to use way - but it's up to the milky guys if they want to do it like this.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker
Pages: [1] 2   Go Up