Csound Csound-dev Csound-tekno Search About

[Csnd] pvsbuffer / pvsbufread / pvsadsyn oddities

Date2010-04-11 19:49
FromRene Djack
Subject[Csnd] pvsbuffer / pvsbufread / pvsadsyn oddities
Attachmentspvsadsyn.csd  pvsbufread.csd  
Hi list,

I have some strange oddities with the pvsbuffer and pvsbufread opcodes.

Rendering /manual/examples/pvsbufread.csd give me different results:

1) Error : segmentation fault
2) Error : INIT ERROR in instr1: invalid window type
3) ok


Rendering /manual/examples/pvsadsyn.csd give me different results:

1) Error :  pvsadsyn: ibin + inoscs too large
2) Error : pvadsyn: format must be amp-freq (0)
3) ok

I have got the result 1) or 2) or 3), just by adding some commented lines in the csd !

Both csd use the file fox.wav also included in /manual/examples.
The size of the wav file also change the behavior !

It looks like a memory overflow or some thing like that :)


I have encountered this behaviour with csound 5.11, 5.12 and the last cvs version
on Ubuntu 9.10 32b.

René

Date2010-04-11 20:01
FromVictor Lazzarini
Subject[Csnd] Re: pvsbuffer / pvsbufread / pvsadsyn oddities
Tested these here on OSX, just changed the file for one I have here  
and took the -+rtaudio and -+rtmidi and --expression-opt out. No  
problems on various runs. Can you give us a CSD that produces a  
segfault and INIT ERRORs?

Regards

Victor


On 11 Apr 2010, at 19:49, Rene Djack wrote:

> Hi list,
>
> I have some strange oddities with the pvsbuffer and pvsbufread  
> opcodes.
>
> Rendering /manual/examples/pvsbufread.csd give me different results:
>
> 1) Error : segmentation fault
> 2) Error : INIT ERROR in instr1: invalid window type
> 3) ok
>
>
> Rendering /manual/examples/pvsadsyn.csd give me different results:
>
> 1) Error :  pvsadsyn: ibin + inoscs too large
> 2) Error : pvadsyn: format must be amp-freq (0)
> 3) ok
>
> I have got the result 1) or 2) or 3), just by adding some commented  
> lines in the csd !
>
> Both csd use the file fox.wav also included in /manual/examples.
> The size of the wav file also change the behavior !
>
> It looks like a memory overflow or some thing like that :)
>
>
> I have encountered this behaviour with csound 5.11, 5.12 and the  
> last cvs version
> on Ubuntu 9.10 32b.
>
> René
> 



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"


Date2010-04-11 20:22
FromRene Djack
Subject[Csnd] Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
Attachmentspvsbufread1.csd  pvsbufread2.csd  pvsbufread3.csd  
Hi,

Here some tests:


****** Test of pvsbufread1.csd ---> ok

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread1.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-ClbTU6.orc
scorename: /tmp/csound-ABr5eH.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
B  0.000 ..  5.000 T  5.000 TT  5.000 M:  0.72719
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.72719
0 errors in performance
Elapsed time at end of performance: real: 0.214s, CPU: 0.180s
862 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x92e8068)



****** Test of pvsbufread2.csd ---> INIT ERROR in instr 1: invalid window type

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-Qgcp33.orc
scorename: /tmp/csound-Wgifhg.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
INIT ERROR in instr 1: invalid window type
aout    pvsynth    fread    0   
      B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
1 errors in performance
Elapsed time at end of performance: real: 0.016s, CPU: 0.010s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x9ab2068)


****** Test of pvsbufread3.csd ---> Segmentation fault

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread3.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-4Fp8dO.orc
scorename: /tmp/csound-wWaY6o.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
0 errors in performance
Elapsed time at end of performance: real: 0.408s, CPU: 0.060s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x87d2068)


Thanks for testing

Regards
René












2010/4/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Tested these here on OSX, just changed the file for one I have here and took the -+rtaudio and -+rtmidi and --expression-opt out. No problems on various runs. Can you give us a CSD that produces a segfault and INIT ERRORs?

Regards

Victor



On 11 Apr 2010, at 19:49, Rene Djack wrote:

Hi list,

I have some strange oddities with the pvsbuffer and pvsbufread opcodes.

Rendering /manual/examples/pvsbufread.csd give me different results:

1) Error : segmentation fault
2) Error : INIT ERROR in instr1: invalid window type
3) ok


Rendering /manual/examples/pvsadsyn.csd give me different results:

1) Error :  pvsadsyn: ibin + inoscs too large
2) Error : pvadsyn: format must be amp-freq (0)
3) ok

I have got the result 1) or 2) or 3), just by adding some commented lines in the csd !

Both csd use the file fox.wav also included in /manual/examples.
The size of the wav file also change the behavior !

It looks like a memory overflow or some thing like that :)


I have encountered this behaviour with csound 5.11, 5.12 and the last cvs version
on Ubuntu 9.10 32b.

René
<pvsadsyn.csd><pvsbufread.csd>



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"



Date2010-04-11 20:32
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
But what about the offending CSDs? The ones you posted work alright here.
On 11 Apr 2010, at 20:22, Rene Djack wrote:

Hi,

Here some tests:


****** Test of pvsbufread1.csd ---> ok

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread1.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-ClbTU6.orc
scorename: /tmp/csound-ABr5eH.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
B  0.000 ..  5.000 T  5.000 TT  5.000 M:  0.72719
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.72719
0 errors in performance
Elapsed time at end of performance: real: 0.214s, CPU: 0.180s
862 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x92e8068)



****** Test of pvsbufread2.csd ---> INIT ERROR in instr 1: invalid window type

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-Qgcp33.orc
scorename: /tmp/csound-Wgifhg.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
INIT ERROR in instr 1: invalid window type
aout    pvsynth    fread    0   
      B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
1 errors in performance
Elapsed time at end of performance: real: 0.016s, CPU: 0.010s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x9ab2068)


****** Test of pvsbufread3.csd ---> Segmentation fault

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread3.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-4Fp8dO.orc
scorename: /tmp/csound-wWaY6o.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
0 errors in performance
Elapsed time at end of performance: real: 0.408s, CPU: 0.060s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x87d2068)


Thanks for testing

Regards
René












2010/4/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Tested these here on OSX, just changed the file for one I have here and took the -+rtaudio and -+rtmidi and --expression-opt out. No problems on various runs. Can you give us a CSD that produces a segfault and INIT ERRORs?

Regards

Victor



On 11 Apr 2010, at 19:49, Rene Djack wrote:

Hi list,

I have some strange oddities with the pvsbuffer and pvsbufread opcodes.

Rendering /manual/examples/pvsbufread.csd give me different results:

1) Error : segmentation fault
2) Error : INIT ERROR in instr1: invalid window type
3) ok


Rendering /manual/examples/pvsadsyn.csd give me different results:

1) Error :  pvsadsyn: ibin + inoscs too large
2) Error : pvadsyn: format must be amp-freq (0)
3) ok

I have got the result 1) or 2) or 3), just by adding some commented lines in the csd !

Both csd use the file fox.wav also included in /manual/examples.
The size of the wav file also change the behavior !

It looks like a memory overflow or some thing like that :)


I have encountered this behaviour with csound 5.11, 5.12 and the last cvs version
on Ubuntu 9.10 32b.

René
<pvsadsyn.csd><pvsbufread.csd>



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"


<pvsbufread1.csd><pvsbufread2.csd><pvsbufread3.csd>


Date2010-04-11 20:44
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
Sorry, just found the attachments...
On 11 Apr 2010, at 20:32, Victor Lazzarini wrote:

But what about the offending CSDs? The ones you posted work alright here.
On 11 Apr 2010, at 20:22, Rene Djack wrote:

Hi,

Here some tests:


