Csound Csound-dev Csound-tekno Search About

[Cs-dev] csoundqt oddity

Date2013-08-26 10:32
Fromjoachim heintz
Subject[Cs-dev] csoundqt oddity
Attachmentsreadscore.csd  None  None  
hi all -

i am still struggling with the behaviour of csoundqt: some files are 
running without any problems when i use "Run in Term", but do not run at 
all with the usual Run command. i did report this for strtod, now there 
seems to be something similar for readscore.

the readscore example from the manual works perfectly when i use the 
command "Run in Term", but with the internal csoundqt Run command, i get 
several lines like this ...

External LOOP=12 Level:1
sread: unexpected char ,
   section 1:  at position 36
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed

... and then like this:

illegal RT scoreline:
i 1 0,000000  1,000000  1
      ^

the complete output is below. i am using csound and csoundqt from 
today's git on ubuntu studio 12.04. by the way, the csoundqt output in 
the console is always incomplete. even if the csd runs fine, the last 
lines of the console output ("0 errors in performance" etc) are missing.

when looking at the output, i see that there are commas in my output but 
dots in the csd file. could there be a problem because of my german os 
version? (this has never been a problem earlier, though.)
(when i change the string in readscore to a simple "i 1 0 1" i still get 
this output:
illegal RT scoreline:
i 1 0,000000  1,000000
      ^
)

any idea?

	joachim




rtmidi: ALSA Raw MIDI module enabled
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
sorting score ...
	... done
Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
Csound version 6.00.1 (double samples) Aug 26 2013
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768,0
ALSA midi: Using all devices.
ALSA midi: No devices found.

orch now loaded
audio buffered in 1024 sample-frame blocks
ALSA input: total buffer size: 4096, period size: 1024
reading 2048-byte blks of shorts from adc (RAW)
ALSA output: total buffer size: 4096, period size: 1024
writing 1024 sample blks of 64-bit floats to dac
SECTION 1:
ftable 1:
deferred alloc
audio sr = 44100, monaural
opening WAV infile fox.wav
   defer length 121569
new alloc for instr 2:
External LOOP=12 Level:1
sread: unexpected char ,
   section 1:  at position 36
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (1) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (2) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (3) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (4) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (5) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (6) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (7) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (8) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (9) Level:1
sread: unexpected char ,
   section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (10) Level:1
sread: unexpected char ,
   section 1:  at position 39
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
  External LOOP section (11) Level:1
sread: unexpected char ,
   section 1:  at position 39
WARNING: Internal error in print_input_backtrace()
       remainder of line flushed
External LOOP terminated, level:1
illegal RT scoreline:
i 1 0,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 1,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 2,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 3,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 4,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 5,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 6,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 7,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 8,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 9,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 10,000000  1,000000  1
       ^
illegal RT scoreline:
i 1 11,000000  1,000000  1
       ^
WARNING: Buffer underrun in real-time audio output

Date2013-08-26 11:28
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] csoundqt oddity
is that a comma used as decimal point?  Suggests a locale problem


> hi all -
>
> i am still struggling with the behaviour of csoundqt: some files are
> running without any problems when i use "Run in Term", but do not run at
> all with the usual Run command. i did report this for strtod, now there
> seems to be something similar for readscore.
>
> the readscore example from the manual works perfectly when i use the
> command "Run in Term", but with the internal csoundqt Run command, i get
> several lines like this ...
>
> External LOOP=12 Level:1
> sread: unexpected char ,
>    section 1:  at position 36
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>
> ... and then like this:
>
> illegal RT scoreline:
> i 1 0,000000  1,000000  1
>       ^
>
> the complete output is below. i am using csound and csoundqt from
> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> the console is always incomplete. even if the csd runs fine, the last
> lines of the console output ("0 errors in performance" etc) are missing.
>
> when looking at the output, i see that there are commas in my output but
> dots in the csd file. could there be a problem because of my german os
> version? (this has never been a problem earlier, though.)
> (when i change the string in readscore to a simple "i 1 0 1" i still get
> this output:
> illegal RT scoreline:
> i 1 0,000000  1,000000
>       ^
> )
>
> any idea?
>
> 	joachim
>
>
>
>
> rtmidi: ALSA Raw MIDI module enabled
> Error: define environment variable RAWWAVE_PATH
> (points to rawwaves directory) to use STK opcodes.
> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> sorting score ...
> 	... done
> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> Csound version 6.00.1 (double samples) Aug 26 2013
> midi channel 1 using instr 1
> midi channel 2 using instr 2
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> displays suppressed
> 0dBFS level = 32768,0
> ALSA midi: Using all devices.
> ALSA midi: No devices found.
>
> orch now loaded
> audio buffered in 1024 sample-frame blocks
> ALSA input: total buffer size: 4096, period size: 1024
> reading 2048-byte blks of shorts from adc (RAW)
> ALSA output: total buffer size: 4096, period size: 1024
> writing 1024 sample blks of 64-bit floats to dac
> SECTION 1:
> ftable 1:
> deferred alloc
> audio sr = 44100, monaural
> opening WAV infile fox.wav
>    defer length 121569
> new alloc for instr 2:
> External LOOP=12 Level:1
> sread: unexpected char ,
>    section 1:  at position 36
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (1) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (2) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (3) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (4) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (5) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (6) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (7) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (8) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (9) Level:1
> sread: unexpected char ,
>    section 1:  at position 37
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (10) Level:1
> sread: unexpected char ,
>    section 1:  at position 39
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
>   External LOOP section (11) Level:1
> sread: unexpected char ,
>    section 1:  at position 39
> WARNING: Internal error in print_input_backtrace()
>        remainder of line flushed
> External LOOP terminated, level:1
> illegal RT scoreline:
> i 1 0,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 1,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 2,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 3,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 4,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 5,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 6,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 7,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 8,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 9,000000  1,000000  1
>       ^
> illegal RT scoreline:
> i 1 10,000000  1,000000  1
>        ^
> illegal RT scoreline:
> i 1 11,000000  1,000000  1
>        ^
> WARNING: Buffer underrun in real-time audio output
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-26 11:57
Fromjoachim heintz
SubjectRe: [Cs-dev] csoundqt oddity
yes, that was my guess as well. but i have this computer since more than 
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the 
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

	joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>> 	joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>> 	... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-26 14:35
FromAndres Cabrera
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
Hi,

Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.

Cheers,
Andrés


On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
yes, that was my guess as well. but i have this computer since more than
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

        joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>>      joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>>      ... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-26 14:36
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
I believe this is related to a similar problem that I have. I cannot run a piece in CsoundQt, and then run it again. The second time, I get a similar error, only for an orc syntax error. My theory is that some text in the CsoundQt pipeline is not getting cleared before the second run.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 5:32 AM, joachim heintz <jh@joachimheintz.de> wrote:
hi all -

i am still struggling with the behaviour of csoundqt: some files are running without any problems when i use "Run in Term", but do not run at all with the usual Run command. i did report this for strtod, now there seems to be something similar for readscore.

the readscore example from the manual works perfectly when i use the command "Run in Term", but with the internal csoundqt Run command, i get several lines like this ...

External LOOP=12 Level:1
sread: unexpected char ,
  section 1:  at position 36
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed

... and then like this:

illegal RT scoreline:
i 1 0,000000  1,000000  1
     ^

the complete output is below. i am using csound and csoundqt from today's git on ubuntu studio 12.04. by the way, the csoundqt output in the console is always incomplete. even if the csd runs fine, the last lines of the console output ("0 errors in performance" etc) are missing.

when looking at the output, i see that there are commas in my output but dots in the csd file. could there be a problem because of my german os version? (this has never been a problem earlier, though.)
(when i change the string in readscore to a simple "i 1 0 1" i still get this output:
illegal RT scoreline:
i 1 0,000000  1,000000
     ^
)

any idea?

        joachim




rtmidi: ALSA Raw MIDI module enabled
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
Csound version 6.00.1 (double samples) Aug 26 2013
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768,0
ALSA midi: Using all devices.
ALSA midi: No devices found.

orch now loaded
audio buffered in 1024 sample-frame blocks
ALSA input: total buffer size: 4096, period size: 1024
reading 2048-byte blks of shorts from adc (RAW)
ALSA output: total buffer size: 4096, period size: 1024
writing 1024 sample blks of 64-bit floats to dac
SECTION 1:
ftable 1:
deferred alloc
audio sr = 44100, monaural
opening WAV infile fox.wav
  defer length 121569
new alloc for instr 2:
External LOOP=12 Level:1
sread: unexpected char ,
  section 1:  at position 36
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (1) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (2) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (3) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (4) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (5) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (6) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (7) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (8) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (9) Level:1
sread: unexpected char ,
  section 1:  at position 37
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (10) Level:1
sread: unexpected char ,
  section 1:  at position 39
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
 External LOOP section (11) Level:1
sread: unexpected char ,
  section 1:  at position 39
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
External LOOP terminated, level:1
illegal RT scoreline:
i 1 0,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 1,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 2,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 3,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 4,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 5,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 6,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 7,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 8,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 9,000000  1,000000  1
     ^
illegal RT scoreline:
i 1 10,000000  1,000000  1
      ^
illegal RT scoreline:
i 1 11,000000  1,000000  1
      ^
WARNING: Buffer underrun in real-time audio output

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-26 14:48
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:

STARTING FILE

**** Licence Information ****

Copyright (C) 2013 by Michael Gogins.

All rights reserved.

**** End of Licence Information ****

Creating options

Creating orchestra

Creating score

error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:

>>>connect "Bower" <<<

Unexpected untyped word connect when expecting a variable

Parsing failed due to invalid input!

cannot compile orchestra


This implies the problem is in how CsoundQt sets up Csound to run.


Regards,

Mike



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.

Cheers,
Andrés


On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
yes, that was my guess as well. but i have this computer since more than
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

        joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>>      joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>>      ... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-26 14:50
Fromjoachim heintz
SubjectRe: [Cs-dev] csoundqt oddity
Attachmentsoutput.png  None  None  
yes -- if not readscore would not work at all. a screenshot of the 
output is attached.
best -
	j


