Csound Csound-dev Csound-tekno Search About

[Cs-dev] possible pitchamdf bug

Date2015-04-25 10:30
FromOeyvind Brandtsegg
Subject[Cs-dev] possible pitchamdf bug
Hi,
I've used pitchamdf earlier and it used to work fine, but now it seems
to behave quite odd.
It sometimes gives just a constant pitch, but seems to react somehow
on low pitches.
Sorry to bring this up right on the brink of release, but it would be
nice ensure that it works correctly in the new version.

Here is a test (Csound 6.04 of December 2014).
Ideally, the left and right audio signals should be of the same pitch.






        sr = 48000
        ksmps = 128
nchnls = 2
0dbfs = 1

giSine ftgen 0, 0, 65536, 10, 1 ; sine wave


instr 1

        kfreq           line 200, p3, 800
        ain             oscili 0.5, kfreq, giSine

        imincps = 100
        imaxcps = 1000
        initfreq = imincps
        imedian = 0
        idowns = 4
        iexcps = imincps
        irmsmedi = 0
        kcps,krms pitchamdf ain, imincps, imaxcps ,initfreq ,imedian
,idowns ,iexcps ,irmsmedi

        aout             oscili 0.5, kcps, giSine

                        outs ain, aout
        endin




i1 0 3
e




-- 

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

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-04-25 11:44
FromVictor Lazzarini
SubjectRe: [Cs-dev] possible pitchamdf bug
actually, I responded without looking at the code. The cepstrum is a complex inverse
 FFT (not real FFT), and so the packing I mentioned is not what is happening. However,
