Csound Csound-dev Csound-tekno Search About

CR+LF

Date1999-01-26 13:31
FromAnders Andersson
SubjectCR+LF
Hi.. I recently found out that CSound isn't very good with the CR+LF problem..
If you try to run a score with both CR+LF in the Linux-version for example,
CSound complains..

.--- -- -  -
| Anders "Pipe/Nature" Andersson, pipe@algonet.se
| Proud member of the Amiga community, Nature and Mensa Sweden.
:



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03478;
          26 Jan 99 13:45 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 1058oL-0000Vo-00; Tue, 26 Jan 1999 13:45:45 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (NAA10648); Tue, 26 Jan 1999 13:30:41 GMT
From: f1f0@m9ndfukc.com
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 26 Jan 1999 13:30:21 GMT
Received: from anago.wwa.com [198.49.174.54] by hermes via SMTP (NAA14839); Tue, 26 Jan 1999 13:30:10 GMT
Received: from [207.241.91.16](really [207.241.91.16]) by anago.wwa.com
	via sendmail with smtp
	id 
	for ; Tue, 26 Jan 1999 07:29:49 -0600 (CST)
	(Smail-3.2 1996-Jul-4 #88 built 1997-Nov-30)
Message-Id: 
X-Sender: f1f0@m9ndfukc.com (Unverified)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 26 Jan 1999 07:50:33 -0600
To: csound@maths.ex.ac.uk
Subject: Re: question: a pitch of audio sample.
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


http://man104nfs.ucsd.edu/~mpuckett/Software/fiddle-1.0.README.txt

chek sorsz




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03909;
          26 Jan 99 15:01 GMT
Received: from [139.130.53.38] (helo=toad.ilogic.com.au ident=postfix)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 1059z0-00004O-00; Tue, 26 Jan 1999 15:01:57 +0000
Delivered-To: csound-unix-dev-list@ilogic.com.au
Received: by toad.ilogic.com.au (Postfix, from userid 91)
	id 868CC3824; Wed, 27 Jan 1999 02:00:37 +1100 (EST)
Delivered-To: csound-unix-dev@ilogic.com.au
Received: from wallace.maths.bath.ac.uk (wallace.maths.bath.ac.uk [138.38.100.104])
	by toad.ilogic.com.au (Postfix) with ESMTP for 
	id 1AA4F3823; Wed, 27 Jan 1999 02:00:15 +1100 (EST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	id 1059yD-000044-00; Tue, 26 Jan 1999 15:00:01 +0000
Date:     Tue, 26 Jan 99 14:59:59 GMT
From: jpff@maths.bath.ac.uk
Subject: [CUD] Re: bug report system
To: csound-unix-dev@ilogic.com.au, csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-unix-dev@ilogic.com.au
Precedence: bulk

Message written at 25 Jan 1999 23:11:13 +0000
--- Copy of mail to nicb@axnet.it ---
In-reply-to: 
	(message from Nicola Bernardini on Mon, 25 Jan 1999 00:03:01 +0100
	(ROM ))
References:  

How does this bug-tracking system work?  Does it require web access to
browse or what?
==John ffitch



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03967;
          26 Jan 99 15:09 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105A7F-00005R-00; Tue, 26 Jan 1999 15:09:21 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA03605); Tue, 26 Jan 1999 15:00:15 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 26 Jan 1999 14:59:41 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (OAA02408); Tue, 26 Jan 1999 14:59:39 GMT
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	for csound@maths.ex.ac.uk
	id 1059xq-00003t-00; Tue, 26 Jan 1999 14:59:38 +0000
Date:     Tue, 26 Jan 99 14:59:37 GMT
From: jpff@maths.bath.ac.uk
Subject:  Problem with 3.51
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 25 Jan 1999 22:57:37 +0000

.....as was inevitable the first error has been reported (thanks
Gabriel).  The use of ^ for powers will not work for a-rate first
arguments and constant or i-rate second.  It works for a ^ k.  I have
a fix and it will be available soon.
==John ffitch


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03986;
          26 Jan 99 15:15 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105ACi-0000bx-00; Tue, 26 Jan 1999 15:15:00 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA05328); Tue, 26 Jan 1999 15:00:46 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 26 Jan 1999 15:00:16 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA18033); Tue, 26 Jan 1999 15:00:14 GMT
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	id 1059yD-000044-00; Tue, 26 Jan 1999 15:00:01 +0000
Date:     Tue, 26 Jan 99 14:59:59 GMT
From: jpff@maths.bath.ac.uk
Subject:  Re: bug report system
To: csound-unix-dev@ilogic.com.au, csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 25 Jan 1999 23:11:13 +0000
--- Copy of mail to nicb@axnet.it ---
In-reply-to: 
	(message from Nicola Bernardini on Mon, 25 Jan 1999 00:03:01 +0100
	(ROM ))
