On Wed, Jan 08, 2020 at 09:48:31PM +0000, Rory Walsh wrote: > schedule is i-rate, no amount of sweet talking is going to change that. > It's kind of implied by the fact that it takes i-rate inputs, or so this my > understanding of it. Try schedkwhen if you need a krate version I guess I'm misuderstanding the point of a UDO. I thought it was essentially an instrument of its own, with an i-segment each time it was invoked. This is not so? -- Pete -- > > On Wed, 8 Jan 2020 at 21:42, Pete Goodeve wrote: > > > Hi, > > > > I'm having some trouble in understanding what I'm > > seeing in my experimentation. I hope someone can > > clear it up. > > > > I got Joachim's 'OnDtct.csd' to work nicely by substituting > > an event statement for the 'schedulek', but I thought this > > would be a good place to try a UDO (which I haven't played > > with much) to implement the schedulek. > > > > So I added this UDO: > > > > opcode schedulek, 0, Skk > > Sname, istart, idur xin > > schedule Sname, istart, idur > > endop > > > > and called it with a slightly modified: > > > > schedulek "Play",0,1/10 > > > > However, "Play" only gets invoked once at the very beginning > > of execution. (I originally had "Sii" for the parameters, but I > > thought that mght be causing the opcode to be i-time only.) > > > > I assume, though I can't find it stated, that 'schedule' is an > > i-time only opcode -- hence the need for 'schedulek' -- but > > I thought that if I put it in an opcode it would get invoked > > appropriately. > > > > Where am I going wrong? > > > > Thanks, > > > > -- Pete -- > > > > Csound mailing list > > Csound@listserv.heanet.ie > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > > Send bugs reports to > > https://github.com/csound/csound/issues > > Discussions of bugs and features can be posted here > > > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here