Csound Csound-dev Csound-tekno Search About

[Csnd] Printing % character

Date2010-09-23 14:51
Fromjohn ffitch
Subject[Csnd] Printing % character
i have been looking at old mail and found a bunch of messages about %%
not printing a % and the like.  I think some of these were fixed but I
am not sure exactly which calls caused the complaints.

It certainly works in prints that %% is a %

I would appreciate receiving example .csd files that are simple but
show any problems.

==John ffitch


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-09-27 11:43
Fromjoachim heintz
Subject[Csnd] Re: Printing % character
When I run this, I get a "Csound tidy up: Bus error":



instr 1
prints "%%"
endin


i 1 0 0



I am on OSX 10.5.8, Csound version 5.12 (float samples) Jun  4 2010,  
running from the command line.

	joachim


Am 23.09.2010 um 15:51 schrieb john ffitch:

> i have been looking at old mail and found a bunch of messages about %%
> not printing a % and the like.  I think some of these were fixed but I
> am not sure exactly which calls caused the complaints.
>
> It certainly works in prints that %% is a %
>
> I would appreciate receiving example .csd files that are simple but
> show any problems.
>
> ==John ffitch
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-09-27 12:27
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Printing % character
With latest CVS code thi sworks, and even better in the prints is changed to
prints "%%\n"

it even prints

...
SECTION 1:
new alloc for instr 1:
%
Score finished in csoundPerform().
....
Next example?

==John ff

> When I run this, I get a "Csound tidy up: Bus error":
>
> 
> 
> instr 1
> prints "%%"
> endin
> 
> 
> i 1 0 0
> 
> 
>
> I am on OSX 10.5.8, Csound version 5.12 (float samples) Jun  4 2010,
> running from the command line.
>
> 	joachim
>
>
> Am 23.09.2010 um 15:51 schrieb john ffitch:
>
>> i have been looking at old mail and found a bunch of messages about %%
>> not printing a % and the like.  I think some of these were fixed but I
>> am not sure exactly which calls caused the complaints.
>>
>> It certainly works in prints that %% is a %
>>
>> I would appreciate receiving example .csd files that are simple but
>> show any problems.
>>
>> ==John ffitch
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-09-27 12:57
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Printing % character
great, thanks.

my problem was related to fprints. i just found my original post  
(march 21 this year):

 >>