Am 26.08.2013 15:35, schrieb Andres Cabrera:
> Hi,
>
> Are you sure you are running Csound6 when running in term? I can't think
> why CsoundQt can be a factor here, this all should be handled within
> Csound, so I think the problem lies there.
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz  > wrote:
>
>     yes, that was my guess as well. but i have this computer since more than
>     one year, and there has not been this problem before.
>
>     it cannot be only a csoundqt issue, i think. i just tested the
>     scoreline_i example from the manual. this works:
>     scoreline_i {{
>                   i 2  0  3  "flute.aiff"
>                   i 2  1  3  "beats.wav"
>                   }}
>
>     but when i use this instead:
>     ires readscore {{
>                   i 2  0  3  "flute.aiff"
>                   i 2  1  3  "beats.wav"
>                   }}
>
>     i get this error again:
>     new alloc for instr 1:
>     illegal RT scoreline:
>     i 2 0,000000  3,000000  "flute.aiff"
>            ^
>     illegal RT scoreline:
>     i 2 1,000000  3,000000  "beats.wav"
>            ^
>
>     although it works flawlessly when using "Run in Term" in csoundqt.
>     so something which affects the coordination of csound and csoundqt?
>
>              joachim
>
>
>
>
>     Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk
>     :
>      > is that a comma used as decimal point?  Suggests a locale problem
>      >
>      >
>      >> hi all -
>      >>
>      >> i am still struggling with the behaviour of csoundqt: some files are
>      >> running without any problems when i use "Run in Term", but do
>     not run at
>      >> all with the usual Run command. i did report this for strtod,
>     now there
>      >> seems to be something similar for readscore.
>      >>
>      >> the readscore example from the manual works perfectly when i use the
>      >> command "Run in Term", but with the internal csoundqt Run
>     command, i get
>      >> several lines like this ...
>      >>
>      >> External LOOP=12 Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 36
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>
>      >> ... and then like this:
>      >>
>      >> illegal RT scoreline:
>      >> i 1 0,000000  1,000000  1
>      >>        ^
>      >>
>      >> the complete output is below. i am using csound and csoundqt from
>      >> today's git on ubuntu studio 12.04. by the way, the csoundqt
>     output in
>      >> the console is always incomplete. even if the csd runs fine, the
>     last
>      >> lines of the console output ("0 errors in performance" etc) are
>     missing.
>      >>
>      >> when looking at the output, i see that there are commas in my
>     output but
>      >> dots in the csd file. could there be a problem because of my
>     german os
>      >> version? (this has never been a problem earlier, though.)
>      >> (when i change the string in readscore to a simple "i 1 0 1" i
>     still get
>      >> this output:
>      >> illegal RT scoreline:
>      >> i 1 0,000000  1,000000
>      >>        ^
>      >> )
>      >>
>      >> any idea?
>      >>
>      >>      joachim
>      >>
>      >>
>      >>
>      >>
>      >> rtmidi: ALSA Raw MIDI module enabled
>      >> Error: define environment variable RAWWAVE_PATH
>      >> (points to rawwaves directory) to use STK opcodes.
>      >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>      >> sorting score ...
>      >>      ... done
>      >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>      >> Csound version 6.00.1 (double samples) Aug 26 2013
>      >> midi channel 1 using instr 1
>      >> midi channel 2 using instr 2
>      >> midi channel 3 using instr 1
>      >> midi channel 4 using instr 1
>      >> midi channel 5 using instr 1
>      >> midi channel 6 using instr 1
>      >> midi channel 7 using instr 1
>      >> midi channel 8 using instr 1
>      >> midi channel 9 using instr 1
>      >> midi channel 10 using instr 1
>      >> midi channel 11 using instr 1
>      >> midi channel 12 using instr 1
>      >> midi channel 13 using instr 1
>      >> midi channel 14 using instr 1
>      >> midi channel 15 using instr 1
>      >> midi channel 16 using instr 1
>      >> displays suppressed
>      >> 0dBFS level = 32768,0
>      >> ALSA midi: Using all devices.
>      >> ALSA midi: No devices found.
>      >>
>      >> orch now loaded
>      >> audio buffered in 1024 sample-frame blocks
>      >> ALSA input: total buffer size: 4096, period size: 1024
>      >> reading 2048-byte blks of shorts from adc (RAW)
>      >> ALSA output: total buffer size: 4096, period size: 1024
>      >> writing 1024 sample blks of 64-bit floats to dac
>      >> SECTION 1:
>      >> ftable 1:
>      >> deferred alloc
>      >> audio sr = 44100, monaural
>      >> opening WAV infile fox.wav
>      >>     defer length 121569
>      >> new alloc for instr 2:
>      >> External LOOP=12 Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 36
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (1) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (2) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (3) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (4) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (5) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (6) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (7) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (8) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (9) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 37
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (10) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 39
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >>    External LOOP section (11) Level:1
>      >> sread: unexpected char ,
>      >>     section 1:  at position 39
>      >> WARNING: Internal error in print_input_backtrace()
>      >>         remainder of line flushed
>      >> External LOOP terminated, level:1
>      >> illegal RT scoreline:
>      >> i 1 0,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 1,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 2,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 3,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 4,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 5,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 6,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 7,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 8,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 9,000000  1,000000  1
>      >>        ^
>      >> illegal RT scoreline:
>      >> i 1 10,000000  1,000000  1
>      >>         ^
>      >> illegal RT scoreline:
>      >> i 1 11,000000  1,000000  1
>      >>         ^
>      >> WARNING: Buffer underrun in real-time audio output
>      >>
>     ------------------------------------------------------------------------------
>      >> Introducing Performance Central, a new site from SourceForge and
>      >> AppDynamics. Performance Central is your source for news, insights,
>      >> analysis and resources for efficient Application Performance
>     Management.
>      >> Visit us today!
>      >>
>     http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>      >> Csound-devel mailing list
>      >> Csound-devel@lists.sourceforge.net
>     
>      >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>      >>
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------------
>      > Introducing Performance Central, a new site from SourceForge and
>      > AppDynamics. Performance Central is your source for news, insights,
>      > analysis and resources for efficient Application Performance
>     Management.
>      > Visit us today!
>      >
>     http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>      > _______________________________________________
>      > Csound-devel mailing list
>      > Csound-devel@lists.sourceforge.net
>     
>      > https://lists.sourceforge.net/lists/listinfo/csound-devel
>      >
>
>     ------------------------------------------------------------------------------
>     Introducing Performance Central, a new site from SourceForge and
>     AppDynamics. Performance Central is your source for news, insights,
>     analysis and resources for efficient Application Performance Management.
>     Visit us today!
>     http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>     _______________________________________________
>     Csound-devel mailing list
>     Csound-devel@lists.sourceforge.net
>     
>     https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

Date2013-08-26 14:52
Fromjoachim heintz
SubjectRe: [Cs-dev] csoundqt oddity
i don't know if this is related to your error, but i do only get the end 
of the console output in csoundqt when i manually stop the performance. 
if the performance stops automatically because the score is finished, 
the lines "0 errors in performance" etc are missing.

	j


Am 26.08.2013 15:36, schrieb Michael Gogins:
> I believe this is related to a similar problem that I have. I cannot run
> a piece in CsoundQt, and then run it again. The second time, I get a
> similar error, only for an orc syntax error. My theory is that some text
> in the CsoundQt pipeline is not getting cleared before the second run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 5:32 AM, joachim heintz  > wrote:
>
>     hi all -
>
>     i am still struggling with the behaviour of csoundqt: some files are
>     running without any problems when i use "Run in Term", but do not
>     run at all with the usual Run command. i did report this for strtod,
>     now there seems to be something similar for readscore.
>
>     the readscore example from the manual works perfectly when i use the
>     command "Run in Term", but with the internal csoundqt Run command, i
>     get several lines like this ...
>
>     External LOOP=12 Level:1
>     sread: unexpected char ,
>        section 1:  at position 36
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>
>     ... and then like this:
>
>     illegal RT scoreline:
>     i 1 0,000000  1,000000  1
>           ^
>
>     the complete output is below. i am using csound and csoundqt from
>     today's git on ubuntu studio 12.04. by the way, the csoundqt output
>     in the console is always incomplete. even if the csd runs fine, the
>     last lines of the console output ("0 errors in performance" etc) are
>     missing.
>
>     when looking at the output, i see that there are commas in my output
>     but dots in the csd file. could there be a problem because of my
>     german os version? (this has never been a problem earlier, though.)
>     (when i change the string in readscore to a simple "i 1 0 1" i still
>     get this output:
>     illegal RT scoreline:
>     i 1 0,000000  1,000000
>           ^
>     )
>
>     any idea?
>
>              joachim
>
>
>
>
>     rtmidi: ALSA Raw MIDI module enabled
>     Error: define environment variable RAWWAVE_PATH
>     (points to rawwaves directory) to use STK opcodes.
>     Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>     sorting score ...
>              ... done
>     Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>     Csound version 6.00.1 (double samples) Aug 26 2013
>     midi channel 1 using instr 1
>     midi channel 2 using instr 2
>     midi channel 3 using instr 1
>     midi channel 4 using instr 1
>     midi channel 5 using instr 1
>     midi channel 6 using instr 1
>     midi channel 7 using instr 1
>     midi channel 8 using instr 1
>     midi channel 9 using instr 1
>     midi channel 10 using instr 1
>     midi channel 11 using instr 1
>     midi channel 12 using instr 1
>     midi channel 13 using instr 1
>     midi channel 14 using instr 1
>     midi channel 15 using instr 1
>     midi channel 16 using instr 1
>     displays suppressed
>     0dBFS level = 32768,0
>     ALSA midi: Using all devices.
>     ALSA midi: No devices found.
>
>     orch now loaded
>     audio buffered in 1024 sample-frame blocks
>     ALSA input: total buffer size: 4096, period size: 1024
>     reading 2048-byte blks of shorts from adc (RAW)
>     ALSA output: total buffer size: 4096, period size: 1024
>     writing 1024 sample blks of 64-bit floats to dac
>     SECTION 1:
>     ftable 1:
>     deferred alloc
>     audio sr = 44100, monaural
>     opening WAV infile fox.wav
>        defer length 121569
>     new alloc for instr 2:
>     External LOOP=12 Level:1
>     sread: unexpected char ,
>        section 1:  at position 36
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (1) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (2) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (3) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (4) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (5) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (6) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (7) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (8) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (9) Level:1
>     sread: unexpected char ,
>        section 1:  at position 37
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (10) Level:1
>     sread: unexpected char ,
>        section 1:  at position 39
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>       External LOOP section (11) Level:1
>     sread: unexpected char ,
>        section 1:  at position 39
>     WARNING: Internal error in print_input_backtrace()
>            remainder of line flushed
>     External LOOP terminated, level:1
>     illegal RT scoreline:
>     i 1 0,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 1,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 2,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 3,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 4,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 5,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 6,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 7,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 8,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 9,000000  1,000000  1
>           ^
>     illegal RT scoreline:
>     i 1 10,000000  1,000000  1
>            ^
>     illegal RT scoreline:
>     i 1 11,000000  1,000000  1
>            ^
>     WARNING: Buffer underrun in real-time audio output
>
>     ------------------------------------------------------------------------------
>     Introducing Performance Central, a new site from SourceForge and
>     AppDynamics. Performance Central is your source for news, insights,
>     analysis and resources for efficient Application Performance Management.
>     Visit us today!
>     http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>     _______________________________________________
>     Csound-devel mailing list
>     Csound-devel@lists.sourceforge.net
>     
>     https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-26 16:45
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.

So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:

STARTING FILE

**** Licence Information ****

Copyright (C) 2013 by Michael Gogins.

All rights reserved.

**** End of Licence Information ****

Creating options

Creating orchestra

Creating score

error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:

>>>connect "Bower" <<<

Unexpected untyped word connect when expecting a variable

Parsing failed due to invalid input!

cannot compile orchestra


This implies the problem is in how CsoundQt sets up Csound to run.


Regards,

Mike



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.

Cheers,
Andrés


On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
yes, that was my guess as well. but i have this computer since more than
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

        joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>>      joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>>      ... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2013-08-26 16:48
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.

I will try to modify CsoundPerformanceThread so that it can be re-run.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.

So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:

STARTING FILE

**** Licence Information ****

Copyright (C) 2013 by Michael Gogins.

All rights reserved.

**** End of Licence Information ****

Creating options

Creating orchestra

Creating score

error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:

>>>connect "Bower" <<<

Unexpected untyped word connect when expecting a variable

Parsing failed due to invalid input!

cannot compile orchestra


This implies the problem is in how CsoundQt sets up Csound to run.


Regards,

Mike



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.

Cheers,
Andrés


On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
yes, that was my guess as well. but i have this computer since more than
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

        joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>>      joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>>      ... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





Date2013-08-27 18:43
FromAndres Cabrera
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
Hi Michael,

Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?

Cheers,
Andrés


On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.

I will try to modify CsoundPerformanceThread so that it can be re-run.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.

So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:

STARTING FILE

**** Licence Information ****

Copyright (C) 2013 by Michael Gogins.

All rights reserved.

**** End of Licence Information ****

Creating options

Creating orchestra

Creating score

error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:

>>>connect "Bower" <<<

Unexpected untyped word connect when expecting a variable

Parsing failed due to invalid input!

cannot compile orchestra


This implies the problem is in how CsoundQt sets up Csound to run.


Regards,

Mike



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.

Cheers,
Andrés


On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
yes, that was my guess as well. but i have this computer since more than
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

        joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>>      joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>>      ... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-27 18:58
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
I'm still looking at this. I just installed Csound 6.00.1 on a fresh computer and it works fine, CsoundQt runs things twice. But that build may be different from the one we are talking about.

