LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-17-2009, 10:59 AM   #1
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Rep: Reputation: 32
speaker-test A440


Hi,

I'm trying to get a steady output of A=440 c.p.s. from my speakers to calibrate a device. The only command I'm aware of in Linux is 'speaker-test'. I've been using the command:

speaker-test -f 440 -t sine


When the tone initiates, it is 0.08 cents low, then after a moment comes up to exactly A440, then there is a quick 'pop' or 'tick', and the the tone resets itself and is again beginning at -0.08 cents, then come up again to being correct to within 0.00 cts of A440.

I think that if the tone would be allowed to just continue without apparently resetting itself, I could get a stable A440 output.

Is there a way I could have the tone go on without resetting, or, is there another way to get this steady output from my speakers?

Also, I've also tried:


speaker-test -f 440.5 -t sine
speaker-test -f 440.1 -t sine


and so on without any variation in the output. However,


speaker-test -f 441 -t sine


definitely does give me a different output.

Does anyone know if 'speaker-test' will allow for cps to be output with accuracy beyond the other side of the decimal? ( -f 440.00 )

Thanks,
-Joe

Btw, the device I'm measuring with does not have the ability to output sound.

Last edited by joegumbo; 06-17-2009 at 11:36 AM. Reason: Additional info request
 
Old 06-17-2009, 11:58 AM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
I don't know if it's any use to you but Audacity has a tone generator built in. There's a Slackbuild here. The package has a lot more besides the tone generator and if you are doing audio stuff is definitely worth looking at.

Last edited by bgeddy; 06-18-2009 at 01:33 AM.
 
Old 06-17-2009, 08:33 PM   #3
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Thank you bgeddy!

I installed Audacity as you suggested. In order to get an exact A=440 tone, I have Audacity set at 440.376Hz. This gives the output of A=440 with a fluctuation of +/- 0.01 cents.

Thanks for the advice!

-Joe
 
Old 06-18-2009, 10:53 AM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
You could precalculate a pcm file with the tone and then just play it

I read somewhere that PC hardware audio playback accuracy is poor, especially when poor quality interpolation is used to transcode from 44.1 KHz .wav to the 48 KHz or 96 KHz hardware operation of most soundcard hardware

Sox is the best tool for precision conversion

David in KL
 
Old 06-19-2009, 08:14 PM   #5
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Thank you David!

I will investigate sox.

Thanks,
-Joe
 
Old 06-20-2009, 06:27 AM   #6
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
I get a strange warning on one of my Ubuntu machines:

pulseaudio[3271]: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 44099 Hz

44100 Hz is a bodge on most modern hardware, dvd players are also fundamentally nx48 KHz machines and are known to not play audio cds particularly well

If you want high precision you should experiment with native 48 KHz encoding
I don't have perfect pitch and would never hear 0.1 cents off
 
Old 06-20-2009, 10:20 AM   #7
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
I was able to do what I wanted to do with Audacity.

David, you could probably hear it with a little practice and a reference pitch sounding at the same time. The higher the frequency, the more Hz per cent. It would be easier to hear a heterodyne or beat in the higher range.

In my case, I used an extremely accurate device to measure and tweak the output of the speakers. I then used the speaker output to calibrate another device +/- 0.01 cents (or 1/10,000th of a half-step) while still verifying the output with the first device.

Last edited by joegumbo; 06-20-2009 at 10:28 AM.
 
Old 06-20-2009, 10:27 AM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
Hi joegumbo - just out of interest - what is it your doing with all this ? (Being very nosey I know). Tell me to naff off if you don't feel like saying
 
Old 06-20-2009, 10:37 AM   #9
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Sure.... No secrets here.

I've been tuning and repairing pianos for a living. I was originally taught by ear just over 30 years ago, but over the last 10 years, I've been using a device called a Verituner <www.veritune.com> along with my ear. We check each other. (The VT is a dedicated tuning device.)

Lately, I decided that I wanted to test drive the trial version of TuneLab software <www.tunelab-world.com>, but it requires calibration.... because of issues relating to soundcards.

The thing that interested me in TuneLab, is that it will allow continuing the 4:2 octaves into the bass the whole way down to A0. (As far as I can tell from the display, the VT measures only partials 6 through 12 at A0.) Most pianos prefer at least 6:3 in the bass, but a few really shine with 4:2 in the entire bass (plus tweaking)... IMO.

Last edited by joegumbo; 06-20-2009 at 03:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound only works following speaker-test Jetgunner Linux - Hardware 1 10-31-2008 07:46 AM
How could I make USB speaker as default/master speaker ? czy11421 Linux - Hardware 1 09-02-2007 10:59 AM
speaker-test error...what now? jw_wvu Debian 0 05-09-2006 10:08 PM
Left speaker does not speak - not speaker issue. Hardware or software issue? Svip Linux - Hardware 3 05-03-2006 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration