Csound Csound-dev Csound-tekno Search About

[Csnd] Getting Errors On This Code From Boulanger's Book. Help!

Date2011-06-13 16:21
FromScartabello
Subject[Csnd] Getting Errors On This Code From Boulanger's Book. Help!
Greetings All, 

I have been working with the phase vocoder chapter in Boulanger's CSound
Book. For some reason I am getting some errors when I try to run the morph
instrument at the end of chapter 28. Here is the orc code: 

sr        =         44100 
kr        =         4410 
ksmps     =         10 
nchnls    =         1 

          instr     2822     
ifreq     =         1                        ; READ THROUGH 7.5 sec. 
iamp      =         1                        ; ...OF LPC ANALYSIS. 
kpvtime   line      0, p3, 1                 ; pvinterp WILL PRODUCE 
klpctime  line      0, p3, 7.5               ; ...THE MARIMBA-VIOLIN MORPH 
kinterp   line      0, p3, 1 
krmsr, krmso, kerr, kcps    lpread  klpctime, "speech1.lpc" 
kfmod     =         kcps/cpspch(7.00)        ; ...WHICH WILL "SPEAK" WITH 
          pvbufread kpvtime, "violin.pvc" 
apv       pvinterp  kpvtime, kfmod, "marimba.pvc", ifreq, ifreq, iamp, 2,
kinterp, kinterp 
alpc      lpreson   apv                      ;...THE PITCHES FROM THE LPC 
          out       alpc                     ; ...ANALYZED SPEECH! 
          endin 

----------------------- 

And here is the error I am getting: 

WARNING: could not open library
'/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/libjackTransport.dylib'
(-1) 
WARNING: could not open library
'/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/librtjack.dylib'
(-1) 
0dBFS level = 32768.0 
Csound version 5.12 (float samples) Jun  4 2010 
libsndfile-1.0.20 
orchname:  /Users/peterscartabello/Desktop/CSound
Instr.:Ex/chapter28/2822.orc 
scorename: /Users/peterscartabello/Desktop/CSound
Instr.:Ex/chapter28/2822.sco 
rtaudio: PortAudio module enabled ... using callback interface 
rtmidi: PortMIDI module enabled 
orch compiler: 
        instr	2822	
Elapsed time at end of orchestra compile: real: 0.000s, CPU: 0.000s 
sorting score ... 
        ... done 
Elapsed time at end of score sort: real: 0.001s, CPU: 0.001s 
Csound version 5.12 (float samples) Jun  4 2010 
0dBFS level = 32768.0 
orch now loaded 
audio buffered in 1024 sample-frame blocks 
reading 2048-byte blks of shorts from adc (RAW) 
PortAudio V19-devel (built Feb 12 2010 09:42:54) 
PortAudio: available input devices: 
   0: Built-in Line Input 
   1: Built-in Digital Input 
PortAudio: selected input device 'Built-in Line Input' 
PortAudio: available output devices: 
   0: Built-in Output 
   1: Built-in Line Output 
   2: Built-in Digital Output 
PortAudio: selected output device 'Built-in Line Output' 
WARNING: buffer size should be an integer multiple of ksmps in full-duplex
mode 
writing 2048-byte blks of shorts to dac 
SECTION 1: 
new alloc for instr 2822: 
file speech1.lpc (5400972 bytes) loaded into memory 
INIT ERROR in instr 2822: insufficient args and no file header 
krmsr	krmso	kerr	kcps	lpread	klpctime	"speech1.lpc"	0	0	
calling alloc globalsfile violin.pvc (935712 bytes) loaded into memory 
file marimba.pvc (804384 bytes) loaded into memory 
          B  0.000 - note deleted.  i2822 had 1 init errors 