0Hz is purely real because the input is a real signal, so the second value is always 0. 
Coefficients are complex, so you have real, imag, real, imag, etc.. The second coefficient is
in array positions 2,3 (not 1).
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 25 Apr 2015, at 10:30, Oeyvind Brandtsegg  wrote:
> 
> Hi,
> I've used pitchamdf earlier and it used to work fine, but now it seems
> to behave quite odd.
> It sometimes gives just a constant pitch, but seems to react somehow
> on low pitches.
> Sorry to bring this up right on the brink of release, but it would be
> nice ensure that it works correctly in the new version.
> 
> Here is a test (Csound 6.04 of December 2014).
> Ideally, the left and right audio signals should be of the same pitch.
> 
> 
> 
> 
> 
> 
>        sr = 48000
>        ksmps = 128
> nchnls = 2
> 0dbfs = 1
> 
> giSine ftgen 0, 0, 65536, 10, 1 ; sine wave
> 
> 
> instr 1
> 
>        kfreq           line 200, p3, 800
>        ain             oscili 0.5, kfreq, giSine
> 
>        imincps = 100
>        imaxcps = 1000
>        initfreq = imincps
>        imedian = 0
>        idowns = 4
>        iexcps = imincps
>        irmsmedi = 0
>        kcps,krms pitchamdf ain, imincps, imaxcps ,initfreq ,imedian
> ,idowns ,iexcps ,irmsmedi
> 
>        aout             oscili 0.5, kcps, giSine
> 
>                        outs ain, aout
>        endin
> 
> 
> 
> 
> i1 0 3
> e
> 
> 
> 
> 
> -- 
> 
> 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
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-04-25 11:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] possible pitchamdf bug
wrong post!
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 25 Apr 2015, at 11:44, Victor Lazzarini  wrote:
> 
> actually, I responded without looking at the code. The cepstrum is a complex inverse
> FFT (not real FFT), and so the packing I mentioned is not what is happening. However,
> 0Hz is purely real because the input is a real signal, so the second value is always 0. 
> Coefficients are complex, so you have real, imag, real, imag, etc.. The second coefficient is
> in array positions 2,3 (not 1).
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 25 Apr 2015, at 10:30, Oeyvind Brandtsegg  wrote:
>> 
>> Hi,
>> I've used pitchamdf earlier and it used to work fine, but now it seems
>> to behave quite odd.
>> It sometimes gives just a constant pitch, but seems to react somehow
>> on low pitches.
>> Sorry to bring this up right on the brink of release, but it would be
>> nice ensure that it works correctly in the new version.
>> 
>> Here is a test (Csound 6.04 of December 2014).
>> Ideally, the left and right audio signals should be of the same pitch.
>> 
>> 
>> 
>> 
>> 
>> 
>>       sr = 48000
>>       ksmps = 128
>> nchnls = 2
>> 0dbfs = 1
>> 
>> giSine ftgen 0, 0, 65536, 10, 1 ; sine wave
>> 
>> 
>> instr 1
>> 
>>       kfreq           line 200, p3, 800
>>       ain             oscili 0.5, kfreq, giSine
>> 
>>       imincps = 100
>>       imaxcps = 1000
>>       initfreq = imincps
>>       imedian = 0
>>       idowns = 4
>>       iexcps = imincps
>>       irmsmedi = 0
>>       kcps,krms pitchamdf ain, imincps, imaxcps ,initfreq ,imedian
>> ,idowns ,iexcps ,irmsmedi
>> 
>>       aout             oscili 0.5, kcps, giSine
>> 
>>                       outs ain, aout
>>       endin
>> 
>> 
>> 
>> 
>> i1 0 3
>> e
>> 
>> 
>> 
>> 
>> -- 
>> 
>> 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
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud 
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-04-25 12:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] possible pitchamdf bug
That’s strange because I don’t see any changes to pitchamdf since 2013 (before 6.00). When did it
stop working?
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 25 Apr 2015, at 10:30, Oeyvind Brandtsegg  wrote:
> 
> Hi,
> I've used pitchamdf earlier and it used to work fine, but now it seems
> to behave quite odd.
> It sometimes gives just a constant pitch, but seems to react somehow
> on low pitches.
> Sorry to bring this up right on the brink of release, but it would be
> nice ensure that it works correctly in the new version.
> 
> Here is a test (Csound 6.04 of December 2014).
> Ideally, the left and right audio signals should be of the same pitch.
> 
> 
> 
> 
> 
> 
>        sr = 48000
>        ksmps = 128
> nchnls = 2
> 0dbfs = 1
> 
> giSine ftgen 0, 0, 65536, 10, 1 ; sine wave
> 
> 
> instr 1
> 
>        kfreq           line 200, p3, 800
>        ain             oscili 0.5, kfreq, giSine
> 
>        imincps = 100
>        imaxcps = 1000
>        initfreq = imincps
>        imedian = 0
>        idowns = 4
>        iexcps = imincps
>        irmsmedi = 0
>        kcps,krms pitchamdf ain, imincps, imaxcps ,initfreq ,imedian
> ,idowns ,iexcps ,irmsmedi
> 
>        aout             oscili 0.5, kcps, giSine
> 
>                        outs ain, aout
>        endin
> 
> 
> 
> 
> i1 0 3
> e
> 
> 
> 
> 
> -- 
> 
> 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
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-

Date2015-04-25 12:32
FromDave Seidel
SubjectRe: [Cs-dev] possible pitchamdf bug
AttachmentsNone  None  
I've actually been using it since last fall in a realtime piece I've performed several times. It's been working fine for me, but I have not been pushing it very hard (since the piece employs notes of long duration within a fairly limited registral range (not much more than an octave).

- Dave

