Chat

Author Topic: Possible bug with NSF export  (Read 11360 times)

Offline jrlepage

  • Jr. Member
  • Posts: 60
Possible bug with NSF export
« on: November 27, 2012, 08:35:19 PM »
I say possible because I'm not really certain what the processes at work are here.

I was fooling around with PCM earlier and I wanted to see if I could get an entire MP3 to play as NES raw PCM. In the process, I ran into a few problems that I don't think are supposed to be there. What I did was split my 47 second WAV into two samples of about equal length, and spliced them together in the tracker. When I play it there, it sounds fine, no problems at all. But when I export, the second sample only plays for a few seconds, then the tune jumps back to the first sample, plays it until the end of that sample then stops.

I checked, and the file size is below 1,048 KB (otherwise I believe the NSF wouldn't export at all), so it prompts me to rule out size issues.

Another slight issue is the resulting NSF seems to play the PCM a little bit too fast, which causes my perfect splice to sound off in the NSF (and also affects the pitch, obviously).

Here are the two files: DMF | NSF

Would you mind explaining what the problem is, and if the case calls for it, attempt to fix it? Thanks mate!

Offline Delek

  • Salí para ver
  • Administrator
  • Hero Member
  • Posts: 1804
    • Delek's Website
    • Email
Possible bug with NSF export
« Reply #1 on: November 27, 2012, 10:25:13 PM »
Strange, seems to be a problem with the memory allocation, I never tested the NSF exporter with very large samples.

Offline jrlepage

  • Jr. Member
  • Posts: 60
Possible bug with NSF export
« Reply #2 on: November 27, 2012, 10:34:49 PM »
Is it serious doctor?

Offline Delek

  • Salí para ver
  • Administrator
  • Hero Member
  • Posts: 1804
    • Delek's Website
    • Email
Possible bug with NSF export
« Reply #3 on: November 28, 2012, 07:02:52 PM »
Samples above 512KB were being handled incorrectly, the full 1MB of address space now works properly with PCM. However, the sample rate is a little bit slower in the ROM than in DefleMask, I will upload the update 24 after fixing this.

Offline jrlepage

  • Jr. Member
  • Posts: 60
Possible bug with NSF export
« Reply #4 on: November 29, 2012, 02:43:02 PM »
Superb!

While you're at it, is it possible to add the possibility for more than 12 samples? I think it'd be useful to have the possibility to import chromatic samples (such as bass samples), and having only one octave available is a pretty drastic limitation in this respect. The classic Sunsoft bass is a good example of this being achieved with DPCM. It's cool to have 7-bit PCM over DPCM, but if it doesn't let me do the same things I can with DPCM, then there's less of an incentive to use PCM over DPCM... :(
« Last Edit: November 29, 2012, 05:59:42 PM by jrlepage »