On Thu, Feb 28, 2019 at 05:41:56PM -0800, Pete Goodeve wrote: > Hi, > I just came across what seems to be a bug in MIDI handling. > If I implement the 'aftouch' opcode to, say, add vibrato to a > note, but never actually send a channel aftertouch message, > the initial level is fully on! For reference, I hacked a workaround which solves things for now: ; globally: gktouchused init 0 ; in the instrument: kTouch aftouch 0, 1 if kTouch < 0.5 then gktouchused = 1 endif if gktouchused == 0 then kTouch = 0 endif -- so kTouch is forced to zero until the first aftertouch message arrives. -- 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