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]   Go Down

Author Topic: Saving/Loading Samples  (Read 8593 times)

0 Members and 1 Guest are viewing this topic.

an0va

  • New User
  • Offline Offline
  • Posts: 11
    • View Profile
    • an0va on Facebook
Saving/Loading Samples
« on: April 20, 2010, 04:36:19 »

I drew a few samples I enjoy in MilkyTracker for OSX, organized them within the instrument and sample windows, and saved them all accordingly. But when I load them up in another module the waveform opens in a different sample length, very high pitch, and is upside down. Is this my human error or a possible bug within OSX? I've tried everything with two open tabs to match the loaded sample with the original, but have come to no avail.
Logged
http:/facebook.com/an0va

an0va

  • New User
  • Offline Offline
  • Posts: 11
    • View Profile
    • an0va on Facebook
Re: Saving/Loading Samples
« Reply #1 on: April 20, 2010, 06:23:57 »

On second thought, I think I'm getting it...

If I save it as an instrument rather than sample, it's fine. Why would that happen, though?
Logged
http:/facebook.com/an0va

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: Saving/Loading Samples
« Reply #2 on: April 20, 2010, 09:06:32 »

Hmm, upside down. Sounds like an endianness error to me. Do you run OSX on an Intel CPU?
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

an0va

  • New User
  • Offline Offline
  • Posts: 11
    • View Profile
    • an0va on Facebook
Re: Saving/Loading Samples
« Reply #3 on: April 20, 2010, 16:22:25 »

Yup. OSX 10.4.11 Tiger on a 2006 Macbook 2,1 to be more specific. It saves it accurately if I save through the Instrument window, but through the Sample window it saves it as a wrong sample size, upside down waveform (have to convert it to backwards to have it look correct again), and it maps the original pitch to the lowest possible key note so C-4 sounds much much higher than it did when it was saved.
Logged
http:/facebook.com/an0va

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: Saving/Loading Samples
« Reply #4 on: April 20, 2010, 19:09:14 »

Strange. If it's a Macbook with Intel CPU, then it should be LittleEndian (i guess? never used a mac :P). Maybe Milkytracker still does some Bigendian conversions where it shouldn't do them, though?
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

pailes

  • Milkytracker Moderator
  • Rising Star
  • *
  • Offline Offline
  • Posts: 287
    • View Profile
Re: Saving/Loading Samples
« Reply #5 on: April 22, 2010, 08:11:36 »

I just tried and yeah, you're right. There seems to be a bug in the WAV export that nobody noticed yet :)

Edit: It's not a bug in the WAV exporter, when I implemented Quicktime support on OS X, I totally forgot about the fact, that Quicktime will also replace the internal WAV loader. And the Quicktime WAV import seems to either incorrectly load the 8 bit wave sample or there is indeed a bug in the WAV exporter which causes Quicktime to incorrectly load the sample.

I will think about a solution.

Btw. it only happens on OS X because only the OS X version supports Quicktime sample loading.
« Last Edit: April 22, 2010, 18:45:38 by pailes »
Logged

an0va

  • New User
  • Offline Offline
  • Posts: 11
    • View Profile
    • an0va on Facebook
Re: Saving/Loading Samples
« Reply #6 on: April 22, 2010, 16:36:14 »

I just tried and yeah, you're right. There seems to be a bug in the WAV export that nobody noticed yet :)

Edit: It's not a bug in der WAV exporter, when I implemented Quicktime support on OS X, I totally forgot about the fact, that Quicktime will also replace the internal WAV loader. And the Quicktime WAV import seems to either incorrectly load the 8 bit wave sample or there is indeed a bug in the WAV exporter which causes Quicktime to incorrectly load the sample.

I will think about a solution.

Btw. it only happens on OS X because only the OS X version supports Quicktime sample loading.

Right on! Thanks for the quick reply and keep me posted here if you come up with any ideas! And here I thought I was making some simple n00b mistake...
Logged
http:/facebook.com/an0va

an0va

  • New User
  • Offline Offline
  • Posts: 11
    • View Profile
    • an0va on Facebook
Re: Saving/Loading Samples
« Reply #7 on: October 06, 2010, 04:47:32 »

Any update on the status?
Logged
http:/facebook.com/an0va

pailes

  • Milkytracker Moderator
  • Rising Star
  • *
  • Offline Offline
  • Posts: 287
    • View Profile
Re: Saving/Loading Samples
« Reply #8 on: October 14, 2010, 12:22:14 »

I think I fixed it a while ago. The Quicktime loader is ommited when loading WAV samples. While talking about it, it should also be avoided for AIFF samples, I wonder if I did that.

Maybe we can put out a little update for the OS X users out there.
Logged
Pages: [1]   Go Up