Csound Csound-dev Csound-tekno Search About

[Cs-dev] Manual

Date2005-07-06 17:10
Fromjpff@cs.bath.ac.uk
Subject[Cs-dev] Manual
The manual page for fprints is wrong; it implies the values are kvals
but this is an i-rate opcode.

I also think that there is a bug in the implementation.  \\n in a
string gives macintosh EOL codes and it should do what printf does.
Have not verified this, but I have observed it.

Last thought, the "need" for \\n rather than \n is nasty.

==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-06 17:13
FromIstvan Varga
SubjectRe: [Cs-dev] Manual
jpff@cs.bath.ac.uk wrote:

> Last thought, the "need" for \\n rather than \n is nasty.

Actually, \n should work in Csound 5, as I have made changes
to the parser some time ago to automatically convert escape
sequences like \n, \r, etc.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-06 17:24
FromJohn ffitch
SubjectRe: [Cs-dev] Manual
But it did not 
\n gave an extraneous n in the output
==John ff




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-06 17:33
FromIstvan Varga
SubjectRe: [Cs-dev] Manual
John ffitch wrote:

> But it did not 
> \n gave an extraneous n in the output

I do not know, the CSD below printed correct newlines for me.
It also worked with \\n instead of \n.



sr      =  48000
ksmps   =  32
nchnls  =  1
0dbfs   =  1

         instr 1

         fprints "/tmp/testfile.txt", "sr = %d\n", sr
         fprints "/tmp/testfile.txt", "kr = %d\n", kr

         endin




i 1 0 1
e





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-08 17:35
FromAndres Cabrera
SubjectRe: [Cs-dev] Manual
Ok, it's fixed in the manual.

Andrés

On Wed, 2005-07-06 at 11:10, jpff@cs.bath.ac.uk wrote:
> The manual page for fprints is wrong; it implies the values are kvals
> but this is an i-rate opcode.
> 
> I also think that there is a bug in the implementation.  \\n in a
> string gives macintosh EOL codes and it should do what printf does.
> Have not verified this, but I have observed it.
> 
> Last thought, the "need" for \\n rather than \n is nasty.
> 
> ==John ffitch
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net