References:  

How does this bug-tracking system work?  Does it require web access to
browse or what?
==John ffitch


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04815;
          26 Jan 99 19:37 GMT
Received: from [194.184.60.149] (helo=ax-nicb.axnet.it ident=root)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105EIa-0000Td-00; Tue, 26 Jan 1999 19:37:21 +0000
Received: (from nicb@localhost)
	by ax-nicb.axnet.it (8.8.8/8.8.8) id TAA11400;
	Tue, 26 Jan 1999 19:48:11 +0100
Date: Tue, 26 Jan 1999 19:48:07 +0100 (ROM )
From: Nicola Bernardini 
To: jpff@maths.bath.ac.uk
cc: Csound Linux/Unix Development Group , 
    Csound mailing list 
Subject: Re: bug report system
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 26 Jan 1999 jpff@maths.bath.ac.uk wrote:

[snip]
> How does this bug-tracking system work?  Does it require web access to
> browse or what?

it does, though it works quite well with lynx (char-based browser).
It also is possible to ask Damien to have a number of people or list
mailed when a bug is entered into the system: currently, only the
csound-unix-dev (which is also plagued by the CVS repository changes mails)
gets mailed.

Nicola

------------------------------------------------------------------------
Nicola Bernardini
E-mail: nicb@axnet.it
 
Re graphics: A picture is worth 10K words -- but only those to describe
the picture.  Hardly any sets of 10K words can be adequately described
with pictures.



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04823;
          26 Jan 99 19:38 GMT
Received: from [139.130.53.38] (helo=toad.ilogic.com.au ident=postfix)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105EJL-0000To-00; Tue, 26 Jan 1999 19:38:07 +0000
Delivered-To: csound-unix-dev-list@ilogic.com.au
Received: by toad.ilogic.com.au (Postfix, from userid 91)
	id B01A83824; Wed, 27 Jan 1999 06:37:45 +1100 (EST)
Delivered-To: csound-unix-dev@ilogic.com.au
Received: from ax-nicb.axnet.it (ax-nicb.axnet.it [194.184.60.149])
	by toad.ilogic.com.au (Postfix) with ESMTP for 
	id 800043823; Wed, 27 Jan 1999 06:37:33 +1100 (EST)
Received: (from nicb@localhost)
	by ax-nicb.axnet.it (8.8.8/8.8.8) id TAA11400;
	Tue, 26 Jan 1999 19:48:11 +0100
Date: Tue, 26 Jan 1999 19:48:07 +0100 (ROM )
From: Nicola Bernardini 
To: jpff@maths.bath.ac.uk
Cc: Csound Linux/Unix Development Group , 
    Csound mailing list 
Subject: [CUD] Re: bug report system
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-unix-dev@ilogic.com.au
Precedence: bulk

On Tue, 26 Jan 1999 jpff@maths.bath.ac.uk wrote:

[snip]
> How does this bug-tracking system work?  Does it require web access to
> browse or what?

