Csound Csound-dev Csound-tekno Search About

[Csnd] pitch tracker question

Date2014-03-14 10:09
Frompeiman khosravi
Subject[Csnd] pitch tracker question
I'm wondering if anyone has any opinions about what is the best opcode for fundamental frequency analysis in Csound?

Many Thanks
Peiman

Date2014-03-14 10:18
FromOeyvind Brandtsegg
SubjectRe: [Csnd] pitch tracker question
I keep changing the approach every time I come back to it.
The latest I did was using ptrack, and some post processing like this:

    ihopsizeA    = 512
    kcps1a, kamp1     ptrack aIn1, ihopsizeA

    kcps1b        init 100
    kcps1b        = (kcps1a > 700 ? kcps1b : kcps1a) ; avoid high freq
intermittencies
    kcps1        init 100
    kcps1        = (krms1 < 0.04 ? kcps1 : kcps1b)  ; don't track
(keep last value) at low amplitude

    imedianSize    = 512
    kcps1        mediank    kcps1, imedianSize, imedianSize


2014-03-14 11:09 GMT+01:00 peiman khosravi :
> I'm wondering if anyone has any opinions about what is the best opcode for
> fundamental frequency analysis in Csound?
>
> Many Thanks
> Peiman
>
>
>
> www.peimankhosravi.co.uk || RSS Feed || Concert News



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2014-03-14 11:34
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: pitch tracking
AttachmentsNone  

Date2014-03-14 12:34
FromTarmo Johannes
SubjectRe: [Csnd] pitch tracker question
Hi,

I don't have som much experience as Oeyvind but jsut recently in my intonation 
app I tried at first with plltrack but that did not detect higher pitches 
(like piccolo flute) well, I replaced it with ptrack with maximum hopsize 4096 
and it worked reasonably well with instruments and voice.

greetings,
tarmo

On Friday 14 March 2014 11:18:47 Oeyvind Brandtsegg wrote:
> I keep changing the approach every time I come back to it.
> The latest I did was using ptrack, and some post processing like this:
> 
>     ihopsizeA    = 512
>     kcps1a, kamp1     ptrack aIn1, ihopsizeA
> 
>     kcps1b        init 100
>     kcps1b        = (kcps1a > 700 ? kcps1b : kcps1a) ; avoid high freq
> intermittencies
>     kcps1        init 100
>     kcps1        = (krms1 < 0.04 ? kcps1 : kcps1b)  ; don't track
> (keep last value) at low amplitude
> 
>     imedianSize    = 512
>     kcps1        mediank    kcps1, imedianSize, imedianSize
> 
> 2014-03-14 11:09 GMT+01:00 peiman khosravi :
> > I'm wondering if anyone has any opinions about what is the best opcode for
> > fundamental frequency analysis in Csound?
> > 
> > Many Thanks
> > Peiman
> > 
> > 
> > 
> > www.peimankhosravi.co.uk || RSS Feed || Concert News

Date2014-03-14 13:43
FromVictor Lazzarini
SubjectRe: [Csnd] pitch tracker question
plltrack is good but requires some playing around with the parameters. 
pitchamdf is probably the best, but also the most costly.

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 14 Mar 2014, at 12:34, Tarmo Johannes  wrote:

> Hi,
> 
> I don't have som much experience as Oeyvind but jsut recently in my intonation 
> app I tried at first with plltrack but that did not detect higher pitches 
> (like piccolo flute) well, I replaced it with ptrack with maximum hopsize 4096 
> and it worked reasonably well with instruments and voice.
> 
> greetings,
> tarmo
> 
> On Friday 14 March 2014 11:18:47 Oeyvind Brandtsegg wrote:
>> I keep changing the approach every time I come back to it.
>> The latest I did was using ptrack, and some post processing like this:
>> 
>>    ihopsizeA    = 512
>>    kcps1a, kamp1     ptrack aIn1, ihopsizeA
>> 
>>    kcps1b        init 100
>>    kcps1b        = (kcps1a > 700 ? kcps1b : kcps1a) ; avoid high freq
>> intermittencies
>>    kcps1        init 100
>>    kcps1        = (krms1 < 0.04 ? kcps1 : kcps1b)  ; don't track
>> (keep last value) at low amplitude
>> 
>>    imedianSize    = 512
>>    kcps1        mediank    kcps1, imedianSize, imedianSize
>> 
>> 2014-03-14 11:09 GMT+01:00 peiman khosravi :
>>> I'm wondering if anyone has any opinions about what is the best opcode for
>>> fundamental frequency analysis in Csound?
>>> 
>>> Many Thanks
>>> Peiman
>>> 
>>> 
>>> 
>>> www.peimankhosravi.co.uk || RSS Feed || Concert News
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 



Date2014-03-16 09:15
Frompeiman khosravi
SubjectRe: [Csnd] pitch tracker question
Thank you very much for all the replies. I am goin to systematically try all your suggestions and get back.

All the best,
Peiman



On 14 March 2014 13:43, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
plltrack is good but requires some playing around with the parameters.
pitchamdf is probably the best, but also the most costly.

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 14 Mar 2014, at 12:34, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

> Hi,
>
> I don't have som much experience as Oeyvind but jsut recently in my intonation
> app I tried at first with plltrack but that did not detect higher pitches
> (like piccolo flute) well, I replaced it with ptrack with maximum hopsize 4096
> and it worked reasonably well with instruments and voice.
>
> greetings,
> tarmo
>
> On Friday 14 March 2014 11:18:47 Oeyvind Brandtsegg wrote:
>> I keep changing the approach every time I come back to it.
>> The latest I did was using ptrack, and some post processing like this:
>>
>>    ihopsizeA    = 512
>>    kcps1a, kamp1     ptrack aIn1, ihopsizeA
>>
>>    kcps1b        init 100
>>    kcps1b        = (kcps1a > 700 ? kcps1b : kcps1a) ; avoid high freq
>> intermittencies
>>    kcps1        init 100
>>    kcps1        = (krms1 < 0.04 ? kcps1 : kcps1b)  ; don't track
>> (keep last value) at low amplitude
>>
>>    imedianSize    = 512
>>    kcps1        mediank    kcps1, imedianSize, imedianSize
>>
>> 2014-03-14 11:09 GMT+01:00 peiman khosravi <peimankhosravi@gmail.com>:
>>> I'm wondering if anyone has any opinions about what is the best opcode for
>>> fundamental frequency analysis in Csound?
>>>
>>> Many Thanks
>>> Peiman
>>>
>>>
>>>
>>> www.peimankhosravi.co.uk || RSS Feed || Concert News
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"