Csound Csound-dev Csound-tekno Search About

[Csnd] Running csd examples in Csound 6.10

Date2018-02-24 12:40
FromRuben Sverre Gjertsen
Subject[Csnd] Running csd examples in Csound 6.10
Attachments05B13_udo_ambisonics2D_4.csd  05B14_udo_ambisonics2D_5.csd  ambisonics2D_udos.txt  ambisonics_utilities.txt  05B16_udo_ambisonics_2.csd  05B17_udo_ambisonics_3.csd  04A07_Risset_variations.csd  04A13_hsboscil.csd  03B01_Variable_types.csd  01D01_different_seed.csd  01B02_Adding_vs_ratio.csd  
Hello,

I have been trying a collection of csd examples linked on this list some time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5), and they must have been working at some point, since they are presented as examples.

 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode definition:

error:  invalid xout statement for UDO: defined 'k', found '(null)'

05B14_udo_ambisonics2D_5.csd has same problem:

error:  invalid xout statement for UDO: defined 'k', found '(null)'



05B16_udo_ambisonics_2.csd :

error:  invalid xout statement for UDO: defined 'k', found '(null)'

05B17_udo_ambisonics_3.csd
error:  invalid xout statement for UDO: defined 'k', found '(null)'

04A07_Risset_variations.csd :
sorting score ...
Section loops cannot be nested

01D01_different_seed.csd :
sorting score ...
Section loops cannot be nested
end of score.   overall amps:  0.00000  0.00000
  overall samples out of range:        0        0
1 errors in performance

04A13_hsboscil.csd , a backslash is causing problems:

UnifiedCSD:  /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: PortAudio module enabled ... 
using callback interface
rtmidi: PortMIDI module enabled
Error: character \(5c)

error: syntax error, unexpected ERROR_TOKEN  (token "\") from file /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
 line 15:
>>>giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0, \ <<<
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.   overall amps:      0.0
  overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.002s, CPU: 0.002s

03B01_Variable_types.csd ,string problems:
STARTING FILE
Creating options
Creating orchestra
missing " to terminate string
unknown CSD tag: </CsInstruments>

Creating score
Reading CSD failed ... stopping
end of score.   overall amps:      0.0
  overall samples out of range:        0
1 errors in performance

01B02_Adding_vs_ratio.csd :

Creating orchestra
missing " to terminate string
unknown CSD tag: </CsInstruments>

Creating score
Reading CSD failed ... stopping
end of score.   overall amps:      0.0
  overall samples out of range:        0
1 errors in performance

I thought I should let you know. Are there changes to the language, or are these bugs?

Best
Ruben


Date2018-02-24 16:36
FromSteven Yi
SubjectRe: [Csnd] Running csd examples in Csound 6.10
Hi Ruben,

Thanks for reporting these.  I looked at the first issues that mention
"error:  invalid xout statement for UDO: defined 'k', found '(null)'".
I was able to reproduce this here and will investigate that.

I'm not sure when these examples were written, but some background
info I found in looking at history: I added xin/xout validation in
6.05.  For 6.08, there was a report about using failures using
constants for xout (which these examples that you posted do).  I'm
pretty sure I did the fix at that time for 6.08, and there are CSD
tests for "xout 0" that still pass now with current Csound. I'll look
into now why those tests pass but these csds do not.

As for the other issues perhaps John or Victor might chime in.

Thanks,
steven


On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
 wrote:
> Hello,
>
> I have been trying a collection of csd examples linked on this list some
> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
> and they must have been working at some point, since they are presented as
> examples.
>
>  05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
> definition:
>
> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>
> 05B14_udo_ambisonics2D_5.csd has same problem:
>
> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>
>
>
> 05B16_udo_ambisonics_2.csd :
>
> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>
> 05B17_udo_ambisonics_3.csd
> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>
> 04A07_Risset_variations.csd :
> sorting score ...
> Section loops cannot be nested
>
> 01D01_different_seed.csd :
> sorting score ...
> Section loops cannot be nested
> end of score.   overall amps:  0.00000  0.00000
>   overall samples out of range:        0        0
> 1 errors in performance
>
> 04A13_hsboscil.csd , a backslash is causing problems:
>
> UnifiedCSD:
> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
> STARTING FILE
> Creating options
> Creating orchestra
> closing tag
> Creating score
> rtaudio: PortAudio module enabled ...
> using callback interface
> rtmidi: PortMIDI module enabled
> Error: character \(5c)
>
> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>  line 15:
>>>>giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>> \ <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
> cannot compile orchestra
> end of score.   overall amps:      0.0
>   overall samples out of range:        0
> 1 errors in performance
> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>
> 03B01_Variable_types.csd ,string problems:
> STARTING FILE
> Creating options
> Creating orchestra
> missing " to terminate string
> unknown CSD tag: 
>
> Creating score
> Reading CSD failed ... stopping
> end of score.   overall amps:      0.0
>   overall samples out of range:        0
> 1 errors in performance
>
> 01B02_Adding_vs_ratio.csd :
>
> Creating orchestra
> missing " to terminate string
> unknown CSD tag: 
>
> Creating score
> Reading CSD failed ... stopping
> end of score.   overall amps:      0.0
>   overall samples out of range:        0
> 1 errors in performance
>
> I thought I should let you know. Are there changes to the language, or are
> these bugs?
>
> Best
> Ruben
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 16:54
Fromjpff
SubjectRe: [Csnd] Running csd examples in Csound 6.10
I investigated the example 04A07_Risset_variations.csd
The issue is to do with two r score opcodes the first not terminated with 
an s.  I have (I think/hope) adjusted it so a s is assuned before an r if 
the previos section was a loop  Seemed to run that example.  ommitted to 
git for 6.11
==John ff

On Sat, 24 Feb 2018, Steven Yi wrote:

> Hi Ruben,
>
> Thanks for reporting these.  I looked at the first issues that mention
> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
> I was able to reproduce this here and will investigate that.
>
> I'm not sure when these examples were written, but some background
> info I found in looking at history: I added xin/xout validation in
> 6.05.  For 6.08, there was a report about using failures using
> constants for xout (which these examples that you posted do).  I'm
> pretty sure I did the fix at that time for 6.08, and there are CSD
> tests for "xout 0" that still pass now with current Csound. I'll look
> into now why those tests pass but these csds do not.
>
> As for the other issues perhaps John or Victor might chime in.
>
> Thanks,
> steven
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 17:07
Fromjpff
SubjectRe: [Csnd] Running csd examples in Csound 6.10
>
> 01D01_different_seed.csd :
> sorting score ...
> Section loops cannot be nested
> end of score.		   overall amps:  0.00000  0.00000
> 	   overall samples out of range:        0        0
> 1 errors in performance



Works ok now
>
> 04A13_hsboscil.csd , a backslash is causing problems:
>
> UnifiedCSD:  /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
> STARTING FILE
> Creating options
> Creating orchestra
> closing tag
> Creating score
> rtaudio: PortAudio module enabled ...
> using callback interface
> rtmidi: PortMIDI module enabled
> Error: character \(5c)
>
> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
> line 15:
>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0, \ <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
> cannot compile orchestra
> end of score.		   overall amps:      0.0
> 	   overall samples out of range:        0
> 1 errors in performance
> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s

Syntax error; \ can be used for line continuation but not to introducea 
space.  Cannot see why this ever worked


>
> 03B01_Variable_types.csd ,string problems:
> STARTING FILE
> Creating options
> Creating orchestra
> missing " to terminate string
v> unknown CSD tag: 
>
> Creating score
> Reading CSD failed ... stopping
> end of score.		   overall amps:      0.0
> 	   overall samples out of range:        0
> 1 errors in performance
>


A newlinr in a string is not supported.  Use \n


> 01B02_Adding_vs_ratio.csd :
>
> Creating orchestra
> missing " to terminate string
> unknown CSD tag: 
>
> Creating score
> Reading CSD failed ... stopping
> end of score.		   overall amps:      0.0
> 	   overall samples out of range:        0
> 1 errors in performance


Another nrewline in a string

So one eror of mine, three user errors.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 17:49
FromVictor Lazzarini
SubjectRe: [Csnd] Running csd examples in Csound 6.10
The string errors are to do with double-quoted strings spanning new lines. To my knowledge,
that was never supposed to work. For strings to span more than one line, you need to use {{ }}
instead of double quotes. That is just plain user error. If it ever worked, it was a fluke.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 24 Feb 2018, at 16:36, Steven Yi  wrote:
> 
> Hi Ruben,
> 
> Thanks for reporting these.  I looked at the first issues that mention
> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
> I was able to reproduce this here and will investigate that.
> 
> I'm not sure when these examples were written, but some background
> info I found in looking at history: I added xin/xout validation in
> 6.05.  For 6.08, there was a report about using failures using
> constants for xout (which these examples that you posted do).  I'm
> pretty sure I did the fix at that time for 6.08, and there are CSD
> tests for "xout 0" that still pass now with current Csound. I'll look
> into now why those tests pass but these csds do not.
> 
> As for the other issues perhaps John or Victor might chime in.
> 
> Thanks,
> steven
> 
> 
> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>  wrote:
>> Hello,
>> 
>> I have been trying a collection of csd examples linked on this list some
>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>> and they must have been working at some point, since they are presented as
>> examples.
>> 
>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>> definition:
>> 
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>> 
>> 05B14_udo_ambisonics2D_5.csd has same problem:
>> 
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>> 
>> 
>> 
>> 05B16_udo_ambisonics_2.csd :
>> 
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>> 
>> 05B17_udo_ambisonics_3.csd
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>> 
>> 04A07_Risset_variations.csd :
>> sorting score ...
>> Section loops cannot be nested
>> 
>> 01D01_different_seed.csd :
>> sorting score ...
>> Section loops cannot be nested
>> end of score.   overall amps:  0.00000  0.00000
>>  overall samples out of range:        0        0
>> 1 errors in performance
>> 
>> 04A13_hsboscil.csd , a backslash is causing problems:
>> 
>> UnifiedCSD:
>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> closing tag
>> Creating score
>> rtaudio: PortAudio module enabled ...
>> using callback interface
>> rtmidi: PortMIDI module enabled
>> Error: character \(5c)
>> 
>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>> line 15:
>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>> \ <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> end of score.   overall amps:      0.0
>>  overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>> 
>> 03B01_Variable_types.csd ,string problems:
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>> 
>> Creating score
>> Reading CSD failed ... stopping
>> end of score.   overall amps:      0.0
>>  overall samples out of range:        0
>> 1 errors in performance
>> 
>> 01B02_Adding_vs_ratio.csd :
>> 
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>> 
>> Creating score
>> Reading CSD failed ... stopping
>> end of score.   overall amps:      0.0
>>  overall samples out of range:        0
>> 1 errors in performance
>> 
>> I thought I should let you know. Are there changes to the language, or are
>> these bugs?
>> 
>> Best
>> Ruben
>> 
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 17:52
FromSteven Yi
SubjectRe: [Csnd] Running csd examples in Csound 6.10
I've looked at this and Csound is correct and the code is in UDO
error.  The message is perhaps not great, but what is happening is
that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
a UDO called ambi2D_write_B. This UDO declares having a return type of
'k', but there is no xout statement or anything returned.  This is an
error. (Same as declaring something like "int myFunc() { }" in C,
where there's no return value.)

Actually, most of those UDOs could be improved by changing the out
type to 0 and just not using an xout.

So there it's user error. I suspect the code may have been developed
before I put in xin/xout validation and in this case the changes
caught bugs.

On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
> Hi Ruben,
>
> Thanks for reporting these.  I looked at the first issues that mention
> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
> I was able to reproduce this here and will investigate that.
>
> I'm not sure when these examples were written, but some background
> info I found in looking at history: I added xin/xout validation in
> 6.05.  For 6.08, there was a report about using failures using
> constants for xout (which these examples that you posted do).  I'm
> pretty sure I did the fix at that time for 6.08, and there are CSD
> tests for "xout 0" that still pass now with current Csound. I'll look
> into now why those tests pass but these csds do not.
>
> As for the other issues perhaps John or Victor might chime in.
>
> Thanks,
> steven
>
>
> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>  wrote:
>> Hello,
>>
>> I have been trying a collection of csd examples linked on this list some
>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>> and they must have been working at some point, since they are presented as
>> examples.
>>
>>  05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>> definition:
>>
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>
>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>
>>
>>
>> 05B16_udo_ambisonics_2.csd :
>>
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>
>> 05B17_udo_ambisonics_3.csd
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>
>> 04A07_Risset_variations.csd :
>> sorting score ...
>> Section loops cannot be nested
>>
>> 01D01_different_seed.csd :
>> sorting score ...
>> Section loops cannot be nested
>> end of score.   overall amps:  0.00000  0.00000
>>   overall samples out of range:        0        0
>> 1 errors in performance
>>
>> 04A13_hsboscil.csd , a backslash is causing problems:
>>
>> UnifiedCSD:
>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> closing tag
>> Creating score
>> rtaudio: PortAudio module enabled ...
>> using callback interface
>> rtmidi: PortMIDI module enabled
>> Error: character \(5c)
>>
>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>  line 15:
>>>>>giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>> \ <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> end of score.   overall amps:      0.0
>>   overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>
>> 03B01_Variable_types.csd ,string problems:
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>>
>> Creating score
>> Reading CSD failed ... stopping
>> end of score.   overall amps:      0.0
>>   overall samples out of range:        0
>> 1 errors in performance
>>
>> 01B02_Adding_vs_ratio.csd :
>>
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>>
>> Creating score
>> Reading CSD failed ... stopping
>> end of score.   overall amps:      0.0
>>   overall samples out of range:        0
>> 1 errors in performance
>>
>> I thought I should let you know. Are there changes to the language, or are
>> these bugs?
>>
>> Best
>> Ruben
>>
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 18:48
Fromjoachim heintz
SubjectRe: [Csnd] Running csd examples in Csound 6.10
hi all -

can you please point me to which text of the examples you refer? they 
are obviously from the floss manual 
(http://write.flossmanuals.net/csound/preface/), but i am not sure you 
are referring to the web version of the manual, or to the csoundqt 
repository (where they are included), or to any other place.

i seem to remember that i corrected some of the examples you mention 
here, but perhaps not in the version you are referring to.

thanks -
	joachim



On 24/02/18 18:52, Steven Yi wrote:
> I've looked at this and Csound is correct and the code is in UDO
> error.  The message is perhaps not great, but what is happening is
> that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
> a UDO called ambi2D_write_B. This UDO declares having a return type of
> 'k', but there is no xout statement or anything returned.  This is an
> error. (Same as declaring something like "int myFunc() { }" in C,
> where there's no return value.)
>
> Actually, most of those UDOs could be improved by changing the out
> type to 0 and just not using an xout.
>
> So there it's user error. I suspect the code may have been developed
> before I put in xin/xout validation and in this case the changes
> caught bugs.
>
> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
>> Hi Ruben,
>>
>> Thanks for reporting these.  I looked at the first issues that mention
>> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
>> I was able to reproduce this here and will investigate that.
>>
>> I'm not sure when these examples were written, but some background
>> info I found in looking at history: I added xin/xout validation in
>> 6.05.  For 6.08, there was a report about using failures using
>> constants for xout (which these examples that you posted do).  I'm
>> pretty sure I did the fix at that time for 6.08, and there are CSD
>> tests for "xout 0" that still pass now with current Csound. I'll look
>> into now why those tests pass but these csds do not.
>>
>> As for the other issues perhaps John or Victor might chime in.
>>
>> Thanks,
>> steven
>>
>>
>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>  wrote:
>>> Hello,
>>>
>>> I have been trying a collection of csd examples linked on this list some
>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>>> and they must have been working at some point, since they are presented as
>>> examples.
>>>
>>>  05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>>> definition:
>>>
>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>
>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>
>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>
>>>
>>>
>>> 05B16_udo_ambisonics_2.csd :
>>>
>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>
>>> 05B17_udo_ambisonics_3.csd
>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>
>>> 04A07_Risset_variations.csd :
>>> sorting score ...
>>> Section loops cannot be nested
>>>
>>> 01D01_different_seed.csd :
>>> sorting score ...
>>> Section loops cannot be nested
>>> end of score.   overall amps:  0.00000  0.00000
>>>   overall samples out of range:        0        0
>>> 1 errors in performance
>>>
>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>
>>> UnifiedCSD:
>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>> STARTING FILE
>>> Creating options
>>> Creating orchestra
>>> closing tag
>>> Creating score
>>> rtaudio: PortAudio module enabled ...
>>> using callback interface
>>> rtmidi: PortMIDI module enabled
>>> Error: character \(5c)
>>>
>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>>  line 15:
>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>>> \ <<<
>>> Parsing failed due to invalid input!
>>> Stopping on parser failure
>>> cannot compile orchestra
>>> end of score.   overall amps:      0.0
>>>   overall samples out of range:        0
>>> 1 errors in performance
>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>
>>> 03B01_Variable_types.csd ,string problems:
>>> STARTING FILE
>>> Creating options
>>> Creating orchestra
>>> missing " to terminate string
>>> unknown CSD tag: 
>>>
>>> Creating score
>>> Reading CSD failed ... stopping
>>> end of score.   overall amps:      0.0
>>>   overall samples out of range:        0
>>> 1 errors in performance
>>>
>>> 01B02_Adding_vs_ratio.csd :
>>>
>>> Creating orchestra
>>> missing " to terminate string
>>> unknown CSD tag: 
>>>
>>> Creating score
>>> Reading CSD failed ... stopping
>>> end of score.   overall amps:      0.0
>>>   overall samples out of range:        0
>>> 1 errors in performance
>>>
>>> I thought I should let you know. Are there changes to the language, or are
>>> these bugs?
>>>
>>> Best
>>> Ruben
>>>
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 18:57
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Running csd examples in Csound 6.10
Hi Joachim,

I downloaded these examples a few weeks ago from a link you sent to the list in 2014:
http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip

Best
Ruben


> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
> 
> hi all -
> 
> can you please point me to which text of the examples you refer? they are obviously from the floss manual (http://write.flossmanuals.net/csound/preface/), but i am not sure you are referring to the web version of the manual, or to the csoundqt repository (where they are included), or to any other place.
> 
> i seem to remember that i corrected some of the examples you mention here, but perhaps not in the version you are referring to.
> 
> thanks -
> 	joachim
> 
> 
> 
> On 24/02/18 18:52, Steven Yi wrote:
>> I've looked at this and Csound is correct and the code is in UDO
>> error.  The message is perhaps not great, but what is happening is
>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
>> a UDO called ambi2D_write_B. This UDO declares having a return type of
>> 'k', but there is no xout statement or anything returned.  This is an
>> error. (Same as declaring something like "int myFunc() { }" in C,
>> where there's no return value.)
>> 
>> Actually, most of those UDOs could be improved by changing the out
>> type to 0 and just not using an xout.
>> 
>> So there it's user error. I suspect the code may have been developed
>> before I put in xin/xout validation and in this case the changes
>> caught bugs.
>> 
>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
>>> Hi Ruben,
>>> 
>>> Thanks for reporting these.  I looked at the first issues that mention
>>> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
>>> I was able to reproduce this here and will investigate that.
>>> 
>>> I'm not sure when these examples were written, but some background
>>> info I found in looking at history: I added xin/xout validation in
>>> 6.05.  For 6.08, there was a report about using failures using
>>> constants for xout (which these examples that you posted do).  I'm
>>> pretty sure I did the fix at that time for 6.08, and there are CSD
>>> tests for "xout 0" that still pass now with current Csound. I'll look
>>> into now why those tests pass but these csds do not.
>>> 
>>> As for the other issues perhaps John or Victor might chime in.
>>> 
>>> Thanks,
>>> steven
>>> 
>>> 
>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>  wrote:
>>>> Hello,
>>>> 
>>>> I have been trying a collection of csd examples linked on this list some
>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>>>> and they must have been working at some point, since they are presented as
>>>> examples.
>>>> 
>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>>>> definition:
>>>> 
>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>> 
>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>> 
>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>> 
>>>> 
>>>> 
>>>> 05B16_udo_ambisonics_2.csd :
>>>> 
>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>> 
>>>> 05B17_udo_ambisonics_3.csd
>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>> 
>>>> 04A07_Risset_variations.csd :
>>>> sorting score ...
>>>> Section loops cannot be nested
>>>> 
>>>> 01D01_different_seed.csd :
>>>> sorting score ...
>>>> Section loops cannot be nested
>>>> end of score.   overall amps:  0.00000  0.00000
>>>>  overall samples out of range:        0        0
>>>> 1 errors in performance
>>>> 
>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>> 
>>>> UnifiedCSD:
>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>> STARTING FILE
>>>> Creating options
>>>> Creating orchestra
>>>> closing tag
>>>> Creating score
>>>> rtaudio: PortAudio module enabled ...
>>>> using callback interface
>>>> rtmidi: PortMIDI module enabled
>>>> Error: character \(5c)
>>>> 
>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>>> line 15:
>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>>>> \ <<<
>>>> Parsing failed due to invalid input!
>>>> Stopping on parser failure
>>>> cannot compile orchestra
>>>> end of score.   overall amps:      0.0
>>>>  overall samples out of range:        0
>>>> 1 errors in performance
>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>> 
>>>> 03B01_Variable_types.csd ,string problems:
>>>> STARTING FILE
>>>> Creating options
>>>> Creating orchestra
>>>> missing " to terminate string
>>>> unknown CSD tag: 
>>>> 
>>>> Creating score
>>>> Reading CSD failed ... stopping
>>>> end of score.   overall amps:      0.0
>>>>  overall samples out of range:        0
>>>> 1 errors in performance
>>>> 
>>>> 01B02_Adding_vs_ratio.csd :
>>>> 
>>>> Creating orchestra
>>>> missing " to terminate string
>>>> unknown CSD tag: 
>>>> 
>>>> Creating score
>>>> Reading CSD failed ... stopping
>>>> end of score.   overall amps:      0.0
>>>>  overall samples out of range:        0
>>>> 1 errors in performance
>>>> 
>>>> I thought I should let you know. Are there changes to the language, or are
>>>> these bugs?
>>>> 
>>>> Best
>>>> Ruben
>>>> 
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 19:04
Fromjoachim heintz
SubjectRe: [Csnd] Running csd examples in Csound 6.10
hi ruben -

thanks for the quick answer.  so this is really the first version, most 
probably not up to date.

would you mind to check the examples of your list in the version here:
https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples

if you could let me know which examples are also not working  in this 
version, i will go into it and fix it.

thanks again for your feedback; this is very much appreciated -

	joachim



On 24/02/18 19:57, Ruben Sverre Gjertsen wrote:
> Hi Joachim,
>
> I downloaded these examples a few weeks ago from a link you sent to the list in 2014:
> http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip
>
> Best
> Ruben
>
>
>> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
>>
>> hi all -
>>
>> can you please point me to which text of the examples you refer? they are obviously from the floss manual (http://write.flossmanuals.net/csound/preface/), but i am not sure you are referring to the web version of the manual, or to the csoundqt repository (where they are included), or to any other place.
>>
>> i seem to remember that i corrected some of the examples you mention here, but perhaps not in the version you are referring to.
>>
>> thanks -
>> 	joachim
>>
>>
>>
>> On 24/02/18 18:52, Steven Yi wrote:
>>> I've looked at this and Csound is correct and the code is in UDO
>>> error.  The message is perhaps not great, but what is happening is
>>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
>>> a UDO called ambi2D_write_B. This UDO declares having a return type of
>>> 'k', but there is no xout statement or anything returned.  This is an
>>> error. (Same as declaring something like "int myFunc() { }" in C,
>>> where there's no return value.)
>>>
>>> Actually, most of those UDOs could be improved by changing the out
>>> type to 0 and just not using an xout.
>>>
>>> So there it's user error. I suspect the code may have been developed
>>> before I put in xin/xout validation and in this case the changes
>>> caught bugs.
>>>
>>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
>>>> Hi Ruben,
>>>>
>>>> Thanks for reporting these.  I looked at the first issues that mention
>>>> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
>>>> I was able to reproduce this here and will investigate that.
>>>>
>>>> I'm not sure when these examples were written, but some background
>>>> info I found in looking at history: I added xin/xout validation in
>>>> 6.05.  For 6.08, there was a report about using failures using
>>>> constants for xout (which these examples that you posted do).  I'm
>>>> pretty sure I did the fix at that time for 6.08, and there are CSD
>>>> tests for "xout 0" that still pass now with current Csound. I'll look
>>>> into now why those tests pass but these csds do not.
>>>>
>>>> As for the other issues perhaps John or Victor might chime in.
>>>>
>>>> Thanks,
>>>> steven
>>>>
>>>>
>>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>>  wrote:
>>>>> Hello,
>>>>>
>>>>> I have been trying a collection of csd examples linked on this list some
>>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>>>>> and they must have been working at some point, since they are presented as
>>>>> examples.
>>>>>
>>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>>>>> definition:
>>>>>
>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>
>>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>>>
>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>
>>>>>
>>>>>
>>>>> 05B16_udo_ambisonics_2.csd :
>>>>>
>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>
>>>>> 05B17_udo_ambisonics_3.csd
>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>
>>>>> 04A07_Risset_variations.csd :
>>>>> sorting score ...
>>>>> Section loops cannot be nested
>>>>>
>>>>> 01D01_different_seed.csd :
>>>>> sorting score ...
>>>>> Section loops cannot be nested
>>>>> end of score.   overall amps:  0.00000  0.00000
>>>>>  overall samples out of range:        0        0
>>>>> 1 errors in performance
>>>>>
>>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>>>
>>>>> UnifiedCSD:
>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>>> STARTING FILE
>>>>> Creating options
>>>>> Creating orchestra
>>>>> closing tag
>>>>> Creating score
>>>>> rtaudio: PortAudio module enabled ...
>>>>> using callback interface
>>>>> rtmidi: PortMIDI module enabled
>>>>> Error: character \(5c)
>>>>>
>>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>>>> line 15:
>>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>>>>> \ <<<
>>>>> Parsing failed due to invalid input!
>>>>> Stopping on parser failure
>>>>> cannot compile orchestra
>>>>> end of score.   overall amps:      0.0
>>>>>  overall samples out of range:        0
>>>>> 1 errors in performance
>>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>>>
>>>>> 03B01_Variable_types.csd ,string problems:
>>>>> STARTING FILE
>>>>> Creating options
>>>>> Creating orchestra
>>>>> missing " to terminate string
>>>>> unknown CSD tag: 
>>>>>
>>>>> Creating score
>>>>> Reading CSD failed ... stopping
>>>>> end of score.   overall amps:      0.0
>>>>>  overall samples out of range:        0
>>>>> 1 errors in performance
>>>>>
>>>>> 01B02_Adding_vs_ratio.csd :
>>>>>
>>>>> Creating orchestra
>>>>> missing " to terminate string
>>>>> unknown CSD tag: 
>>>>>
>>>>> Creating score
>>>>> Reading CSD failed ... stopping
>>>>> end of score.   overall amps:      0.0
>>>>>  overall samples out of range:        0
>>>>> 1 errors in performance
>>>>>
>>>>> I thought I should let you know. Are there changes to the language, or are
>>>>> these bugs?
>>>>>
>>>>> Best
>>>>> Ruben
>>>>>
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 20:28
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Running csd examples in Csound 6.10
Hello,
I tried with the new download. Many things seem similar, but some of the UDO-errors look different.
Ruben


03B01_Variable_types.csd

 Creating options
Creating orchestra
missing " to terminate string
unknown CSD tag: 

Creating score
Reading CSD failed ... stopping


01B02_Adding_vs_ratio.csd

 Creating orchestra
missing " to terminate string
unknown CSD tag: 

Creating score
Reading CSD failed ... stopping


05B13_udo_ambisonics2D_4.csd

 error:  invalid xout statement for UDO: defined 'k', found '(null)'
Parsing failed due to syntax errors

05B14_udo_ambisonics2D_5.csd

error: syntax error, unexpected T_OPCODE  (token "ambi2D_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B14_udo_ambisonics2D_5.csd (1)
 line 48:
>>>        ambi2D_enc_dist <<<
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra

05B16_udo_ambisonics_2.csd

 error: syntax error, unexpected T_OPCODE  (token "ambi_encode") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B16_udo_ambisonics_2.csd (1)
 line 96:
>>>        ambi_encode <<<
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra

05B17_udo_ambisonics_3.csd

 error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B17_udo_ambisonics_3.csd (1)
 line 44:
>>>        ambi_enc_dist <<<
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra

05B18_udo_ambisonics_4.csd

error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B18_udo_ambisonics_4.csd (1)
 line 18:
>>>        ambi_enc_dist <<<
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra




> 24. feb. 2018 kl. 20.04 skrev joachim heintz :
> 
> hi ruben -
> 
> thanks for the quick answer.  so this is really the first version, most probably not up to date.
> 
> would you mind to check the examples of your list in the version here:
> https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples
> 
> if you could let me know which examples are also not working  in this version, i will go into it and fix it.
> 
> thanks again for your feedback; this is very much appreciated -
> 
> 	joachim
> 
> 
> 
> On 24/02/18 19:57, Ruben Sverre Gjertsen wrote:
>> Hi Joachim,
>> 
>> I downloaded these examples a few weeks ago from a link you sent to the list in 2014:
>> http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip
>> 
>> Best
>> Ruben
>> 
>> 
>>> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
>>> 
>>> hi all -
>>> 
>>> can you please point me to which text of the examples you refer? they are obviously from the floss manual (http://write.flossmanuals.net/csound/preface/), but i am not sure you are referring to the web version of the manual, or to the csoundqt repository (where they are included), or to any other place.
>>> 
>>> i seem to remember that i corrected some of the examples you mention here, but perhaps not in the version you are referring to.
>>> 
>>> thanks -
>>> 	joachim
>>> 
>>> 
>>> 
>>> On 24/02/18 18:52, Steven Yi wrote:
>>>> I've looked at this and Csound is correct and the code is in UDO
>>>> error.  The message is perhaps not great, but what is happening is
>>>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
>>>> a UDO called ambi2D_write_B. This UDO declares having a return type of
>>>> 'k', but there is no xout statement or anything returned.  This is an
>>>> error. (Same as declaring something like "int myFunc() { }" in C,
>>>> where there's no return value.)
>>>> 
>>>> Actually, most of those UDOs could be improved by changing the out
>>>> type to 0 and just not using an xout.
>>>> 
>>>> So there it's user error. I suspect the code may have been developed
>>>> before I put in xin/xout validation and in this case the changes
>>>> caught bugs.
>>>> 
>>>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
>>>>> Hi Ruben,
>>>>> 
>>>>> Thanks for reporting these.  I looked at the first issues that mention
>>>>> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
>>>>> I was able to reproduce this here and will investigate that.
>>>>> 
>>>>> I'm not sure when these examples were written, but some background
>>>>> info I found in looking at history: I added xin/xout validation in
>>>>> 6.05.  For 6.08, there was a report about using failures using
>>>>> constants for xout (which these examples that you posted do).  I'm
>>>>> pretty sure I did the fix at that time for 6.08, and there are CSD
>>>>> tests for "xout 0" that still pass now with current Csound. I'll look
>>>>> into now why those tests pass but these csds do not.
>>>>> 
>>>>> As for the other issues perhaps John or Victor might chime in.
>>>>> 
>>>>> Thanks,
>>>>> steven
>>>>> 
>>>>> 
>>>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>>>  wrote:
>>>>>> Hello,
>>>>>> 
>>>>>> I have been trying a collection of csd examples linked on this list some
>>>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>>>>>> and they must have been working at some point, since they are presented as
>>>>>> examples.
>>>>>> 
>>>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>>>>>> definition:
>>>>>> 
>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>> 
>>>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>>>> 
>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 05B16_udo_ambisonics_2.csd :
>>>>>> 
>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>> 
>>>>>> 05B17_udo_ambisonics_3.csd
>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>> 
>>>>>> 04A07_Risset_variations.csd :
>>>>>> sorting score ...
>>>>>> Section loops cannot be nested
>>>>>> 
>>>>>> 01D01_different_seed.csd :
>>>>>> sorting score ...
>>>>>> Section loops cannot be nested
>>>>>> end of score.   overall amps:  0.00000  0.00000
>>>>>> overall samples out of range:        0        0
>>>>>> 1 errors in performance
>>>>>> 
>>>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>>>> 
>>>>>> UnifiedCSD:
>>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>>>> STARTING FILE
>>>>>> Creating options
>>>>>> Creating orchestra
>>>>>> closing tag
>>>>>> Creating score
>>>>>> rtaudio: PortAudio module enabled ...
>>>>>> using callback interface
>>>>>> rtmidi: PortMIDI module enabled
>>>>>> Error: character \(5c)
>>>>>> 
>>>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>>>>> line 15:
>>>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>>>>>> \ <<<
>>>>>> Parsing failed due to invalid input!
>>>>>> Stopping on parser failure
>>>>>> cannot compile orchestra
>>>>>> end of score.   overall amps:      0.0
>>>>>> overall samples out of range:        0
>>>>>> 1 errors in performance
>>>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>>>> 
>>>>>> 03B01_Variable_types.csd ,string problems:
>>>>>> STARTING FILE
>>>>>> Creating options
>>>>>> Creating orchestra
>>>>>> missing " to terminate string
>>>>>> unknown CSD tag: 
>>>>>> 
>>>>>> Creating score
>>>>>> Reading CSD failed ... stopping
>>>>>> end of score.   overall amps:      0.0
>>>>>> overall samples out of range:        0
>>>>>> 1 errors in performance
>>>>>> 
>>>>>> 01B02_Adding_vs_ratio.csd :
>>>>>> 
>>>>>> Creating orchestra
>>>>>> missing " to terminate string
>>>>>> unknown CSD tag: 
>>>>>> 
>>>>>> Creating score
>>>>>> Reading CSD failed ... stopping
>>>>>> end of score.   overall amps:      0.0
>>>>>> overall samples out of range:        0
>>>>>> 1 errors in performance
>>>>>> 
>>>>>> I thought I should let you know. Are there changes to the language, or are
>>>>>> these bugs?
>>>>>> 
>>>>>> Best
>>>>>> Ruben
>>>>>> 
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>> be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-25 01:41
FromJohn ff
SubjectRe: [Csnd] Running csd examples in Csound 6.10
Do you have the include files for ambisonics?  I could not find them

⁣Sent from TypeApp ​

On Feb 24, 2018, 20:29, at 20:29, Ruben Sverre Gjertsen  wrote:
>Hello,
>I tried with the new download. Many things seem similar, but some of
>the UDO-errors look different.
>Ruben
>
>
>03B01_Variable_types.csd
>
> Creating options
>Creating orchestra
>missing " to terminate string
>unknown CSD tag: 
>
>Creating score
>Reading CSD failed ... stopping
>
>
>01B02_Adding_vs_ratio.csd
>
> Creating orchestra
>missing " to terminate string
>unknown CSD tag: 
>
>Creating score
>Reading CSD failed ... stopping
>
>
>05B13_udo_ambisonics2D_4.csd
>
> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>Parsing failed due to syntax errors
>
>05B14_udo_ambisonics2D_5.csd
>
>error: syntax error, unexpected T_OPCODE  (token "ambi2D_enc_dist")
>from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual
>Examples/05 Sound Modification/05B14_udo_ambisonics2D_5.csd (1)
> line 48:
>>>>        ambi2D_enc_dist <<<
>Parsing failed due to invalid input!
>Stopping on parser failure
>cannot compile orchestra
>
>05B16_udo_ambisonics_2.csd
>
>error: syntax error, unexpected T_OPCODE  (token "ambi_encode") from
>file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05
>Sound Modification/05B16_udo_ambisonics_2.csd (1)
> line 96:
>>>>        ambi_encode <<<
>Parsing failed due to invalid input!
>Stopping on parser failure
>cannot compile orchestra
>
>05B17_udo_ambisonics_3.csd
>
>error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from
>file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05
>Sound Modification/05B17_udo_ambisonics_3.csd (1)
> line 44:
>>>>        ambi_enc_dist <<<
>Parsing failed due to invalid input!
>Stopping on parser failure
>cannot compile orchestra
>
>05B18_udo_ambisonics_4.csd
>
>error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from
>file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05
>Sound Modification/05B18_udo_ambisonics_4.csd (1)
> line 18:
>>>>        ambi_enc_dist <<<
>Parsing failed due to invalid input!
>Stopping on parser failure
>cannot compile orchestra
>
>
>
>
>> 24. feb. 2018 kl. 20.04 skrev joachim heintz :
>> 
>> hi ruben -
>> 
>> thanks for the quick answer.  so this is really the first version,
>most probably not up to date.
>> 
>> would you mind to check the examples of your list in the version
>here:
>>
>https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples
>> 
>> if you could let me know which examples are also not working  in this
>version, i will go into it and fix it.
>> 
>> thanks again for your feedback; this is very much appreciated -
>> 
>> 	joachim
>> 
>> 
>> 
>> On 24/02/18 19:57, Ruben Sverre Gjertsen wrote:
>>> Hi Joachim,
>>> 
>>> I downloaded these examples a few weeks ago from a link you sent to
>the list in 2014:
>>>
>http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip
>>> 
>>> Best
>>> Ruben
>>> 
>>> 
>>>> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
>>>> 
>>>> hi all -
>>>> 
>>>> can you please point me to which text of the examples you refer?
>they are obviously from the floss manual
>(http://write.flossmanuals.net/csound/preface/), but i am not sure you
>are referring to the web version of the manual, or to the csoundqt
>repository (where they are included), or to any other place.
>>>> 
>>>> i seem to remember that i corrected some of the examples you
>mention here, but perhaps not in the version you are referring to.
>>>> 
>>>> thanks -
>>>> 	joachim
>>>> 
>>>> 
>>>> 
>>>> On 24/02/18 18:52, Steven Yi wrote:
>>>>> I've looked at this and Csound is correct and the code is in UDO
>>>>> error.  The message is perhaps not great, but what is happening is
>>>>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there
>is
>>>>> a UDO called ambi2D_write_B. This UDO declares having a return
>type of
>>>>> 'k', but there is no xout statement or anything returned.  This is
>an
>>>>> error. (Same as declaring something like "int myFunc() { }" in C,
>>>>> where there's no return value.)
>>>>> 
>>>>> Actually, most of those UDOs could be improved by changing the out
>>>>> type to 0 and just not using an xout.
>>>>> 
>>>>> So there it's user error. I suspect the code may have been
>developed
>>>>> before I put in xin/xout validation and in this case the changes
>>>>> caught bugs.
>>>>> 
>>>>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi 
>wrote:
>>>>>> Hi Ruben,
>>>>>> 
>>>>>> Thanks for reporting these.  I looked at the first issues that
>mention
>>>>>> "error:  invalid xout statement for UDO: defined 'k', found
>'(null)'".
>>>>>> I was able to reproduce this here and will investigate that.
>>>>>> 
>>>>>> I'm not sure when these examples were written, but some
>background
>>>>>> info I found in looking at history: I added xin/xout validation
>in
>>>>>> 6.05.  For 6.08, there was a report about using failures using
>>>>>> constants for xout (which these examples that you posted do). 
>I'm
>>>>>> pretty sure I did the fix at that time for 6.08, and there are
>CSD
>>>>>> tests for "xout 0" that still pass now with current Csound. I'll
>look
>>>>>> into now why those tests pass but these csds do not.
>>>>>> 
>>>>>> As for the other issues perhaps John or Victor might chime in.
>>>>>> 
>>>>>> Thanks,
>>>>>> steven
>>>>>> 
>>>>>> 
>>>>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>>>>  wrote:
>>>>>>> Hello,
>>>>>>> 
>>>>>>> I have been trying a collection of csd examples linked on this
>list some
>>>>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac
>osx 10.10.5),
>>>>>>> and they must have been working at some point, since they are
>presented as
>>>>>>> examples.
>>>>>>> 
>>>>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the
>opcode
>>>>>>> definition:
>>>>>>> 
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>'(null)'
>>>>>>> 
>>>>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>>>>> 
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>'(null)'
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 05B16_udo_ambisonics_2.csd :
>>>>>>> 
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>'(null)'
>>>>>>> 
>>>>>>> 05B17_udo_ambisonics_3.csd
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>'(null)'
>>>>>>> 
>>>>>>> 04A07_Risset_variations.csd :
>>>>>>> sorting score ...
>>>>>>> Section loops cannot be nested
>>>>>>> 
>>>>>>> 01D01_different_seed.csd :
>>>>>>> sorting score ...
>>>>>>> Section loops cannot be nested
>>>>>>> end of score.   overall amps:  0.00000  0.00000
>>>>>>> overall samples out of range:        0        0
>>>>>>> 1 errors in performance
>>>>>>> 
>>>>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>>>>> 
>>>>>>> UnifiedCSD:
>>>>>>>
>/0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>>>>> STARTING FILE
>>>>>>> Creating options
>>>>>>> Creating orchestra
>>>>>>> closing tag
>>>>>>> Creating score
>>>>>>> rtaudio: PortAudio module enabled ...
>>>>>>> using callback interface
>>>>>>> rtmidi: PortMIDI module enabled
>>>>>>> Error: character \(5c)
>>>>>>> 
>>>>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from
>file
>>>>>>>
>/0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>(1)
>>>>>>> line 15:
>>>>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0,
>518,0.250,0,
>>>>>>>>>> \ <<<
>>>>>>> Parsing failed due to invalid input!
>>>>>>> Stopping on parser failure
>>>>>>> cannot compile orchestra
>>>>>>> end of score.   overall amps:      0.0
>>>>>>> overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>>>>> 
>>>>>>> 03B01_Variable_types.csd ,string problems:
>>>>>>> STARTING FILE
>>>>>>> Creating options
>>>>>>> Creating orchestra
>>>>>>> missing " to terminate string
>>>>>>> unknown CSD tag: 
>>>>>>> 
>>>>>>> Creating score
>>>>>>> Reading CSD failed ... stopping
>>>>>>> end of score.   overall amps:      0.0
>>>>>>> overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>> 
>>>>>>> 01B02_Adding_vs_ratio.csd :
>>>>>>> 
>>>>>>> Creating orchestra
>>>>>>> missing " to terminate string
>>>>>>> unknown CSD tag: 
>>>>>>> 
>>>>>>> Creating score
>>>>>>> Reading CSD failed ... stopping
>>>>>>> end of score.   overall amps:      0.0
>>>>>>> overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>> 
>>>>>>> I thought I should let you know. Are there changes to the
>language, or are
>>>>>>> these bugs?
>>>>>>> 
>>>>>>> Best
>>>>>>> Ruben
>>>>>>> 
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>features can
>>>>>>> be posted here
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-25 10:04
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Running csd examples in Csound 6.10
They are in the folder /FLOSS Manual Examples/SourceMaterials/, I had to move them to folder number 05.


> 25. feb. 2018 kl. 02.41 skrev John ff :
> 
> Do you have the include files for ambisonics?  I could not find them
> 
> ⁣Sent from TypeApp ​
> 
> On Feb 24, 2018, 20:29, at 20:29, Ruben Sverre Gjertsen  wrote:
>> Hello,
>> I tried with the new download. Many things seem similar, but some of
>> the UDO-errors look different.
>> Ruben
>> 
>> 
>> 03B01_Variable_types.csd
>> 
>> Creating options
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>> 
>> Creating score
>> Reading CSD failed ... stopping
>> 
>> 
>> 01B02_Adding_vs_ratio.csd
>> 
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>> 
>> Creating score
>> Reading CSD failed ... stopping
>> 
>> 
>> 05B13_udo_ambisonics2D_4.csd
>> 
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>> Parsing failed due to syntax errors
>> 
>> 05B14_udo_ambisonics2D_5.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi2D_enc_dist")
>> from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual
>> Examples/05 Sound Modification/05B14_udo_ambisonics2D_5.csd (1)
>> line 48:
>>>>>       ambi2D_enc_dist <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 05B16_udo_ambisonics_2.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi_encode") from
>> file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05
>> Sound Modification/05B16_udo_ambisonics_2.csd (1)
>> line 96:
>>>>>       ambi_encode <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 05B17_udo_ambisonics_3.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from
>> file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05
>> Sound Modification/05B17_udo_ambisonics_3.csd (1)
>> line 44:
>>>>>       ambi_enc_dist <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 05B18_udo_ambisonics_4.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from
>> file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05
>> Sound Modification/05B18_udo_ambisonics_4.csd (1)
>> line 18:
>>>>>       ambi_enc_dist <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 
>> 
>> 
>>> 24. feb. 2018 kl. 20.04 skrev joachim heintz :
>>> 
>>> hi ruben -
>>> 
>>> thanks for the quick answer.  so this is really the first version,
>> most probably not up to date.
>>> 
>>> would you mind to check the examples of your list in the version
>> here:
>>> 
>> https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples
>>> 
>>> if you could let me know which examples are also not working  in this
>> version, i will go into it and fix it.
>>> 
>>> thanks again for your feedback; this is very much appreciated -
>>> 
>>> 	joachim
>>> 
>>> 
>>> 
>>> On 24/02/18 19:57, Ruben Sverre Gjertsen wrote:
>>>> Hi Joachim,
>>>> 
>>>> I downloaded these examples a few weeks ago from a link you sent to
>> the list in 2014:
>>>> 
>> http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip
>>>> 
>>>> Best
>>>> Ruben
>>>> 
>>>> 
>>>>> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
>>>>> 
>>>>> hi all -
>>>>> 
>>>>> can you please point me to which text of the examples you refer?
>> they are obviously from the floss manual
>> (http://write.flossmanuals.net/csound/preface/), but i am not sure you
>> are referring to the web version of the manual, or to the csoundqt
>> repository (where they are included), or to any other place.
>>>>> 
>>>>> i seem to remember that i corrected some of the examples you
>> mention here, but perhaps not in the version you are referring to.
>>>>> 
>>>>> thanks -
>>>>> 	joachim
>>>>> 
>>>>> 
>>>>> 
>>>>> On 24/02/18 18:52, Steven Yi wrote:
>>>>>> I've looked at this and Csound is correct and the code is in UDO
>>>>>> error.  The message is perhaps not great, but what is happening is
>>>>>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there
>> is
>>>>>> a UDO called ambi2D_write_B. This UDO declares having a return
>> type of
>>>>>> 'k', but there is no xout statement or anything returned.  This is
>> an
>>>>>> error. (Same as declaring something like "int myFunc() { }" in C,
>>>>>> where there's no return value.)
>>>>>> 
>>>>>> Actually, most of those UDOs could be improved by changing the out
>>>>>> type to 0 and just not using an xout.
>>>>>> 
>>>>>> So there it's user error. I suspect the code may have been
>> developed
>>>>>> before I put in xin/xout validation and in this case the changes
>>>>>> caught bugs.
>>>>>> 
>>>>>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi 
>> wrote:
>>>>>>> Hi Ruben,
>>>>>>> 
>>>>>>> Thanks for reporting these.  I looked at the first issues that
>> mention
>>>>>>> "error:  invalid xout statement for UDO: defined 'k', found
>> '(null)'".
>>>>>>> I was able to reproduce this here and will investigate that.
>>>>>>> 
>>>>>>> I'm not sure when these examples were written, but some
>> background
>>>>>>> info I found in looking at history: I added xin/xout validation
>> in
>>>>>>> 6.05.  For 6.08, there was a report about using failures using
>>>>>>> constants for xout (which these examples that you posted do).
>> I'm
>>>>>>> pretty sure I did the fix at that time for 6.08, and there are
>> CSD
>>>>>>> tests for "xout 0" that still pass now with current Csound. I'll
>> look
>>>>>>> into now why those tests pass but these csds do not.
>>>>>>> 
>>>>>>> As for the other issues perhaps John or Victor might chime in.
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> steven
>>>>>>> 
>>>>>>> 
>>>>>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>>>>>  wrote:
>>>>>>>> Hello,
>>>>>>>> 
>>>>>>>> I have been trying a collection of csd examples linked on this
>> list some
>>>>>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac
>> osx 10.10.5),
>>>>>>>> and they must have been working at some point, since they are
>> presented as
>>>>>>>> examples.
>>>>>>>> 
>>>>>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the
>> opcode
>>>>>>>> definition:
>>>>>>>> 
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>> '(null)'
>>>>>>>> 
>>>>>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>>>>>> 
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>> '(null)'
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 05B16_udo_ambisonics_2.csd :
>>>>>>>> 
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>> '(null)'
>>>>>>>> 
>>>>>>>> 05B17_udo_ambisonics_3.csd
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found
>> '(null)'
>>>>>>>> 
>>>>>>>> 04A07_Risset_variations.csd :
>>>>>>>> sorting score ...
>>>>>>>> Section loops cannot be nested
>>>>>>>> 
>>>>>>>> 01D01_different_seed.csd :
>>>>>>>> sorting score ...
>>>>>>>> Section loops cannot be nested
>>>>>>>> end of score.   overall amps:  0.00000  0.00000
>>>>>>>> overall samples out of range:        0        0
>>>>>>>> 1 errors in performance
>>>>>>>> 
>>>>>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>>>>>> 
>>>>>>>> UnifiedCSD:
>>>>>>>> 
>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>>>>>> STARTING FILE
>>>>>>>> Creating options
>>>>>>>> Creating orchestra
>>>>>>>> closing tag
>>>>>>>> Creating score
>>>>>>>> rtaudio: PortAudio module enabled ...
>>>>>>>> using callback interface
>>>>>>>> rtmidi: PortMIDI module enabled
>>>>>>>> Error: character \(5c)
>>>>>>>> 
>>>>>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from
>> file
>>>>>>>> 
>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>> (1)
>>>>>>>> line 15:
>>>>>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0,
>> 518,0.250,0,
>>>>>>>>>>> \ <<<
>>>>>>>> Parsing failed due to invalid input!
>>>>>>>> Stopping on parser failure
>>>>>>>> cannot compile orchestra
>>>>>>>> end of score.   overall amps:      0.0
>>>>>>>> overall samples out of range:        0
>>>>>>>> 1 errors in performance
>>>>>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>>>>>> 
>>>>>>>> 03B01_Variable_types.csd ,string problems:
>>>>>>>> STARTING FILE
>>>>>>>> Creating options
>>>>>>>> Creating orchestra
>>>>>>>> missing " to terminate string
>>>>>>>> unknown CSD tag: 
>>>>>>>> 
>>>>>>>> Creating score
>>>>>>>> Reading CSD failed ... stopping
>>>>>>>> end of score.   overall amps:      0.0
>>>>>>>> overall samples out of range:        0
>>>>>>>> 1 errors in performance
>>>>>>>> 
>>>>>>>> 01B02_Adding_vs_ratio.csd :
>>>>>>>> 
>>>>>>>> Creating orchestra
>>>>>>>> missing " to terminate string
>>>>>>>> unknown CSD tag: 
>>>>>>>> 
>>>>>>>> Creating score
>>>>>>>> Reading CSD failed ... stopping
>>>>>>>> end of score.   overall amps:      0.0
>>>>>>>> overall samples out of range:        0
>>>>>>>> 1 errors in performance
>>>>>>>> 
>>>>>>>> I thought I should let you know. Are there changes to the
>> language, or are
>>>>>>>> these bugs?
>>>>>>>> 
>>>>>>>> Best
>>>>>>>> Ruben
>>>>>>>> 
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>> reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>> features can
>>>>>>>> be posted here
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>     https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-25 20:51
Fromjoachim heintz
SubjectRe: [Csnd] Running csd examples in Csound 6.10
hi ruben -

i think i have fixed the examples.  if you find the time, please check 
and let me know if something is left.

you will have to change the files "ambisonics2D_udos.txt" and 
"ambisonics_udos.txt", too.

i have also changed the include path, so at least when you run the 
examples in the folder structure which is at 
https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples, 
the included file should be found.

cheers -
	joachim



On 24/02/18 21:28, Ruben Sverre Gjertsen wrote:
> Hello,
> I tried with the new download. Many things seem similar, but some of the UDO-errors look different.
> Ruben
>
>
> 03B01_Variable_types.csd
>
>  Creating options
> Creating orchestra
> missing " to terminate string
> unknown CSD tag: 
>
> Creating score
> Reading CSD failed ... stopping
>
>
> 01B02_Adding_vs_ratio.csd
>
>  Creating orchestra
> missing " to terminate string
> unknown CSD tag: 
>
> Creating score
> Reading CSD failed ... stopping
>
>
> 05B13_udo_ambisonics2D_4.csd
>
>  error:  invalid xout statement for UDO: defined 'k', found '(null)'
> Parsing failed due to syntax errors
>
> 05B14_udo_ambisonics2D_5.csd
>
> error: syntax error, unexpected T_OPCODE  (token "ambi2D_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B14_udo_ambisonics2D_5.csd (1)
>  line 48:
>>>>        ambi2D_enc_dist <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
> cannot compile orchestra
>
> 05B16_udo_ambisonics_2.csd
>
>  error: syntax error, unexpected T_OPCODE  (token "ambi_encode") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B16_udo_ambisonics_2.csd (1)
>  line 96:
>>>>        ambi_encode <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
> cannot compile orchestra
>
> 05B17_udo_ambisonics_3.csd
>
>  error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B17_udo_ambisonics_3.csd (1)
>  line 44:
>>>>        ambi_enc_dist <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
> cannot compile orchestra
>
> 05B18_udo_ambisonics_4.csd
>
> error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B18_udo_ambisonics_4.csd (1)
>  line 18:
>>>>        ambi_enc_dist <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
> cannot compile orchestra
>
>
>
>
>> 24. feb. 2018 kl. 20.04 skrev joachim heintz :
>>
>> hi ruben -
>>
>> thanks for the quick answer.  so this is really the first version, most probably not up to date.
>>
>> would you mind to check the examples of your list in the version here:
>> https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples
>>
>> if you could let me know which examples are also not working  in this version, i will go into it and fix it.
>>
>> thanks again for your feedback; this is very much appreciated -
>>
>> 	joachim
>>
>>
>>
>> On 24/02/18 19:57, Ruben Sverre Gjertsen wrote:
>>> Hi Joachim,
>>>
>>> I downloaded these examples a few weeks ago from a link you sent to the list in 2014:
>>> http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip
>>>
>>> Best
>>> Ruben
>>>
>>>
>>>> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
>>>>
>>>> hi all -
>>>>
>>>> can you please point me to which text of the examples you refer? they are obviously from the floss manual (http://write.flossmanuals.net/csound/preface/), but i am not sure you are referring to the web version of the manual, or to the csoundqt repository (where they are included), or to any other place.
>>>>
>>>> i seem to remember that i corrected some of the examples you mention here, but perhaps not in the version you are referring to.
>>>>
>>>> thanks -
>>>> 	joachim
>>>>
>>>>
>>>>
>>>> On 24/02/18 18:52, Steven Yi wrote:
>>>>> I've looked at this and Csound is correct and the code is in UDO
>>>>> error.  The message is perhaps not great, but what is happening is
>>>>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
>>>>> a UDO called ambi2D_write_B. This UDO declares having a return type of
>>>>> 'k', but there is no xout statement or anything returned.  This is an
>>>>> error. (Same as declaring something like "int myFunc() { }" in C,
>>>>> where there's no return value.)
>>>>>
>>>>> Actually, most of those UDOs could be improved by changing the out
>>>>> type to 0 and just not using an xout.
>>>>>
>>>>> So there it's user error. I suspect the code may have been developed
>>>>> before I put in xin/xout validation and in this case the changes
>>>>> caught bugs.
>>>>>
>>>>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
>>>>>> Hi Ruben,
>>>>>>
>>>>>> Thanks for reporting these.  I looked at the first issues that mention
>>>>>> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
>>>>>> I was able to reproduce this here and will investigate that.
>>>>>>
>>>>>> I'm not sure when these examples were written, but some background
>>>>>> info I found in looking at history: I added xin/xout validation in
>>>>>> 6.05.  For 6.08, there was a report about using failures using
>>>>>> constants for xout (which these examples that you posted do).  I'm
>>>>>> pretty sure I did the fix at that time for 6.08, and there are CSD
>>>>>> tests for "xout 0" that still pass now with current Csound. I'll look
>>>>>> into now why those tests pass but these csds do not.
>>>>>>
>>>>>> As for the other issues perhaps John or Victor might chime in.
>>>>>>
>>>>>> Thanks,
>>>>>> steven
>>>>>>
>>>>>>
>>>>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>>>>  wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>> I have been trying a collection of csd examples linked on this list some
>>>>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>>>>>>> and they must have been working at some point, since they are presented as
>>>>>>> examples.
>>>>>>>
>>>>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>>>>>>> definition:
>>>>>>>
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>
>>>>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>>>>>
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 05B16_udo_ambisonics_2.csd :
>>>>>>>
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>
>>>>>>> 05B17_udo_ambisonics_3.csd
>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>
>>>>>>> 04A07_Risset_variations.csd :
>>>>>>> sorting score ...
>>>>>>> Section loops cannot be nested
>>>>>>>
>>>>>>> 01D01_different_seed.csd :
>>>>>>> sorting score ...
>>>>>>> Section loops cannot be nested
>>>>>>> end of score.   overall amps:  0.00000  0.00000
>>>>>>> overall samples out of range:        0        0
>>>>>>> 1 errors in performance
>>>>>>>
>>>>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>>>>>
>>>>>>> UnifiedCSD:
>>>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>>>>> STARTING FILE
>>>>>>> Creating options
>>>>>>> Creating orchestra
>>>>>>> closing tag
>>>>>>> Creating score
>>>>>>> rtaudio: PortAudio module enabled ...
>>>>>>> using callback interface
>>>>>>> rtmidi: PortMIDI module enabled
>>>>>>> Error: character \(5c)
>>>>>>>
>>>>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>>>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>>>>>> line 15:
>>>>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>>>>>>> \ <<<
>>>>>>> Parsing failed due to invalid input!
>>>>>>> Stopping on parser failure
>>>>>>> cannot compile orchestra
>>>>>>> end of score.   overall amps:      0.0
>>>>>>> overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>>>>>
>>>>>>> 03B01_Variable_types.csd ,string problems:
>>>>>>> STARTING FILE
>>>>>>> Creating options
>>>>>>> Creating orchestra
>>>>>>> missing " to terminate string
>>>>>>> unknown CSD tag: 
>>>>>>>
>>>>>>> Creating score
>>>>>>> Reading CSD failed ... stopping
>>>>>>> end of score.   overall amps:      0.0
>>>>>>> overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>>
>>>>>>> 01B02_Adding_vs_ratio.csd :
>>>>>>>
>>>>>>> Creating orchestra
>>>>>>> missing " to terminate string
>>>>>>> unknown CSD tag: 
>>>>>>>
>>>>>>> Creating score
>>>>>>> Reading CSD failed ... stopping
>>>>>>> end of score.   overall amps:      0.0
>>>>>>> overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>>
>>>>>>> I thought I should let you know. Are there changes to the language, or are
>>>>>>> these bugs?
>>>>>>>
>>>>>>> Best
>>>>>>> Ruben
>>>>>>>
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>> be posted here
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>>
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-26 13:57
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Running csd examples in Csound 6.10
Hi Joachim,

I was able to run all the ambisonics examples now, that is great.

Best
Ruben



> 25. feb. 2018 kl. 21.51 skrev joachim heintz :
> 
> hi ruben -
> 
> i think i have fixed the examples.  if you find the time, please check and let me know if something is left.
> 
> you will have to change the files "ambisonics2D_udos.txt" and "ambisonics_udos.txt", too.
> 
> i have also changed the include path, so at least when you run the examples in the folder structure which is at https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples, the included file should be found.
> 
> cheers -
> 	joachim
> 
> 
> 
> On 24/02/18 21:28, Ruben Sverre Gjertsen wrote:
>> Hello,
>> I tried with the new download. Many things seem similar, but some of the UDO-errors look different.
>> Ruben
>> 
>> 
>> 03B01_Variable_types.csd
>> 
>> Creating options
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>> 
>> Creating score
>> Reading CSD failed ... stopping
>> 
>> 
>> 01B02_Adding_vs_ratio.csd
>> 
>> Creating orchestra
>> missing " to terminate string
>> unknown CSD tag: 
>> 
>> Creating score
>> Reading CSD failed ... stopping
>> 
>> 
>> 05B13_udo_ambisonics2D_4.csd
>> 
>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>> Parsing failed due to syntax errors
>> 
>> 05B14_udo_ambisonics2D_5.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi2D_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B14_udo_ambisonics2D_5.csd (1)
>> line 48:
>>>>>       ambi2D_enc_dist <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 05B16_udo_ambisonics_2.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi_encode") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B16_udo_ambisonics_2.csd (1)
>> line 96:
>>>>>       ambi_encode <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 05B17_udo_ambisonics_3.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B17_udo_ambisonics_3.csd (1)
>> line 44:
>>>>>       ambi_enc_dist <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 05B18_udo_ambisonics_4.csd
>> 
>> error: syntax error, unexpected T_OPCODE  (token "ambi_enc_dist") from file /0RubenCsound/0AmbisonicsStudier/Examples/FLOSS Manual Examples/05 Sound Modification/05B18_udo_ambisonics_4.csd (1)
>> line 18:
>>>>>       ambi_enc_dist <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>> cannot compile orchestra
>> 
>> 
>> 
>> 
>>> 24. feb. 2018 kl. 20.04 skrev joachim heintz :
>>> 
>>> hi ruben -
>>> 
>>> thanks for the quick answer.  so this is really the first version, most probably not up to date.
>>> 
>>> would you mind to check the examples of your list in the version here:
>>> https://github.com/CsoundQt/CsoundQt/tree/develop/src/Examples/FLOSS%20Manual%20Examples
>>> 
>>> if you could let me know which examples are also not working  in this version, i will go into it and fix it.
>>> 
>>> thanks again for your feedback; this is very much appreciated -
>>> 
>>> 	joachim
>>> 
>>> 
>>> 
>>> On 24/02/18 19:57, Ruben Sverre Gjertsen wrote:
>>>> Hi Joachim,
>>>> 
>>>> I downloaded these examples a few weeks ago from a link you sent to the list in 2014:
>>>> http://files.csound-tutorial.net/floss_manual/Release05/csd_and_audio_rl5.zip
>>>> 
>>>> Best
>>>> Ruben
>>>> 
>>>> 
>>>>> 24. feb. 2018 kl. 19.48 skrev joachim heintz :
>>>>> 
>>>>> hi all -
>>>>> 
>>>>> can you please point me to which text of the examples you refer? they are obviously from the floss manual (http://write.flossmanuals.net/csound/preface/), but i am not sure you are referring to the web version of the manual, or to the csoundqt repository (where they are included), or to any other place.
>>>>> 
>>>>> i seem to remember that i corrected some of the examples you mention here, but perhaps not in the version you are referring to.
>>>>> 
>>>>> thanks -
>>>>> 	joachim
>>>>> 
>>>>> 
>>>>> 
>>>>> On 24/02/18 18:52, Steven Yi wrote:
>>>>>> I've looked at this and Csound is correct and the code is in UDO
>>>>>> error.  The message is perhaps not great, but what is happening is
>>>>>> that in ambisonics2D_udos.txt (#included into multiple CSDs) there is
>>>>>> a UDO called ambi2D_write_B. This UDO declares having a return type of
>>>>>> 'k', but there is no xout statement or anything returned.  This is an
>>>>>> error. (Same as declaring something like "int myFunc() { }" in C,
>>>>>> where there's no return value.)
>>>>>> 
>>>>>> Actually, most of those UDOs could be improved by changing the out
>>>>>> type to 0 and just not using an xout.
>>>>>> 
>>>>>> So there it's user error. I suspect the code may have been developed
>>>>>> before I put in xin/xout validation and in this case the changes
>>>>>> caught bugs.
>>>>>> 
>>>>>> On Sat, Feb 24, 2018 at 11:36 AM, Steven Yi  wrote:
>>>>>>> Hi Ruben,
>>>>>>> 
>>>>>>> Thanks for reporting these.  I looked at the first issues that mention
>>>>>>> "error:  invalid xout statement for UDO: defined 'k', found '(null)'".
>>>>>>> I was able to reproduce this here and will investigate that.
>>>>>>> 
>>>>>>> I'm not sure when these examples were written, but some background
>>>>>>> info I found in looking at history: I added xin/xout validation in
>>>>>>> 6.05.  For 6.08, there was a report about using failures using
>>>>>>> constants for xout (which these examples that you posted do).  I'm
>>>>>>> pretty sure I did the fix at that time for 6.08, and there are CSD
>>>>>>> tests for "xout 0" that still pass now with current Csound. I'll look
>>>>>>> into now why those tests pass but these csds do not.
>>>>>>> 
>>>>>>> As for the other issues perhaps John or Victor might chime in.
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> steven
>>>>>>> 
>>>>>>> 
>>>>>>> On Sat, Feb 24, 2018 at 7:40 AM, Ruben Sverre Gjertsen
>>>>>>>  wrote:
>>>>>>>> Hello,
>>>>>>>> 
>>>>>>>> I have been trying a collection of csd examples linked on this list some
>>>>>>>> time ago. I’m not able to run all of them in Csound 6.10 (Mac osx 10.10.5),
>>>>>>>> and they must have been working at some point, since they are presented as
>>>>>>>> examples.
>>>>>>>> 
>>>>>>>> 05B13_udo_ambisonics2D_4.csd has a problem with the xout in the opcode
>>>>>>>> definition:
>>>>>>>> 
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>> 
>>>>>>>> 05B14_udo_ambisonics2D_5.csd has same problem:
>>>>>>>> 
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 05B16_udo_ambisonics_2.csd :
>>>>>>>> 
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>> 
>>>>>>>> 05B17_udo_ambisonics_3.csd
>>>>>>>> error:  invalid xout statement for UDO: defined 'k', found '(null)'
>>>>>>>> 
>>>>>>>> 04A07_Risset_variations.csd :
>>>>>>>> sorting score ...
>>>>>>>> Section loops cannot be nested
>>>>>>>> 
>>>>>>>> 01D01_different_seed.csd :
>>>>>>>> sorting score ...
>>>>>>>> Section loops cannot be nested
>>>>>>>> end of score.   overall amps:  0.00000  0.00000
>>>>>>>> overall samples out of range:        0        0
>>>>>>>> 1 errors in performance
>>>>>>>> 
>>>>>>>> 04A13_hsboscil.csd , a backslash is causing problems:
>>>>>>>> 
>>>>>>>> UnifiedCSD:
>>>>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd
>>>>>>>> STARTING FILE
>>>>>>>> Creating options
>>>>>>>> Creating orchestra
>>>>>>>> closing tag
>>>>>>>> Creating score
>>>>>>>> rtaudio: PortAudio module enabled ...
>>>>>>>> using callback interface
>>>>>>>> rtmidi: PortMIDI module enabled
>>>>>>>> Error: character \(5c)
>>>>>>>> 
>>>>>>>> error: syntax error, unexpected ERROR_TOKEN  (token "\") from file
>>>>>>>> /0RubenCsound/0AmbisonicsStudier/NotworkinginCs610/04A13_hsboscil.csd (1)
>>>>>>>> line 15:
>>>>>>>>>>> giWave    ftgen  0, 0, 262144, 9, 100,1.000,0, 278,0.500,0, 518,0.250,0,
>>>>>>>>>>> \ <<<
>>>>>>>> Parsing failed due to invalid input!
>>>>>>>> Stopping on parser failure
>>>>>>>> cannot compile orchestra
>>>>>>>> end of score.   overall amps:      0.0
>>>>>>>> overall samples out of range:        0
>>>>>>>> 1 errors in performance
>>>>>>>> Elapsed time at end of performance: real: 0.002s, CPU: 0.002s
>>>>>>>> 
>>>>>>>> 03B01_Variable_types.csd ,string problems:
>>>>>>>> STARTING FILE
>>>>>>>> Creating options
>>>>>>>> Creating orchestra
>>>>>>>> missing " to terminate string
>>>>>>>> unknown CSD tag: 
>>>>>>>> 
>>>>>>>> Creating score
>>>>>>>> Reading CSD failed ... stopping
>>>>>>>> end of score.   overall amps:      0.0
>>>>>>>> overall samples out of range:        0
>>>>>>>> 1 errors in performance
>>>>>>>> 
>>>>>>>> 01B02_Adding_vs_ratio.csd :
>>>>>>>> 
>>>>>>>> Creating orchestra
>>>>>>>> missing " to terminate string
>>>>>>>> unknown CSD tag: 
>>>>>>>> 
>>>>>>>> Creating score
>>>>>>>> Reading CSD failed ... stopping
>>>>>>>> end of score.   overall amps:      0.0
>>>>>>>> overall samples out of range:        0
>>>>>>>> 1 errors in performance
>>>>>>>> 
>>>>>>>> I thought I should let you know. Are there changes to the language, or are
>>>>>>>> these bugs?
>>>>>>>> 
>>>>>>>> Best
>>>>>>>> Ruben
>>>>>>>> 
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>> be posted here
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>     https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here