On Wed, May 27, 2020 at 01:15:48PM -0400, Kevin Welsh wrote:
> I've had this use-case come up before too... at the time I just used a
> dummy instrument event, and it worked fine.
> 
> But this discussion prompted me to look for a more elegant way to do
> this... so I checked out the score statement docs, and sure enough, found
> this:
> https://csound.com/docs/manual/d.html
> 
Hah, yes!  That seems to do the job.  Good find.

The key being that it not only requests turnoff at a specific time
but will extend duration to that time.

It's a shame that the manual page is almost. but not quite,
completely unlike reality... (:-/)

For a start the Syntax is shown as

  "i p1 p2 p3 p4"

when it should be

  "d p1 p2 p3"

And it states that p3 is ignored, when -- by experiment --
it most definitely is not!  In fact, the turnoff time is the
sum of p2 and p3.

Anyway, thanks for finding.

	-- 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