Csound Csound-dev Csound-tekno Search About

[Csnd] printf

Date2011-09-14 16:21
Fromk_o_m_p
Subject[Csnd] printf
I am trying to use printf to print a simple character but I'm getting an error of insufficient arguments although there is no variables in the string. I wanted to do something like this:

printf  ".", kimpulse

csound output:
error:  insufficient required arguments, line 43:
printf Sprint, kimpulse

Running csound version 5.12 (float samples) Jun  4 2010 on a OSX 10.6.8

Thanks for any help,

Luís

--
signatur http://luisantunespena.eu


Date2011-09-14 16:28
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] printf
As I read the code there must be at least one variable.  It should work
iof you say

printf  ".", kimpulse, kimpulse

The manual is misleading on this.  I will look at the code to see if it
can be rationalised
==John ff


> I am trying to use printf to print a simple
> character but I'm getting an error of insufficient
> arguments although there is no variables in the
> string. I wanted to do something like this:
>
> printf  ".", kimpulse
>
> csound output:
> error:  insufficient required arguments, line 43:
> printf Sprint, kimpulse
>
> Running csound version 5.12 (float samples) Jun  4
> 2010 on a OSX 10.6.8
>
> Thanks for any help,
>
> Luís
>
> --
> http://luisantunespena.eu
>
>
> 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"

Date2011-09-14 16:38
Fromk_o_m_p
SubjectRe: [Csnd] printf
Thanks for looking at it. I already tried this before and it gives an error:

PERF ERROR in instr 1: printf: too many arguments for format
    printf    Sprint    kimpulse    kimpulse   
   note aborted

-Luis


Em 14.09.11 17:28, jpff@cs.bath.ac.uk escreveu:
As I read the code there must be at least one variable.  It should work
iof you say

printf  ".", kimpulse, kimpulse

The manual is misleading on this.  I will look at the code to see if it
can be rationalised
==John ff


I am trying to use printf to print a simple
character but I'm getting an error of insufficient
arguments although there is no variables in the
string. I wanted to do something like this:

printf  ".", kimpulse

csound output:
error:  insufficient required arguments, line 43:
printf Sprint, kimpulse

Running csound version 5.12 (float samples) Jun  4
2010 on a OSX 10.6.8

Thanks for any help,

Luís

--
http://luisantunespena.eu


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"




--
signatur luis antunes pena
Severinswall 54
D-50678 Köln

http://luisantunespena.eu

+49 (0)221 29020757
+49 (0)176 968 09 867 (mobile)

Date2011-09-14 16:43
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] printf
Yes, I forgot that the printf opcode checks after the parse.

What about
    kdot = 46
    printf "%x", kimpluse, kdot

inelegant....... wonder if it works?

> Thanks for looking at it. I already tried this
> before and it gives an error:
>
> PERF ERROR in instr 1: printf: too many arguments
> for format
>      printf    Sprint    kimpulse    kimpulse
>     note aborted
>
> -Luis
>
>
> Em 14.09.11 17:28, jpff@cs.bath.ac.uk escreveu:
>> As I read the code there must be at least one variable.  It should work
>> iof you say
>>
>> printf  ".", kimpulse, kimpulse
>>
>> The manual is misleading on this.  I will look at the code to see if it
>> can be rationalised
>> ==John ff
>>
>>
>>> I am trying to use printf to print a simple
>>> character but I'm getting an error of insufficient
>>> arguments although there is no variables in the
>>> string. I wanted to do something like this:
>>>
>>> printf  ".", kimpulse
>>>
>>> csound output:
>>> error:  insufficient required arguments, line 43:
>>> printf Sprint, kimpulse
>>>
>>> Running csound version 5.12 (float samples) Jun  4
>>> 2010 on a OSX 10.6.8
>>>
>>> Thanks for any help,
>>>
>>> Luís
>>>
>>> --
>>> http://luisantunespena.eu
>>>
>>>
>>> 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"
>>
>>
>
>
> --
> luis antunes pena
> Severinswall 54
> D-50678 Köln
>
> http://luisantunespena.eu
>
> +49 (0)221 29020757
> +49 (0)176 968 09 867 (mobile)
>
> 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"

Date2011-09-14 16:44
Fromk_o_m_p
SubjectRe: [Csnd] printf

This seams to work fine:


Spoint = "%s"

printf Spoint, kimpulse, "."


-Luis


Em 14.09.11 17:38, k_o_m_p escreveu:
Thanks for looking at it. I already tried this before and it gives an error:

PERF ERROR in instr 1: printf: too many arguments for format
    printf    Sprint    kimpulse    kimpulse   
   note aborted

-Luis


Em 14.09.11 17:28, jpff@cs.bath.ac.uk escreveu:
As I read the code there must be at least one variable.  It should work
iof you say

printf  ".", kimpulse, kimpulse

The manual is misleading on this.  I will look at the code to see if it
can be rationalised
==John ff


I am trying to use printf to print a simple
character but I'm getting an error of insufficient
arguments although there is no variables in the
string. I wanted to do something like this:

printf  ".", kimpulse

csound output:
error:  insufficient required arguments, line 43:
printf Sprint, kimpulse

Running csound version 5.12 (float samples) Jun  4
2010 on a OSX 10.6.8

Thanks for any help,

Luís

--
http://luisantunespena.eu


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"




--
signatur http://luisantunespena.eu