In the latest code, there is a definite problem on my development computer, when CsoundPerformanceThread starts a new run, the performance method is never entered and the score is never dispatched.

I suspect the problem is that the CsoundPerformanceThread constructor creates the actual thread, so that only happens once. I'm guessing that that thread exits and is not replaced, so that the second run simply never dispatches the score.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Aug 27, 2013 at 1:43 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi Michael,

Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?

Cheers,
Andrés


On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.

I will try to modify CsoundPerformanceThread so that it can be re-run.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.

So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:

STARTING FILE

**** Licence Information ****

Copyright (C) 2013 by Michael Gogins.

All rights reserved.

**** End of Licence Information ****

Creating options

Creating orchestra

Creating score

error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:

>>>connect "Bower" <<<

Unexpected untyped word connect when expecting a variable

Parsing failed due to invalid input!

cannot compile orchestra


This implies the problem is in how CsoundQt sets up Csound to run.


Regards,

Mike



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.

Cheers,
Andrés


On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
yes, that was my guess as well. but i have this computer since more than
one year, and there has not been this problem before.

it cannot be only a csoundqt issue, i think. i just tested the
scoreline_i example from the manual. this works:
scoreline_i {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

but when i use this instead:
ires readscore {{
             i 2  0  3  "flute.aiff"
             i 2  1  3  "beats.wav"
             }}

i get this error again:
new alloc for instr 1:
illegal RT scoreline:
i 2 0,000000  3,000000  "flute.aiff"
      ^
illegal RT scoreline:
i 2 1,000000  3,000000  "beats.wav"
      ^

although it works flawlessly when using "Run in Term" in csoundqt.
so something which affects the coordination of csound and csoundqt?

        joachim




Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> is that a comma used as decimal point?  Suggests a locale problem
>
>
>> hi all -
>>
>> i am still struggling with the behaviour of csoundqt: some files are
>> running without any problems when i use "Run in Term", but do not run at
>> all with the usual Run command. i did report this for strtod, now there
>> seems to be something similar for readscore.
>>
>> the readscore example from the manual works perfectly when i use the
>> command "Run in Term", but with the internal csoundqt Run command, i get
>> several lines like this ...
>>
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>
>> ... and then like this:
>>
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>>
>> the complete output is below. i am using csound and csoundqt from
>> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
>> the console is always incomplete. even if the csd runs fine, the last
>> lines of the console output ("0 errors in performance" etc) are missing.
>>
>> when looking at the output, i see that there are commas in my output but
>> dots in the csd file. could there be a problem because of my german os
>> version? (this has never been a problem earlier, though.)
>> (when i change the string in readscore to a simple "i 1 0 1" i still get
>> this output:
>> illegal RT scoreline:
>> i 1 0,000000  1,000000
>>        ^
>> )
>>
>> any idea?
>>
>>      joachim
>>
>>
>>
>>
>> rtmidi: ALSA Raw MIDI module enabled
>> Error: define environment variable RAWWAVE_PATH
>> (points to rawwaves directory) to use STK opcodes.
>> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
>> sorting score ...
>>      ... done
>> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
>> Csound version 6.00.1 (double samples) Aug 26 2013
>> midi channel 1 using instr 1
>> midi channel 2 using instr 2
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> displays suppressed
>> 0dBFS level = 32768,0
>> ALSA midi: Using all devices.
>> ALSA midi: No devices found.
>>
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> ALSA input: total buffer size: 4096, period size: 1024
>> reading 2048-byte blks of shorts from adc (RAW)
>> ALSA output: total buffer size: 4096, period size: 1024
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 44100, monaural
>> opening WAV infile fox.wav
>>     defer length 121569
>> new alloc for instr 2:
>> External LOOP=12 Level:1
>> sread: unexpected char ,
>>     section 1:  at position 36
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (1) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (2) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (3) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (4) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (5) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (6) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (7) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (8) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (9) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 37
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (10) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>>    External LOOP section (11) Level:1
>> sread: unexpected char ,
>>     section 1:  at position 39
>> WARNING: Internal error in print_input_backtrace()
>>         remainder of line flushed
>> External LOOP terminated, level:1
>> illegal RT scoreline:
>> i 1 0,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 1,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 2,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 3,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 4,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 5,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 6,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 7,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 8,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 9,000000  1,000000  1
>>        ^
>> illegal RT scoreline:
>> i 1 10,000000  1,000000  1
>>         ^
>> illegal RT scoreline:
>> i 1 11,000000  1,000000  1
>>         ^
>> WARNING: Buffer underrun in real-time audio output
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-27 19:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundqt oddity
But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
there is anything in the actual code.

Victor
On 27 Aug 2013, at 18:43, Andres Cabrera wrote:

> Hi Michael,
> 
> Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
> 
> Cheers,
> Andrés
> 
> 
> On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins  wrote:
> A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
> 
> I will try to modify CsoundPerformanceThread so that it can be re-run.
> 
> Regards,
> Mike
> 
> 
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins  wrote:
> Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
> 
> So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
> 
> Regards,
> Mike
> 
> 
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins  wrote:
> I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
> 
> STARTING FILE
> **** Licence Information ****
> Copyright (C) 2013 by Michael Gogins.
> All rights reserved.
> **** End of Licence Information ****
> Creating options
> Creating orchestra
> Creating score
> error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> >>>connect "Bower" <<<
> Unexpected untyped word connect when expecting a variable
> Parsing failed due to invalid input!
> cannot compile orchestra
> 
> This implies the problem is in how CsoundQt sets up Csound to run.
> 
> Regards,
> Mike
> 
> 
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera  wrote:
> Hi,
> 
> Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
> 
> Cheers,
> Andrés
> 
> 
> On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz  wrote:
> yes, that was my guess as well. but i have this computer since more than
> one year, and there has not been this problem before.
> 
> it cannot be only a csoundqt issue, i think. i just tested the
> scoreline_i example from the manual. this works:
> scoreline_i {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
> 
> but when i use this instead:
> ires readscore {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
> 
> i get this error again:
> new alloc for instr 1:
> illegal RT scoreline:
> i 2 0,000000  3,000000  "flute.aiff"
>       ^
> illegal RT scoreline:
> i 2 1,000000  3,000000  "beats.wav"
>       ^
> 
> although it works flawlessly when using "Run in Term" in csoundqt.
> so something which affects the coordination of csound and csoundqt?
> 
>         joachim
> 
> 
> 
> 
> Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > is that a comma used as decimal point?  Suggests a locale problem
> >
> >
> >> hi all -
> >>
> >> i am still struggling with the behaviour of csoundqt: some files are
> >> running without any problems when i use "Run in Term", but do not run at
> >> all with the usual Run command. i did report this for strtod, now there
> >> seems to be something similar for readscore.
> >>
> >> the readscore example from the manual works perfectly when i use the
> >> command "Run in Term", but with the internal csoundqt Run command, i get
> >> several lines like this ...
> >>
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>
> >> ... and then like this:
> >>
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >>
> >> the complete output is below. i am using csound and csoundqt from
> >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> >> the console is always incomplete. even if the csd runs fine, the last
> >> lines of the console output ("0 errors in performance" etc) are missing.
> >>
> >> when looking at the output, i see that there are commas in my output but
> >> dots in the csd file. could there be a problem because of my german os
> >> version? (this has never been a problem earlier, though.)
> >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> >> this output:
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000
> >>        ^
> >> )
> >>
> >> any idea?
> >>
> >>      joachim
> >>
> >>
> >>
> >>
> >> rtmidi: ALSA Raw MIDI module enabled
> >> Error: define environment variable RAWWAVE_PATH
> >> (points to rawwaves directory) to use STK opcodes.
> >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> >> sorting score ...
> >>      ... done
> >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> >> Csound version 6.00.1 (double samples) Aug 26 2013
> >> midi channel 1 using instr 1
> >> midi channel 2 using instr 2
> >> midi channel 3 using instr 1
> >> midi channel 4 using instr 1
> >> midi channel 5 using instr 1
> >> midi channel 6 using instr 1
> >> midi channel 7 using instr 1
> >> midi channel 8 using instr 1
> >> midi channel 9 using instr 1
> >> midi channel 10 using instr 1
> >> midi channel 11 using instr 1
> >> midi channel 12 using instr 1
> >> midi channel 13 using instr 1
> >> midi channel 14 using instr 1
> >> midi channel 15 using instr 1
> >> midi channel 16 using instr 1
> >> displays suppressed
> >> 0dBFS level = 32768,0
> >> ALSA midi: Using all devices.
> >> ALSA midi: No devices found.
> >>
> >> orch now loaded
> >> audio buffered in 1024 sample-frame blocks
> >> ALSA input: total buffer size: 4096, period size: 1024
> >> reading 2048-byte blks of shorts from adc (RAW)
> >> ALSA output: total buffer size: 4096, period size: 1024
> >> writing 1024 sample blks of 64-bit floats to dac
> >> SECTION 1:
> >> ftable 1:
> >> deferred alloc
> >> audio sr = 44100, monaural
> >> opening WAV infile fox.wav
> >>     defer length 121569
> >> new alloc for instr 2:
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (1) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (2) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (3) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (4) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (5) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (6) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (7) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (8) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (9) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (10) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (11) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >> External LOOP terminated, level:1
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 1,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 2,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 3,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 4,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 5,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 6,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 7,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 8,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 9,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 10,000000  1,000000  1
> >>         ^
> >> illegal RT scoreline:
> >> i 1 11,000000  1,000000  1
> >>         ^
> >> WARNING: Buffer underrun in real-time audio output
> >> ------------------------------------------------------------------------------
> >> Introducing Performance Central, a new site from SourceForge and
> >> AppDynamics. Performance Central is your source for news, insights,
> >> analysis and resources for efficient Application Performance Management.
> >> Visit us today!
> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 00:40
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  

It is completely clear now that I have read the code more carefully that CsoundPerformanceThread is designed for only one run. The queues are destroyed and not recreated at the end of the run.

On Aug 27, 2013 2:01 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
there is anything in the actual code.

Victor
On 27 Aug 2013, at 18:43, Andres Cabrera wrote:

> Hi Michael,
>
> Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
>
> I will try to modify CsoundPerformanceThread so that it can be re-run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
>
> So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
>
> STARTING FILE
> **** Licence Information ****
> Copyright (C) 2013 by Michael Gogins.
> All rights reserved.
> **** End of Licence Information ****
> Creating options
> Creating orchestra
> Creating score
> error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> >>>connect "Bower" <<<
> Unexpected untyped word connect when expecting a variable
> Parsing failed due to invalid input!
> cannot compile orchestra
>
> This implies the problem is in how CsoundQt sets up Csound to run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
> Hi,
>
> Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
> yes, that was my guess as well. but i have this computer since more than
> one year, and there has not been this problem before.
>
> it cannot be only a csoundqt issue, i think. i just tested the
> scoreline_i example from the manual. this works:
> scoreline_i {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
>
> but when i use this instead:
> ires readscore {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
>
> i get this error again:
> new alloc for instr 1:
> illegal RT scoreline:
> i 2 0,000000  3,000000  "flute.aiff"
>       ^
> illegal RT scoreline:
> i 2 1,000000  3,000000  "beats.wav"
>       ^
>
> although it works flawlessly when using "Run in Term" in csoundqt.
> so something which affects the coordination of csound and csoundqt?
>
>         joachim
>
>
>
>
> Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > is that a comma used as decimal point?  Suggests a locale problem
> >
> >
> >> hi all -
> >>
> >> i am still struggling with the behaviour of csoundqt: some files are
> >> running without any problems when i use "Run in Term", but do not run at
> >> all with the usual Run command. i did report this for strtod, now there
> >> seems to be something similar for readscore.
> >>
> >> the readscore example from the manual works perfectly when i use the
> >> command "Run in Term", but with the internal csoundqt Run command, i get
> >> several lines like this ...
> >>
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>
> >> ... and then like this:
> >>
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >>
> >> the complete output is below. i am using csound and csoundqt from
> >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> >> the console is always incomplete. even if the csd runs fine, the last
> >> lines of the console output ("0 errors in performance" etc) are missing.
> >>
> >> when looking at the output, i see that there are commas in my output but
> >> dots in the csd file. could there be a problem because of my german os
> >> version? (this has never been a problem earlier, though.)
> >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> >> this output:
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000
> >>        ^
> >> )
> >>
> >> any idea?
> >>
> >>      joachim
> >>
> >>
> >>
> >>
> >> rtmidi: ALSA Raw MIDI module enabled
> >> Error: define environment variable RAWWAVE_PATH
> >> (points to rawwaves directory) to use STK opcodes.
> >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> >> sorting score ...
> >>      ... done
> >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> >> Csound version 6.00.1 (double samples) Aug 26 2013
> >> midi channel 1 using instr 1
> >> midi channel 2 using instr 2
> >> midi channel 3 using instr 1
> >> midi channel 4 using instr 1
> >> midi channel 5 using instr 1
> >> midi channel 6 using instr 1
> >> midi channel 7 using instr 1
> >> midi channel 8 using instr 1
> >> midi channel 9 using instr 1
> >> midi channel 10 using instr 1
> >> midi channel 11 using instr 1
> >> midi channel 12 using instr 1
> >> midi channel 13 using instr 1
> >> midi channel 14 using instr 1
> >> midi channel 15 using instr 1
> >> midi channel 16 using instr 1
> >> displays suppressed
> >> 0dBFS level = 32768,0
> >> ALSA midi: Using all devices.
> >> ALSA midi: No devices found.
> >>
> >> orch now loaded
> >> audio buffered in 1024 sample-frame blocks
> >> ALSA input: total buffer size: 4096, period size: 1024
> >> reading 2048-byte blks of shorts from adc (RAW)
> >> ALSA output: total buffer size: 4096, period size: 1024
> >> writing 1024 sample blks of 64-bit floats to dac
> >> SECTION 1:
> >> ftable 1:
> >> deferred alloc
> >> audio sr = 44100, monaural
> >> opening WAV infile fox.wav
> >>     defer length 121569
> >> new alloc for instr 2:
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (1) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (2) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (3) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (4) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (5) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (6) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (7) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (8) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (9) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (10) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (11) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >> External LOOP terminated, level:1
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 1,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 2,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 3,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 4,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 5,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 6,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 7,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 8,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 9,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 10,000000  1,000000  1
> >>         ^
> >> illegal RT scoreline:
> >> i 1 11,000000  1,000000  1
> >>         ^
> >> WARNING: Buffer underrun in real-time audio output
> >> ------------------------------------------------------------------------------
> >> Introducing Performance Central, a new site from SourceForge and
> >> AppDynamics. Performance Central is your source for news, insights,
> >> analysis and resources for efficient Application Performance Management.
> >> Visit us today!
> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-08-28 06:18
FromAndres Cabrera
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
Ah, yes, you are right. But I just checked and I am creating a new performance thread on every run. See line 809 in csoundengine.cpp:

    ud->perfThread = new CsoundPerformanceThread(ud->csound);
    ud->perfThread->SetProcessCallback(CsoundEngine::csThread, (void*)ud);
    ud->perfThread->Play();


So I'm not sure what the problem is. Maybe the mismatch Steven found is doing something bad to the CSOUND struct?

Cheers,
Andrés


On Tue, Aug 27, 2013 at 4:40 PM, Michael Gogins <michael.gogins@gmail.com> wrote:

It is completely clear now that I have read the code more carefully that CsoundPerformanceThread is designed for only one run. The queues are destroyed and not recreated at the end of the run.

On Aug 27, 2013 2:01 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
there is anything in the actual code.

Victor
On 27 Aug 2013, at 18:43, Andres Cabrera wrote:

> Hi Michael,
>
> Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
>
> I will try to modify CsoundPerformanceThread so that it can be re-run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
>
> So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
>
> STARTING FILE
> **** Licence Information ****
> Copyright (C) 2013 by Michael Gogins.
> All rights reserved.
> **** End of Licence Information ****
> Creating options
> Creating orchestra
> Creating score
> error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> >>>connect "Bower" <<<
> Unexpected untyped word connect when expecting a variable
> Parsing failed due to invalid input!
> cannot compile orchestra
>
> This implies the problem is in how CsoundQt sets up Csound to run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
> Hi,
>
> Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
> yes, that was my guess as well. but i have this computer since more than
> one year, and there has not been this problem before.
>
> it cannot be only a csoundqt issue, i think. i just tested the
> scoreline_i example from the manual. this works:
> scoreline_i {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
>
> but when i use this instead:
> ires readscore {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
>
> i get this error again:
> new alloc for instr 1:
> illegal RT scoreline:
> i 2 0,000000  3,000000  "flute.aiff"
>       ^
> illegal RT scoreline:
> i 2 1,000000  3,000000  "beats.wav"
>       ^
>
> although it works flawlessly when using "Run in Term" in csoundqt.
> so something which affects the coordination of csound and csoundqt?
>
>         joachim
>
>
>
>
> Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > is that a comma used as decimal point?  Suggests a locale problem
> >
> >
> >> hi all -
> >>
> >> i am still struggling with the behaviour of csoundqt: some files are
> >> running without any problems when i use "Run in Term", but do not run at
> >> all with the usual Run command. i did report this for strtod, now there
> >> seems to be something similar for readscore.
> >>
> >> the readscore example from the manual works perfectly when i use the
> >> command "Run in Term", but with the internal csoundqt Run command, i get
> >> several lines like this ...
> >>
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>
> >> ... and then like this:
> >>
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >>
> >> the complete output is below. i am using csound and csoundqt from
> >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> >> the console is always incomplete. even if the csd runs fine, the last
> >> lines of the console output ("0 errors in performance" etc) are missing.
> >>
> >> when looking at the output, i see that there are commas in my output but
> >> dots in the csd file. could there be a problem because of my german os
> >> version? (this has never been a problem earlier, though.)
> >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> >> this output:
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000
> >>        ^
> >> )
> >>
> >> any idea?
> >>
> >>      joachim
> >>
> >>
> >>
> >>
> >> rtmidi: ALSA Raw MIDI module enabled
> >> Error: define environment variable RAWWAVE_PATH
> >> (points to rawwaves directory) to use STK opcodes.
> >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> >> sorting score ...
> >>      ... done
> >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> >> Csound version 6.00.1 (double samples) Aug 26 2013
> >> midi channel 1 using instr 1
> >> midi channel 2 using instr 2
> >> midi channel 3 using instr 1
> >> midi channel 4 using instr 1
> >> midi channel 5 using instr 1
> >> midi channel 6 using instr 1
> >> midi channel 7 using instr 1
> >> midi channel 8 using instr 1
> >> midi channel 9 using instr 1
> >> midi channel 10 using instr 1
> >> midi channel 11 using instr 1
> >> midi channel 12 using instr 1
> >> midi channel 13 using instr 1
> >> midi channel 14 using instr 1
> >> midi channel 15 using instr 1
> >> midi channel 16 using instr 1
> >> displays suppressed
> >> 0dBFS level = 32768,0
> >> ALSA midi: Using all devices.
> >> ALSA midi: No devices found.
> >>
> >> orch now loaded
> >> audio buffered in 1024 sample-frame blocks
> >> ALSA input: total buffer size: 4096, period size: 1024
> >> reading 2048-byte blks of shorts from adc (RAW)
> >> ALSA output: total buffer size: 4096, period size: 1024
> >> writing 1024 sample blks of 64-bit floats to dac
> >> SECTION 1:
> >> ftable 1:
> >> deferred alloc
> >> audio sr = 44100, monaural
> >> opening WAV infile fox.wav
> >>     defer length 121569
> >> new alloc for instr 2:
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (1) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (2) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (3) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (4) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (5) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (6) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (7) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (8) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (9) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (10) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (11) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >> External LOOP terminated, level:1
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 1,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 2,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 3,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 4,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 5,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 6,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 7,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 8,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 9,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 10,000000  1,000000  1
> >>         ^
> >> illegal RT scoreline:
> >> i 1 11,000000  1,000000  1
> >>         ^
> >> WARNING: Buffer underrun in real-time audio output
> >> ------------------------------------------------------------------------------
> >> Introducing Performance Central, a new site from SourceForge and
> >> AppDynamics. Performance Central is your source for news, insights,
> >> analysis and resources for efficient Application Performance Management.
> >> Visit us today!
> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-28 09:45
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  

If you are talking about a version mismatch I have ruled this out on my system. Is it possible that the orc or sco is getting corrupted somehow on the second run, that is what the error messages imply.

On Aug 28, 2013 1:19 AM, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
Ah, yes, you are right. But I just checked and I am creating a new performance thread on every run. See line 809 in csoundengine.cpp:

    ud->perfThread = new CsoundPerformanceThread(ud->csound);
    ud->perfThread->SetProcessCallback(CsoundEngine::csThread, (void*)ud);
    ud->perfThread->Play();


So I'm not sure what the problem is. Maybe the mismatch Steven found is doing something bad to the CSOUND struct?

Cheers,
Andrés


On Tue, Aug 27, 2013 at 4:40 PM, Michael Gogins <michael.gogins@gmail.com> wrote:

It is completely clear now that I have read the code more carefully that CsoundPerformanceThread is designed for only one run. The queues are destroyed and not recreated at the end of the run.

On Aug 27, 2013 2:01 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
there is anything in the actual code.

Victor
On 27 Aug 2013, at 18:43, Andres Cabrera wrote:

> Hi Michael,
>
> Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
>
> I will try to modify CsoundPerformanceThread so that it can be re-run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
>
> So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
>
> STARTING FILE
> **** Licence Information ****
> Copyright (C) 2013 by Michael Gogins.
> All rights reserved.
> **** End of Licence Information ****
> Creating options
> Creating orchestra
> Creating score
> error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> >>>connect "Bower" <<<
> Unexpected untyped word connect when expecting a variable
> Parsing failed due to invalid input!
> cannot compile orchestra
>
> This implies the problem is in how CsoundQt sets up Csound to run.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
> Hi,
>
> Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
>
> Cheers,
> Andrés
>
>
> On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
> yes, that was my guess as well. but i have this computer since more than
> one year, and there has not been this problem before.
>
> it cannot be only a csoundqt issue, i think. i just tested the
> scoreline_i example from the manual. this works:
> scoreline_i {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
>
> but when i use this instead:
> ires readscore {{
>              i 2  0  3  "flute.aiff"
>              i 2  1  3  "beats.wav"
>              }}
>
> i get this error again:
> new alloc for instr 1:
> illegal RT scoreline:
> i 2 0,000000  3,000000  "flute.aiff"
>       ^
> illegal RT scoreline:
> i 2 1,000000  3,000000  "beats.wav"
>       ^
>
> although it works flawlessly when using "Run in Term" in csoundqt.
> so something which affects the coordination of csound and csoundqt?
>
>         joachim
>
>
>
>
> Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > is that a comma used as decimal point?  Suggests a locale problem
> >
> >
> >> hi all -
> >>
> >> i am still struggling with the behaviour of csoundqt: some files are
> >> running without any problems when i use "Run in Term", but do not run at
> >> all with the usual Run command. i did report this for strtod, now there
> >> seems to be something similar for readscore.
> >>
> >> the readscore example from the manual works perfectly when i use the
> >> command "Run in Term", but with the internal csoundqt Run command, i get
> >> several lines like this ...
> >>
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>
> >> ... and then like this:
> >>
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >>
> >> the complete output is below. i am using csound and csoundqt from
> >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> >> the console is always incomplete. even if the csd runs fine, the last
> >> lines of the console output ("0 errors in performance" etc) are missing.
> >>
> >> when looking at the output, i see that there are commas in my output but
> >> dots in the csd file. could there be a problem because of my german os
> >> version? (this has never been a problem earlier, though.)
> >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> >> this output:
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000
> >>        ^
> >> )
> >>
> >> any idea?
> >>
> >>      joachim
> >>
> >>
> >>
> >>
> >> rtmidi: ALSA Raw MIDI module enabled
> >> Error: define environment variable RAWWAVE_PATH
> >> (points to rawwaves directory) to use STK opcodes.
> >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> >> sorting score ...
> >>      ... done
> >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> >> Csound version 6.00.1 (double samples) Aug 26 2013
> >> midi channel 1 using instr 1
> >> midi channel 2 using instr 2
> >> midi channel 3 using instr 1
> >> midi channel 4 using instr 1
> >> midi channel 5 using instr 1
> >> midi channel 6 using instr 1
> >> midi channel 7 using instr 1
> >> midi channel 8 using instr 1
> >> midi channel 9 using instr 1
> >> midi channel 10 using instr 1
> >> midi channel 11 using instr 1
> >> midi channel 12 using instr 1
> >> midi channel 13 using instr 1
> >> midi channel 14 using instr 1
> >> midi channel 15 using instr 1
> >> midi channel 16 using instr 1
> >> displays suppressed
> >> 0dBFS level = 32768,0
> >> ALSA midi: Using all devices.
> >> ALSA midi: No devices found.
> >>
> >> orch now loaded
> >> audio buffered in 1024 sample-frame blocks
> >> ALSA input: total buffer size: 4096, period size: 1024
> >> reading 2048-byte blks of shorts from adc (RAW)
> >> ALSA output: total buffer size: 4096, period size: 1024
> >> writing 1024 sample blks of 64-bit floats to dac
> >> SECTION 1:
> >> ftable 1:
> >> deferred alloc
> >> audio sr = 44100, monaural
> >> opening WAV infile fox.wav
> >>     defer length 121569
> >> new alloc for instr 2:
> >> External LOOP=12 Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 36
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (1) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (2) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (3) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (4) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (5) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (6) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (7) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (8) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (9) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 37
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (10) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >>    External LOOP section (11) Level:1
> >> sread: unexpected char ,
> >>     section 1:  at position 39
> >> WARNING: Internal error in print_input_backtrace()
> >>         remainder of line flushed
> >> External LOOP terminated, level:1
> >> illegal RT scoreline:
> >> i 1 0,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 1,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 2,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 3,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 4,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 5,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 6,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 7,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 8,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 9,000000  1,000000  1
> >>        ^
> >> illegal RT scoreline:
> >> i 1 10,000000  1,000000  1
> >>         ^
> >> illegal RT scoreline:
> >> i 1 11,000000  1,000000  1
> >>         ^
> >> WARNING: Buffer underrun in real-time audio output
> >> ------------------------------------------------------------------------------
> >> Introducing Performance Central, a new site from SourceForge and
> >> AppDynamics. Performance Central is your source for news, insights,
> >> analysis and resources for efficient Application Performance Management.
> >> Visit us today!
> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 09:56
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundqt oddity
Have you looked at the IO modules (audio / midi)? It is possible that either portaudio or portmidi have reentrancy issues and
are bringing the whole thing down. You could try running Csound with the dummy module (-+rtaudio=dummy) to see if
it changes anything (also possibly removing rtpa.dll and rtmidi.dll from the OPCODEDIR just to make sure).


On 28 Aug 2013, at 09:45, Michael Gogins wrote:

> If you are talking about a version mismatch I have ruled this out on my system. Is it possible that the orc or sco is getting corrupted somehow on the second run, that is what the error messages imply.
> 
> On Aug 28, 2013 1:19 AM, "Andres Cabrera"  wrote:
> Ah, yes, you are right. But I just checked and I am creating a new performance thread on every run. See line 809 in csoundengine.cpp:
> 
>     ud->perfThread = new CsoundPerformanceThread(ud->csound);
>     ud->perfThread->SetProcessCallback(CsoundEngine::csThread, (void*)ud);
>     ud->perfThread->Play();
> 
> 
> So I'm not sure what the problem is. Maybe the mismatch Steven found is doing something bad to the CSOUND struct?
> 
> Cheers,
> Andrés
> 
> 
> On Tue, Aug 27, 2013 at 4:40 PM, Michael Gogins  wrote:
> It is completely clear now that I have read the code more carefully that CsoundPerformanceThread is designed for only one run. The queues are destroyed and not recreated at the end of the run.
> 
> On Aug 27, 2013 2:01 PM, "Victor Lazzarini"  wrote:
> But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
> there is anything in the actual code.
> 
> Victor
> On 27 Aug 2013, at 18:43, Andres Cabrera wrote:
> 
> > Hi Michael,
> >
> > Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
> >
> > Cheers,
> > Andrés
> >
> >
> > On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins  wrote:
> > A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
> >
> > I will try to modify CsoundPerformanceThread so that it can be re-run.
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins  wrote:
> > Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
> >
> > So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins  wrote:
> > I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
> >
> > STARTING FILE
> > **** Licence Information ****
> > Copyright (C) 2013 by Michael Gogins.
> > All rights reserved.
> > **** End of Licence Information ****
> > Creating options
> > Creating orchestra
> > Creating score
> > error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> > >>>connect "Bower" <<<
> > Unexpected untyped word connect when expecting a variable
> > Parsing failed due to invalid input!
> > cannot compile orchestra
> >
> > This implies the problem is in how CsoundQt sets up Csound to run.
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera  wrote:
> > Hi,
> >
> > Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
> >
> > Cheers,
> > Andrés
> >
> >
> > On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz  wrote:
> > yes, that was my guess as well. but i have this computer since more than
> > one year, and there has not been this problem before.
> >
> > it cannot be only a csoundqt issue, i think. i just tested the
> > scoreline_i example from the manual. this works:
> > scoreline_i {{
> >              i 2  0  3  "flute.aiff"
> >              i 2  1  3  "beats.wav"
> >              }}
> >
> > but when i use this instead:
> > ires readscore {{
> >              i 2  0  3  "flute.aiff"
> >              i 2  1  3  "beats.wav"
> >              }}
> >
> > i get this error again:
> > new alloc for instr 1:
> > illegal RT scoreline:
> > i 2 0,000000  3,000000  "flute.aiff"
> >       ^
> > illegal RT scoreline:
> > i 2 1,000000  3,000000  "beats.wav"
> >       ^
> >
> > although it works flawlessly when using "Run in Term" in csoundqt.
> > so something which affects the coordination of csound and csoundqt?
> >
> >         joachim
> >
> >
> >
> >
> > Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > > is that a comma used as decimal point?  Suggests a locale problem
> > >
> > >
> > >> hi all -
> > >>
> > >> i am still struggling with the behaviour of csoundqt: some files are
> > >> running without any problems when i use "Run in Term", but do not run at
> > >> all with the usual Run command. i did report this for strtod, now there
> > >> seems to be something similar for readscore.
> > >>
> > >> the readscore example from the manual works perfectly when i use the
> > >> command "Run in Term", but with the internal csoundqt Run command, i get
> > >> several lines like this ...
> > >>
> > >> External LOOP=12 Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 36
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>
> > >> ... and then like this:
> > >>
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000  1
> > >>        ^
> > >>
> > >> the complete output is below. i am using csound and csoundqt from
> > >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> > >> the console is always incomplete. even if the csd runs fine, the last
> > >> lines of the console output ("0 errors in performance" etc) are missing.
> > >>
> > >> when looking at the output, i see that there are commas in my output but
> > >> dots in the csd file. could there be a problem because of my german os
> > >> version? (this has never been a problem earlier, though.)
> > >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> > >> this output:
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000
> > >>        ^
> > >> )
> > >>
> > >> any idea?
> > >>
> > >>      joachim
> > >>
> > >>
> > >>
> > >>
> > >> rtmidi: ALSA Raw MIDI module enabled
> > >> Error: define environment variable RAWWAVE_PATH
> > >> (points to rawwaves directory) to use STK opcodes.
> > >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> > >> sorting score ...
> > >>      ... done
> > >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> > >> Csound version 6.00.1 (double samples) Aug 26 2013
> > >> midi channel 1 using instr 1
> > >> midi channel 2 using instr 2
> > >> midi channel 3 using instr 1
> > >> midi channel 4 using instr 1
> > >> midi channel 5 using instr 1
> > >> midi channel 6 using instr 1
> > >> midi channel 7 using instr 1
> > >> midi channel 8 using instr 1
> > >> midi channel 9 using instr 1
> > >> midi channel 10 using instr 1
> > >> midi channel 11 using instr 1
> > >> midi channel 12 using instr 1
> > >> midi channel 13 using instr 1
> > >> midi channel 14 using instr 1
> > >> midi channel 15 using instr 1
> > >> midi channel 16 using instr 1
> > >> displays suppressed
> > >> 0dBFS level = 32768,0
> > >> ALSA midi: Using all devices.
> > >> ALSA midi: No devices found.
> > >>
> > >> orch now loaded
> > >> audio buffered in 1024 sample-frame blocks
> > >> ALSA input: total buffer size: 4096, period size: 1024
> > >> reading 2048-byte blks of shorts from adc (RAW)
> > >> ALSA output: total buffer size: 4096, period size: 1024
> > >> writing 1024 sample blks of 64-bit floats to dac
> > >> SECTION 1:
> > >> ftable 1:
> > >> deferred alloc
> > >> audio sr = 44100, monaural
> > >> opening WAV infile fox.wav
> > >>     defer length 121569
> > >> new alloc for instr 2:
> > >> External LOOP=12 Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 36
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (1) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (2) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (3) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (4) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (5) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (6) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (7) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (8) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (9) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (10) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 39
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (11) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 39
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >> External LOOP terminated, level:1
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 1,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 2,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 3,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 4,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 5,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 6,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 7,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 8,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 9,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 10,000000  1,000000  1
> > >>         ^
> > >> illegal RT scoreline:
> > >> i 1 11,000000  1,000000  1
> > >>         ^
> > >> WARNING: Buffer underrun in real-time audio output
> > >> ------------------------------------------------------------------------------
> > >> Introducing Performance Central, a new site from SourceForge and
> > >> AppDynamics. Performance Central is your source for news, insights,
> > >> analysis and resources for efficient Application Performance Management.
> > >> Visit us today!
> > >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> > >> Csound-devel mailing list
> > >> Csound-devel@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >>
> > >
> > >
> > >
> > > ------------------------------------------------------------------------------
> > > Introducing Performance Central, a new site from SourceForge and
> > > AppDynamics. Performance Central is your source for news, insights,
> > > analysis and resources for efficient Application Performance Management.
> > > Visit us today!
> > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 12:19
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
Thanks for your excellent suggestion. I have done some tests and localized the problem to CsoundQt.

The problem occurs in the "upper half" of both the Csound audio driver and the Csound MIDI driver. If I use null drivers I can run twice. If I use either -+rtaudio=PortAudio or -+rtaudio=winmm I can run twice, but I get actual sound only on the first run. Obviously it does not matter which "lower half" I use, PortAudio or Windows. If I use rtmidi the first run succeeds but the second one fails with the error shown below.

I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.

Csound version 6.00.1 (double samples) Aug 27 2013

midi channel 1 using instr 1

midi channel 2 using instr 2

midi channel 3 using instr 3

midi channel 4 using instr 4

midi channel 5 using instr 5

midi channel 6 using instr 6

midi channel 7 using instr 7

midi channel 8 using instr 8

midi channel 9 using instr 9

midi channel 10 using instr 10

midi channel 11 using instr 11

midi channel 12 using instr 12

midi channel 13 using instr 13

midi channel 14 using instr 1

midi channel 15 using instr 1

midi channel 16 using instr 1

displays suppressed

0dBFS level = 32768.0

error: -+rtmidi='portmidi': unknown module

*** error opening MIDI in device: -1 (Unknown MIDI error)

STARTING FILE

Creating options

Creating orchestra

Creating score


  Test: Test Performance Thread ...virtual_keyboard real time MIDI plugin for Csound

0dBFS level = 32768.0

Csound version 6.00.1 (double samples) Aug 27 2013

libsndfile-1.0.25

rtaudio: PortAudio module enabled ...

using callback interface

rtmidi: PortMIDI module enabled

Csound version 6.00.1 (double samples) Aug 27 2013

graphics suppressed, ascii substituted

0dBFS level = 32768.0

orch now loaded

audio buffered in 4096 sample-frame blocks

PortAudio V19-devel (built Jul 31 2013 12:17:21)

   0: dac0 (Microsoft Sound Mapper - Output)

   1: dac1 (Line Out (3- Scarlett 2i4 USB))

   2: dac2 (Speakers (VIA High Definition A)

   3: dac3 (SPDIF Interface (TX0) (VIA High)

   4: dac4 (Primary Sound Driver)

   5: dac5 (Line Out (3- Scarlett 2i4 USB))

   6: dac6 (Speakers (VIA High Definition Audio))

   7: dac7 (SPDIF Interface (TX0) (VIA High Definition Audio))

   8: dac8 (Focusrite USB 2.0 Audio Driver)

PortAudio: selected output device 'Line Out (3- Scarlett 2i4 USB)'

writing 4096 sample blks of 64-bit floats to dac

SECTION 1:

new alloc for instr 1:

B  0.000 ..  3.000 T  3.000 TT  3.000 M:   9641.6

Score finished in csoundPerformKsmps().

inactive allocs returned to freespace

end of score.              overall amps:   9641.6

           overall samples out of range:        0

0 errors in performance

Elapsed time at end of performance: real: 3.139s, CPU: 3.139s

closing device

33 4096 sample blks of 64-bit floats written to dac

resetting Csound instance

virtual_keyboard real time MIDI plugin for Csound

0dBFS level = 32768.0

Csound version 6.00.1 (double samples) Aug 27 2013

libsndfile-1.0.25

rtaudio: PortAudio module enabled ...

using callback interface

rtmidi: PortMIDI module enabled

Csound version 6.00.1 (double samples) Aug 27 2013

graphics suppressed, ascii substituted

0dBFS level = 32768.0

orch now loaded

audio buffered in 4096 sample-frame blocks

PortAudio V19-devel (built Jul 31 2013 12:17:21)

   0: dac0 (Microsoft Sound Mapper - Output)

   1: dac1 (Line Out (3- Scarlett 2i4 USB))

   2: dac2 (Speakers (VIA High Definition A)

   3: dac3 (SPDIF Interface (TX0) (VIA High)

   4: dac4 (Primary Sound Driver)

   5: dac5 (Line Out (3- Scarlett 2i4 USB))

   6: dac6 (Speakers (VIA High Definition Audio))

   7: dac7 (SPDIF Interface (TX0) (VIA High Definition Audio))

   8: dac8 (Focusrite USB 2.0 Audio Driver)

PortAudio: selected output device 'Line Out (3- Scarlett 2i4 USB)'

writing 4096 sample blks of 64-bit floats to dac

SECTION 1:

new alloc for instr 1:

B  0.000 ..  3.000 T  3.000 TT  3.000 M:   9641.6

Score finished in csoundPerformKsmps().

inactive allocs returned to freespace

end of score.              overall amps:   9641.6

           overall samples out of range:        0

0 errors in performance

Elapsed time at end of performance: real: 3.096s, CPU: 3.096s

closing device

33 4096 sample blks of 64-bit floats written to dac

resetting Csound instance

virtual_keyboard real time MIDI plugin for Csound

0dBFS level = 32768.0

Csound version 6.00.1 (double samples) Aug 27 2013

libsndfile-1.0.25

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.011s, CPU: 0.011s

passed


Run Summary:    Type  Total    Ran Passed Failed Inactive

              suites      1      1    n/a      0        0

               tests      1      1      1      0        0

             asserts      0      0      0      0      n/a


Elapsed time =    7.262 seconds



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 4:56 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Have you looked at the IO modules (audio / midi)? It is possible that either portaudio or portmidi have reentrancy issues and
are bringing the whole thing down. You could try running Csound with the dummy module (-+rtaudio=dummy) to see if
it changes anything (also possibly removing rtpa.dll and rtmidi.dll from the OPCODEDIR just to make sure).


On 28 Aug 2013, at 09:45, Michael Gogins wrote:

> If you are talking about a version mismatch I have ruled this out on my system. Is it possible that the orc or sco is getting corrupted somehow on the second run, that is what the error messages imply.
>
> On Aug 28, 2013 1:19 AM, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
> Ah, yes, you are right. But I just checked and I am creating a new performance thread on every run. See line 809 in csoundengine.cpp:
>
>     ud->perfThread = new CsoundPerformanceThread(ud->csound);
>     ud->perfThread->SetProcessCallback(CsoundEngine::csThread, (void*)ud);
>     ud->perfThread->Play();
>
>
> So I'm not sure what the problem is. Maybe the mismatch Steven found is doing something bad to the CSOUND struct?
>
> Cheers,
> Andrés
>
>
> On Tue, Aug 27, 2013 at 4:40 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
> It is completely clear now that I have read the code more carefully that CsoundPerformanceThread is designed for only one run. The queues are destroyed and not recreated at the end of the run.
>
> On Aug 27, 2013 2:01 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
> But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
> there is anything in the actual code.
>
> Victor
> On 27 Aug 2013, at 18:43, Andres Cabrera wrote:
>
> > Hi Michael,
> >
> > Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
> >
> > Cheers,
> > Andrés
> >
> >
> > On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> > A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
> >
> > I will try to modify CsoundPerformanceThread so that it can be re-run.
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> > Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
> >
> > So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> > I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
> >
> > STARTING FILE
> > **** Licence Information ****
> > Copyright (C) 2013 by Michael Gogins.
> > All rights reserved.
> > **** End of Licence Information ****
> > Creating options
> > Creating orchestra
> > Creating score
> > error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> > >>>connect "Bower" <<<
> > Unexpected untyped word connect when expecting a variable
> > Parsing failed due to invalid input!
> > cannot compile orchestra
> >
> > This implies the problem is in how CsoundQt sets up Csound to run.
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
> > Hi,
> >
> > Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
> >
> > Cheers,
> > Andrés
> >
> >
> > On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
> > yes, that was my guess as well. but i have this computer since more than
> > one year, and there has not been this problem before.
> >
> > it cannot be only a csoundqt issue, i think. i just tested the
> > scoreline_i example from the manual. this works:
> > scoreline_i {{
> >              i 2  0  3  "flute.aiff"
> >              i 2  1  3  "beats.wav"
> >              }}
> >
> > but when i use this instead:
> > ires readscore {{
> >              i 2  0  3  "flute.aiff"
> >              i 2  1  3  "beats.wav"
> >              }}
> >
> > i get this error again:
> > new alloc for instr 1:
> > illegal RT scoreline:
> > i 2 0,000000  3,000000  "flute.aiff"
> >       ^
> > illegal RT scoreline:
> > i 2 1,000000  3,000000  "beats.wav"
> >       ^
> >
> > although it works flawlessly when using "Run in Term" in csoundqt.
> > so something which affects the coordination of csound and csoundqt?
> >
> >         joachim
> >
> >
> >
> >
> > Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > > is that a comma used as decimal point?  Suggests a locale problem
> > >
> > >
> > >> hi all -
> > >>
> > >> i am still struggling with the behaviour of csoundqt: some files are
> > >> running without any problems when i use "Run in Term", but do not run at
> > >> all with the usual Run command. i did report this for strtod, now there
> > >> seems to be something similar for readscore.
> > >>
> > >> the readscore example from the manual works perfectly when i use the
> > >> command "Run in Term", but with the internal csoundqt Run command, i get
> > >> several lines like this ...
> > >>
> > >> External LOOP=12 Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 36
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>
> > >> ... and then like this:
> > >>
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000  1
> > >>        ^
> > >>
> > >> the complete output is below. i am using csound and csoundqt from
> > >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> > >> the console is always incomplete. even if the csd runs fine, the last
> > >> lines of the console output ("0 errors in performance" etc) are missing.
> > >>
> > >> when looking at the output, i see that there are commas in my output but
> > >> dots in the csd file. could there be a problem because of my german os
> > >> version? (this has never been a problem earlier, though.)
> > >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> > >> this output:
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000
> > >>        ^
> > >> )
> > >>
> > >> any idea?
> > >>
> > >>      joachim
> > >>
> > >>
> > >>
> > >>
> > >> rtmidi: ALSA Raw MIDI module enabled
> > >> Error: define environment variable RAWWAVE_PATH
> > >> (points to rawwaves directory) to use STK opcodes.
> > >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> > >> sorting score ...
> > >>      ... done
> > >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> > >> Csound version 6.00.1 (double samples) Aug 26 2013
> > >> midi channel 1 using instr 1
> > >> midi channel 2 using instr 2
> > >> midi channel 3 using instr 1
> > >> midi channel 4 using instr 1
> > >> midi channel 5 using instr 1
> > >> midi channel 6 using instr 1
> > >> midi channel 7 using instr 1
> > >> midi channel 8 using instr 1
> > >> midi channel 9 using instr 1
> > >> midi channel 10 using instr 1
> > >> midi channel 11 using instr 1
> > >> midi channel 12 using instr 1
> > >> midi channel 13 using instr 1
> > >> midi channel 14 using instr 1
> > >> midi channel 15 using instr 1
> > >> midi channel 16 using instr 1
> > >> displays suppressed
> > >> 0dBFS level = 32768,0
> > >> ALSA midi: Using all devices.
> > >> ALSA midi: No devices found.
> > >>
> > >> orch now loaded
> > >> audio buffered in 1024 sample-frame blocks
> > >> ALSA input: total buffer size: 4096, period size: 1024
> > >> reading 2048-byte blks of shorts from adc (RAW)
> > >> ALSA output: total buffer size: 4096, period size: 1024
> > >> writing 1024 sample blks of 64-bit floats to dac
> > >> SECTION 1:
> > >> ftable 1:
> > >> deferred alloc
> > >> audio sr = 44100, monaural
> > >> opening WAV infile fox.wav
> > >>     defer length 121569
> > >> new alloc for instr 2:
> > >> External LOOP=12 Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 36
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (1) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (2) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (3) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (4) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (5) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (6) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (7) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (8) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (9) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (10) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 39
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (11) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 39
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >> External LOOP terminated, level:1
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 1,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 2,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 3,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 4,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 5,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 6,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 7,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 8,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 9,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 10,000000  1,000000  1
> > >>         ^
> > >> illegal RT scoreline:
> > >> i 1 11,000000  1,000000  1
> > >>         ^
> > >> WARNING: Buffer underrun in real-time audio output
> > >> ------------------------------------------------------------------------------
> > >> Introducing Performance Central, a new site from SourceForge and
> > >> AppDynamics. Performance Central is your source for news, insights,
> > >> analysis and resources for efficient Application Performance Management.
> > >> Visit us today!
> > >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> > >> Csound-devel mailing list
> > >> Csound-devel@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >>
> > >
> > >
> > >
> > > ------------------------------------------------------------------------------
> > > Introducing Performance Central, a new site from SourceForge and
> > > AppDynamics. Performance Central is your source for news, insights,
> > > analysis and resources for efficient Application Performance Management.
> > > Visit us today!
> > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 12:27
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
My wording was less than precise. Here is a summary of what I have found.

CsoundPerformanceThread is designed to be used for one run of Csound. If it is run twice, there is no actual thread, so in a second run, there is in effect an empty score. Csound compiles the orc and then quits.

CsoundQt re-creates both Csound and CsoundPerformanceThread for each run (on Windows, at least). So it should work. But it doesn't work. WIth null audio and MIDI drivers, CsoundQt can run a piece twice. With a real MIDI driver but a null audio driver, CsoundQt will run once, but a second run ends with an error message:

error: -+rtmidi='portmidi': unknown module

*** error opening MIDI in device: -1 (Unknown MIDI error)

If CoundQt is run with a real audio driver, it runs fine the first time, but the second time, it runs but produces no actual sound.

I have proved that the cause does not lie in Csound itself or in its audio drivers by rewriting perfthread_test.cpp to perform two runs to dac, which work fine.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 7:19 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
Thanks for your excellent suggestion. I have done some tests and localized the problem to CsoundQt.

The problem occurs in the "upper half" of both the Csound audio driver and the Csound MIDI driver. If I use null drivers I can run twice. If I use either -+rtaudio=PortAudio or -+rtaudio=winmm I can run twice, but I get actual sound only on the first run. Obviously it does not matter which "lower half" I use, PortAudio or Windows. If I use rtmidi the first run succeeds but the second one fails with the error shown below.

I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.

Csound version 6.00.1 (double samples) Aug 27 2013

midi channel 1 using instr 1

midi channel 2 using instr 2

midi channel 3 using instr 3

midi channel 4 using instr 4

midi channel 5 using instr 5

midi channel 6 using instr 6

midi channel 7 using instr 7

midi channel 8 using instr 8

midi channel 9 using instr 9

midi channel 10 using instr 10

midi channel 11 using instr 11

midi channel 12 using instr 12

midi channel 13 using instr 13

midi channel 14 using instr 1

midi channel 15 using instr 1

midi channel 16 using instr 1

displays suppressed

0dBFS level = 32768.0

error: -+rtmidi='portmidi': unknown module

*** error opening MIDI in device: -1 (Unknown MIDI error)

STARTING FILE

Creating options

Creating orchestra

Creating score


  Test: Test Performance Thread ...virtual_keyboard real time MIDI plugin for Csound

0dBFS level = 32768.0

Csound version 6.00.1 (double samples) Aug 27 2013

libsndfile-1.0.25

rtaudio: PortAudio module enabled ...

using callback interface

rtmidi: PortMIDI module enabled

Csound version 6.00.1 (double samples) Aug 27 2013

graphics suppressed, ascii substituted

0dBFS level = 32768.0

orch now loaded

audio buffered in 4096 sample-frame blocks

PortAudio V19-devel (built Jul 31 2013 12:17:21)

   0: dac0 (Microsoft Sound Mapper - Output)

   1: dac1 (Line Out (3- Scarlett 2i4 USB))

   2: dac2 (Speakers (VIA High Definition A)

   3: dac3 (SPDIF Interface (TX0) (VIA High)

   4: dac4 (Primary Sound Driver)

   5: dac5 (Line Out (3- Scarlett 2i4 USB))

   6: dac6 (Speakers (VIA High Definition Audio))

   7: dac7 (SPDIF Interface (TX0) (VIA High Definition Audio))

   8: dac8 (Focusrite USB 2.0 Audio Driver)

PortAudio: selected output device 'Line Out (3- Scarlett 2i4 USB)'

writing 4096 sample blks of 64-bit floats to dac

SECTION 1:

new alloc for instr 1:

B  0.000 ..  3.000 T  3.000 TT  3.000 M:   9641.6

Score finished in csoundPerformKsmps().

inactive allocs returned to freespace

end of score.              overall amps:   9641.6

           overall samples out of range:        0

0 errors in performance

Elapsed time at end of performance: real: 3.139s, CPU: 3.139s

closing device

33 4096 sample blks of 64-bit floats written to dac

resetting Csound instance

virtual_keyboard real time MIDI plugin for Csound

0dBFS level = 32768.0

Csound version 6.00.1 (double samples) Aug 27 2013

libsndfile-1.0.25

rtaudio: PortAudio module enabled ...

using callback interface

rtmidi: PortMIDI module enabled

Csound version 6.00.1 (double samples) Aug 27 2013

graphics suppressed, ascii substituted

0dBFS level = 32768.0

orch now loaded

audio buffered in 4096 sample-frame blocks

PortAudio V19-devel (built Jul 31 2013 12:17:21)

   0: dac0 (Microsoft Sound Mapper - Output)

   1: dac1 (Line Out (3- Scarlett 2i4 USB))

   2: dac2 (Speakers (VIA High Definition A)

   3: dac3 (SPDIF Interface (TX0) (VIA High)

   4: dac4 (Primary Sound Driver)

   5: dac5 (Line Out (3- Scarlett 2i4 USB))

   6: dac6 (Speakers (VIA High Definition Audio))

   7: dac7 (SPDIF Interface (TX0) (VIA High Definition Audio))

   8: dac8 (Focusrite USB 2.0 Audio Driver)

PortAudio: selected output device 'Line Out (3- Scarlett 2i4 USB)'

writing 4096 sample blks of 64-bit floats to dac

SECTION 1:

new alloc for instr 1:

B  0.000 ..  3.000 T  3.000 TT  3.000 M:   9641.6

Score finished in csoundPerformKsmps().

inactive allocs returned to freespace

end of score.              overall amps:   9641.6

           overall samples out of range:        0

0 errors in performance

Elapsed time at end of performance: real: 3.096s, CPU: 3.096s

closing device

33 4096 sample blks of 64-bit floats written to dac

resetting Csound instance

virtual_keyboard real time MIDI plugin for Csound

0dBFS level = 32768.0

Csound version 6.00.1 (double samples) Aug 27 2013

libsndfile-1.0.25

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.011s, CPU: 0.011s

passed


Run Summary:    Type  Total    Ran Passed Failed Inactive

              suites      1      1    n/a      0        0

               tests      1      1      1      0        0

             asserts      0      0      0      0      n/a


Elapsed time =    7.262 seconds



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 4:56 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Have you looked at the IO modules (audio / midi)? It is possible that either portaudio or portmidi have reentrancy issues and
are bringing the whole thing down. You could try running Csound with the dummy module (-+rtaudio=dummy) to see if
it changes anything (also possibly removing rtpa.dll and rtmidi.dll from the OPCODEDIR just to make sure).


On 28 Aug 2013, at 09:45, Michael Gogins wrote:

> If you are talking about a version mismatch I have ruled this out on my system. Is it possible that the orc or sco is getting corrupted somehow on the second run, that is what the error messages imply.
>
> On Aug 28, 2013 1:19 AM, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
> Ah, yes, you are right. But I just checked and I am creating a new performance thread on every run. See line 809 in csoundengine.cpp:
>
>     ud->perfThread = new CsoundPerformanceThread(ud->csound);
>     ud->perfThread->SetProcessCallback(CsoundEngine::csThread, (void*)ud);
>     ud->perfThread->Play();
>
>
> So I'm not sure what the problem is. Maybe the mismatch Steven found is doing something bad to the CSOUND struct?
>
> Cheers,
> Andrés
>
>
> On Tue, Aug 27, 2013 at 4:40 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
> It is completely clear now that I have read the code more carefully that CsoundPerformanceThread is designed for only one run. The queues are destroyed and not recreated at the end of the run.
>
> On Aug 27, 2013 2:01 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
> But the problem seems to be limited to Windows. OSX and Linux are OK. So I am not sure really whether
> there is anything in the actual code.
>
> Victor
> On 27 Aug 2013, at 18:43, Andres Cabrera wrote:
>
> > Hi Michael,
> >
> > Thanks for looking. Do you have any ideas why the performance thread might not allow re-runs? Maybe there has been some change in how cleanup is being done in Csound6 that needs to be changed for the perfThread?
> >
> > Cheers,
> > Andrés
> >
> >
> > On Mon, Aug 26, 2013 at 8:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> > A single instance of Csound can be run a second time. A single instance of CsoundPerformanceThread cannot be run a second time. A new instance of CsoundPerformanceThread run with an existing, previously run instance of Csound will run.
> >
> > I will try to modify CsoundPerformanceThread so that it can be re-run.
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 11:45 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> > Actually, because running CsoundQt uses CsoundPerformanceThread and running in terminal does not, there is still a possibility that the problem is in CsoundPerformanceThread. I am modifying the unit test for CsoundPerformanceThread... testing... fails.
> >
> > So, the problem is that a single instance of Csound and CsoundPerformanceThread cannot be run a second time. I am debugging now...
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 9:48 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
> > I did not try running in terminal... doing that now... works fine a second time running in terminal. Running a second time in CsoundQt I get:
> >
> > STARTING FILE
> > **** Licence Information ****
> > Copyright (C) 2013 by Michael Gogins.
> > All rights reserved.
> > **** End of Licence Information ****
> > Creating options
> > Creating orchestra
> > Creating score
> > error: syntax error, unexpected STRING_TOKEN (token ""Bower"") line 57:
> > >>>connect "Bower" <<<
> > Unexpected untyped word connect when expecting a variable
> > Parsing failed due to invalid input!
> > cannot compile orchestra
> >
> > This implies the problem is in how CsoundQt sets up Csound to run.
> >
> > Regards,
> > Mike
> >
> >
> > ===========================
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> >
> >
> > On Mon, Aug 26, 2013 at 9:35 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
> > Hi,
> >
> > Are you sure you are running Csound6 when running in term? I can't think why CsoundQt can be a factor here, this all should be handled within Csound, so I think the problem lies there.
> >
> > Cheers,
> > Andrés
> >
> >
> > On Mon, Aug 26, 2013 at 3:57 AM, joachim heintz <jh@joachimheintz.de> wrote:
> > yes, that was my guess as well. but i have this computer since more than
> > one year, and there has not been this problem before.
> >
> > it cannot be only a csoundqt issue, i think. i just tested the
> > scoreline_i example from the manual. this works:
> > scoreline_i {{
> >              i 2  0  3  "flute.aiff"
> >              i 2  1  3  "beats.wav"
> >              }}
> >
> > but when i use this instead:
> > ires readscore {{
> >              i 2  0  3  "flute.aiff"
> >              i 2  1  3  "beats.wav"
> >              }}
> >
> > i get this error again:
> > new alloc for instr 1:
> > illegal RT scoreline:
> > i 2 0,000000  3,000000  "flute.aiff"
> >       ^
> > illegal RT scoreline:
> > i 2 1,000000  3,000000  "beats.wav"
> >       ^
> >
> > although it works flawlessly when using "Run in Term" in csoundqt.
> > so something which affects the coordination of csound and csoundqt?
> >
> >         joachim
> >
> >
> >
> >
> > Am 26.08.2013 12:28, schrieb jpff@cs.bath.ac.uk:
> > > is that a comma used as decimal point?  Suggests a locale problem
> > >
> > >
> > >> hi all -
> > >>
> > >> i am still struggling with the behaviour of csoundqt: some files are
> > >> running without any problems when i use "Run in Term", but do not run at
> > >> all with the usual Run command. i did report this for strtod, now there
> > >> seems to be something similar for readscore.
> > >>
> > >> the readscore example from the manual works perfectly when i use the
> > >> command "Run in Term", but with the internal csoundqt Run command, i get
> > >> several lines like this ...
> > >>
> > >> External LOOP=12 Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 36
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>
> > >> ... and then like this:
> > >>
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000  1
> > >>        ^
> > >>
> > >> the complete output is below. i am using csound and csoundqt from
> > >> today's git on ubuntu studio 12.04. by the way, the csoundqt output in
> > >> the console is always incomplete. even if the csd runs fine, the last
> > >> lines of the console output ("0 errors in performance" etc) are missing.
> > >>
> > >> when looking at the output, i see that there are commas in my output but
> > >> dots in the csd file. could there be a problem because of my german os
> > >> version? (this has never been a problem earlier, though.)
> > >> (when i change the string in readscore to a simple "i 1 0 1" i still get
> > >> this output:
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000
> > >>        ^
> > >> )
> > >>
> > >> any idea?
> > >>
> > >>      joachim
> > >>
> > >>
> > >>
> > >>
> > >> rtmidi: ALSA Raw MIDI module enabled
> > >> Error: define environment variable RAWWAVE_PATH
> > >> (points to rawwaves directory) to use STK opcodes.
> > >> Elapsed time at end of orchestra compile: real: 0,006s, CPU: 0,010s
> > >> sorting score ...
> > >>      ... done
> > >> Elapsed time at end of score sort: real: 0,006s, CPU: 0,010s
> > >> Csound version 6.00.1 (double samples) Aug 26 2013
> > >> midi channel 1 using instr 1
> > >> midi channel 2 using instr 2
> > >> midi channel 3 using instr 1
> > >> midi channel 4 using instr 1
> > >> midi channel 5 using instr 1
> > >> midi channel 6 using instr 1
> > >> midi channel 7 using instr 1
> > >> midi channel 8 using instr 1
> > >> midi channel 9 using instr 1
> > >> midi channel 10 using instr 1
> > >> midi channel 11 using instr 1
> > >> midi channel 12 using instr 1
> > >> midi channel 13 using instr 1
> > >> midi channel 14 using instr 1
> > >> midi channel 15 using instr 1
> > >> midi channel 16 using instr 1
> > >> displays suppressed
> > >> 0dBFS level = 32768,0
> > >> ALSA midi: Using all devices.
> > >> ALSA midi: No devices found.
> > >>
> > >> orch now loaded
> > >> audio buffered in 1024 sample-frame blocks
> > >> ALSA input: total buffer size: 4096, period size: 1024
> > >> reading 2048-byte blks of shorts from adc (RAW)
> > >> ALSA output: total buffer size: 4096, period size: 1024
> > >> writing 1024 sample blks of 64-bit floats to dac
> > >> SECTION 1:
> > >> ftable 1:
> > >> deferred alloc
> > >> audio sr = 44100, monaural
> > >> opening WAV infile fox.wav
> > >>     defer length 121569
> > >> new alloc for instr 2:
> > >> External LOOP=12 Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 36
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (1) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (2) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (3) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (4) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (5) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (6) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (7) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (8) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (9) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 37
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (10) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 39
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >>    External LOOP section (11) Level:1
> > >> sread: unexpected char ,
> > >>     section 1:  at position 39
> > >> WARNING: Internal error in print_input_backtrace()
> > >>         remainder of line flushed
> > >> External LOOP terminated, level:1
> > >> illegal RT scoreline:
> > >> i 1 0,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 1,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 2,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 3,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 4,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 5,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 6,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 7,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 8,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 9,000000  1,000000  1
> > >>        ^
> > >> illegal RT scoreline:
> > >> i 1 10,000000  1,000000  1
> > >>         ^
> > >> illegal RT scoreline:
> > >> i 1 11,000000  1,000000  1
> > >>         ^
> > >> WARNING: Buffer underrun in real-time audio output
> > >> ------------------------------------------------------------------------------
> > >> Introducing Performance Central, a new site from SourceForge and
> > >> AppDynamics. Performance Central is your source for news, insights,
> > >> analysis and resources for efficient Application Performance Management.
> > >> Visit us today!
> > >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> > >> Csound-devel mailing list
> > >> Csound-devel@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >>
> > >
> > >
> > >
> > > ------------------------------------------------------------------------------
> > > Introducing Performance Central, a new site from SourceForge and
> > > AppDynamics. Performance Central is your source for news, insights,
> > > analysis and resources for efficient Application Performance Management.
> > > Visit us today!
> > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-28 12:28
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundqt oddity
I think Csoundqt uses new instances of Csound for each run, does it not? Maybe that is the difference. If there is a reentrancy problem in Csound caused by the IO modules, it will only be shown when
a second Csound instance is created.

On 28 Aug 2013, at 12:19, Michael Gogins wrote:

> I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 12:36
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  

Why would that be the case?

On Aug 28, 2013 7:28 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I think Csoundqt uses new instances of Csound for each run, does it not? Maybe that is the difference. If there is a reentrancy problem in Csound caused by the IO modules, it will only be shown when
a second Csound instance is created.

On 28 Aug 2013, at 12:19, Michael Gogins wrote:

> I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-08-28 12:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundqt oddity
Well, if Csound is not destroyed and re-created, then reentrancy issues would not arise (there is still only object in memory). If however, we destroy it, then the
second (new) instance might reveal some conflicts with the previous object. 

A few years back, when the OSX code moved to using dlopen and friends to load plugins, suddenly there were crashes with portmidi. I did a test where I ran
consecutive Csound performances, deleting and constructing new objects at each time, and I detected some reentrancy issues with the MIDI module, arising
from the portmidi library. Strangely enough, with the old deprecated OSX plugin loading code, there were no problems.

This seems to have disappeared for OSX 10.6 in the later portmidi releases (I had mention this to Roger Dannenberg and maybe he did something), but
I suspect there are still issues on 10.8, because I have been hearing of problems with MIDI there (but I don't have a machine to test).


With regards to the  error: -+rtmidi='portmidi': unknown module, that points to an issue of loading plugins, which could well be some sort of
failure to clean up (because at this point, the module has not been loaded yet).

Victor
On 28 Aug 2013, at 12:36, Michael Gogins wrote:

> Why would that be the case?
> 
> On Aug 28, 2013 7:28 AM, "Victor Lazzarini"  wrote:
> I think Csoundqt uses new instances of Csound for each run, does it not? Maybe that is the difference. If there is a reentrancy problem in Csound caused by the IO modules, it will only be shown when
> a second Csound instance is created.
> 
> On 28 Aug 2013, at 12:19, Michael Gogins wrote:
> 
> > I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 13:30
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  

As I mentioned, the issues and errors appear only in CsoundQt, not in the testPerfThread program. But I will write a test this evening that destroys and recreates the Csound instance. This should tell us if your theory is correct.

On Aug 28, 2013 7:52 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Well, if Csound is not destroyed and re-created, then reentrancy issues would not arise (there is still only object in memory). If however, we destroy it, then the
second (new) instance might reveal some conflicts with the previous object.

A few years back, when the OSX code moved to using dlopen and friends to load plugins, suddenly there were crashes with portmidi. I did a test where I ran
consecutive Csound performances, deleting and constructing new objects at each time, and I detected some reentrancy issues with the MIDI module, arising
from the portmidi library. Strangely enough, with the old deprecated OSX plugin loading code, there were no problems.

This seems to have disappeared for OSX 10.6 in the later portmidi releases (I had mention this to Roger Dannenberg and maybe he did something), but
I suspect there are still issues on 10.8, because I have been hearing of problems with MIDI there (but I don't have a machine to test).


With regards to the  error: -+rtmidi='portmidi': unknown module, that points to an issue of loading plugins, which could well be some sort of
failure to clean up (because at this point, the module has not been loaded yet).

Victor
On 28 Aug 2013, at 12:36, Michael Gogins wrote:

> Why would that be the case?
>
> On Aug 28, 2013 7:28 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
> I think Csoundqt uses new instances of Csound for each run, does it not? Maybe that is the difference. If there is a reentrancy problem in Csound caused by the IO modules, it will only be shown when
> a second Csound instance is created.
>
> On 28 Aug 2013, at 12:19, Michael Gogins wrote:
>
> > I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-08-28 19:11
FromAndres Cabrera
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
Hi Michael,

Can you try:

Commenting out in csoundengine.h the following to check if the destruction of Csound after each run is causing the issue:

#ifdef CSOUND6
#define QCS_DESTROY_CSOUND
#endif

Cheers,
Andrés


On Wed, Aug 28, 2013 at 5:30 AM, Michael Gogins <michael.gogins@gmail.com> wrote:

As I mentioned, the issues and errors appear only in CsoundQt, not in the testPerfThread program. But I will write a test this evening that destroys and recreates the Csound instance. This should tell us if your theory is correct.

On Aug 28, 2013 7:52 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Well, if Csound is not destroyed and re-created, then reentrancy issues would not arise (there is still only object in memory). If however, we destroy it, then the
second (new) instance might reveal some conflicts with the previous object.

A few years back, when the OSX code moved to using dlopen and friends to load plugins, suddenly there were crashes with portmidi. I did a test where I ran
consecutive Csound performances, deleting and constructing new objects at each time, and I detected some reentrancy issues with the MIDI module, arising
from the portmidi library. Strangely enough, with the old deprecated OSX plugin loading code, there were no problems.

This seems to have disappeared for OSX 10.6 in the later portmidi releases (I had mention this to Roger Dannenberg and maybe he did something), but
I suspect there are still issues on 10.8, because I have been hearing of problems with MIDI there (but I don't have a machine to test).


With regards to the  error: -+rtmidi='portmidi': unknown module, that points to an issue of loading plugins, which could well be some sort of
failure to clean up (because at this point, the module has not been loaded yet).

Victor
On 28 Aug 2013, at 12:36, Michael Gogins wrote:

> Why would that be the case?
>
> On Aug 28, 2013 7:28 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
> I think Csoundqt uses new instances of Csound for each run, does it not? Maybe that is the difference. If there is a reentrancy problem in Csound caused by the IO modules, it will only be shown when
> a second Csound instance is created.
>
> On 28 Aug 2013, at 12:19, Michael Gogins wrote:
>
> > I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-28 19:42
FromMichael Gogins
SubjectRe: [Cs-dev] csoundqt oddity
AttachmentsNone  None  
I tried this before, and it did not work. That is because Csound itself should be created just once, but CsoundPeformanceThread needs to be created for each run, or else modified to work for successive runs.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 2:11 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi Michael,

Can you try:

Commenting out in csoundengine.h the following to check if the destruction of Csound after each run is causing the issue:

#ifdef CSOUND6
#define QCS_DESTROY_CSOUND
#endif

Cheers,
Andrés


On Wed, Aug 28, 2013 at 5:30 AM, Michael Gogins <michael.gogins@gmail.com> wrote:

As I mentioned, the issues and errors appear only in CsoundQt, not in the testPerfThread program. But I will write a test this evening that destroys and recreates the Csound instance. This should tell us if your theory is correct.

On Aug 28, 2013 7:52 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Well, if Csound is not destroyed and re-created, then reentrancy issues would not arise (there is still only object in memory). If however, we destroy it, then the
second (new) instance might reveal some conflicts with the previous object.

A few years back, when the OSX code moved to using dlopen and friends to load plugins, suddenly there were crashes with portmidi. I did a test where I ran
consecutive Csound performances, deleting and constructing new objects at each time, and I detected some reentrancy issues with the MIDI module, arising
from the portmidi library. Strangely enough, with the old deprecated OSX plugin loading code, there were no problems.

This seems to have disappeared for OSX 10.6 in the later portmidi releases (I had mention this to Roger Dannenberg and maybe he did something), but
I suspect there are still issues on 10.8, because I have been hearing of problems with MIDI there (but I don't have a machine to test).


With regards to the  error: -+rtmidi='portmidi': unknown module, that points to an issue of loading plugins, which could well be some sort of
failure to clean up (because at this point, the module has not been loaded yet).

Victor
On 28 Aug 2013, at 12:36, Michael Gogins wrote:

> Why would that be the case?
>
> On Aug 28, 2013 7:28 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
> I think Csoundqt uses new instances of Csound for each run, does it not? Maybe that is the difference. If there is a reentrancy problem in Csound caused by the IO modules, it will only be shown when
> a second Csound instance is created.
>
> On 28 Aug 2013, at 12:19, Michael Gogins wrote:
>
> > I modified the tests/c/perfthread_test.cpp file to perform two runs to dac, and it works fine. The output is below. That proves I think that the problem is not in Csound or in the audio or MIDI drivers themselves. The test uses a single instance of Csound and two instances of CsoundPerformanceThread.
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel