Csound Csound-dev Csound-tekno Search About

Manual correction: printk and printks

Date1998-07-06 11:03
FromRobin Whittle
SubjectManual correction: printk and printks
The syntax in the manual for printk is wrong.  The correct syntax is:

    printk itime, kvar [,ispace]


I need to rework the printks ugen.  Currently, to get a newline, you 
have to use "\n" in the quoted string.  However, since I wrote this 
something else has been introduced into Csound which catches the 
backslashes - I think for line extension purposes.

I haven't decided, and am open to suggestion, but my thoughts are to
abandon \n, \N, \t and \T as and use ~n, ~N, ~t and ~T instead. 
This means I will take out the use of tilde to produce the ANSI
escape sequence.

By then it will be time for me to rewrite the whole manual page.

- Robin



===============================================================

Robin Whittle     rw@firstpr.com.au  http://www.firstpr.com.au
                  Heidelberg Heights, Melbourne, Australia 

First Principles  Research and expression: music, Internet 
                  music marketing, telecommunications, human 
                  factors in technology adoption. Consumer 
                  advocacy in telecommunications, especially 
                  privacy. Consulting and technical writing. 

Real World        Electronics and software for music: eg.
Interfaces        the Devil Fish mods for the TB-303. 

===============================================================

Date1998-07-06 11:39
FromNicola Bernardini
SubjectRe: Manual correction: printk and printks
On Mon, 6 Jul 1998, Robin Whittle wrote:

[snip]
> I haven't decided, and am open to suggestion, but my thoughts are to
> abandon \n, \N, \t and \T as and use ~n, ~N, ~t and ~T instead. 
> This means I will take out the use of tilde to produce the ANSI
> escape sequence.

...mmm... I would rather say that it would be the score parser's problem
to avoid to escape \[A-z] inside strings, is'nt it? Otherwise we'll
end up having the first tilde escape system after the good old
mail system (which could mean that some code would'nt fare well over
the mail - just joking, tilde must be at BOF). Seriously, escape characters
are a very important issue and they should be thoroughly thought out
(otherwise the printks case is a typical case of what happens).
My proposal is to make the score parser more intelligent.

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.