Melodeon.net Forums

Discussions => Instrument Design, Construction and Repair => Topic started by: Andy Simpson on February 10, 2010, 01:42:27 AM

Title: Electronic tuners
Post by: Andy Simpson on February 10, 2010, 01:42:27 AM
I'm in the market for an electronic tuner that's up to the job of tuning reeds and I'd be interested to hear other's recommendations and experiences. Pray do tell...
Title: Re: Electronic tuners
Post by: Aaro on February 10, 2010, 07:33:05 AM
I use Korg OT12 Orchestra Tuner, good and easy to use and my master tuner is PETERSON 490.
Also worth a look PETERSON V-SAM tuner.
Title: Re: Electronic tuners
Post by: LJC on February 10, 2010, 07:56:53 AM
I've been using the Peterson iphone app and its really good.
Title: Re: Electronic tuners
Post by: Theo on February 10, 2010, 09:01:28 AM
I use the Korg OT12 too and I find it very useful. Electronic tuners are very useful in getting a reed very close to the required pitch, but for the critical final adjustments your ears are the most important thing, either listening for the beat rate you want, or listening for the point where octaves are completely in tune.
Title: Re: Electronic tuners
Post by: IanD on February 12, 2010, 03:58:47 PM
Dirk's Accordion Tuner (software) has several major advantages over hardware tuners:

http://www.dirksprojects.nl/index.php?Lan=english&Page=Tuner/accordion_tuner_22.php (http://www.dirksprojects.nl/index.php?Lan=english&Page=Tuner/accordion_tuner_22.php)

Ian
Title: Re: Electronic tuners
Post by: Andy Simpson on February 13, 2010, 12:53:19 AM
It's going to have to be a piece of hardware I'm afraid as I don't have an iPhone and my computer is rubbish. The thing I'm really looking for in a tuner is that the display doesn't jump around all over the place and I'm told Peterson tuners give very stable readings and I've been considering the Peterson Stroboflip for a while, does anyone have anything to say about it?.

Is this...

http://www.dolphinmusic.co.uk/product/4337-korg-ot120-orchestral-tuner.html

The one you're refering to Theo and Aaro?. I'm quite tempted by that if it is as it's half the price of the Stroboflip.
Title: Re: Electronic tuners
Post by: old geezer on February 13, 2010, 01:27:26 AM
I'm lead to believe that the Korg OT-12 is an old model, there is a second hand one avaliable  here. (http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=220553735499&_trkparms=tab%3DWatching#ht_1032wt_960)

the new model is OT-120 and has very similar specs' (available in the US for around $90 -100 (I saw one on special for $83.50))  prices vary don't they
 the Cm-100L contact mic US$10 - 15

Title: Re: Electronic tuners
Post by: Rob2Hook on February 13, 2010, 11:23:48 AM
Korg OT-120 from GAK = £64 incl VAT
Title: Re: Electronic tuners
Post by: Theo on February 13, 2010, 11:39:34 AM
It's going to have to be a piece of hardware I'm afraid as I don't have an iPhone and my computer is rubbish. The thing I'm really looking for in a tuner is that the display doesn't jump around all over the place and I'm told Peterson tuners give very stable readings and I've been considering the Peterson Stroboflip for a while, does anyone have anything to say about it?.

Is this...

http://www.dolphinmusic.co.uk/product/4337-korg-ot120-orchestral-tuner.html

The one you're refering to Theo and Aaro?. I'm quite tempted by that if it is as it's half the price of the Stroboflip.


Yes that is the one.   The OT 120 is the newer version of the OT12. I have one of each. They have the same functions, but I find the newer model is a little better at locking on to the note over a wider range of pitch, the OT12 tends to have difficulty with the lowest bass reeds.  I chose this one because it has a real analogue needle display, which allows a slightly finer judgement of pitch compared with an LED display.  It also comes with presets for a range of historic temperaments, which I have used occasionally.

I tried an earlier Peterson digital strobe tuner and did not like the display, but I've not tried the stroboflip.   The advantage of the strobe type is that when "in tune" is achieved the display stops moving, which most people find allows finer judgement than deciding when a needle is exactly centred.  My personal view is that in this area of tiny differences the ear is more important than the electronics.
Title: Re: Electronic tuners
Post by: IanD on February 13, 2010, 01:05:37 PM
It's going to have to be a piece of hardware I'm afraid as I don't have an iPhone and my computer is rubbish. The thing I'm really looking for in a tuner is that the display doesn't jump around all over the place and I'm told Peterson tuners give very stable readings and I've been considering the Peterson Stroboflip for a while, does anyone have anything to say about it?.

Is this...

http://www.dolphinmusic.co.uk/product/4337-korg-ot120-orchestral-tuner.html

The one you're refering to Theo and Aaro?. I'm quite tempted by that if it is as it's half the price of the Stroboflip.


AFAIK Dirk's (software) tuner will run on a fairly crappy PC -- you can download the demo version (doesn't do all notes) and try it out for free, I suspect you'll be impressed.

Being able to check tuning while the reeds are in the box even for multiple reeds playing simultaneously is a huge plus. Also you can measure all the reeds in the box and out of the box, create a frequency offset table to the target tuning, then tune to this out of the box knowing that the reeds will be spot on when you put them back in the box.

