[Csnd] ScoreEvent and named instruments
Date | 2012-05-17 21:12 |
From | Tarmo Johannes |
Subject | [Csnd] ScoreEvent and named instruments |
Hello,
if I have name instruments in my csd like instr sound endin
can I somhow call it by name from c++ api?
I understand that in
virtual int ScoreEvent(char type, const MYFLT *pFields, long numFields)
I can give the instrument only as number in the first member of the pFields array.
Is there a way to pass the instrument name as string?
greetings, tarmo |
Date | 2012-05-17 21:35 |
From | Rory Walsh |
Subject | Re: [Csnd] ScoreEvent and named instruments |
Hi Tarmo. I think if you use csoundInputMessage() it's easier. You can then just pass the entire score statement as one string. On 17 May 2012 21:12, Tarmo Johannes |
Date | 2012-05-17 22:19 |
From | Tarmo Johannes |
Subject | Re: [Csnd] ScoreEvent and named instruments |
Thanks, Rory! you probably meant virtual void InputMessage(const char *message) I will try it out tomorrow, but I guess, that was it. tarmo On Thursday 17 May 2012 21:35:19 Rory Walsh wrote: > Hi Tarmo. I think if you use csoundInputMessage() it's easier. You can > then just pass the entire score statement as one string. > > On 17 May 2012 21:12, Tarmo Johannes |
Date | 2012-05-17 23:19 |
From | Rory Walsh |
Subject | Re: [Csnd] ScoreEvent and named instruments |
It's csoundInputMessage() in the native C API. I guess you're probably using one of the other interfaces. Regardless of that it should do the trick. On 17 May 2012 22:19, Tarmo Johannes |