Csound Csound-dev Csound-tekno Search About

csound starts without orchestra in the case of error

Date2015-12-01 15:22
FromTarmo Johannes
Subjectcsound starts without orchestra in the case of error

Hi,

 

what do you think:

 

(I am using Csound version 6.07 (double samples) built Nov 15 2015 from develop branch)

 

I think in some point a new feature was introduced that when there is an error in the orcestra, csound starts nevertheless, but with an empty orchestra:

 

WARNING: cannot compile orchestra.

WARNING: Csound will start with no instruments

 

It is definitely useful in some cases but mostly I prefer to have a clear sign that what I want to do is not working, I would prefer csound not to start if there are errors. The warning passes by amoung other messages and it is easy not to notice it and just scratch you head, why your thing is not making any sound...

 

 

Thanks!

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

Date2015-12-01 16:30
FromVictor Lazzarini
SubjectRe: csound starts without orchestra in the case of error
Not sure what you mean, but if we have a compilation error, to the best of my knowledge, Csound exits with an error message.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 1 Dec 2015, at 15:22, Tarmo Johannes  wrote:
> 
> Hi,
>  
> what do you think:
>  
> (I am using Csound version 6.07 (double samples) built Nov 15 2015 from develop branch)
>  
> I think in some point a new feature was introduced that when there is an error in the orcestra, csound starts nevertheless, but with an empty orchestra:
>  
> WARNING: cannot compile orchestra.
> WARNING: Csound will start with no instruments
>  
> It is definitely useful in some cases but mostly I prefer to have a clear sign that what I want to do is not working, I would prefer csound not to start if there are errors. The warning passes by amoung other messages and it is easy not to notice it and just scratch you head, why your thing is not making any sound...
>  
>  
> Thanks!
> 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

Date2015-12-02 12:51
FromTarmo Johannes
SubjectRe: csound starts without orchestra in the case of error

Hi,

 

I pulled fresh sources from git/develop but still such result:

 

Testing csd:

 

<CsoundSynthesizer>

<CsOptions>

-odac -d

</CsOptions>

<CsInstruments>

 

sr = 44100

ksmps = 32

nchnls = 2

0dbfs = 1

 

instr 1

error

endin

 

schedule 2,0,1

instr 2

out poscil(0.1, 1000)

endin

 

 

</CsInstruments>

<CsScore>

</CsScore>

</CsoundSynthesizer>

 

 

Csound output:

 

0dBFS level = 32768.0

Csound version 6.07 (double samples) Dec 2 2015

libsndfile-1.0.25-exp

UnifiedCSD: /home/tarmo/tarmo/csound/proov/error-test.csd

STARTING FILE

Creating options

Creating orchestra

Creating score

rtmidi: ALSA Raw MIDI module enabled

rtaudio: JACK module enabled

LINE: 15

 

error: syntax error, unexpected NEWLINE (token "

") from file /home/tarmo/tarmo/csound/proov/error-test.csd (1)

line 15:

>>>error <<<

Unexpected untyped word error when expecting a variable

Parsing failed due to invalid input!

Stopping on parser failure

cannot compile orchestra

WARNING: cannot compile orchestra.

WARNING: Csound will start with no instruments

Elapsed time at end of orchestra compile: real: 0.001s, CPU: 0.001s

sorting score ...

... done

Elapsed time at end of score sort: real: 0.001s, CPU: 0.001s

--Csound version 6.07 (double samples) Dec 2 2015

displays suppressed

0dBFS level = 32768.0

orch now loaded

audio buffered in 1024 sample-frame blocks

system sr: 44100.000000

0: dac:system:playback_ (system:playback_)

writing 1024 sample blks of 64-bit floats to dac:system:playback_

SECTION 1:

 

 

 

I.e. Csound stays running with an empty orchestra. I would prefer Csound exiting on error. Don't you have similar beaviour?

 

Thanks,

tarmo

 

 

 

On Tuesday 01 December 2015 16:30:50 you wrote:

> Not sure what you mean, but if we have a compilation error, to the best of

> my knowledge, Csound exits with an error message.

>

> Victor Lazzarini

> Dean of Arts, Celtic Studies, and Philosophy

> Maynooth University

> Ireland

>

> > On 1 Dec 2015, at 15:22, Tarmo Johannes <tarmo.johannes@OTSAKOOL.EDU.EE>

> > wrote:

> >

> > Hi,

> >

> > what do you think:

> >

> > (I am using Csound version 6.07 (double samples) built Nov 15 2015 from

> > develop branch)

> >

> > I think in some point a new feature was introduced that when there is an

> > error in the orcestra, csound starts nevertheless, but with an empty

> > orchestra:

> >

> > WARNING: cannot compile orchestra.

> > WARNING: Csound will start with no instruments

> >

> > It is definitely useful in some cases but mostly I prefer to have a clear

> > sign that what I want to do is not working, I would prefer csound not to

> > start if there are errors. The warning passes by amoung other messages

> > and it is easy not to notice it and just scratch you head, why your thing

> > is not making any sound...

> >

> >

> > Thanks!

> > 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