Csound Csound-dev Csound-tekno Search About

[Csnd] lpanal

Date2011-05-12 16:00
FromVictor Lazzarini
Subject[Csnd] lpanal
The lpanal issues seem to have been resolved now with the code I  
committed today to GIT. I have also increased the maximum number of  
poles allowed in the analysis from 50 to 1000 (maybe too much, but  
still, why not?). The analysis of some sounds is still not great, but  
this might be related to the limitations of lpc, the current code or  
both. I am going to investigate more modern alternatives to some  
operations used by lpanal.

Regards

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 16:18
FromVictor Lazzarini
SubjectRe: [Csnd] lpanal
By the way, this seems to work acceptably, fox.wav analysed with 100  
poles and 500 samples hopsize.

instr 1
idur = 2.8
ktim phasor 1/idur
krmsr,krmso,kerr,kcps lpread ktim*idur,"fox.lpc"
if kerr > 0.3 then
asig rand krmso
else
asig vco2 krmso,kcps
endif
afil lpreson asig
aclip clip afil/500,0,0dbfs
out aclip
endin


On 12 May 2011, at 16:00, Victor Lazzarini wrote:

> The lpanal issues seem to have been resolved now with the code I  
> committed today to GIT. I have also increased the maximum number of  
> poles allowed in the analysis from 50 to 1000 (maybe too much, but  
> still, why not?). The analysis of some sounds is still not great,  
> but this might be related to the limitations of lpc, the current  
> code or both. I am going to investigate more modern alternatives to  
> some operations used by lpanal.
>
> Regards
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 16:46
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] lpanal
> The lpanal issues seem to have been resolved now with the code I
> committed today to GIT. I have also increased the maximum number of
> poles allowed in the analysis from 50 to 1000 (maybe too much, but
> still, why not?). The analysis of some sounds is still not great, but
> this might be related to the limitations of lpc, the current code or
> both. I am going to investigate more modern alternatives to some
> operations used by lpanal.
>
> Regards
>
> Dr Victor Lazzarini

Did you look at machine independenty analysis files?



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 18:05
FromVictor Lazzarini
SubjectRe: [Csnd] lpanal
No, not yet. This is next on the list.

Victor
On 12 May 2011, at 16:46, jpff@cs.bath.ac.uk wrote:

>> The lpanal issues seem to have been resolved now with the code I
>> committed today to GIT. I have also increased the maximum number of
>> poles allowed in the analysis from 50 to 1000 (maybe too much, but
>> still, why not?). The analysis of some sounds is still not great, but
>> this might be related to the limitations of lpc, the current code or
>> both. I am going to investigate more modern alternatives to some
>> operations used by lpanal.
>>
>> Regards
>>
>> Dr Victor Lazzarini
>
> Did you look at machine independenty analysis files?
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 18:17
FromVictor Lazzarini
Subject[Cs-dev] lpanal
My impression from looking at the code is that the simplest solution  
is to fix the format as little-endian and
everything should work. For that we will need to make sure the  
CSOUND_LPC file type defined by csound's IO
functions is understood to be always little-endian.

Does that sound sane?

Victor

On 12 May 2011, at 18:05, Victor Lazzarini wrote:

> No, not yet. This is next on the list.
>
> Victor
> On 12 May 2011, at 16:46, jpff@cs.bath.ac.uk wrote:
>
>>> The lpanal issues seem to have been resolved now with the code I
>>> committed today to GIT. I have also increased the maximum number of
>>> poles allowed in the analysis from 50 to 1000 (maybe too much, but
>>> still, why not?). The analysis of some sounds is still not great,  
>>> but
>>> this might be related to the limitations of lpc, the current code or
>>> both. I am going to investigate more modern alternatives to some
>>> operations used by lpanal.
>>>
>>> Regards
>>>
>>> Dr Victor Lazzarini
>>
>> Did you look at machine independenty analysis files?
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-12 18:52
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] lpanal
> My impression from looking at the code is that the simplest solution
> is to fix the format as little-endian and
> everything should work. For that we will need to make sure the
> CSOUND_LPC file type defined by csound's IO
> functions is understood to be always little-endian.
>
> Does that sound sane?
>
> Victor
>
>

Yes; it would also be nice to have a header in the file to identify. 
There is also the float/double issue

==John ff


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-12 19:39
FromVictor Lazzarini
SubjectRe: [Cs-dev] lpanal
There is header (H/lpc.h):

typedef struct {
         int32   headersize, lpmagic, npoles, nvals;
         MYFLT   framrate, srate, duration;
         char    text[4];
} LPHEADER;

we can fix data to doubles; how does that sound?

Victor

On 12 May 2011, at 18:52, jpff@cs.bath.ac.uk wrote:

>> My impression from looking at the code is that the simplest solution
>> is to fix the format as little-endian and
>> everything should work. For that we will need to make sure the
>> CSOUND_LPC file type defined by csound's IO
>> functions is understood to be always little-endian.
>>
>> Does that sound sane?
>>
>> Victor
>>
>>
>
> Yes; it would also be nice to have a header in the file to identify.
> There is also the float/double issue
>
> ==John ff
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-12 19:40
Frommenno
Subject[Csnd] Re: lpanal
i get a very dull sound using these options, no treble present:
menno@muziek:~$ csound -U lpanal -p100 -h500 fox.wav nieuwfox.lpc
time resolution is 1000.000 ns
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.13 beta (double samples) May 12 2011
libsndfile-1.0.21
util lpanal:
Using filter coefficient storage method
audio sr = 44100, monaural
opening WAV infile fox.wav
analysing 121569 sample frames (2.8 secs)
243 lpc frames written to nieuwfox.lpc

The result is this wav file:
http://csound.1045644.n5.nabble.com/file/n4391130/newlpc.wav newlpc.wav 

