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: sample rates  (Read 5021 times)

0 Members and 1 Guest are viewing this topic.

The Onyxmizer

  • Needs more Pie
  • Offline Offline
  • Posts: 39
    • View Profile
sample rates
« 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?
Logged

0xtob

  • NitroTracker Moderators
  • Pie Addict
  • Offline Offline
  • Posts: 84
    • View Profile
Re: sample rates
« Reply #1 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.
Logged

The Onyxmizer

  • Needs more Pie
  • Offline Offline
  • Posts: 39
    • View Profile
Re: sample rates
« Reply #2 on: January 21, 2009, 03:27:48 »

the .wav;s are 24 bit rather then 16 bit, and I think that was the problem.
Logged

0xtob

  • NitroTracker Moderators
  • Pie Addict
  • Offline Offline
  • Posts: 84
    • View Profile
Re: sample rates
« Reply #3 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!
Logged

The Onyxmizer

  • Needs more Pie
  • Offline Offline
  • Posts: 39
    • View Profile
Re: sample rates
« Reply #4 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.
Logged

ljdp

  • Liking the Pie
  • Offline Offline
  • Posts: 3
    • View Profile
Re: sample rates
« Reply #5 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.
Logged

Synthesis

  • Devouring the Pies
  • Offline Offline
  • Posts: 23
    • View Profile
Re: sample rates
« Reply #6 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.
« Last Edit: April 19, 2009, 19:41:55 by Synthesis »
Logged
Pages: [1]   Go Up