It is currently Mon Nov 20, 2017 4:14 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Jun 16, 2014 3:27 pm 
Offline
User avatar

Joined: Sat May 31, 2014 4:12 pm
Posts: 139
I am just starting to learn about incorporating sound into my games but FamiTracker isn't working properly. I am trying to load a .wav DPCM sample but all I hear is silence. I loaded a .wav file that someone else used that worked just fine. How come some .wav files seem to load just fine while others don't?


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 3:35 pm 
Offline
NESICIDE developer
User avatar

Joined: Mon Oct 13, 2008 7:55 pm
Posts: 1049
Location: Minneapolis, MN
raydempsey wrote:
I am just starting to learn about incorporating sound into my games but FamiTracker isn't working properly. I am trying to load a .wav DPCM sample but all I hear is silence. I loaded a .wav file that someone else used that worked just fine. How come some .wav files seem to load just fine while others don't?

Have you tried asking this here?

Also, might want to include what version of FamiTracker you're using and possibly even the WAV that doesn't import properly.


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 3:43 pm 
Online
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3484
Location: Indianapolis
I'd try opening it in an audio editor, then save as a WAV. It's not uncommon for an audio file's format to not match it's extension. Without having access to the wav files, we can only guess.


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 4:13 pm 
Offline
User avatar

Joined: Sat May 31, 2014 4:12 pm
Posts: 139
I am using the latest version of FamiTracker (v0.4.3). I checked its properties and indeed it is a WAV file. As an experiment, I am attempting to load the audio file I attached here.


Attachments:
WAV file.zip [278.11 KiB]
Downloaded 98 times
Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 6:14 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19236
Location: NE Indiana, USA (NTSC)
1. It's stereo. Try converting it to mono.
2. It's at 44100 Hz. Try sampling it down to one of the sample rates that the NES supports.
3. It's longer than 32768 samples, the limit for a sample on the NES. You might have to break it into two samples.
4. It's quiet. Try "normalizing" the file, or amplifying it such that the tallest peak is at full volume. For this wave, you'll need to amplify it by about 26 dB.


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 8:38 pm 
Offline
User avatar

Joined: Sat May 31, 2014 4:12 pm
Posts: 139
Thank you. It works now. It needed to be louder. I have to cut it into smaller pieces like you said.


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 8:54 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
tepples, the Famitracker WAV import will resample to the specified target samplerate. It is fine to use a 44.1kHz WAV as input. The only advantage to resampling ahead of time is you can choose the resampling method instead of whatever Famitracker does (if it's inadequate somehow).


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 9:28 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19236
Location: NE Indiana, USA (NTSC)
That and resampling in advance makes it easier to see if the sample is too long.


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 9:30 pm 
Offline
Formerly ~J-@D!~
User avatar

Joined: Sun Mar 12, 2006 12:36 am
Posts: 445
Location: Rive nord de Montréal
rainwarrior wrote:
tepples, the Famitracker WAV import will resample to the specified target samplerate. It is fine to use a 44.1kHz WAV as input. The only advantage to resampling ahead of time is you can choose the resampling method instead of whatever Famitracker does (if it's inadequate somehow).
Moreover, the new resampler uses a Hamming-windowed sinc kernel in a polyphase FIR filter with a reasonable kernel size, so it should be good enough—no more nearest neighbor interpolation/straight decimation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group