Mod Archive Forums

Music Production => NitroTracker => Tracking => NitroTracker Support => Topic started by: The Onyxmizer on December 29, 2008, 00:36:11

Title: sample rates
Post by: The Onyxmizer on December 29, 2008, 00:36:11
Does nitro take a limited range of sample rates for .wav's?

I posted in the bugs forum about this, but some of my samples turn into a wierd gargle or hiss. I've reloaded the samples, tried them in different places on the sd card, but they still come out like static. Thus, I assume it's a sample rate problem.

eitherway, is there an ideal sample rate for nitrotracker's samples?
Title: Re: sample rates
Post by: 0xtob on January 19, 2009, 19:05:31
Hey! If your samples come out as garbage I would assume that they are in the wrong format. They need to be plain PCM wav files. Try converting them with Audacity. Also, scandisk your SD card to rule out errors related to that. There is no "optimal" sampling rate, but the sampling rate of the DS mixer is 33 kHz. Note that the sample is played back at its original sampling rate at the note C-4 (unless you play with relnote and finetune parameters). So, it depends on the pitch that you want to want to use your sample at. If you play back a sample at a low pitch, the sample rate and thus the quality becomes low. As a rule of thumb, each octave doubles the sampling rate. So, if C-3 were 22kHz, C-4 would be 44 kHz and so on.
Title: Re: sample rates
Post by: The Onyxmizer on January 21, 2009, 03:27:48
the .wav;s are 24 bit rather then 16 bit, and I think that was the problem.
Title: Re: sample rates
Post by: 0xtob on January 22, 2009, 23:43:46
Oh, right. 24 bit samples are not supported, and I wasn't checking for that in my wav loader. Just fixed it, thanks!
Title: Re: sample rates
Post by: The Onyxmizer on January 23, 2009, 03:48:42
 ;)

happen to know of any good batch converters? I got a variable tone, maybe even a fucktone of samples.
Title: Re: sample rates
Post by: ljdp on April 19, 2009, 16:00:01
Just a question.
How does nitrotracker resample the sounds?
I've been making my own 16 step sequencer and to change the frequency I do this:

44100 * (2^(semitone/12))

(I have a premade array that lists all 5 octaves in integers)

It works ok if I go down in semitones but after I go up 8 semitones the sound produces garble.

all sounds are 8 bit raw.
Title: Re: sample rates
Post by: Synthesis on April 19, 2009, 19:39:22
You're coding for NDS right?
Don't forget that its frequency range is limited! I thought the maximum was 32767, but it seems it's 65535, given the fact that your example works for 44100 Hz.
Simply decrease the sample rate of your sounds.