[Our emails unfortunately crossed!] Ahh, yes! It's amazing how one can just not spot a simple mistake like that! Of course in my code I was essentially copying sources, which use the "+=" and final clear. Never spotted what he was doing! Thanks! -- Pete -- On Mon, Aug 22, 2022 at 09:14:10PM +0100, Amy Universe wrote: > oh this one can be tricky at first, but you'll get used to it. > you're reassigning the global audio variable in instr 1. this clears it and adds the new signal as soon as the new note begins, which stops the old instance from outputting that tail. > what you wanna do is mix your signal to that variable (+=) but be very careful, you'll still need to clear it (otherwise it's gonna get very loud very quickly because you're adding to it) usually you wanna `clear` it after you're done with it, so after the `outs` call. > this way as long as the instrument is running it adds to that output, allowing different instances to overlap. > > there's a good piece about this in the floss manual: > https://flossmanual.csound.com/csound-language/local-and-global-variables > > side note, i find it useful to pass all my audio like this to an output instrument and to clip the outputs, you'll save yourself from a lot of really loud noises when you're experimenting with this stuff ;) > > 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