Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: LPC

Date2008-08-31 17:12
Fromvictor
Subject[Csnd] Re: Re: Re: LPC
Attachmentslpc.csd  vic.lpc  
I have it working here, with some clicks.
Here's a sample CSD and lpc analysis file (done on windows/intel,
might work on mac/intel).

Victor


----- Original Message ----- 
From: "Steven Yi" 
To: 
Sent: Saturday, August 30, 2008 4:35 PM
Subject: [Csnd] Re: Re: LPC


> It was broken last time I tried it; hopefully someone who knows a bit
> about LPC might be able to take a look at the code to see what's going
> on.
>
> On Sat, Aug 30, 2008 at 10:16 AM, peiman khosravi
>  wrote:
>> OK this looks a bit better!
>>
>> new alloc for instr 1:
>> file /Users/peimankhosravi/Desktop/Flutenote1mono.aiff.lpc (5032 bytes)
>> loaded into memory
>> Using filter coefficient type of file.
>> new alloc for instr 2:
>> WARNING: lpread ktimpnt truncated to last frame
>> inactive allocs returned to freespace
>> end of score.              overall amps:      inf      inf
>>           overall samples out of range:      228      228
>> 0 errors in performance
>> Elapsed time at end of performance: real: 2.885s, CPU: 0.600s
>> 270 4096-byte soundblks of shorts written to dac0
>> Removing temporary file /tmp/tmp.41.2tCXGy.srt ...
>> Removing temporary file /tmp/tmp.40.7RbiA4.sco ...
>> Removing temporary file /tmp/tmp.39.H0nXCW.orc ...
>>
>> overall amps inf!??
>>
>> P
>>
>> On 30 Aug 2008, at 14:52, peiman wrote:
>>
>>>
>>> is LPC broken in csound 5? I've been trying to analyse and synthesise
>>> audio
>>> using LPC and I keep getting errors about the byte order being wrong.
>>>
>>> I looked on the list and it seems there has been problems with this in 
>>> the
>>> past, has this been fixed yet? I'm on intel osx, using 64bit csound.
>>>
>>> Thanks in advance
>>> Peiman
>>> --
>>> View this message in context:
>>> http://www.nabble.com/LPC-tp19233536p19233536.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 

Date2008-08-31 22:02
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: LPC
AttachmentslpcMixViews.lpc  lpcCsound5IntelMac.lpc  
Thanks for the attachments. When trying your csd and lpc files I get this error:

new alloc for instr 1:
file /Users/peimankhosravi/Desktop/vic.lpc (112660 bytes) loaded into memory
Using filter coefficient type of file.
WARNING: [mlpfile srate != orch sr[m
[mPERF ERROR in instr 1: [mlpread timpnt < 0[m
[mkrmsr krmso kerr kcps lpread #k0 "/Users/peimankhosravi/Desktop/vic.lpc" 0 0
   note aborted
B  0.000 .. 10.000 T 10.000 TT 10.000 M:    733.2
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.   overall amps:    733.2
  overall samples out of range:        0
1 errors in performance

When trying an lpc file made in Mixviews I get the error about the bite orders being wrong. 

And when trying with an lpc file made with lpanal on intel mac I get this and just one click at the start of the performance:

new alloc for instr 1:
file /Users/peimankhosravi/Desktop/vic.lpc (112660 bytes) loaded into memory
Using filter coefficient type of file.
WARNING: [mlpfile srate != orch sr[m
[mPERF ERROR in instr 1: [mlpread timpnt < 0[m
[mkrmsr krmso kerr kcps lpread #k0 "/Users/peimankhosravi/Desktop/vic.lpc" 0 0
   note aborted
B  0.000 .. 10.000 T 10.000 TT 10.000 M:    733.2
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.   overall amps:    733.2
  overall samples out of range:        0
1 errors in performance


I've attached the lpc files.