In the case of a string the p-feld is a NaN+n where n is an index of the string. strarg ia an aray of charsor zero-terminated strings ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd" ==John Quoting Victor Lazzarini : > strarg will hold the string. The double parameter is a time offset, > you can just set it to 0. > On 1 Apr 2014, at 18:58, Rory Walsh wrote: > >> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent >> p-fields? These are all MYFLTs, how do I add a string to a p-field? >> Sorry for the confusion, would be easier with InputMessage :), oh and >> finally, what's the double parameter for in insert_score_event(csound, >> evtblk, double)? >> >> EVTBLK evtblk; >> evtblk.opcod = 'f'; >> evtblk.strarg = >> evtblk.p[0] = >> evtblk.p[1] = >> evtblk.p[2] = >> evtblk.p[3] = >> >> On 1 April 2014 18:40, Rory Walsh wrote: >>> That's a pity. But I guess I can just look at the csoundInputMessage() >>> method to see how it's done. >>> >>> On 1 April 2014 18:31, Victor Lazzarini wrote: >>>> There is no InputMessage() in CSOUND. There is the API function >>>> csoundInputMessage() or Csound::InputMessage(). >>>> >>>> In CSOUND, you have insert_score_event(). >>>> >>>> ======================== >>>> Dr Victor Lazzarini >>>> Senior Lecturer >>>> NUI Maynooth, Ireland >>>> victor dot lazzarini at nuim dot ie >>>> >>>> >>>> >>>> >>>> On 1 Apr 2014, at 18:27, Michael Gogins wrote: >>>> >>>>> Are you using the C API or the C++ API? >>>>> >>>>> In C: csound->InputMessage(CSOUND*, const char *message) >>>>> >>>>> In C++: csound->InputMessage(const char *message) >>>>> >>>>> >>>>> ----------------------------------------------------- >>>>> Michael Gogins >>>>> Irreducible Productions >>>>> http://michaelgogins.tumblr.com >>>>> Michael dot Gogins at gmail dot com >>>>> >>>>> >>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh wrote: >>>>> Can't seem to access csoundInputMessage()? >>>>> >>>>> error: 'CSOUND' has no member named 'csoundInputMessage' >>>>> >>>>> Seems like I should be able to no? >>>>> >>>>> On 1 April 2014 14:08, Rory Walsh wrote: >>>>>> Thanks Victor. I'll take a look. >>>>>> >>>>>> On 1 April 2014 14:05, Victor Lazzarini >>>>>> wrote: >>>>>>> Actually, I just found out that it's not exposed there. I >>>>>>> would say try csoundInputMessage() then, if there is a problem, >>>>>>> you can use csound->insert_score_event() (which will definitely work). >>>>>>> >>>>>>> ======================== >>>>>>> Dr Victor Lazzarini >>>>>>> Senior Lecturer >>>>>>> NUI Maynooth, Ireland >>>>>>> victor dot lazzarini at nuim dot ie >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini >>>>>>> wrote: >>>>>>> >>>>>>>> OK. You should use the csound->InputMessage() form from >>>>>>>> Opcodes instead of the API function, >>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html >>>>>>>> ------------------------------------------------------------------------------ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net