****** Test of pvsbufread1.csd ---> ok

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread1.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-ClbTU6.orc
scorename: /tmp/csound-ABr5eH.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
B  0.000 ..  5.000 T  5.000 TT  5.000 M:  0.72719
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.72719
0 errors in performance
Elapsed time at end of performance: real: 0.214s, CPU: 0.180s
862 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x92e8068)



****** Test of pvsbufread2.csd ---> INIT ERROR in instr 1: invalid window type

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-Qgcp33.orc
scorename: /tmp/csound-Wgifhg.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
INIT ERROR in instr 1: invalid window type
aout    pvsynth    fread    0   
      B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
1 errors in performance
Elapsed time at end of performance: real: 0.016s, CPU: 0.010s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x9ab2068)


****** Test of pvsbufread3.csd ---> Segmentation fault

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread3.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-4Fp8dO.orc
scorename: /tmp/csound-wWaY6o.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
0 errors in performance
Elapsed time at end of performance: real: 0.408s, CPU: 0.060s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x87d2068)


Thanks for testing

Regards
René












2010/4/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Tested these here on OSX, just changed the file for one I have here and took the -+rtaudio and -+rtmidi and --expression-opt out. No problems on various runs. Can you give us a CSD that produces a segfault and INIT ERRORs?

Regards

Victor



On 11 Apr 2010, at 19:49, Rene Djack wrote:

Hi list,

I have some strange oddities with the pvsbuffer and pvsbufread opcodes.

Rendering /manual/examples/pvsbufread.csd give me different results:

1) Error : segmentation fault
2) Error : INIT ERROR in instr1: invalid window type
3) ok


Rendering /manual/examples/pvsadsyn.csd give me different results:

1) Error :  pvsadsyn: ibin + inoscs too large
2) Error : pvadsyn: format must be amp-freq (0)
3) ok

I have got the result 1) or 2) or 3), just by adding some commented lines in the csd !

Both csd use the file fox.wav also included in /manual/examples.
The size of the wav file also change the behavior !

It looks like a memory overflow or some thing like that :)


I have encountered this behaviour with csound 5.11, 5.12 and the last cvs version
on Ubuntu 9.10 32b.

René
<pvsadsyn.csd><pvsbufread.csd>



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"


<pvsbufread1.csd><pvsbufread2.csd><pvsbufread3.csd>



Date2010-04-11 20:47
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
And the three CSD files perform exactly... no problems at all, here on OSX ,5.12

Victor
On 11 Apr 2010, at 20:44, Victor Lazzarini wrote:

Sorry, just found the attachments...
On 11 Apr 2010, at 20:32, Victor Lazzarini wrote:

But what about the offending CSDs? The ones you posted work alright here.
On 11 Apr 2010, at 20:22, Rene Djack wrote:

Hi,

Here some tests:


****** Test of pvsbufread1.csd ---> ok

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread1.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-ClbTU6.orc
scorename: /tmp/csound-ABr5eH.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
B  0.000 ..  5.000 T  5.000 TT  5.000 M:  0.72719
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.72719
0 errors in performance
Elapsed time at end of performance: real: 0.214s, CPU: 0.180s
862 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x92e8068)



****** Test of pvsbufread2.csd ---> INIT ERROR in instr 1: invalid window type

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-Qgcp33.orc
scorename: /tmp/csound-Wgifhg.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
INIT ERROR in instr 1: invalid window type
aout    pvsynth    fread    0   
      B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
1 errors in performance
Elapsed time at end of performance: real: 0.016s, CPU: 0.010s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x9ab2068)


****** Test of pvsbufread3.csd ---> Segmentation fault

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread3.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-4Fp8dO.orc
scorename: /tmp/csound-wWaY6o.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
0 errors in performance
Elapsed time at end of performance: real: 0.408s, CPU: 0.060s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x87d2068)


Thanks for testing

Regards
René












2010/4/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Tested these here on OSX, just changed the file for one I have here and took the -+rtaudio and -+rtmidi and --expression-opt out. No problems on various runs. Can you give us a CSD that produces a segfault and INIT ERRORs?