i'm using Kubuntu 64bit double samples (and Csound built today of course)

regards
menno

--
View this message in context: http://csound.1045644.n5.nabble.com/lpanal-tp4390493p4391130.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 19:42
Frommenno
Subject[Csnd] Re: lpanal
Forgot to mention that i used your csd:

instr 1 
idur = 2.8 
ktim phasor 1/idur 
krmsr,krmso,kerr,kcps lpread ktim*idur,"fox.lpc" 
if kerr > 0.3 then 
asig rand krmso 
else 
asig vco2 krmso,kcps 
endif 
afil lpreson asig 
aclip clip afil/500,0,0dbfs 
out aclip 
endin 

menno

--
View this message in context: http://csound.1045644.n5.nabble.com/lpanal-tp4390493p4391135.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 19:44
FromVictor Lazzarini
SubjectRe: [Csnd] Re: lpanal
That is because the source used is a vco2 sawtooth, which falls by   
6dB per octave,
rather than buzz, which doesn't.

asig buzz krmso,kcps,(sr/2)/kcps,1

On 12 May 2011, at 19:40, menno wrote:

> i get a very dull sound using these options, no treble present:
> menno@muziek:~$ csound -U lpanal -p100 -h500 fox.wav nieuwfox.lpc
> time resolution is 1000.000 ns
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> PortMIDI real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 5.13 beta (double samples) May 12 2011
> libsndfile-1.0.21
> util lpanal:
> Using filter coefficient storage method
> audio sr = 44100, monaural
> opening WAV infile fox.wav
> analysing 121569 sample frames (2.8 secs)
> 243 lpc frames written to nieuwfox.lpc
>
> The result is this wav file:
> http://csound.1045644.n5.nabble.com/file/n4391130/newlpc.wav  
> newlpc.wav
>
> i'm using Kubuntu 64bit double samples (and Csound built today of  
> course)
>
> regards
> menno
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/lpanal-tp4390493p4391130.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-13 11:08
Fromjohn ffitch
SubjectRe: [Cs-dev] lpanal
It needs a different magic number 'cos of legacy code
==John ffitch
>>>>> "Victor" == Victor Lazzarini  writes:

 Victor> There is header (H/lpc.h):
 Victor> typedef struct {
 Victor>          int32   headersize, lpmagic, npoles, nvals;
 Victor>          MYFLT   framrate, srate, duration;
 Victor>          char    text[4];
 Victor> } LPHEADER;

 Victor> we can fix data to doubles; how does that sound?

 Victor> Victor


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-13 20:17
Frommenno
Subject[Csnd] Re: lpanal
Hello Victor,

i build csound again because you removed the restriction on hopsizes in
lpanal and wanted to try it out.

i get some pops and ticks when i use the command:~$ csound -U lpanal -p100
-h500 -P100 -Q3000 fox.wav nieuwfox11.lpc
and pops and ticks get worse when lowering the hopsize. I think this can be
desired effect however.
When i use: csound -U lpanal -p100 -h600 fox.wav nieuwfox10.lpc
the analyses aborts: lpanal: input framesize (inter-frame-offset*2) exceeds
maximum allowed

Does that mean that the restriction that was removed was the one that
prevented the hopsize being smaller than -p*5?
Where do those pops and ticks come from anyway, now that i hear that they
have to do with the relation between  -p and -h?

Making the hopsize greater than 5 times the number of poles result in an
error.
menno@muziek:~$ csound -U lpanal -p100 -h600 -P100 -Q3000 fox.wav
nieuwfox11.lpc
time resolution is 1000.000 ns
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.13 beta (double samples) May 13 2011
libsndfile-1.0.21
util lpanal:
lpanal: input framesize (inter-frame-offset*2) exceeds maximum allowed
analysis aborted

regards
menno


--
View this message in context: http://csound.1045644.n5.nabble.com/lpanal-tp4390493p4394072.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-13 21:02
FromVictor Lazzarini
SubjectRe: [Csnd] Re: lpanal
Today I lifted the restriction on pvanal and wrongly said about  
lpanal. The changes I made yesterday were to allow
up to 1000 poles. I'll have yet to look into the issues you raised in  
the previous e-mail.

Hopsizes can be smaller than p*5 I think, but you will get a warning  
message.

Victor


On 13 May 2011, at 20:17, menno wrote:

> Hello Victor,
>
> i build csound again because you removed the restriction on hopsizes  
> in
> lpanal and wanted to try it out.
>
> i get some pops and ticks when i use the command:~$ csound -U lpanal  
> -p100
> -h500 -P100 -Q3000 fox.wav nieuwfox11.lpc
> and pops and ticks get worse when lowering the hopsize. I think this  
> can be
> desired effect however.
> When i use: csound -U lpanal -p100 -h600 fox.wav nieuwfox10.lpc
> the analyses aborts: lpanal: input framesize (inter-frame-offset*2)  
> exceeds
> maximum allowed
>
> Does that mean that the restriction that was removed was the one that
> prevented the hopsize being smaller than -p*5?
> Where do those pops and ticks come from anyway, now that i hear that  
> they
> have to do with the relation between  -p and -h?
>
> Making the hopsize greater than 5 times the number of poles result  
> in an
> error.
> menno@muziek:~$ csound -U lpanal -p100 -h600 -P100 -Q3000 fox.wav
> nieuwfox11.lpc
> time resolution is 1000.000 ns
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> PortMIDI real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 5.13 beta (double samples) May 13 2011
> libsndfile-1.0.21
> util lpanal:
> lpanal: input framesize (inter-frame-offset*2) exceeds maximum allowed
> analysis aborted
>
> regards
> menno
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/lpanal-tp4390493p4394072.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"