Csound Csound-dev Csound-tekno Search About

[Csnd] zero holes with lpanal

Date2021-06-13 14:25
Fromtjingboem
Subject[Csnd] zero holes with lpanal
Hi,
i hope that someone could tell me why a wave file, in this case finneganswake1.flac from the examples folder, can't find any poles when analyzing.
Clearly a hole in my knowledge, but i would say a few poles could be detected in any sound file, but 0 poles?

Some of the output:
util lpanal:
Reading sound from finneganswake1.flac, writing lpfile to /media/menno/datae/onderzoek/manualExamples/finneganswake100.lpc
poles=40 hopsize=200 begin= 0.0 duration= 0.0
lpheader comment:

pch track range: 50.0 - 5000.0 Hz
Using pole storage method
audio sr = 44100, monaural
opening FLAC infile finneganswake1.flac
analysing 558868 sample frames (12.7 secs)
Found only 0 poles...sorry
wanted 40 poles


<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac --limiter=0.9 ;;;realtime audio out and limiter
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o scanhammer.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

; by Menno Knevel 2021

ires1 system_i 1,{{ lpanal -a -p40 -h200 -P50 -Q5000 -v1 fox.wav fox.lpc }}
ires2 system_i 1,{{ lpanal -a -p40 -h200 -P50 -Q5000 -v1 finneganswake1.flac finneganswake100.lpc }}


instr 1
ilen filelen "fox.wav" ; length of soundfile
prints "fox.wav = %f seconds\\n",ilen

ktime line 0, p3, p4
krmsr,krmso,kerr,kcps lpread ktime,"fox.lpc"
krmso = krmso*.00005 ; low volume
aout buzz krmso, kcps, 15, 1
outs aout, aout ; mix buzz and rand

endin

</CsInstruments>
<CsScore>
f1 0 4096 10 1

i 1 0 2.8 2.756667 ; whole sentence

e
</CsScore>
</CsoundSynthesizer>
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2021-06-13 20:53
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] zero holes with lpanal
It says 

poles=40 hopsize=200 begin= 0.0 duration= 0.0

so no wonder it can’t find any poles if the duration is zero.

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 13 Jun 2021, at 14:25, tjingboem  wrote:
> 
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> Hi,
> i hope that someone could tell me why a wave file, in this case finneganswake1.flac from the examples folder, can't find any poles when analyzing.
> Clearly a hole in my knowledge, but i would say a few poles could be detected in any sound file, but 0 poles?
> 
> Some of the output:
> 
> util lpanal:
> 
> Reading sound from finneganswake1.flac, writing lpfile to /media/menno/datae/onderzoek/manualExamples/finneganswake100.lpc
> 
> poles=40 hopsize=200 begin= 0.0 duration= 0.0
> 
> lpheader comment:
> 
> 
> 
> pch track range: 50.0 - 5000.0 Hz
> 
> Using pole storage method
> 
> audio sr = 44100, monaural
> 
> opening FLAC infile finneganswake1.flac
> 
> analysing 558868 sample frames (12.7 secs)
> 
> Found only 0 poles...sorry
> 
> wanted 40 poles
> 
> 
> 
> 
> 
> 
> 
> 
> ; Select audio/midi flags here according to platform
> 
> -odac --limiter=0.9 ;;;realtime audio out and limiter
> 
> ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
> 
> ; For Non-realtime ouput leave only the line below:
> 
> ; -o scanhammer.wav -W ;;; for file output any platform
> 
> 
> 
> 
> 
> 
> 
> sr = 
> 
> 44100
> 
> 
> ksmps = 
> 
> 32
> 
> 
> nchnls = 
> 
> 2
> 
> 
> 0dbfs = 
> 
> 1
> 
> 
> 
> 
> ; by Menno Knevel 2021
> 
> 
> 
> ires1 
> 
> system_i
>  1,{{ lpanal -a -p40 -h200 -P50 -Q5000 -v1 fox.wav fox.lpc }}
> 
> ires2 
> 
> system_i
>  1,{{ lpanal -a -p40 -h200 -P50 -Q5000 -v1 finneganswake1.flac finneganswake100.lpc }}
> 
> 
> 
> 
> 
> instr 
> 
> 1
>  
> 
> ilen 
> 
> filelen
>  "fox.wav" 
> 
> ; length of soundfile
> 
> 
> prints 
> 
> "fox.wav = 
> %f seconds\\n",ilen
> 
> 
> 
> ktime 
> 
> line
>  0, 
> 
> p3
> , p4
> 
> krmsr,krmso,kerr,k
> cps
> 
> lpread 
> 
> k
> time,"fox.lpc"
> 
> krmso = 
> 
> k
> rmso*.00005 
> 
> ; low volume
> 
> 
> aout 
> 
> buzz
>  krmso, 
> 
> k
> cps, 15, 
> 
> 1
> 
> 
> outs 
> 
> a
> out, aout 
> 
> ; mix buzz and rand
> 
> 
> 
> 
> endin
> 
> 
> 
> 
> 
> 
> 
> f1
> 0 
> 
> 4096
>  10 
> 
> 1
>  
> 
> 
> 
> i 
> 
> 1
>  0 
> 
> 2.8
>  2.756667 
> 
> ; whole sentence
> 
> 
> 
> 
> e
> 
> 
> 
> 
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here