Regards

Victor



On 11 Apr 2010, at 19:49, Rene Djack wrote:

Hi list,

I have some strange oddities with the pvsbuffer and pvsbufread opcodes.

Rendering /manual/examples/pvsbufread.csd give me different results:

1) Error : segmentation fault
2) Error : INIT ERROR in instr1: invalid window type
3) ok


Rendering /manual/examples/pvsadsyn.csd give me different results:

1) Error :  pvsadsyn: ibin + inoscs too large
2) Error : pvadsyn: format must be amp-freq (0)
3) ok

I have got the result 1) or 2) or 3), just by adding some commented lines in the csd !

Both csd use the file fox.wav also included in /manual/examples.
The size of the wav file also change the behavior !

It looks like a memory overflow or some thing like that :)


I have encountered this behaviour with csound 5.11, 5.12 and the last cvs version
on Ubuntu 9.10 32b.

René
<pvsadsyn.csd><pvsbufread.csd>



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"


<pvsbufread1.csd><pvsbufread2.csd><pvsbufread3.csd>




Date2010-04-11 21:13
FromRene Djack
Subject[Csnd] Re: Re: Re: Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
Hi,

May be somebody can test on Ubuntu or UbuntuStudio.

In that case use fox.wav file
and

render pvsbufread1.csd
add comments
render again
add comments
......
etc


René





2010/4/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
And the three CSD files perform exactly... no problems at all, here on OSX ,5.12

Victor

On 11 Apr 2010, at 20:44, Victor Lazzarini wrote:

Sorry, just found the attachments...
On 11 Apr 2010, at 20:32, Victor Lazzarini wrote:

But what about the offending CSDs? The ones you posted work alright here.
On 11 Apr 2010, at 20:22, Rene Djack wrote:

Hi,

Here some tests:


****** Test of pvsbufread1.csd ---> ok

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread1.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-ClbTU6.orc
scorename: /tmp/csound-ABr5eH.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
B  0.000 ..  5.000 T  5.000 TT  5.000 M:  0.72719
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.72719
0 errors in performance
Elapsed time at end of performance: real: 0.214s, CPU: 0.180s
862 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x92e8068)



****** Test of pvsbufread2.csd ---> INIT ERROR in instr 1: invalid window type

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-Qgcp33.orc
scorename: /tmp/csound-Wgifhg.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
INIT ERROR in instr 1: invalid window type
aout    pvsynth    fread    0   
      B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
1 errors in performance
Elapsed time at end of performance: real: 0.016s, CPU: 0.010s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x9ab2068)


****** Test of pvsbufread3.csd ---> Segmentation fault

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.12 (float samples) Apr  9 2010
libsndfile-1.0.20
UnifiedCSD:  pvsbufread3.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-4Fp8dO.orc
scorename: /tmp/csound-wWaY6o.sco
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /home/moi/csound5/Opcodes/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
orch compiler:
    opcode    FileToPvsBuf    iik    Siiii   
    instr    1   
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
    ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.12 (float samples) Apr  9 2010
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of floats to /home/moi/Tempo/test.wav (WAV)
SECTION 1:
new alloc for instr 1:
soundin: opened '/home/moi/Samples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.00000
0 errors in performance
Elapsed time at end of performance: real: 0.408s, CPU: 0.060s
0 1024-byte soundblks of floats written to /home/moi/Tempo/test.wav (WAV)
jacko: CsoundModuleDestroy(0x87d2068)


Thanks for testing

Regards
René












2010/4/11 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Tested these here on OSX, just changed the file for one I have here and took the -+rtaudio and -+rtmidi and --expression-opt out. No problems on various runs. Can you give us a CSD that produces a segfault and INIT ERRORs?

Regards

Victor



On 11 Apr 2010, at 19:49, Rene Djack wrote:

Hi list,

I have some strange oddities with the pvsbuffer and pvsbufread opcodes.

Rendering /manual/examples/pvsbufread.csd give me different results:

1) Error : segmentation fault
2) Error : INIT ERROR in instr1: invalid window type
3) ok


Rendering /manual/examples/pvsadsyn.csd give me different results:

1) Error :  pvsadsyn: ibin + inoscs too large
2) Error : pvadsyn: format must be amp-freq (0)
3) ok

I have got the result 1) or 2) or 3), just by adding some commented lines in the csd !

Both csd use the file fox.wav also included in /manual/examples.
The size of the wav file also change the behavior !

It looks like a memory overflow or some thing like that :)


I have encountered this behaviour with csound 5.11, 5.12 and the last cvs version
on Ubuntu 9.10 32b.

René
<pvsadsyn.csd><pvsbufread.csd>



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"


<pvsbufread1.csd><pvsbufread2.csd><pvsbufread3.csd>





Date2010-04-11 23:45
Fromluis jure
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
on 2010-04-11 at 22:13 Rene Djack wrote:

>May be somebody can test on Ubuntu or UbuntuStudio.

your three csds work fine here with fox.wav in two gentoo machines
(Csound version 5.11 (double samples) Sep 25 2009 and Csound version
5.12 (double samples) Feb  4 2010, both compiled by myself) and in my
ubuntu netbook (Csound version 5.10 (double samples) Jul 29 2009,
installed from binaries provided by the distribution).

best,

lj


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"

Date2010-04-12 17:48
FromRene Djack
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
Hi,

Thanks Luis for testing,
I afraid the problem is in my box or in my compilation options.

Here after my usual options

  useDouble             0  (i will try Double = 1)
  buildRelease          1
  noDebug                1
  gcc3opt                 0
  gcc4opt                 0
  useLrint                 1
  useGettext            1

And i compile with:
       scons gcc4opt=native

best,
René






2010/4/12 luis jure <ljc@internet.com.uy>

on 2010-04-11 at 22:13 Rene Djack wrote:

>May be somebody can test on Ubuntu or UbuntuStudio.

your three csds work fine here with fox.wav in two gentoo machines
(Csound version 5.11 (double samples) Sep 25 2009 and Csound version
5.12 (double samples) Feb  4 2010, both compiled by myself) and in my
ubuntu netbook (Csound version 5.10 (double samples) Jul 29 2009,
installed from binaries provided by the distribution).

best,

lj


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"



Date2010-04-12 20:17
FromRene Djack
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: pvsbuffer / pvsbufread / pvsadsyn oddities
Hi,

I have tested pvsbufread.csd with csound double samples and it works fine :)


I have also tested the same csd with csound float samples
and compilation options

      buildRelease = 0
      noDebug      = 0

i got:

  *** internal error: mcalloc() called with zero nbytes
 Csound tidy up: Segmentation fault

or

  *** internal error: mcalloc() called with zero nbytes
  *** internal error: mcalloc() called with zero nbytes
 INIT ERROR in instr 1: invalid window type

or

 working !


So on Ubuntu 9.10 32b, this csd is working with csound double samples but not working with csound float samples.


Best,
René









2010/4/12 Rene Djack <rene.djack@gmail.com>
Hi,

Thanks Luis for testing,
I afraid the problem is in my box or in my compilation options.

Here after my usual options

  useDouble             0  (i will try Double = 1)
  buildRelease          1
  noDebug                1
  gcc3opt                 0
  gcc4opt                 0
  useLrint                 1
  useGettext            1

And i compile with:
       scons gcc4opt=native

best,
René






2010/4/12 luis jure <ljc@internet.com.uy>


on 2010-04-11 at 22:13 Rene Djack wrote:

>May be somebody can test on Ubuntu or UbuntuStudio.

your three csds work fine here with fox.wav in two gentoo machines
(Csound version 5.11 (double samples) Sep 25 2009 and Csound version
5.12 (double samples) Feb  4 2010, both compiled by myself) and in my
ubuntu netbook (Csound version 5.10 (double samples) Jul 29 2009,
installed from binaries provided by the distribution).

best,

lj


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"