i don’t think that is it. The lpanal manual page says: -d duration – duration (in seconds) of the audio segment to be analyzed. The default of 0.0 means to the end of the file.
perhaps it does not like flac?
and when i run the csd i see that the fox gets its poles while finneganswake1.flac does not:
util lpanal:
Reading sound from fox.wav, writing lpfile to /media/menno/datae/onderzoek/manualExamples/fox.lpc
pch track range: 50.0 - 5000.0 Hz
Using pole storage method
audio sr = 44100, monaural
opening WAV infile /media/menno/datae/csounddata/Samples/fox.wav
analysing 121569 sample frames (2.8 secs)
607 lpc frames written to /media/menno/datae/onderzoek/manualExamples/fox.lpc
end of score. overall amps: 0.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 0.708s, CPU: 0.703s
0dBFS level = 32768.0
–Csound version 6.16 (double samples) Jun 6 2021
[commit: none]
libsndfile-1.0.28
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
Certainly the audio not the format. I converte flac t wav and ran lpanal
Reading sound from manual6-git/examples/finneganswake1.wav, writing lpfile to xxx.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 WAV infile manual6-git/examples/finneganswake1.wav
analysing 558868 sample frames 12\.7 secs
Found only 0 poles...sorry
wanted 40 poles
end of score. overall amps: 0.0
n Sun, 13 Jun 2021, tjingboem wrote:
i don't think that is it. The lpanal manual page says:-d duration -- duration in seconds of the audio segment to be analyzed. The default of 0.0 means to
the end of the file.
perhaps it does not like flac?
and when i run the csd i see that the fox gets its poles while
finneganswake1.flac does not:
util lpanal:
Reading sound from fox.wav, writing lpfile to
/media/menno/datae/onderzoek/manualExamples/fox.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 WAV infile /media/menno/datae/csounddata/Samples/fox.wav
analysing 121569 sample frames 2\.8 secs
607 lpc frames written to /media/menno/datae/onderzoek/manualExamples/fox.lpc
end of score. overall amps: 0.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 0.708s, CPU: 0.703s
0dBFS level = 32768.0
--Csound version 6.16 double samples Jun 6 2021
commit: none
libsndfile-1.0.28
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
Csound mailing list Csound@listserv.heanet.ie LISTSERV 16.5 - CSOUND List at LISTSERV.HEANET.IE Send bugs reports to Issues · csound/csound · GitHub Discussions of bugs and features can
be posted here
What I think is happening is that lpanal tries to create the poles from the analysis but fails (possibly because it gets unstable poles). Often
silence does this.
I removed the silence at the start of the file and it is now finding the poles
victor@MacBook-Pro audio % lpanal -a -p40 finneganswake1.wav test.lpc
time resolution is 1000.000 ns
0dBFS level = 32768.0
--Csound version 6.17 beta (double samples) Jun 13 2021
[commit: 50cdb10a68412c17a68f2f2a03ac6ab2e13f407e]
libsndfile-1.0.28
util lpanal:
Using pole storage method
audio sr = 44100, monaural
opening WAV infile finneganswake1.wav
analysing 543646 sample frames (12.3 secs)
2718 lpc frames written to test.lpc
end of score. overall amps: 0.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 4.205s, CPU: 4.172s
I implemented a possible solution for this, which is to add a little bit of white noise at -80dB (0dbfs=1) to the input when
analysing the signal and that seems to do the trick as far as making it complete the analysis:
victor@MacBook-Pro debug % lpanal -a -p 40 finneganswake1.flac f.lpc
time resolution is 1000.000 ns
0dBFS level = 32768.0
--Csound version 6.17 beta (double samples) Jun 18 2021
[commit: 80c06898185a293c59c87848afd7a74193dec329]
libsndfile-1.0.28
util lpanal:
Using pole storage method
audio sr = 44100, monaural
opening FLAC infile finneganswake1.flac
analysing 558868 sample frames (12.7 secs)
2794 lpc frames written to f.lpc
Menno: could you test this to see if it does the trick