String as argument for "event"?
| Date | 2007-08-17 12:02 |
| From | joachim heintz |
| Subject | String as argument for "event"? |
| Hi - I get an error message when I give a string as an argument to the opcode "event": error: input arg 'Sfil' of type string not allowed when expecting z, line 106: event "i", 2, 0, idur, Sfil, p5, p6, knorm, iskip That's a pity. Is there any possibility for doing this in a call from one instr to another? Thanks in advance - joachim |
| Date | 2007-08-17 12:31 |
| From | Victor Lazzarini |
| Subject | Re: String as argument for "event"? |
Try using scoreline or scoreline_i instead (5.06 only). At 12:02 17/08/2007, you wrote: >Hi - > >I get an error message when I give a string as an argument to the opcode >"event": > >error: input arg 'Sfil' of type string not allowed when expecting z, line >106: >event"i", 2, 0, idur, Sfil, p5, p6, knorm, iskip > >That's a pity. Is there any possibility for doing this in a call from one >instr to another? > >Thanks in advance - > >joachim Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
| Date | 2007-08-17 14:06 |
| From | joachim heintz |
| Subject | Re: String as argument for "event"? |
Thanks for the hint, Victor. I tried it, and after changing some {{ }} and "", I succeeded. Maybe it's useful for anyone when I write it here: String sprintfk {{i 2 0 %f "%s" %f %f %f %f}}, idur, Sfil, p5, p6, knorm, iskip (where Sfil is e.g. "/Volumes/Bla/file.aif") scoreline String, ktrig Cheers - "{{"joachim"}}" Am 17.08.2007 um 13:31 schrieb Victor Lazzarini:
|
| Date | 2007-08-17 14:38 |
| From | "Dr. Richard Boulanger" |
| Subject | Re: String as argument for "event"? |
| "{{"joachim"}}" and Victor This is very helpful. Thanks. We need more examples of Csound things to do with strings... (Both in the manual and in the examples collection - or as an article in The Csound Journal. ???) -dr.B. On Aug 17, 2007, at 9:06 AM, joachim heintz wrote:
|
| Date | 2007-08-17 14:39 |
| From | Victor Lazzarini |
| Subject | Re: String as argument for "event"? |
Thanks for the example.
At 14:06 17/08/2007, you wrote:
>Thanks for the hint, Victor. I tried it, and after changing some {{ }} and
>"", I succeeded. Maybe it's useful for anyone when I write it here:
>
>Stringsprintfk{{i 2 0 %f "%s" %f %f %f %f}}, idur, Sfil, p5, p6, knorm iskip
>(where Sfil is e.g. "/Volumes/Bla/file.aif")
>scorelineString, ktrig
>
>Cheers -
>
>"{{"joachim"}}"
>
>
>Am 17.08.2007 um 13:31 schrieb Victor Lazzarin :
>
>>Try using scoreline or scoreline_i instead (5.06 only).
>>
>>At 12:02 17/08/2007, you wrote:
>>>Hi -
>>>
>>>I get an error message when I give a string as an argument to the opcode
>>>"event":
>>>error: input arg 'Sfil' of type string not allowed when expecting z,
>>>line 106:
>>>event"i", 2, 0, idur, Sfil, p5, p6, knorm, iskip
>>>
>>>That's a pity. Is there any possibility for doing this in a call from
>>>one instr to another?
>>>
>>>Thanks in advance -
>>>
>>>joachim
>>
>>Victor Lazzarini
>>Music Technology Laboratory
>>Music Department
>>National University of Ireland, Maynooth
>>
>>--
>>Send bugs reports to this list.
>>To unsubscribe, send email to
>> |