Csound Csound-dev Csound-tekno Search About

[Csnd] Line events

Date1999-11-07 17:10
Fromjpff@maths.bath.ac.uk
Subject[Csnd] Line events
reading the code there is a pair of lines in musmon.c

        if (!O.Linein) {               /* *************** */
          if (!(scfp = fopen(O.playscore, "r")))
            dies(Str(X_649,"cannot reopen %s"), O.playscore);
        }

so if there are line events it does not open the sorted score file.
The comment suggests that this was a modification from someone else.
The ChangeLog says

Mon Feb 12 08:53:29 1996  John Fitch  

	* musmon.c (musmon): Added guard to opening O.playscore as at
	least Linux barfs (thabks to Richard Furse).

so it was suggested my a Linux user before I had a Linux machine.  Are
you now saying that this is unnecessary, or that one should guard this
in a different way?

How about this?

        if (!(scfp = fopen(O.playscore, "r"))) {
          if (!O.Linein)
            dies(Str(X_649,"cannot reopen %s"), O.playscore);
        }

Then only dies if no Line events and no score.

==John ffitch
--