it does, though it works quite well with lynx (char-based browser).
It also is possible to ask Damien to have a number of people or list
mailed when a bug is entered into the system: currently, only the
csound-unix-dev (which is also plagued by the CVS repository changes mails)
gets mailed.

Nicola

------------------------------------------------------------------------
Nicola Bernardini
E-mail: nicb@axnet.it
 
Re graphics: A picture is worth 10K words -- but only those to describe
the picture.  Hardly any sets of 10K words can be adequately described
with pictures.




Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06317;
          27 Jan 99 8:39 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105QVr-0001ZV-00; Wed, 27 Jan 1999 08:39:51 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (IAA09222); Wed, 27 Jan 1999 08:37:10 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 08:36:55 GMT
Received: from college.antioch-college.edu [192.131.123.11] by hermes via ESMTP (UAA05545); Tue, 26 Jan 1999 20:06:16 GMT
Received: (from jsteiner@localhost)
	by antioch-college.edu (8.8.8/8.8.8) id OAA21870;
	Tue, 26 Jan 1999 14:57:47 -0500 (EST)
Date: Tue, 26 Jan 1999 14:57:46 -0500 (EST)
From: Josh Steiner 
To: Csound 
Subject: Re: Yet another member on the list
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

> BTW, I tried to program an An1X emulator in CSound, but programming the 
> score was a pain (20+ controls). Is there anything (a front-end for Linux
> ?) that would help with this problem ? 

I think that CECILIA may fit the bill, but I havn't gotten around to 
trying it out yet :)

http://www.musique.umontreal.ca/Org/CompoElectro/CEC/

---
Joshua W. H. Steiner - joschi@eds.org - http://eds.org/~joschi

"The reverse side also has a reverse side" 
   - Japanese Proverb





Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07183;
          27 Jan 99 13:04 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105UdY-0001Zw-00; Wed, 27 Jan 1999 13:04:04 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA02295); Wed, 27 Jan 1999 12:57:16 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 12:57:03 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (MAA02920); Wed, 27 Jan 1999 12:57:02 GMT
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	for csound@maths.ex.ac.uk
	id 105UWf-0001Y9-00; Wed, 27 Jan 1999 12:56:57 +0000
Date:     Wed, 27 Jan 99 12:56:56 GMT
From: jpff@maths.bath.ac.uk
Subject:  Re: CR+LF
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 26 Jan 1999 22:24:06 +0000
--- Copy of mail to pipe@algonet.se ---
In-reply-to:  (message from Anders
	Andersson on Tue, 26 Jan 1999 14:31:58 +0100)
References:  

Really?  There are problems in how the underlying C behaves but we did
manage to get Csound on PC to accept MAC sources, and I thought that
the Unix world also worked thus.
  This code was in orcestras and scores, and I have not attempted to
incorporate it in .csd files and .csoundrc.  Perhaps I should look a
that.

==John ffitch


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07189;
          27 Jan 99 13:04 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105Udk-0001Zy-00; Wed, 27 Jan 1999 13:04:17 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA02895); Wed, 27 Jan 1999 12:58:47 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 12:58:08 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (MAA14724); Wed, 27 Jan 1999 12:58:07 GMT
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	for csound@maths.ex.ac.uk
	id 105UXm-0001Yi-00; Wed, 27 Jan 1999 12:58:06 +0000
Date:     Wed, 27 Jan 99 12:58:05 GMT
From: jpff@maths.bath.ac.uk
Subject:  Follow opcode
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 27 Jan 1999 11:27:33 +0000

At teh weekend I indicated that I had doubts about this opcode.  I
think that i shoudl say more, and i have been thinking about it.

At present want it does is to initialise teh output value to zero, and
also the max and min values to zero.  It then reads the number of
samples specified in the period, and it outputs the remembered output
value, and resents max and min if they are greater/less than before.
At the end of each period it calculates the next outout value to the
average of max and -min.

So problems:
a) there is a period delay, and all answers refer to previous period
-- which is kind of expected with direct processing. 
b) If the signal is a constant +1 the answer will be a constant 0.5.

