Page 1 of 2
selection and number of samples
Posted: Wed Aug 22, 2012 8:21 am
by booboo_US
Hi Everyone:
I have a two part question:
1- is there a way in audacity to select the silent section of the track? I did not see anything on this.
2- is there anyway of counting the number of samples in the selection? Or do I have to actually count them myself one by one? I hope there is a command.
Thank you.
Re: selection and number of samples
Posted: Wed Aug 22, 2012 8:57 am
by steve
There's not exactly those functions, but several similar ones. What exactly are you wanting to do?
Re: selection and number of samples
Posted: Wed Aug 22, 2012 5:02 pm
by booboo_US
Thank you for your reply steve. On a previous post I was asking questions on how to create seamless, gapless MP3 files, and you sent me the link
http://wiki.hydrogenaudio.org/index.php?title=Gapless. in that article, it mentiones to count the number of samples in the padding and encoder delay of the file. So, I am trying to get this information for the silence section at the beginning and end of each track and make adjustments per the article. That is why I wanted to see if there is a way to count the number of samples. Thanks for your help. I would appreciate all suggestions.
Re: selection and number of samples
Posted: Wed Aug 22, 2012 5:20 pm
by waxcylinder
booboo_US wrote:... I wanted to see if there is a way to count the number of samples.
Just change the display format in the
Selection Toolbar (normally at the bottom of the Window) and change the display format to
Samples - see
http://manual.audacityteam.org/o/man/au ... on_Toolbar
Then when you make a selection Audacity will do the counting for you.
WC
Re: selection and number of samples
Posted: Wed Aug 22, 2012 5:40 pm
by steve
But after counting the samples, don't export the files again or the gap will change.
You will need to import the MP3 files, count the samples, then close the project without saving so that you know the gap length of the files that you have imported and not changed them.
Re: selection and number of samples
Posted: Wed Aug 22, 2012 6:17 pm
by booboo_US
waxcylinder wrote:booboo_US wrote:... I wanted to see if there is a way to count the number of samples.
Just change the display format in the
Selection Toolbar (normally at the bottom of the Window) and change the display format to
Samples - see
http://manual.audacityteam.org/o/man/au ... on_Toolbar
Then when you make a selection Audacity will do the counting for you.
WC
Thank you. This helps a lot.
Re: selection and number of samples
Posted: Wed Aug 22, 2012 6:20 pm
by booboo_US
steve wrote:But after counting the samples, don't export the files again or the gap will change.
You will need to import the MP3 files, count the samples, then close the project without saving so that you know the gap length of the files that you have imported and not changed them.
Thank you Steve again. I assume when you say "don't export the files again or the gap will change", you mean I should not recreate the MP3 file? I should open the file in Audacity, get the information, and simply close it without saving anything. Then go to foobar and make the changes. Did I understand you correctly? Thanks.
Re: selection and number of samples
Posted: Wed Aug 22, 2012 6:45 pm
by steve
booboo_US wrote:you mean I should not recreate the MP3 file? I should open the file in Audacity, get the information, and simply close it without saving anything. Then go to foobar and make the changes. Did I understand you correctly? Thanks.
Exactly

Re: selection and number of samples
Posted: Wed Aug 22, 2012 10:53 pm
by booboo_US
steve wrote:booboo_US wrote:you mean I should not recreate the MP3 file? I should open the file in Audacity, get the information, and simply close it without saving anything. Then go to foobar and make the changes. Did I understand you correctly? Thanks.
Exactly

Thanks Steve. One other thing, about these delays and paddings. I have two tracks with the following starting and stopping samples (as reported from Audacity):
track 1: Start=576 End of track=11,548,799 length of track= 11,548,223
track 2: Start=1181 End of track=10,225,151 length of track= 10,223,970
In foobar, when I go to input the MP3 gapless playback info, I get:
track 1: Encoder delay=576 desired length of track=11,546,791
track 2: Encoder delay=576 desired length of track=10,223,763
Can you please help me to see what values to put for the delay and desired length of track to get a true gapless sets of tracks. Thanks for all your help.
Re: selection and number of samples
Posted: Thu Aug 23, 2012 12:10 am
by DVDdoug
track 1: Start=576 End of track=11,548,799 length of track= 11,548,223
track 2: Start=1181 End of track=10,225,151 length of track= 10,223,970
...Can you please help me to see what values to put for the delay and desired length of track to get a true gapless sets of tracks.
It looks like you've selected the audio starting at the end of the gap. So, your gap information should be 576 & 1181.
On a previous post I was asking questions on how to create seamless, gapless MP3 files...
I took a look at your previous post, and you said you were making an MP3 CD for your car... There is a good chance that your car stereo won't read the gap information and simply won't play gaplessly.

If your player doesn't support gapless MP3 playbqack, maybe it supports AAC or WMA. As far as I know, these formats don't suffer from the gap problem.