April 25, 2014, 07:28:35 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.
 
   Milkytracker.org   Help Search Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Size limit for ProTracker samples  (Read 1736 times)
0 Members and 1 Guest are viewing this topic.
Subi
Wants more Pie

Offline Offline

Posts: 5


View Profile
« on: April 05, 2012, 06:09:27 PM »

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.  Smiley
Logged
Saga Musix

a.k.a. Jojo

TMA Moderator

Lord of the Pies
****
Offline Offline

Posts: 1528


I love OpenMPT! And Modules! And TMA! And Pie! :>


View Profile WWW
« Reply #1 on: April 09, 2012, 06:53:04 PM »

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: http://sagamusix.de/ [de, en]
» Visit my programming website: http://sagagames.de/ [de]
» Open ModPlug tracker
Subi
Wants more Pie

Offline Offline

Posts: 5


View Profile
« Reply #2 on: April 11, 2012, 06:53:38 PM »

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.  Smiley
« Last Edit: April 11, 2012, 06:57:06 PM by Subi » Logged
Saga Musix

a.k.a. Jojo

TMA Moderator

Lord of the Pies
****
Offline Offline

Posts: 1528


I love OpenMPT! And Modules! And TMA! And Pie! :>


View Profile WWW
« Reply #3 on: April 11, 2012, 07:31:17 PM »

You technically cannot save samples > 128k in MOD files.
Logged

» My TMA artist profile
» Visit my music site: http://sagamusix.de/ [de, en]
» Visit my programming website: http://sagagames.de/ [de]
» Open ModPlug tracker
Subi
Wants more Pie

Offline Offline

Posts: 5


View Profile
« Reply #4 on: April 12, 2012, 01:07:52 PM »

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.  Smiley
Logged
Saga Musix

a.k.a. Jojo

TMA Moderator

Lord of the Pies
****
Offline Offline

Posts: 1528


I love OpenMPT! And Modules! And TMA! And Pie! :>


View Profile WWW
« Reply #5 on: April 12, 2012, 03:26:41 PM »

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: http://sagamusix.de/ [de, en]
» Visit my programming website: http://sagagames.de/ [de]
» Open ModPlug tracker
Subi
Wants more Pie

Offline Offline

Posts: 5


View Profile
« Reply #6 on: April 12, 2012, 04:01:05 PM »

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

a.k.a. Jojo

TMA Moderator

Lord of the Pies
****
Offline Offline

Posts: 1528


I love OpenMPT! And Modules! And TMA! And Pie! :>


View Profile WWW
« Reply #7 on: April 12, 2012, 04:34:10 PM »

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: http://sagamusix.de/ [de, en]
» Visit my programming website: http://sagagames.de/ [de]
» Open ModPlug tracker
Subi
Wants more Pie

Offline Offline

Posts: 5


View Profile
« Reply #8 on: April 12, 2012, 06:55:37 PM »

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

a.k.a. Jojo

TMA Moderator

Lord of the Pies
****
Offline Offline

Posts: 1528


I love OpenMPT! And Modules! And TMA! And Pie! :>


View Profile WWW
« Reply #9 on: April 13, 2012, 02:32:12 PM »

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: http://sagamusix.de/ [de, en]
» Visit my programming website: http://sagagames.de/ [de]
» Open ModPlug tracker
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!