I want to write a string to a file with fprints, and this string  
contains a format string, for instance:
fprints "/Users/jh/Desktop/fprints.txt", {{Soutnam sprintf "%s_ 
%d.wav", Sfile, ichn}}
This results in a bus error, because of the "%s" and "%d". I tried  
masking it with "\%d" or "%%d", but this does not work.
<<

so, perhaps the most simple example would be:



instr 1
fprints "print.txt", "%%d"
endin


i 1 0 0



this should write a file with "%d" as content.
works for you?

	j




Am 27.09.2010 um 13:27 schrieb jpff@cs.bath.ac.uk:

>
> With latest CVS code thi sworks, and even better in the prints is  
> changed to
> prints "%%\n"
>
> it even prints
>
> ...
> SECTION 1:
> new alloc for instr 1:
> %
> Score finished in csoundPerform().
> ....
> Next example?
>
> ==John ff
>
>> When I run this, I get a "Csound tidy up: Bus error":
>>
>> 
>> 
>> instr 1
>> prints "%%"
>> endin
>> 
>> 
>> i 1 0 0
>> 
>> 
>>
>> I am on OSX 10.5.8, Csound version 5.12 (float samples) Jun  4 2010,
>> running from the command line.
>>
>> 	joachim
>>
>>
>> Am 23.09.2010 um 15:51 schrieb john ffitch:
>>
>>> i have been looking at old mail and found a bunch of messages  
>>> about %%
>>> not printing a % and the like.  I think some of these were fixed  
>>> but I
>>> am not sure exactly which calls caused the complaints.
>>>
>>> It certainly works in prints that %% is a %
>>>
>>> I would appreciate receiving example .csd files that are simple but
>>> show any problems.
>>>
>>> ==John ffitch
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/? 
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/? 
>> group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe
>> csound"
>>
>>
>>
>>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-09-27 13:05
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Re: Re: Printing % character
Yes; I used that message to chase (one of) the erors


> great, thanks.
>
> my problem was related to fprints. i just found my original post
> (march 21 this year):
>
>  >>
> I want to write a string to a file with fprints, and this string
> contains a format string, for instance:
> fprints "/Users/jh/Desktop/fprints.txt", {{Soutnam sprintf "%s_
> %d.wav", Sfile, ichn}}
> This results in a bus error, because of the "%s" and "%d". I tried
> masking it with "\%d" or "%%d", but this does not work.
> <<
>
> so, perhaps the most simple example would be:
>
> 
> 
> instr 1
> fprints "print.txt", "%%d"
> endin
> 
> 
> i 1 0 0
> 
> 
>
> this should write a file with "%d" as content.
> works for you?
>
> 	j
>
>
>
>
> Am 27.09.2010 um 13:27 schrieb jpff@cs.bath.ac.uk:
>
>>
>> With latest CVS code thi sworks, and even better in the prints is
>> changed to
>> prints "%%\n"
>>
>> it even prints
>>
>> ...
>> SECTION 1:
>> new alloc for instr 1:
>> %
>> Score finished in csoundPerform().
>> ....
>> Next example?
>>
>> ==John ff
>>
>>> When I run this, I get a "Csound tidy up: Bus error":
>>>
>>> 
>>> 
>>> instr 1
>>> prints "%%"
>>> endin
>>> 
>>> 
>>> i 1 0 0
>>> 
>>> 
>>>
>>> I am on OSX 10.5.8, Csound version 5.12 (float samples) Jun  4 2010,
>>> running from the command line.
>>>
>>> 	joachim
>>>
>>>
>>> Am 23.09.2010 um 15:51 schrieb john ffitch:
>>>
>>>> i have been looking at old mail and found a bunch of messages
>>>> about %%
>>>> not printing a % and the like.  I think some of these were fixed
>>>> but I
>>>> am not sure exactly which calls caused the complaints.
>>>>
>>>> It certainly works in prints that %% is a %
>>>>
>>>> I would appreciate receiving example .csd files that are simple but
>>>> show any problems.
>>>>
>>>> ==John ffitch
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe
>>> csound"
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-09-27 13:26
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Re: Re: Printing % character
fantastic - thanks very much!
(agreeing to richard's mail i am wondering how we can help to get more  
vacations for you ...=)
best -

	j


Am 27.09.2010 um 14:05 schrieb jpff@cs.bath.ac.uk:

> Yes; I used that message to chase (one of) the erors
>
>
>> great, thanks.
>>
>> my problem was related to fprints. i just found my original post
>> (march 21 this year):
>>
>>>>
>> I want to write a string to a file with fprints, and this string
>> contains a format string, for instance:
>> fprints "/Users/jh/Desktop/fprints.txt", {{Soutnam sprintf "%s_
>> %d.wav", Sfile, ichn}}
>> This results in a bus error, because of the "%s" and "%d". I tried
>> masking it with "\%d" or "%%d", but this does not work.
>> <<
>>
>> so, perhaps the most simple example would be:
>>
>> 
>> 
>> instr 1
>> fprints "print.txt", "%%d"
>> endin
>> 
>> 
>> i 1 0 0
>> 
>> 
>>
>> this should write a file with "%d" as content.
>> works for you?
>>
>> 	j
>>
>>
>>
>>
>> Am 27.09.2010 um 13:27 schrieb jpff@cs.bath.ac.uk:
>>
>>>
>>> With latest CVS code thi sworks, and even better in the prints is
>>> changed to
>>> prints "%%\n"
>>>
>>> it even prints
>>>
>>> ...
>>> SECTION 1:
>>> new alloc for instr 1:
>>> %
>>> Score finished in csoundPerform().
>>> ....
>>> Next example?
>>>
>>> ==John ff
>>>
>>>> When I run this, I get a "Csound tidy up: Bus error":
>>>>
>>>> 
>>>> 
>>>> instr 1
>>>> prints "%%"
>>>> endin
>>>> 
>>>> 
>>>> i 1 0 0
>>>> 
>>>> 
>>>>
>>>> I am on OSX 10.5.8, Csound version 5.12 (float samples) Jun  4  
>>>> 2010,
>>>> running from the command line.
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 23.09.2010 um 15:51 schrieb john ffitch:
>>>>
>>>>> i have been looking at old mail and found a bunch of messages
>>>>> about %%
>>>>> not printing a % and the like.  I think some of these were fixed
>>>>> but I
>>>>> am not sure exactly which calls caused the complaints.
>>>>>
>>>>> It certainly works in prints that %% is a %
>>>>>
>>>>> I would appreciate receiving example .csd files that are simple  
>>>>> but
>>>>> show any problems.
>>>>>
>>>>> ==John ffitch
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>          https://sourceforge.net/tracker/?
>>>>> group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/? 
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/? 
>> group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe
>> csound"
>>
>>
>>
>>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"