Ian
Title: Re: Electronic tuners
Post by: Anahata on February 13, 2010, 01:22:33 PM
Being able to check tuning while the reeds are in the box even for multiple reeds playing simultaneously is a huge plus.
Indeed. The signal processing required, while not trivial like one-pitch-at-a-time, isn't rocket science but the fact that somebody's bothered to do it properly and make it into a useful product is impressive.
I wonder what would it would take package the idea into a pocket sized hardware box.
Title: Re: Electronic tuners
Post by: waltzman on February 13, 2010, 01:29:55 PM
It's going to have to be a piece of hardware I'm afraid as I don't have an iPhone and my computer is rubbish. The thing I'm really looking for in a tuner is that the display doesn't jump around all over the place and I'm told Peterson tuners give very stable readings and I've been considering the Peterson Stroboflip for a while, does anyone have anything to say about it?.

Is this...

http://www.dolphinmusic.co.uk/product/4337-korg-ot120-orchestral-tuner.html

The one you're refering to Theo and Aaro?. I'm quite tempted by that if it is as it's half the price of the Stroboflip.

I have used the Peterson stroboflip and it works quite well in my opinion. It gives a clear reading especially when used with a good microphone. I have no experience with Dirk's but I felt that it had more bells and whistles than I needed and I'm really glad that my tuner is separate from my computer.
Title: Re: Electronic tuners
Post by: Theo on February 13, 2010, 02:38:58 PM
I have used the Peterson stroboflip and it works quite well in my opinion. It gives a clear reading especially when used with a good microphone. I have no experience with Dirk's but I felt that it had more bells and whistles than I needed and I'm really glad that my tuner is separate from my computer.

I've just splashed out(£5.99!) for the iPhone version of the Peterson, the iStrobosoft, I'm very impressed.

I can see that Dirks tuner has a lot going for it, but I'm put off by two things, one is finding space for a computer in my workbench,  the other is the user interface which has, shall we say, opportunities for improvement. ::) 

Now if Dirk were to produce his tuner in the form of an iPhone app...
Title: Re: Electronic tuners
Post by: Pete Dunk on February 13, 2010, 05:05:14 PM
I've just splashed out(£5.99!) for the iPhone version of the Peterson, the iStrobosoft, I'm very impressed.

This app also works with the iPod touch but requires an external mic.
Title: Re: Electronic tuners
Post by: IanD on February 13, 2010, 07:23:28 PM
Being able to check tuning while the reeds are in the box even for multiple reeds playing simultaneously is a huge plus.
Indeed. The signal processing required, while not trivial like one-pitch-at-a-time, isn't rocket science but the fact that somebody's bothered to do it properly and make it into a useful product is impressive.
I wonder what would it would take package the idea into a pocket sized hardware box.

The result would probably cost more than running it on a cheap mass-produced netbook, and you'd not only have to build all the hardware including the display but also write all the software for the interface including display drivers etc which is a pretty big job.

Embedded computers only work out cheap if you build a lot of them...
Title: Re: Electronic tuners
Post by: Anahata on February 13, 2010, 07:26:40 PM
Embedded computers only work out cheap if you build a lot of them...

I know, I know... Theo's idea of an iPhone port is a much better version of the sort of thing I had in mind.
Title: Re: Electronic tuners
Post by: IanD on February 13, 2010, 07:37:20 PM
Embedded computers only work out cheap if you build a lot of them...

I know, I know... Theo's idea of an iPhone port is a much better version of the sort of thing I had in mind.

Why not suggest it to Dirk?
Title: Re: Electronic tuners
Post by: Theo on February 13, 2010, 11:44:37 PM
Embedded computers only work out cheap if you build a lot of them...

I know, I know... Theo's idea of an iPhone port is a much better version of the sort of thing I had in mind.

Why not suggest it to Dirk?

I asked him a long while back if he had plans for a mac or linux version, and he was not terribly enthusiastic.  I imagine either of those would be easier than an iphone app, in that the user interface could remain the same.
Title: Re: Electronic tuners
Post by: Owen Woods on February 14, 2010, 02:56:54 AM
Does one need to use a decent microphone with a PC based tuner? And can you tune reeds with only that tuner (and your ears)? I thought from previous threads that you needed a decent microphone at least, which would make it cheaper to use an external tuner than a PC based one.

EDIT: 98EUR?! Woooah.
Title: Re: Electronic tuners
Post by: IanD on February 14, 2010, 10:28:31 AM
Does one need to use a decent microphone with a PC based tuner? And can you tune reeds with only that tuner (and your ears)? I thought from previous threads that you needed a decent microphone at least, which would make it cheaper to use an external tuner than a PC based one.

EDIT: 98EUR?! Woooah.

No you don't, almost any mic will do -- reeds have mostly mid-frequency content, an extended treble and/or bass response (which is what most better-quality mics have) isn't needed.

I did suggest to Dirk that if he wanted to tap the "amateur" reed-tuning market (which is much bigger than the "professional" one) he ought to consider a "lite" version of the tuner, with some restrictions so that pros (who make a living out of melodeon repairs) would still pay for the full version.

I guess an iPod version would be a good fit to this -- pros would need the full PC version to do all the stuff like offset tuning tables, specifying tunings, and producing reports, amateurs just need to be able to tune the reeds (but with the ability to check tuning with multiple reeds sounding).

Ian
Title: Re: Electronic tuners
Post by: Martyn on February 17, 2010, 01:59:06 AM
I've been thinking about buying a new tuner. Regarding the Korg OT-120, is it possible to set it in some way when tuning the tremolo reeds to +20 cents at the bottom end tapering off at the top end? Or does the display tell you how many cents sharp or flat you are?