B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0 
B  1.000 ..  2.000 T  2.000 TT  2.000 M:      0.0 
B  2.000 ..  3.000 T  3.000 TT  3.000 M:      0.0 
B  3.000 ..  4.000 T  4.000 TT  4.000 M:      0.0 
B  4.000 ..  5.000 T  5.000 TT  5.000 M:      0.0 
B  5.000 ..  6.000 T  6.000 TT  6.000 M:      0.0 
Score finished in csoundPerformKsmps(). 
inactive allocs returned to freespace 
end of score.	   overall amps:      0.0 
           overall samples out of range:        0 
1 errors in performance 
Elapsed time at end of performance: real: 5.996s, CPU: 0.550s 
259 2048-byte soundblks of shorts written to dac 

-------------- 

I've rendered the sound files in the PVANAL utility in QuteCSound. Also the
buffer size for all the sound files is 1024. All the other examples in
Chapter 28 worked fine. Not sure what is happening. Any help would be
greatly appreciated. 

-Peter 


--
View this message in context: http://csound.1045644.n5.nabble.com/Getting-Errors-On-This-Code-From-Boulanger-s-Book-Help-tp4484715p4484715.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-06-13 16:28
FromVictor Lazzarini
SubjectRe: [Csnd] Getting Errors On This Code From Boulanger's Book. Help!
Did you use lpanal to produced speech1.lpc?

Victor

On 13 Jun 2011, at 16:21, Scartabello wrote:

> Greetings All,
>
> I have been working with the phase vocoder chapter in Boulanger's  
> CSound
> Book. For some reason I am getting some errors when I try to run the  
> morph
> instrument at the end of chapter 28. Here is the orc code:
>
> sr        =         44100
> kr        =         4410
> ksmps     =         10
> nchnls    =         1
>
>          instr     2822
> ifreq     =         1                        ; READ THROUGH 7.5 sec.
> iamp      =         1                        ; ...OF LPC ANALYSIS.
> kpvtime   line      0, p3, 1                 ; pvinterp WILL PRODUCE
> klpctime  line      0, p3, 7.5               ; ...THE MARIMBA-VIOLIN  
> MORPH
> kinterp   line      0, p3, 1
> krmsr, krmso, kerr, kcps    lpread  klpctime, "speech1.lpc"
> kfmod     =         kcps/cpspch(7.00)        ; ...WHICH WILL "SPEAK"  
> WITH
>          pvbufread kpvtime, "violin.pvc"
> apv       pvinterp  kpvtime, kfmod, "marimba.pvc", ifreq, ifreq,  
> iamp, 2,
> kinterp, kinterp
> alpc      lpreson   apv                      ;...THE PITCHES FROM  
> THE LPC
>          out       alpc                     ; ...ANALYZED SPEECH!
>          endin
>
> -----------------------
>
> And here is the error I am getting:
>
> WARNING: could not open library
> '/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/ 
> Opcodes/libjackTransport.dylib'
> (-1)
> WARNING: could not open library
> '/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/ 
> Opcodes/librtjack.dylib'
> (-1)
> 0dBFS level = 32768.0
> Csound version 5.12 (float samples) Jun  4 2010
> libsndfile-1.0.20
> orchname:  /Users/peterscartabello/Desktop/CSound
> Instr.:Ex/chapter28/2822.orc
> scorename: /Users/peterscartabello/Desktop/CSound
> Instr.:Ex/chapter28/2822.sco
> rtaudio: PortAudio module enabled ... using callback interface
> rtmidi: PortMIDI module enabled
> orch compiler:
>        instr	2822	
> Elapsed time at end of orchestra compile: real: 0.000s, CPU: 0.000s
> sorting score ...
>        ... done
> Elapsed time at end of score sort: real: 0.001s, CPU: 0.001s
> Csound version 5.12 (float samples) Jun  4 2010
> 0dBFS level = 32768.0
> orch now loaded
> audio buffered in 1024 sample-frame blocks
> reading 2048-byte blks of shorts from adc (RAW)
> PortAudio V19-devel (built Feb 12 2010 09:42:54)
> PortAudio: available input devices:
>   0: Built-in Line Input
>   1: Built-in Digital Input
> PortAudio: selected input device 'Built-in Line Input'
> PortAudio: available output devices:
>   0: Built-in Output
>   1: Built-in Line Output
>   2: Built-in Digital Output
> PortAudio: selected output device 'Built-in Line Output'
> WARNING: buffer size should be an integer multiple of ksmps in full- 
> duplex
> mode
> writing 2048-byte blks of shorts to dac
> SECTION 1:
> new alloc for instr 2822:
> file speech1.lpc (5400972 bytes) loaded into memory
> INIT ERROR in instr 2822: insufficient args and no file header
> krmsr	krmso	kerr	kcps	lpread	klpctime	"speech1.lpc"	0	0	
> calling alloc globalsfile violin.pvc (935712 bytes) loaded into memory
> file marimba.pvc (804384 bytes) loaded into memory
>          B  0.000 - note deleted.  i2822 had 1 init errors
> B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0
> B  1.000 ..  2.000 T  2.000 TT  2.000 M:      0.0
> B  2.000 ..  3.000 T  3.000 TT  3.000 M:      0.0
> B  3.000 ..  4.000 T  4.000 TT  4.000 M:      0.0
> B  4.000 ..  5.000 T  5.000 TT  5.000 M:      0.0
> B  5.000 ..  6.000 T  6.000 TT  6.000 M:      0.0
> Score finished in csoundPerformKsmps().
> inactive allocs returned to freespace
> end of score.	   overall amps:      0.0
>           overall samples out of range:        0
> 1 errors in performance
> Elapsed time at end of performance: real: 5.996s, CPU: 0.550s
> 259 2048-byte soundblks of shorts written to dac
>
> --------------
>
> I've rendered the sound files in the PVANAL utility in QuteCSound.  
> Also the
> buffer size for all the sound files is 1024. All the other examples in
> Chapter 28 worked fine. Not sure what is happening. Any help would be
> greatly appreciated.
>
> -Peter
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Getting-Errors-On-This-Code-From-Boulanger-s-Book-Help-tp4484715p4484715.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-06-13 16:35
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Getting Errors On This Code From Boulanger's Book. Help!
> Did you use lpanal to produced speech1.lpc?
>
> Victor

