Reply by robert bristow-johnson October 6, 20052005-10-06
in article 1128485829.779840.257640@f14g2000cwb.googlegroups.com,
rhnlogic@yahoo.com at rhnlogic@yahoo.com wrote on 10/05/2005 00:17:

> robert bristow-johnson wrote: >> in article 1128463351.547524.153790@g47g2000cwa.googlegroups.com, >> rhnlogic@yahoo.com at rhnlogic@yahoo.com wrote on 10/04/2005 18:02: >>> >>> Why, in this prediction method, is the first large peak used, instead >>> of another slightly larger peak higher in frequency if available? >> >> i tried to explain it. imagine two periodic waveforms (they don't have to >> be a single sinusoid, just periodic) that are exactly one octave apart. let >> the lower frequency waveform be, say, -60 dB as loud as the higher frequency >> waveform. now add them together. which waveform do you think you are >> hearing when you hear the sum? >> >> what you have is a new periodic waveform that is at the same fundamental >> frequency as the lower waveform, but all of the odd harmonics are much, much >> lower in amplitude than the evens. if you do autocorrelation, which peak is >> bigger, the first peak (corresponding to 1/2 the period) or the second peak >> (corresponding to the period)? > > Hmmm... By "first large peak", do you mean the first in an ascending > frequency sort, or the first in an ascending period sort? If the > latter, then I'm mostly in agreement with you.
well, i guess it's more the latter. i mean ascending "lag", which is a measure of time difference between the two signals being correlated. the first really good peak corresponds to a lag that is equal to the period of the periodic tone. but if there is a very small amplitude subharmonic (so small in amplitude that you can't hear it) of one octave lower (twice the period) added, the second peak will be bigger but only slightly.
> In my experiments with resonant sounds, I do not use the chosen > autocorrelation peak directly, but use it to calculate an integer > divider for the largest interpolated frequency peak for the pitch > estimate. But I haven't yet done experiments to find out which pitch > would be preferred by a trained ear on any slightly inharmonic tones.
significantly inharmonic tones, i make no claim regarding. that's another can of worms. off to AES show in NYC (it's 4 am). see you guys there or thereafter. -- r b-j rbj@audioimagination.com "Imagination is more important than knowledge."
Reply by rhnl...@yahoo.com October 5, 20052005-10-05
robert bristow-johnson wrote:
> in article 1128463351.547524.153790@g47g2000cwa.googlegroups.com, > rhnlogic@yahoo.com at rhnlogic@yahoo.com wrote on 10/04/2005 18:02: > > robert bristow-johnson wrote: > > ... > >>> Didier A Depireux wrote: > >>> > >>>> the pitch of most sounds, except for alternating click trains around > >>>> 200Hz > >>>> for which there's an ambiguity, can be predicted from the largest peak > >>>> of the autocorrelation of the half-wave rectified waveform. > > > > Why, in this prediction method, is the waveform half-wave rectified > > before autocorrelation? (which seems to throw away information...) > > i might wonder the same question. > > >> ... except for the "octave problem", the pitch of > >> these sounds can be predicted by the first very large peak of the > >> autocorrelation, where this "first large peak" is either the largest peak > >> or within a certain limit of difference in amplitude from the largest peak > >> (other than the peak at the zero lag). > > > > Why, in this prediction method, is the first large peak used, instead > > of another slightly larger peak higher in frequency if available? > > i tried to explain it. imagine two periodic waveforms (they don't have to > be a single sinusoid, just periodic) that are exactly one octave apart. let > the lower frequency waveform be, say, -60 dB as loud as the higher frequency > waveform. now add them together. which waveform do you think you are > hearing when you hear the sum? > > what you have is a new periodic waveform that is at the same fundamental > frequency as the lower waveform, but all of the odd harmonics are much, much > lower in amplitude than the evens. if you do autocorrelation, which peak is > bigger, the first peak (corresponding to 1/2 the period) or the second peak > (corresponding to the period)?
Hmmm... By "first large peak", do you mean the first in an ascending frequency sort, or the first in an ascending period sort? If the latter, then I'm mostly in agreement with you. If the former, then I still don't understand. In my experiments with resonant sounds, I do not use the chosen autocorrelation peak directly, but use it to calculate an integer divider for the largest interpolated frequency peak for the pitch estimate. But I haven't yet done experiments to find out which pitch would be preferred by a trained ear on any slightly inharmonic tones. IMHO. YMMV. -- rhn A.T nicholson d.O.t C-o-M
Reply by robert bristow-johnson October 5, 20052005-10-05
in article 1128463351.547524.153790@g47g2000cwa.googlegroups.com,
rhnlogic@yahoo.com at rhnlogic@yahoo.com wrote on 10/04/2005 18:02:

> robert bristow-johnson wrote: > ... >>> Didier A Depireux wrote: >>> >>>> the pitch of most sounds, except for alternating click trains around >>>> 200Hz >>>> for which there's an ambiguity, can be predicted from the largest peak >>>> of the autocorrelation of the half-wave rectified waveform. > > Why, in this prediction method, is the waveform half-wave rectified > before autocorrelation? (which seems to throw away information...)
i might wonder the same question.
>> ... except for the "octave problem", the pitch of >> these sounds can be predicted by the first very large peak of the >> autocorrelation, where this "first large peak" is either the largest peak >> or within a certain limit of difference in amplitude from the largest peak >> (other than the peak at the zero lag). > > Why, in this prediction method, is the first large peak used, instead > of another slightly larger peak higher in frequency if available?
i tried to explain it. imagine two periodic waveforms (they don't have to be a single sinusoid, just periodic) that are exactly one octave apart. let the lower frequency waveform be, say, -60 dB as loud as the higher frequency waveform. now add them together. which waveform do you think you are hearing when you hear the sum? what you have is a new periodic waveform that is at the same fundamental frequency as the lower waveform, but all of the odd harmonics are much, much lower in amplitude than the evens. if you do autocorrelation, which peak is bigger, the first peak (corresponding to 1/2 the period) or the second peak (corresponding to the period)? answer those two questions and i think you answer your own.
> Thanks.
FWIW. -- r b-j rbj@audioimagination.com "Imagination is more important than knowledge."
Reply by rhnl...@yahoo.com October 4, 20052005-10-04
robert bristow-johnson wrote:
...
> > Didier A Depireux wrote: > > > >> the pitch of most sounds, except for alternating click trains around > >> 200Hz > >> for which there's an ambiguity, can be predicted from the largest peak > >> of the autocorrelation of the half-wave rectified waveform.
Why, in this prediction method, is the waveform half-wave rectified before autocorrelation? (which seems to throw away information...)
> ... except for the "octave problem", the pitch of > these sounds can be predicted by the first very large peak of the > autocorrelation, where this "first large peak" is either the largest peak > or > within a certain limit of difference in amplitude from the largest peak > (other than the peak at the zero lag).
Why, in this prediction method, is the first large peak used, instead of another slightly larger peak higher in frequency if available? Thanks. -- rhn A.T nicholson d.O.t C-o-M
Reply by rhnl...@yahoo.com October 3, 20052005-10-03
Richard Dobson wrote:
> Didier A. Depireux wrote: > > As the protocols say, "at confortable levels", i.e. the levels were > > randomized, and the loudness of the sounds were perceived to be between > > about 60 and 70 dB. > > I still don't get what your experiment is trying to establish. What is the point > of randomizing levels? If you want to eliminate pitch-shift effects due to SPL, > you need to ensure delivery levels at the documented neutral point of 60dBSPL.
As far as some real-world implementations are concerned, this is close to an excessive level of detail for DSP pitch estimation. In many voice or music measurement or characterization applications, the microphone is uncalibrated and/or the gain level is unknown (random cell phone gate-way'd through some VOIP connection, stage mic that's been moved by the performer and eq'd by the sound-guy, etc.). A statistical distribution of possible pitch perceptions in various generic situations would seem to be more useful than something that only applies to 60dB +- 0.5dB. IMHO. YMMV. -- rhn A.T nicholson d.O.t C-o-M
Reply by Richard Dobson October 3, 20052005-10-03
Didier A. Depireux wrote:

> In comp.dsp Richard Dobson <richarddobson@blueyonder.co.uk> wrote: > >>Didier A. Depireux wrote:
..
> As the protocols say, "at confortable levels", i.e. the levels were > randomized, and the loudness of the sounds were perceived to be between > about 60 and 70 dB. >
I still don't get what your experiment is trying to establish. What is the point of randomizing levels? If you want to eliminate pitch-shift effects due to SPL, you need to ensure delivery levels at the documented neutral point of 60dBSPL. And this level should not be left to "perception", but measured at the listening position using a proper SPL meter. Randomising level will merely have the effect of swamping your eperimental data with errors generated by the procedure. With your SPL range of 10dB, pitch-shift error will be around +-8Cents, according the the reference I Cited. As I see it, the problem you have is that unless the reference 200Hz tone is the same level as the resultant tone of the cluster (i.e. much lower level than the cluster itself), pitch-perception aretefacts will arise. ..
> The experiment I described have been performed many times before me, by > people much better at psychophysics than me. We randomized the levels of the > tone complex and the pure tone, or course. We also played the sounds on high > quality headphones. Any non-linearity in your speaker will induce a pitch at > 200Hz, since the envelope of the sound itself is periodic with a period of > 200Hz, quite different from the pitch of the sound.
.. Well, I assume we are all assuming pro-quality equipment here! It would take a pretty ropey speaker to generate such an artefact, whereas it is a given for the highly non-linear standard human ear. I have Tannoy dual-concentrics here, and AKG K270 phones. Not the most expensive, but very good! The main argument I have with all this however is simply: those three tones do not have "a pitch"! Who/what says they should? They are still low enough in freqency, and far enough apart, to be clearly audible as three distinct high tones, though too inharmonic (out of tune) to fit any 12tone ET scale (three erratic piccolos?). I suppose to a musically untrained ear they might seem to blend into some quasi-bell-like mass, which would be more likely of course if they are given a common exponential decay envelope etc. The 200Hz resultant tone is of course inharmonic to all three high tones; this will nicely reinforce the bell suggestion, and thus persuade subjects that the sound must have a pitch. Just deliver a single 200Hz tone successively at 60dBSPL and 70dBSPL and you will hear a pitch difference; that then defines the maximum accuracy of any experimental results. Richard Dobson
Reply by robert bristow-johnson October 3, 20052005-10-03
in article 1128108957.941068.99840@g47g2000cwa.googlegroups.com, fizteh89 at
dt@soundmathtech.com wrote on 09/30/2005 15:35:

> Didier A Depireux wrote: > >> the pitch of most sounds, except for alternating click trains around 200Hz >> for which there's an ambiguity, can be predicted from the largest peak of >> the autocorrelation of the half-wave rectified waveform. > > This statement of yours is pure nonsense.
i dunno if it is *pure* nonsense, but the statement is not correct for generalized musical tones. except for the "octave problem", the pitch of these sounds can be predicted by the first very large peak of the autocorrelation, where this "first large peak" is either the largest peak or within a certain limit of difference in amplitude from the largest peak (other than the peak at the zero lag). the "octave problem" can be created when two synchronous waveforms, exactly one octave apart, are added. if the lower frequency tone is extremely small relative to the higher tone, no one will hear it and only the higher tone will determine what we *think* the pitch is. but, strictly mathematically, the period of the combined tones is at the inaudible lower tone and that is where the highest peak will be unless one does something about it in the PDA. -- r b-j rbj@audioimagination.com "Imagination is more important than knowledge."
Reply by Didier A. Depireux October 3, 20052005-10-03
In comp.dsp fizteh89 <dt@soundmathtech.com> wrote:
> Didier A Depireux wrote:
> >the pitch of most sounds, except for alternating click trains around 200Hz > >for which there's an ambiguity, can be predicted from the largest peak of > >the autocorrelation of the half-wave rectified waveform.
> This statement of yours is pure nonsense.
> One can easily have two different periodic waveforms with identical > upper (positive) halfs and different lower (negative) halfs, where the > period of the first waveform is, for example, twice the period of the > second waveform, leading to octave difference in pitch perception, but, > according to your statement above, they should have identical pitches.
Let me think about this. As you know, you can get funny thing by changing the polarity of parts of a waveform, so that for instance the pitch of a sequence of clicks equals its frequency, but if you alternate the polarity of the clicks (+-+-) you get a change by an octave for certain frequency range. I came to this newsgroup looking for answers about non-linear filtering, and got distracted when I saw the word "pitch" in the title of one of the threads! Didier -- Didier A Depireux ddepi001@umaryland.edu didier@isr.umd.edu 20 Penn Str - S218E http://neurobiology.umaryland.edu/depireux.htm Anatomy and Neurobiology Phone: 410-706-1272 (lab) University of Maryland -1273 (off) Baltimore MD 21201 USA Fax: 1-410-706-2512
Reply by Didier A. Depireux October 3, 20052005-10-03
In comp.dsp Richard Dobson <richarddobson@blueyonder.co.uk> wrote:
> Didier A. Depireux wrote:
> I understand what you are at here. But: > What levels are you playing these two sounds at? And for how long?
As the protocols say, "at confortable levels", i.e. the levels were randomized, and the loudness of the sounds were perceived to be between about 60 and 70 dB.
> proposition is that the pitch rise you are measuring is really an indirect > measure of the perceived flattening of the single 200 tone. I suggest therefore
The experiment I described have been performed many times before me, by people much better at psychophysics than me. We randomized the levels of the tone complex and the pure tone, or course. We also played the sounds on high quality headphones. Any non-linearity in your speaker will induce a pitch at 200Hz, since the envelope of the sound itself is periodic with a period of 200Hz, quite different from the pitch of the sound.
> will be heard by most people (including me) to have something like a > quarter-tone difference. But it is the louder tone being perceived as lower, > rather than the quieter tone being perceived as higher. I was under the > impression that this is a well-documented phenomenon.
Yes, we know about these things. I don't know that usenet is the best place to get peer-review, so I definitely didn't give protocol details here. Didier -- Didier A Depireux ddepi001@umaryland.edu didier@isr.umd.edu 20 Penn Str - S218E http://neurobiology.umaryland.edu/depireux.htm Anatomy and Neurobiology Phone: 410-706-1272 (lab) University of Maryland -1273 (off) Baltimore MD 21201 USA Fax: 1-410-706-2512
Reply by Richard Dobson October 1, 20052005-10-01
rhnlogic@yahoo.com wrote:
..
>>I have just done a test with Csound, and it matters a great deal how >>loud the single 200Hz tone is. > > > The experiment wasn't about whether 200 Hz was a match, but whether > (at some volume level or duration) something around 218 Hz sounded > like a better match to most people. > > It's the difference between how the brain evaluates an exact match > in very high harmonics, and an approximate match of assumed much lower > harmonics.
But without knowledge of the SPL at which these sounds are presented, this "experiment" tells us virtually nothing, other than proving what is already known: that pitch perception changes with SPL. This really ~must~ be taken into account when performing such tests, otherwise the test is invalidated and, worse, may be used as the basis for an unsound theory of composite pitch perception. In short, "how the brain evaluates" is affected by SPL. "At some volume level or duration" is far too vague and lax to be the basis for a scientific conclusion. I now have references for the pitch shift phenomenon: "Acoustics and Pshycoacoustics", D.M. Howard,J. Angus, Focal Press 2001 (diagram and text, Page 135) cites source as: "The Science of Sound", T.D. Rossing, Addison Wesley, 1989. In brief: only at 60dBSPL are all pitches heard without distortion. At 90dBSPL a 200 Hz tone is heard about 20Cents lower (my "almost a quater-tone"), and a 4KHz tone is heard about 20 Cents higher. At lower levels, e.g. 40dBSPL, the same 200Hz tone is heard about 12Cents higher, and the 4KHz tone about 25Cents lower. The printed diagram indicates that a tone of 2KHz is heard without shift, al all SPLs. For everything below and above, there is a "bow-tie" pattern centred on 0Cents shift, at 60dBSPL. This corresponds to a "normal" speech listening level. That is, it is not very loud at all, and it would be very easy to present sine tones well above 60dBSPL; this is what I suspect is the case here. We do not even know whether the sounds are presented over speakers or headphones. Now as far as I can tell, this experiment has only been done with direct tones, not with resultant tones from a sinusoid cluster, so there is very likely new research that can usefully be done here (and highly relevant to orchestral wind players such as myself!); but without precise consideration of the delivery SPL, any such experiment is IMO fatally flawed. Once we know that these experiments have been conducted at a delivery level of 60dBSPL, we can start to draw valid conclusions from the data. Richard Dobson