Martyn
Title: Re: Electronic tuners
Post by: Theo on February 17, 2010, 09:03:17 AM
The display tells you approximately how many cents you are off, but its not very precise, I think the smallest scale division is 10 cents.
Title: Re: Electronic tuners
Post by: TomB-R on February 17, 2010, 09:36:44 AM
The display tells you approximately how many cents you are off, but its not very precise, I think the smallest scale division is 10 cents.

Eek! That's pretty vague! I have no complaints about my Seiko SAT500 which gets used for various things. It gives three levels of readout, coloured lights, a virtual needle, and most useful for reeds, a cents reading. At the moment I'm not desperately worried about less than 1 cent......
Title: Re: Electronic tuners
Post by: Martyn on February 17, 2010, 10:26:24 AM
I'm using a Seiko chromatic tuner at present and I find it ok for tuning the treble end but when I try to tune the low basses the needle waves about like a windscreen wiper. I can usually get around this by repositioning the microphone.
A good thing about it though is that it shows how many cents sharp or flat you are. Ideally I would like a tuner with this feature that can also handle the low basses. Any ideas?

Martyn
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 17, 2010, 07:19:20 PM
I've been working on a software tuner for some time, off and on. I would like to be able to do more than one reed at once, but I haven't worked out how it's done. It's a work in progress at the moment...