I wondered that -- and that is why we need a header on all analysis files
==John ff



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-06-13 17:41
FromAaron Krister Johnson
SubjectRe: [Csnd] Getting Errors On This Code From Boulanger's Book. Help!
Pete Scartabello, from SUNY Purchase? Here on the Csound list....small world!

AKJ

On Mon, Jun 13, 2011 at 10:21 AM, Scartabello <peterscartabello@yahoo.com> wrote:
Greetings All,

I have been working with the phase vocoder chapter in Boulanger's CSound
Book. For some reason I am getting some errors when I try to run the morph
instrument at the end of chapter 28. Here is the orc code:

sr        =         44100
kr        =         4410
ksmps     =         10
nchnls    =         1

         instr     2822
ifreq     =         1                        ; READ THROUGH 7.5 sec.
iamp      =         1                        ; ...OF LPC ANALYSIS.
kpvtime   line      0, p3, 1                 ; pvinterp WILL PRODUCE
klpctime  line      0, p3, 7.5               ; ...THE MARIMBA-VIOLIN MORPH
kinterp   line      0, p3, 1
krmsr, krmso, kerr, kcps    lpread  klpctime, "speech1.lpc"
kfmod     =         kcps/cpspch(7.00)        ; ...WHICH WILL "SPEAK" WITH
         pvbufread kpvtime, "violin.pvc"
apv       pvinterp  kpvtime, kfmod, "marimba.pvc", ifreq, ifreq, iamp, 2,
kinterp, kinterp
alpc      lpreson   apv                      ;...THE PITCHES FROM THE LPC
         out       alpc                     ; ...ANALYZED SPEECH!
         endin

-----------------------

And here is the error I am getting:

WARNING: could not open library
'/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/libjackTransport.dylib'
(-1)
WARNING: could not open library
'/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/librtjack.dylib'
(-1)
0dBFS level = 32768.0
Csound version 5.12 (float samples) Jun  4 2010
libsndfile-1.0.20
orchname:  /Users/peterscartabello/Desktop/CSound
Instr.:Ex/chapter28/2822.orc
scorename: /Users/peterscartabello/Desktop/CSound
Instr.:Ex/chapter28/2822.sco
rtaudio: PortAudio module enabled ... using callback interface
rtmidi: PortMIDI module enabled
orch compiler:
       instr   2822
Elapsed time at end of orchestra compile: real: 0.000s, CPU: 0.000s
sorting score ...
       ... done
Elapsed time at end of score sort: real: 0.001s, CPU: 0.001s
Csound version 5.12 (float samples) Jun  4 2010
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
reading 2048-byte blks of shorts from adc (RAW)
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available input devices:
  0: Built-in Line Input
  1: Built-in Digital Input
PortAudio: selected input device 'Built-in Line Input'
PortAudio: available output devices:
  0: Built-in Output
  1: Built-in Line Output
  2: Built-in Digital Output
PortAudio: selected output device 'Built-in Line Output'
WARNING: buffer size should be an integer multiple of ksmps in full-duplex
mode
writing 2048-byte blks of shorts to dac
SECTION 1:
new alloc for instr 2822:
file speech1.lpc (5400972 bytes) loaded into memory
INIT ERROR in instr 2822: insufficient args and no file header
krmsr   krmso   kerr    kcps    lpread  klpctime        "speech1.lpc"   0       0
calling alloc globalsfile violin.pvc (935712 bytes) loaded into memory
file marimba.pvc (804384 bytes) loaded into memory
         B  0.000 - note deleted.  i2822 had 1 init errors
B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0
B  1.000 ..  2.000 T  2.000 TT  2.000 M:      0.0
B  2.000 ..  3.000 T  3.000 TT  3.000 M:      0.0
B  3.000 ..  4.000 T  4.000 TT  4.000 M:      0.0
B  4.000 ..  5.000 T  5.000 TT  5.000 M:      0.0
B  5.000 ..  6.000 T  6.000 TT  6.000 M:      0.0
Score finished in csoundPerformKsmps().
inactive allocs returned to freespace
end of score.      overall amps:      0.0
          overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 5.996s, CPU: 0.550s
259 2048-byte soundblks of shorts written to dac

--------------

I've rendered the sound files in the PVANAL utility in QuteCSound. Also the
buffer size for all the sound files is 1024. All the other examples in
Chapter 28 worked fine. Not sure what is happening. Any help would be
greatly appreciated.

-Peter


--
View this message in context: http://csound.1045644.n5.nabble.com/Getting-Errors-On-This-Code-From-Boulanger-s-Book-Help-tp4484715p4484715.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"




--
Aaron Krister Johnson
http://www.akjmusic.com
http://www.untwelve.org


Date2011-06-13 18:16
FromScartabello
Subject[Csnd] Re: Getting Errors On This Code From Boulanger's Book. Help!
Yes I did use Pvanal to produce the speech1.lpc file. And Aaron it is indeed
me!!! How have you been my friend? Great to run into you here!!! Of all
places!!!! It makes sense though!!! hahaha

-Peter

--
View this message in context: http://csound.1045644.n5.nabble.com/Getting-Errors-On-This-Code-From-Boulanger-s-Book-Help-tp4484715p4485121.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-06-13 18:18
FromScartabello
Subject[Csnd] Re: Getting Errors On This Code From Boulanger's Book. Help!
Oh wait?! LPANAL NOT PVANAL!!!!! Jeez silly me!!!! hahahah Thanks Guys!!!!

-Pete

--
View this message in context: http://csound.1045644.n5.nabble.com/Getting-Errors-On-This-Code-From-Boulanger-s-Book-Help-tp4484715p4485123.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"