Csound Csound-dev Csound-tekno Search About

Re: Sample file format

Date2007-09-30 03:25
From"Art Hunkins"
SubjectRe: Sample file format
I don't believe you do find out the "base frequency". IIRC, the normal value of kcps is 1 and serves as a multiplier for any speedup or slowdown you want to do.
 
Art Hunkins
----- Original Message -----
From: Brian Wong
Sent: Saturday, September 29, 2007 9:10 PM
Subject: Re: [Csnd] Sample file format

Sorry to double post, but I just tried it with a much lower base frequency (5 in this case) and it is working fine. However my question remains, how do I find out the actual base frequency of an existing sample?




From: brian.wong1@hotmail.com
To: csound@lists.bath.ac.uk
Date: Sat, 29 Sep 2007 21:58:51 -0300
Subject: Re: [Csnd] Sample file format

Thank you to both Luis and Julien for your response to my question.
 
Apparently loscil will work with either mono or stereo, according to the manual.
 
With the sndinfo command (thanks, that will be useful!) my sound file gives basically the same results with both my sample and sing.aif, which is :
srate 44100, monaural, 16 bit AIFF, 0.201 seconds
I should add this is the same sample that worked with soundin as a .wav. I converted it to .aif for use with loscil using wavesurfer.exe. By "not working" what I mean is that I don't hear anything except a slight clicking sound. The resulting aif sample plays fine in various audio players.
 
I have looked at the Csound dialog output and see the two following warnings :
WARNING: no legal base frequency
WARNING: locscil: sustain defers to non-looping source

 
So it looks like either the base frequency or loop points might be the problem. I have tried setting the frequency argument in loscil to 0 to try to make it use the csound default value, but this was not successful, nor was using 440 as the base frequency. I am not sure how to find out what the base frequency of the sample is.
 
Thanks in advance for any assistance you can offer!
 


Connect to the next generation of MSN Messenger  Get it now!


Discover the new Windows Vista Learn more!

Date2007-09-30 20:33
FromBrian Wong
SubjectRe: Sample file format
Thank you Art! The base value of 1 does not seem correct for some the samples I have tested, but I suppose it varies dependent on how the sample was made.

From: abhunkin@uncg.edu
To: csound@lists.bath.ac.uk
Date: Sat, 29 Sep 2007 22:25:41 -0400
Subject: Re: [Csnd] Sample file format

I don't believe you do find out the "base frequency". IIRC, the normal value of kcps is 1 and serves as a multiplier for any speedup or slowdown you want to do.
 
Art Hunkins


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!

Date2007-09-30 23:40
FromAlex Weiss
SubjectRe: Sample file format
Actually, it should always be correct, as the base value is merely a reference for kcps.

E.g., a base frequency of 440 and kcps=880 yields the same result as a base frequency of 1 and kcps=2. It's the ratio that determines at what speed your sample is played.

Alex


On Sep 30, 2007, at 9:33 PM, Brian Wong wrote:

Thank you Art! The base value of 1 does not seem correct for some the samples I have tested, but I suppose it varies dependent on how the sample was made.

From: abhunkin@uncg.edu
To: csound@lists.bath.ac.uk
Date: Sat, 29 Sep 2007 22:25:41 -0400
Subject: Re: [Csnd] Sample file format

I don't believe you do find out the "base frequency". IIRC, the normal value of kcps is 1 and serves as a multiplier for any speedup or slowdown you want to do.
 
Art Hunkins


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!


Date2007-10-02 01:30
FromBrian Wong
SubjectRe: Sample file format

Thank you for the clarification Alex.


From: alexweiss@freesurf.ch
Date: Mon, 1 Oct 2007 00:40:44 +0200
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] Sample file format

Actually, it should always be correct, as the base value is merely a reference for kcps.

E.g., a base frequency of 440 and kcps=880 yields the same result as a base frequency of 1 and kcps=2. It's the ratio that determines at what speed your sample is played.

Alex



Connect to the next generation of MSN Messenger  Get it now!