I think that an envelope follower should be idempotent to an envelope,
at least in the constant case.  I think it would be better to use the
largest absolute value rather than this average, and it should be on
the last period samples rather than in sections.  I think I know how
to code that but I do not want to change teh functionality pof old
code if it is being used.  hence my question as to whether anyone used
follow, or had attempted to use it.
==John ffitch


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07202;
          27 Jan 99 13:07 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105Uh5-0001aO-00; Wed, 27 Jan 1999 13:07:43 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (NAA04417); Wed, 27 Jan 1999 13:00:02 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 12:59:39 GMT
Received: from root@ax-nicb.axnet.it [194.184.60.149] by hermes via ESMTP (TAA02767); Tue, 26 Jan 1999 19:37:27 GMT
Received: (from nicb@localhost)
	by ax-nicb.axnet.it (8.8.8/8.8.8) id TAA11400;
	Tue, 26 Jan 1999 19:48:11 +0100
Date: Tue, 26 Jan 1999 19:48:07 +0100 (ROM )
From: Nicola Bernardini 
To: jpff@maths.bath.ac.uk
cc: Csound Linux/Unix Development Group , 
    Csound mailing list 
Subject: Re: bug report system
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

On Tue, 26 Jan 1999 jpff@maths.bath.ac.uk wrote:

[snip]
> How does this bug-tracking system work?  Does it require web access to
> browse or what?

it does, though it works quite well with lynx (char-based browser).
It also is possible to ask Damien to have a number of people or list
mailed when a bug is entered into the system: currently, only the
csound-unix-dev (which is also plagued by the CVS repository changes mails)
gets mailed.

Nicola

------------------------------------------------------------------------
Nicola Bernardini
E-mail: nicb@axnet.it
 
Re graphics: A picture is worth 10K words -- but only those to describe
the picture.  Hardly any sets of 10K words can be adequately described
with pictures.



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07221;
          27 Jan 99 13:09 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
	for jpff@maths.bath.ac.uk
	id 105UiM-0001rg-00; Wed, 27 Jan 1999 13:09:02 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA03001); Wed, 27 Jan 1999 12:58:44 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 27 Jan 1999 12:58:02 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (MAA03289); Wed, 27 Jan 1999 12:58:01 GMT
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	for csound@maths.ex.ac.uk
	id 105UXh-0001Yf-00; Wed, 27 Jan 1999 12:58:01 +0000
Date:     Wed, 27 Jan 99 12:58:00 GMT
From: jpff@maths.bath.ac.uk
Subject:  Re: bugs.csd
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 27 Jan 1999 11:09:17 +0000
--- Copy of mail to rasmuse@hem.passagen.se ---

>>>>> "rasmus" == rasmus ekman  writes:

 rasmus> Still complains about some extra CR's, and claims to be 
 rasmus> running \s3voof23.orc and \s3voof23.sco files. That's 
 rasmus> nothing to nag about however. (There was the shit about 
 rasmus> error message line numbers too, but who cares. Document 
 rasmus> it and it's a feature.)

The strange names is of course what it is doing.  In order to simplify
the coding, to disturb as little as possible, i create temporary files
and copy the text from the .csd file into them. I also set up an
atexit function to delete them.  I did think of suppressing the
printed names but I thought that honesty was better!
  I will look at the problems caused by additional free ^M
characters.  The problems I had before was that the C libraries do
different things on different platforms, and while we all know that \n
is ^J there is no guarantee that that is the case.  Some more thought
might help...
  I did have a complaint/comment that in one of teh source files an
additional ^M had crept in, but none of my compilers noticed, and i am
not totally sure how it got there.  Something to do with emacs over
shared files and Samba I suspect.
  This all reminds me of an examination question in computing from the
1960s or early 1970s; "Why do apparently sensible people make such a
mess when it comes to character codes?"  I think it was reworded in
the printed version but was the original question.  Of course on Titan
we did not have control characters.

==John ffitch