On Sat, Apr 25, 2015 at 7:20 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
That’s strange because I don’t see any changes to pitchamdf since 2013 (before 6.00). When did it
stop working?
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 25 Apr 2015, at 10:30, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
>
> Hi,
> I've used pitchamdf earlier and it used to work fine, but now it seems
> to behave quite odd.
> It sometimes gives just a constant pitch, but seems to react somehow
> on low pitches.
> Sorry to bring this up right on the brink of release, but it would be
> nice ensure that it works correctly in the new version.
>
> Here is a test (Csound 6.04 of December 2014).
> Ideally, the left and right audio signals should be of the same pitch.
>
> <CsoundSynthesizer>
> <CsOptions>
> </CsOptions>
> <CsInstruments>
>
>        sr = 48000
>        ksmps = 128
> nchnls = 2
> 0dbfs = 1
>
> giSine ftgen 0, 0, 65536, 10, 1 ; sine wave
>
>
> instr 1
>
>        kfreq           line 200, p3, 800
>        ain             oscili 0.5, kfreq, giSine
>
>        imincps = 100
>        imaxcps = 1000
>        initfreq = imincps
>        imedian = 0
>        idowns = 4
>        iexcps = imincps
>        irmsmedi = 0
>        kcps,krms pitchamdf ain, imincps, imaxcps ,initfreq ,imedian
> ,idowns ,iexcps ,irmsmedi
>
>        aout             oscili 0.5, kcps, giSine
>
>                        outs ain, aout
>        endin
>
>
> </CsInstruments>
> <CsScore>
> i1 0 3
> e
> </CsScore>
> </CsoundSynthesizer>
>
>
> --
>
> 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
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2015-04-26 20:08
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] possible pitchamdf bug
Ok, sorry for the false alarm. I had been using the idowns parameter
earlier, and it was working fine in another context. Now, it seems an
idowns of 4 was breaking it.

2015-04-25 13:32 GMT+02:00 Dave Seidel :
> I've actually been using it since last fall in a realtime piece I've
> performed several times. It's been working fine for me, but I have not been
> pushing it very hard (since the piece employs notes of long duration within
> a fairly limited registral range (not much more than an octave).
>
> - Dave
>
> On Sat, Apr 25, 2015 at 7:20 AM, Victor Lazzarini 
> wrote:
>>
>> That's strange because I don't see any changes to pitchamdf since 2013
>> (before 6.00). When did it
>> stop working?
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>> > On 25 Apr 2015, at 10:30, Oeyvind Brandtsegg 
>> > wrote:
>> >
>> > Hi,
>> > I've used pitchamdf earlier and it used to work fine, but now it seems
>> > to behave quite odd.
>> > It sometimes gives just a constant pitch, but seems to react somehow
>> > on low pitches.
>> > Sorry to bring this up right on the brink of release, but it would be
>> > nice ensure that it works correctly in the new version.
>> >
>> > Here is a test (Csound 6.04 of December 2014).
>> > Ideally, the left and right audio signals should be of the same pitch.
>> >
>> > 
>> > 
>> > 
>> > 
>> >
>> >        sr = 48000
>> >        ksmps = 128
>> > nchnls = 2
>> > 0dbfs = 1
>> >
>> > giSine ftgen 0, 0, 65536, 10, 1 ; sine wave
>> >
>> >
>> > instr 1
>> >
>> >        kfreq           line 200, p3, 800
>> >        ain             oscili 0.5, kfreq, giSine
>> >
>> >        imincps = 100
>> >        imaxcps = 1000
>> >        initfreq = imincps
>> >        imedian = 0
>> >        idowns = 4
>> >        iexcps = imincps
>> >        irmsmedi = 0
>> >        kcps,krms pitchamdf ain, imincps, imaxcps ,initfreq ,imedian
>> > ,idowns ,iexcps ,irmsmedi
>> >
>> >        aout             oscili 0.5, kcps, giSine
>> >
>> >                        outs ain, aout
>> >        endin
>> >
>> >
>> > 
>> > 
>> > i1 0 3
>> > e
>> > 
>> > 
>> >
>> >
>> > --
>> >
>> > 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
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > One dashboard for servers and applications across Physical-Virtual-Cloud
>> > Widest out-of-the-box monitoring support with 50+ applications
>> > Performance metrics, stats and reports that give you Actionable Insights
>> > Deep dive visibility with transaction tracing using APM Insight.
>> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 

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

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net