Kara-Moon Forum
April 26, 2024, 03:44:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Changing sample rate changes frequenty of tone ?  (Read 8295 times)
kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« on: March 05, 2008, 01:55:41 PM »

I lost quit some time with something stupid and I wonder if it's normal and I don't understand or if it is a bug  Roll Eyes

So here goes the story....

I had some instrument samples that where in 48khz and since I want to use them in milkytracker i had to resample them in 44.1kHz.
No problem, just opened the samples in audacity and changed the samplerate of the sample and save, I tought.... so,that was what i was doing.
Until i wanted to use the samples and i noticed that something was very wrong, luckily my ears are still ok  Grin

So, back to audacity, load the sample and analyse the frequenty of it, and surprise ,yes, the frequenty changed around 2 semitones...

Now I wonder... is this normal or it is a bug ?
Why does resampling changes the frequentie of the sample ?

k
 
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
Marc JX8P
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 1087



WWW
« Reply #1 on: March 05, 2008, 02:38:41 PM »

It sounds like in this case the sample hasn't been resampled but a marker has been changed from 48 khz to 41 khz, like playing the same record only slower. Presumably it does sound lower in frequency?

I'm thinking that the resampling algorithm you use probably has a switch allowing you to keep the pitch when resampling or something like that. Resampling and keeping the pitch is effectively timestretching.
Logged

Also known as Marc JXP
kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #2 on: March 05, 2008, 03:08:14 PM »

That's exactly what it does Marc
And there isn't any switch, so i consider it as a bug
If nobody can convince me that I'm wrong Smiley

k
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
rharv
Use in Moderation
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 1059


Glad to be here


WWW
« Reply #3 on: March 06, 2008, 01:00:02 PM »

It sounds to me like the same thing- it's just playing the sample at the other rate and didn't truly convert it.
You could set Powertracks to the rate you want, then open the original files.
PTW will ask if you want to change the samplerate in PT to mact, rather than convert...say no and it will convert the sample to the new rate.  then you would have to 'save track to file' to save it.

Since PT is a recording software this would be a clunky way of doing it.  I bet some other sample-use software would do it better.  Maybe 'chickensys' demeo.(?)
 There must be freeware convertors out there.  I know you know how to search the net, Kara..
Logged

Make your sound your own!

http://www.motagator.net/bands/556/
folderol
Kara-Moon Master
****
Posts: 5308

Who? Me?


WWW
« Reply #4 on: March 06, 2008, 09:52:00 PM »

This is very strange. I've only ever converted a couple of wav files in audacity previously and didn't have any problems.

To make a test, tonight I got one of my tracks in its original 44.1k wav format and used audacity to upconvert to 48k and downconvert to 16k. These versions I saved then played back in XMMS. They all showed the correct sample rates, all seemed to play at identical speed and pitch. The 16k one was noticably lacking in 'top end' but otherwise I could hear no differences.
Logged

If you have a poem, I have a tune, and we exchange these, we can both have a poem, a tune, and a song.
- Will
kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #5 on: March 07, 2008, 06:49:57 AM »

Thanks Will & Rharv

I wonder what I did wrong then ....
Did you use the change sample rate on the track properties itself or did you just export the audio in an other format ?
Exporting in an other format does work, but changing sample rate of the track itself doesn't here ?

k
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
folderol
Kara-Moon Master
****
Posts: 5308

Who? Me?


WWW
« Reply #6 on: March 07, 2008, 07:39:59 PM »

I loaded the test file in, changed the project rate (bottom left corner) then exported as wav to a new filename.

Reloading the files, correctly identifies the new sample rates, and a simple filesize check gives sensible results.
Logged

If you have a poem, I have a tune, and we exchange these, we can both have a poem, a tune, and a song.
- Will
kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #7 on: March 07, 2008, 07:50:08 PM »

A yes, there I agree
But did you change the sample rate of track itself ?
Then it goes wrong ....

k



I loaded the test file in, changed the project rate (bottom left corner) then exported as wav to a new filename.

Reloading the files, correctly identifies the new sample rates, and a simple filesize check gives sensible results.
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
folderol
Kara-Moon Master
****
Posts: 5308

Who? Me?


WWW
« Reply #8 on: March 07, 2008, 08:43:59 PM »

A yes, there I agree
But did you change the sample rate of track itself ?
Then it goes wrong ....

k

No. I didn't try that.

Just attempted it a few minutes ago, and it seems I can't actually resample the tracks. It says it is doing it, but actually changes nothing at all Shocked
Logged

If you have a poem, I have a tune, and we exchange these, we can both have a poem, a tune, and a song.
- Will
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.054 seconds with 20 queries.