(http://forum.melodeon.net/index.php?action=dlattach;topic=3461.0;attach=2685)
Title: Re: Electronic tuners
Post by: Andy in Vermont on February 17, 2010, 07:24:23 PM
I've been working on a software tuner for some time, off and on. I would like to be able to do more than one reed at once, but I haven't worked out how it's done. It's a work in progress at the moment...

(http://forum.melodeon.net/index.php?action=dlattach;topic=3461.0;attach=2685)

Bill,
It looks great -- I like that it gives a readout in Hz as well as +/- cents --- this would be really useful for me (more useful than my Virtual Strobe in fact).  Sorry if this was covered in another thread or a previous statement in this thread, but which platform will the tuner work on?
-Andy
Title: Re: Electronic tuners
Post by: Steve_freereeder on February 17, 2010, 08:59:50 PM
Well done Bill!
I especially like the idea of the menu (presumably interactive) on the right hand side where it tells you what file to use, which other tools are required and a direct, live link through to Theo for when things go wrong. I've never seen that sort of innovation in a tuner before.

PS will there be a Mac version please?
Title: Re: Electronic tuners
Post by: melodeon on February 17, 2010, 11:24:31 PM
Looks good.
Title: Re: Electronic tuners
Post by: Theo on February 17, 2010, 11:41:30 PM
Have you worked out how to do one reed?
Title: Re: Electronic tuners
Post by: Anahata on February 18, 2010, 08:30:12 AM
I especially like the idea of the menu ... where it tells you what file to use, which other tools are required and a direct, live link through to Theo

 ;D*Chortle* ;D

I would like to be able to do more than one reed at once, but I haven't worked out how it's done.

Fourier analysis, I'd guess. Find a FFT algorithm (Fast Fourier Transform) code is where I'd start looking.
Once you have a frequency plot, look for the peaks. A tremolo pair of reeds will be two peaks close to each other.
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 18, 2010, 01:03:52 PM
Have you worked out how to do one reed?

That's one of the problems. The lower reeds generate harmonics at a higher level than the fundamental, so it will tend to latch on to a harmonic, or jump between different harmonics. That's probably the cause of the jumping problem mentioned earlier.

Well done Bill!
I especially like the idea of the menu (presumably interactive) on the right hand side where it tells you what file to use, which other tools are required and a direct, live link through to Theo for when things go wrong. I've never seen that sort of innovation in a tuner before.

PS will there be a Mac version please?

Thanks. The menu is on the signal generator that I was using for testing.  The file link is a b*stard for fine adjustments.  :o
I hadn't though of a live support link. :Ph

If and when I get it working usefully, I will be able to do a Mac version relatively easily, because it will just reuse the same code.

I would like to be able to do more than one reed at once, but I haven't worked out how it's done.

Fourier analysis, I'd guess. Find a FFT algorithm (Fast Fourier Transform) code is where I'd start looking.
Once you have a frequency plot, look for the peaks. A tremolo pair of reeds will be two peaks close to each other.


It uses fourier analysis, together with an algorithm I got from http://www.dspdimension.com (http://www.dspdimension.com/admin/pitch-shifting-using-the-ft/). Unfortunately, the frequencies from two or more reeds tuned only a few cents apart are too close together to be discriminated in that way, I think. I haven't investigated further yet. There may be an expert on digital signal processing out there who can point me in the right direction.
Title: Re: Electronic tuners
Post by: Robin Harrison on February 18, 2010, 01:37:43 PM
I've used this tuner on concertina reeds...............it may be useful for accordions.
  TurboTuner...model ST-122
http://www.turbo-tuner.com/
   The major problem I've found is that for the really low reeds, even using an external mic, it has a hard time locking on to the note. It has sometimes been time consuming however it may be a function of needing more air than my tuning bellows can give.
 Nonetheless, I've found it otherwise easy to use  and accurate to +/- .02 cents.
   Hope this is helpful
               Robin
Title: Re: Electronic tuners
Post by: Anahata on February 18, 2010, 01:48:40 PM
The lower reeds generate harmonics at a higher level than the fundamental.

Automatic level control that does it by adjusting the cutoff frequency of a sharp lowpass filter? (all digitally, of course).
You'll probably need a simple gain-controlled ALC first...

Unfortunately, the frequencies from two or more reeds tuned only a few cents apart are too close together to be discriminated in that way, I think. I haven't investigated further yet. There may be an expert on digital signal processing out there who can point me in the right direction.

I wonder if a first estimate of the approximate band would let you then switch to a fine tuned narrow band fourier transform covering just the range you need, with better discrimination. Not that I'm a DSP expert....
Title: Re: Electronic tuners
Post by: Theo on February 18, 2010, 03:23:46 PM
That's one of the problems. The lower reeds generate harmonics at a higher level than the fundamental, so it will tend to latch on to a harmonic, or jump between different harmonics. That's probably the cause of the jumping problem mentioned earlier.

That happens with many tuners, they tend to pick on the 5th.  I've found that happens a lot with the Strobosoft app on the iphone when I use it for tuning the fiddle.  It can happen with reeds too.

I did a little dsp  many moons ago, the only suggestion I can add to what's already been suggested is work out a typical pattern of harmonics for a free reed then look for this pattern in the signal, rather than just looking for a single peak.

Or taking a completely different strategy, I wonder if Dirk would be interested in collaborating with someone like you Bill,  if you could port his tuner to Mac, or Linux, and at the same time do something about the clunky user interface then we would all be winners, Dirk included.
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 18, 2010, 06:33:55 PM
The lower reeds generate harmonics at a higher level than the fundamental.

Automatic level control that does it by adjusting the cutoff frequency of a sharp lowpass filter? (all digitally, of course).
You'll probably need a simple gain-controlled ALC first...

I will have to explore that idea.

Unfortunately, the frequencies from two or more reeds tuned only a few cents apart are too close together to be discriminated in that way, I think. I haven't investigated further yet. There may be an expert on digital signal processing out there who can point me in the right direction.

I wonder if a first estimate of the approximate band would let you then switch to a fine tuned narrow band fourier transform covering just the range you need, with better discrimination. Not that I'm a DSP expert....


Thanks for that idea - it's pointed me in the right direction, I think. I found a relevant article here http://www.embedded.com (http://www.embedded.com/columns/technicalinsights/17301593?_requestid=286320).
Title: Re: Electronic tuners
Post by: Lars on February 18, 2010, 07:25:03 PM
I've used this one with good results on my old laptop, but still prefer a Peterson:

http://www.seventhstring.com/tuner/tuner.html

It's got all you need for DIY hobby use. It does pick up the 5th from time to time, but not very often at all when doing a single reed at a time. It allows hertz or cent presets, and will show very precise readings when the reed is within a few feet of the mike.

AND: It's free. It does, however, only show readings down to a single cent, and with my old laptop it sometimes need a five second break when the computer is 'thinking' too hard. As always, the ear is the most valuable tool by all means, but I found the tuner to work good enough for home use.
Title: Re: Electronic tuners
Post by: IanD on February 20, 2010, 05:46:04 PM
The lower reeds generate harmonics at a higher level than the fundamental.

Automatic level control that does it by adjusting the cutoff frequency of a sharp lowpass filter? (all digitally, of course).
You'll probably need a simple gain-controlled ALC first...

I will have to explore that idea.

Unfortunately, the frequencies from two or more reeds tuned only a few cents apart are too close together to be discriminated in that way, I think. I haven't investigated further yet. There may be an expert on digital signal processing out there who can point me in the right direction.

I wonder if a first estimate of the approximate band would let you then switch to a fine tuned narrow band fourier transform covering just the range you need, with better discrimination. Not that I'm a DSP expert....


Thanks for that idea - it's pointed me in the right direction, I think. I found a relevant article here http://www.embedded.com (http://www.embedded.com/columns/technicalinsights/17301593?_requestid=286320).

The problem with using FFTs is that if you want good frequency resolution the acquisition time span of the FFT has to be long -- to get 1Hz resolution you need a 1 second acquisition window, so if you're trying to tune a reed within a fraction of a beat per second the response time is very long. This is true whether you use a wideband or a narrowband transform, the delay times the resolution is constant. Overlapped FFTs can help by increasing the update rate but there's still a big delay if you want fine resolution.

A better method for tuning is to use an FFT for coarse frequency estimation and a digital phase-locked-loop (DPLL) for fine frequency measurement, this then breaks the link between frequency resolution and response time. If the FFT has enough resolution to separate out peaks then you can use digital filters and a separate DPLL for each reed and measure several at the same time, like Dirk's tuner does.
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 20, 2010, 07:36:14 PM
The problem with using FFTs is that if you want good frequency resolution the acquisition time span of the FFT has to be long -- to get 1Hz resolution you need a 1 second acquisition window, so if you're trying to tune a reed within a fraction of a beat per second the response time is very long. This is true whether you use a wideband or a narrowband transform, the delay times the resolution is constant. Overlapped FFTs can help by increasing the update rate but there's still a big delay if you want fine resolution.

A better method for tuning is to use an FFT for coarse frequency estimation and a digital phase-locked-loop (DPLL) for fine frequency measurement, this then breaks the link between frequency resolution and response time. If the FFT has enough resolution to separate out peaks then you can use digital filters and a separate DPLL for each reed and measure several at the same time, like Dirk's tuner does.

The algorithm I have been using gets around the FFT size problem by using a medium sized overlapped FFT which gets updated 11025/1024 ~= 11 times a second. It then uses the phase difference between subsequent runs of the FFT to calculate the actual frequency. It appears to be about as accurate as the clock on the sound card. I hadn't thought of using a DPLL, I shall have to look that up. I wrote one more than 25 years ago, but I can't remember how it worked after all that time.
Title: Re: Electronic tuners
Post by: IanD on February 21, 2010, 01:07:02 PM
The problem with using FFTs is that if you want good frequency resolution the acquisition time span of the FFT has to be long -- to get 1Hz resolution you need a 1 second acquisition window, so if you're trying to tune a reed within a fraction of a beat per second the response time is very long. This is true whether you use a wideband or a narrowband transform, the delay times the resolution is constant. Overlapped FFTs can help by increasing the update rate but there's still a big delay if you want fine resolution.

A better method for tuning is to use an FFT for coarse frequency estimation and a digital phase-locked-loop (DPLL) for fine frequency measurement, this then breaks the link between frequency resolution and response time. If the FFT has enough resolution to separate out peaks then you can use digital filters and a separate DPLL for each reed and measure several at the same time, like Dirk's tuner does.

The algorithm I have been using gets around the FFT size problem by using a medium sized overlapped FFT which gets updated 11025/1024 ~= 11 times a second. It then uses the phase difference between subsequent runs of the FFT to calculate the actual frequency. It appears to be about as accurate as the clock on the sound card. I hadn't thought of using a DPLL, I shall have to look that up. I wrote one more than 25 years ago, but I can't remember how it worked after all that time.

That would work as well. Instead of using phase differences (of which frequency bin?), a better method is to use windowing and measure not just the peak FFT bin level but also the ones on either side, then fit these to the shape of the window function to work out the signal frequency offset from the bin centre frequency.

e.g. if centre bin is at F1 and bins either side are equal level, frequency equals F1
       if bins F1 and F2 are same level, frequency is (F1+F2)/2

Ian
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 21, 2010, 04:45:49 PM
The problem with using FFTs is that if you want good frequency resolution the acquisition time span of the FFT has to be long -- to get 1Hz resolution you need a 1 second acquisition window, so if you're trying to tune a reed within a fraction of a beat per second the response time is very long. This is true whether you use a wideband or a narrowband transform, the delay times the resolution is constant. Overlapped FFTs can help by increasing the update rate but there's still a big delay if you want fine resolution.

A better method for tuning is to use an FFT for coarse frequency estimation and a digital phase-locked-loop (DPLL) for fine frequency measurement, this then breaks the link between frequency resolution and response time. If the FFT has enough resolution to separate out peaks then you can use digital filters and a separate DPLL for each reed and measure several at the same time, like Dirk's tuner does.

The algorithm I have been using gets around the FFT size problem by using a medium sized overlapped FFT which gets updated 11025/1024 ~= 11 times a second. It then uses the phase difference between subsequent runs of the FFT to calculate the actual frequency. It appears to be about as accurate as the clock on the sound card. I hadn't thought of using a DPLL, I shall have to look that up. I wrote one more than 25 years ago, but I can't remember how it worked after all that time.

That would work as well. Instead of using phase differences (of which frequency bin?), a better method is to use windowing and measure not just the peak FFT bin level but also the ones on either side, then fit these to the shape of the window function to work out the signal frequency offset from the bin centre frequency.

e.g. if centre bin is at F1 and bins either side are equal level, frequency equals F1
       if bins F1 and F2 are same level, frequency is (F1+F2)/2

Ian

That was what I tried when I first started working on the idea about 5 years ago. It wasn't very useful, I found. So I started searching on the web and found Stephan Bernsee's page on Pitch Shifting Using The Fourier Transform (http://www.dspdimension.com/admin/pitch-shifting-using-the-ft). I just use the bin frequency calculation part. It appears to work quite well, see the debug output below. The phase change calculation is done on all bins using the change in phase from each FFT run to the next as compared to the expected change for that bin. There's a very clear explanation on Stephan's page. I haven't yet found another algorithm that will give a fast accurate frequency measurement.

Code: [Select]
Input 1KHz:
Bin, Bin freq, Calculated f, Phase change, Bin level
370, 995.910645, 999.997736, 0.068878, 0.230102
371, 998.602295, 999.973269, 0.073584, 0.551781
372, 1001.293945, 999.985533, -3.071415, 2.542450
373, 1003.985596, 999.987880, 0.069438, 2.513233
374, 1006.677246, 1010.749854, -3.071271, 0.465892

Input 440.6Hz:
Bin, Bin freq, Calculated f, Phase change, Bin level
162, 436.047363, 440.533345, -1.671452, 0.026782
163, 438.739014, 440.560611, -1.663091, 0.168153
164, 441.430664, 440.552464, 1.478087, 0.568718
165, 444.122314, 440.549081, -1.662557, 0.452225
166, 446.813965, 451.315157, 1.486924, 0.052688
Title: Re: Electronic tuners
Post by: IanD on February 21, 2010, 11:31:24 PM

That was what I tried when I first started working on the idea about 5 years ago. It wasn't very useful, I found. So I started searching on the web and found Stephan Bernsee's page on Pitch Shifting Using The Fourier Transform (http://www.dspdimension.com/admin/pitch-shifting-using-the-ft). I just use the bin frequency calculation part. It appears to work quite well, see the debug output below. The phase change calculation is done on all bins using the change in phase from each FFT run to the next as compared to the expected change for that bin. There's a very clear explanation on Stephan's page. I haven't yet found another algorithm that will give a fast accurate frequency measurement.

Code: [Select]
Input 1KHz:
Bin, Bin freq, Calculated f, Phase change, Bin level
370, 995.910645, 999.997736, 0.068878, 0.230102
371, 998.602295, 999.973269, 0.073584, 0.551781
372, 1001.293945, 999.985533, -3.071415, 2.542450
373, 1003.985596, 999.987880, 0.069438, 2.513233
374, 1006.677246, 1010.749854, -3.071271, 0.465892

Input 440.6Hz:
Bin, Bin freq, Calculated f, Phase change, Bin level
162, 436.047363, 440.533345, -1.671452, 0.026782
163, 438.739014, 440.560611, -1.663091, 0.168153
164, 441.430664, 440.552464, 1.478087, 0.568718
165, 444.122314, 440.549081, -1.662557, 0.452225
166, 446.813965, 451.315157, 1.486924, 0.052688

The window amplitude fitting method worked fine for me in Matlab, but the phase difference method you've described looks like an even better way of solving the problem :-)

Now all you have to do is make it work for two (or more) reeds only a few Hz (or less) apart...

Ian
Title: Re: Electronic tuners
Post by: Owen Woods on February 22, 2010, 01:04:21 AM
I should probably be worried that whilst we have been studying the Fourier Transform and it's applications to Signal Processing I have no idea what you two are talking about :P
Title: Re: Electronic tuners
Post by: IanD on February 22, 2010, 08:57:15 PM
I should probably be worried that whilst we have been studying the Fourier Transform and it's applications to Signal Processing I have no idea what you two are talking about :P

Don't worry, thread drift is like that :-)

Ian
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 23, 2010, 01:27:21 PM
I should probably be worried that whilst we have been studying the Fourier Transform and it's applications to Signal Processing I have no idea what you two are talking about :P

Don't worry, thread drift is like that :-)

Ian

No worse than boats, steam railways, and other boys toys we've had on here...
Title: Re: Electronic tuners
Post by: Owen Woods on February 23, 2010, 04:26:53 PM
I should probably be worried that whilst we have been studying the Fourier Transform and it's applications to Signal Processing I have no idea what you two are talking about :P

Don't worry, thread drift is like that :-)

Ian

No worse than boats, steam railways, and other boys toys we've had on here...

See I can do boats and can follow steam, thanks to a few weeks spent volunteering at Talyllyn, but something relevant to my course? Nah! :P
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 24, 2010, 06:23:00 PM
I should probably be worried that whilst we have been studying the Fourier Transform and it's applications to Signal Processing I have no idea what you two are talking about :P

Don't worry, thread drift is like that :-)

Ian

No worse than boats, steam railways, and other boys toys we've had on here...

See I can do boats and can follow steam, thanks to a few weeks spent volunteering at Talyllyn, but something relevant to my course? Nah! :P

I forgot motorbikes, most remiss of me!  ;D
Title: Re: Electronic tuners
Post by: Bill the Farmer on February 26, 2010, 04:13:53 PM

That was what I tried when I first started working on the idea about 5 years ago. It wasn't very useful, I found. So I started searching on the web and found Stephan Bernsee's page on Pitch Shifting Using The Fourier Transform (http://www.dspdimension.com/admin/pitch-shifting-using-the-ft). I just use the bin frequency calculation part. It appears to work quite well, see the debug output below. The phase change calculation is done on all bins using the change in phase from each FFT run to the next as compared to the expected change for that bin. There's a very clear explanation on Stephan's page. I haven't yet found another algorithm that will give a fast accurate frequency measurement.

Code: [Select]
Input 1KHz:
Bin, Bin freq, Calculated f, Phase change, Bin level
370, 995.910645, 999.997736, 0.068878, 0.230102
371, 998.602295, 999.973269, 0.073584, 0.551781
372, 1001.293945, 999.985533, -3.071415, 2.542450
373, 1003.985596, 999.987880, 0.069438, 2.513233
374, 1006.677246, 1010.749854, -3.071271, 0.465892

Input 440.6Hz:
Bin, Bin freq, Calculated f, Phase change, Bin level
162, 436.047363, 440.533345, -1.671452, 0.026782
163, 438.739014, 440.560611, -1.663091, 0.168153
164, 441.430664, 440.552464, 1.478087, 0.568718
165, 444.122314, 440.549081, -1.662557, 0.452225
166, 446.813965, 451.315157, 1.486924, 0.052688

The window amplitude fitting method worked fine for me in Matlab, but the phase difference method you've described looks like an even better way of solving the problem :-)

Now all you have to do is make it work for two (or more) reeds only a few Hz (or less) apart...

Ian

I think when I was working on this before I didn't really know what I was doing and I didn't have a tool like Matlab. I have been doing some testing with a DPLL and can get very similar results. You have to filter and average the output to get the same level of accuracy, and you need to know where to kick the DPLL off. However it will lock on to a tone and stay locked in the presence of another extremely close tone at the same level. Next up, Chrip-Z transforms.  ;D :Ph

Edit: There's a couple of really useful pages on Interactive Digital Phase Locked Loop Design (http://www-users.cs.york.ac.uk/~fisher/mkpll) and Interactive Digital Filter Design (http://www-users.cs.york.ac.uk/~fisher/mkfilter) on Tony Fisher's (http://www-users.cs.york.ac.uk/~fisher) pages. However, when I went to send him an email to say how useful they were, I discovered that he died 10 years ago. He appears to have been quite a character.
Title: Re: Electronic tuners
Post by: diatonix on February 26, 2010, 11:21:46 PM
I cannot but recommend Dirks' accordion tuner. It's very accurate, easy to get used to and a big time saver.
Title: Re: Electronic tuners
Post by: Andy Simpson on March 05, 2010, 12:12:30 AM
I've managed to lay my hands on a slightly used Stroboflip and that'll do me for the time being but I'll probably spring for the full version of Dirk's if I ever get a decent computer.
Title: Re: Electronic tuners
Post by: Bill the Farmer on June 23, 2010, 04:19:21 PM
Beta version of my tuner mentioned below released on Google code (http://ctuner.googlecode.com).

This version shows the spectrum of the current note when zoomed in, so you can see more than one reed. You need to check that the audio input clock is accurate, two out of three laptops I tested were up to 7% out. I have included a facility to adjust for this.
Title: Re: Electronic tuners
Post by: Owen Woods on June 24, 2010, 12:19:14 AM
How reliable is it? I may try playing around with it tomorrow.
Title: Re: Electronic tuners
Post by: Bill the Farmer on June 24, 2010, 01:23:29 PM
I found another bug already, but it only affects saving the correction value   :-[
Title: Re: Electronic tuners
Post by: diatonix on June 24, 2010, 08:08:38 PM
Good tuning devices are certainly helpful tools, but they do not compensate for lack of skill and experience. It takes many years to become a good tuner, with or without electronic device. An experienced tuner should be able to tune any instrument, chromatic or diatonic, by ear, starting from the one note he or she fetches from a chosen device. In the old days we even used the telephone and its dialling tone (a1=440Hz)!
Title: Re: Electronic tuners
Post by: Bill the Farmer on June 25, 2010, 12:44:21 PM
I once tuned someone's autoharp using that method. Haven't seen one of those for a long time.

I just tested the dial tone, looks like it's 450Hz these days. Back in the day it would have come from a rotary machine.
Title: Re: Electronic tuners
Post by: Broadland Boy on June 25, 2010, 07:29:42 PM
I found another bug already, but it only affects saving the correction value   :-[

I've installed it and tried it out Bill and it seems to work well on my laptop with a relatively cheap mic !

There are some clever people 'of this Parish'   :|glug

Richard

Title: Re: Electronic tuners
Post by: cboody on June 27, 2010, 05:34:03 AM
happy to beta for you on the Mac when you get a round to it.  Lots of years of doing that sort of thing.  PM if I can be of help.
Title: Re: Electronic tuners
Post by: Bill the Farmer on June 27, 2010, 10:54:28 AM
happy to beta for you on the Mac when you get a round to it.  Lots of years of doing that sort of thing.  PM if I can be of help.

My not-a-mac is broke at the moment, when I get it working I shall start on the mac version.
Title: Re: Electronic tuners
Post by: Bill the Farmer on August 10, 2010, 09:52:40 AM
Having had a good long time using your tuner, for which I am truly grateful, I have a few user observations which, should you go to a gamma version, you might consider.

On the laptop, the screen is a wee bit on the compact side
Being able to freeze or latch the most recent frequency info while you jot it down - or feed it into Excel in my case
(the next significant noise it hears alters the display, OK if you don't have kids in the house I guess !)
As a consequence of using Excel to record the current state of play, being able to use Ctrl+c on the data to Ctrl+v into the spreadsheet, notepad or other means of recording the data would be very useful.
The spectrum display when zoomed was too magnified for any of my way off tune bass reeds to be seen and when unzoomed, the reverse  ;) ...
Richard

I've put an updated version (http://code.google.com/p/ctuner/) up, which addresses some of Broadland Boy's comments.


The zoomed in spectrum shows about +-50cents around the current note. If it's out more than that it should jump to the next higher or lower note. At low frequencies there are only a few sample points on the spectrum display, so it's not so clear.

Bill
Title: Re: Electronic tuners
Post by: Broadland Boy on August 10, 2010, 12:20:33 PM
What a Star !!

Will download and try out the enhancements  (:)

Thank you Bill

Richard
Title: Re: Electronic tuners
Post by: Bill the Farmer on October 01, 2010, 09:52:25 AM
I have released beta mac version (http://ctuner.googlecode.com). This has not yet been tested on a real Mac. I'm waiting for my daughter to get back from across the pond.
Title: Re: Electronic tuners
Post by: Steve_freereeder on October 01, 2010, 10:15:49 AM
I have released beta mac version (http://ctuner.googlecode.com). This has not yet been tested on a real Mac. I'm waiting for my daughter to get back from across the pond.
Excellent, Bill! Thanks!
I've downloaded it, but haven't yet had time to do anything with it. I look forward to trying it out. Does it work on both Intel and PowerPC Mac processors? I will be interested to see how it compares with my Peterson virtual strobe tuner.
Title: Re: Electronic tuners
Post by: Bill the Farmer on October 01, 2010, 11:45:00 AM
I have uploaded a universal binary version. This isn't a new version, just a rebuild. I forgot about PowerPC Macs.  :|bl   :|glug
Title: Re: Electronic tuners
Post by: rgammage on October 10, 2010, 10:17:30 PM
Hello

I wish to add my penny worth. I have used several tuners and, in my experience, many electronic designs lock onto which ever harmonic is the 'loudest'. If you use 'Audacity', a free piece of software, you can clearly see that the output of a single reed is very close to that of a 'saw-tooth' which mathematically includes every harmonic.

If we take 'A' for example, (440Hz) it will have harmonics at 880, 1320, 1760, etc ... of which only 440, 880, 1760 are 'A', 1320 is close to 'E' .... if this 'E' is louder, and it can be, than the fundamental, some electronic designs will show the output to be 'E' and it is this that causes the jump ..... (the next octave contains 3 non 'A' harmonics).

The Peterson tuner for the PC and the design which 'looks' similar also has this failing. (They are great for any instrument giving out a sine wave like a guitar) Peterson, bought out Conn who designed a tuner based upon a stroboscopic effect. The tuner spins a wheel at a rate that relates to the note you wish to check .... the sound is picked up and it is set to light a neon on the peaks of the sound if the light appears steady then the sound includes the requested note.

Peterson still make a tuner based upon this effect but they are expensive.

Dirks Tuner has, in my opinion, some wonderful features for working on melodeons and accordians. It can identify the two, or more, reeds on the treble how far apart any tremelo is so it is possible to identify whether the tremolo is high or low. On the bass end any chords can be identified checking the accuracy of each note the chord contains.

I will be using the Conn for single note accuracy, Dirks for checking melodeons and an old electronic device for speed ... take your choice.

Richard
Title: Re: Electronic tuners
Post by: Theo on October 10, 2010, 11:41:20 PM
Peterson, bought out Conn who designed a tuner based upon a stroboscopic effect. The tuner spins a wheel at a rate that relates to the note you wish to check ....

Most electronic tuners also offer this feature where you can pre-set the note you wish to tune.
Title: Re: Electronic tuners
Post by: Palle on February 17, 2013, 10:12:25 AM
I use Korg OT12 Orchestra Tuner, good and easy to use and my master tuner is PETERSON 490.
Also worth a look PETERSON V-SAM tuner.

I found a Korg WT12 - see photo. Will this be a good tuner for me? I think it looks very classic.
Palle
Title: Re: Electronic tuners
Post by: Martyn on February 17, 2013, 11:38:14 AM
I use a Korg OT120 but I much prefer using one of these
http://www.ebay.co.uk/itm/Seiko-SAT501SL-Electronic-Chromatic-Tuner-/200895379267?pt=UK_Guitar_Accessories&hash=item2ec64c3743&_uhb=1

It's incredibly accurate and fast, has plenty of useful features and if you plug in an external mic (which can be re-positioned) will also deal with the lowest frequencies well. It gives me the results I and my customers require but of course whatever tuner you decide to use, let your ears make the final decision.

Personally I would find Dirk's tuner and all of that sort of thing totally unnecessary and a major distraction from the job in hand.

Martyn
Title: Re: Electronic tuners
Post by: Malcolm Clapp on February 17, 2013, 12:08:29 PM
I found a Korg WT12 - see photo. Will this be a good tuner for me? I think it looks very classic.
Palle

Used one for years till it fell from the workbench once too often.
(Actually it wasn't falling from the workbench that cause the damage; it was when it hit the ground....)

Great tuner in it's day. And heaps more expensive than the modern Seiko when I bought mine new (1979?). Around 100 quid from memory.
Analogue of course, and some very delicate moving parts. Don't know when they were discontinued, but maybe getting a bit old in the tooth by now.

Recommend you check it against another tuner for accuracy and response speed, then if it is OK and cheap enough, why not....

These days I use APTuner on an old desktop Win XP in the workshop; ditto on a laptop when I do house calls. Big advantage is the size of the screen dispaly on the monitor. And a little less likely to fall off the bench!

Title: Re: Electronic tuners
Post by: Theo on February 17, 2013, 12:33:51 PM
These days I use APTuner on an old desktop Win XP in the workshop; ditto on a laptop when I do house calls. Big advantage is the size of the screen display on the monitor. And a little less likely to fall off the bench!

If you have an iphone or ipad then the Peterson iStrobosoft is superb, and only a few pounds.
Title: Re: Electronic tuners
Post by: Chris Ryall on February 17, 2013, 01:10:16 PM
Isn't it just! I don't tune myself and clicked buy as I was a bit bored, and also could 'feel' a couple of notes as "out" on the van der Aa. Spot on!  Theo's advised me to allow for some more "settlement" before a general re-tune, but I don't begrudge £7 spent on this, just as a toy!

Also interesting to get real time feedback on what happens when I bend a note  ;)

Another recommendation ..
Title: Re: Electronic tuners
Post by: YorkieKen on February 17, 2013, 01:29:35 PM
Agreed ! peterson istrobe is the most accurate tuner I have. I wish this had been available before I bought all the others which are now stuffed in a drawer.  :'(
Ken.
Title: Re: Electronic tuners
Post by: Chris Ryall on February 17, 2013, 01:47:03 PM
wot! it's accurate as well!  :D
Title: Re: Electronic tuners
Post by: Andy Simpson on February 17, 2013, 01:49:28 PM
Wow, blast from the past....

As a post-script to this thread, it might have been super accurate but I never quite along with the Stroboflip and the display gave me headaches if I looked at it for too long so I sold it and bought an OT-120.
Title: Re: Electronic tuners
Post by: Theo on February 17, 2013, 02:12:01 PM
Andy, I completely agree with you about the Stroboflip display. The iphone/ipad app I find very easy on the eye.
Title: Re: Electronic tuners
Post by: YorkieKen on February 17, 2013, 02:19:11 PM
And very easy on the pocket!  :-*
Title: Re: Electronic tuners
Post by: Chris Ryall on February 17, 2013, 05:18:18 PM
For any who haven't had the pleasure .. It sort of radiates "I'm a fast Fourier transformer, and I use the Butterfly Algorithm".  Each to his own I suppose. Defo good kit otherwise  :|glug
Title: Re: Electronic tuners
Post by: Pete Dunk on February 17, 2013, 10:43:37 PM
I requested a StroboFlip as a present some years ago, I was bowled over by the accuracy (using an external microphone) of on or near pitch notes but nothing told me how far off I was if the note was well out of tune. Today I have the StroboSoft app and it tells me straight away how many cents off the note is, the problem with that is the inability of the iPhone to be a telephone at the same time, it can't.

So, who's going to write an app that lets me make calls on the StroboFlip?  >:E :|glug
SimplePortal 2.3.5 © 2008-2012, SimplePortal