# Cabbage missing "note off" messages - notes stay open

**URL:** <https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248>\
**Category:** Cabbage Stew\
**Created:** [1 June 2016 00:13 UTC](https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248 "2016-06-01T00:13:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobiah](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@tobiah](https://forum.cabbageaudio.com/u/tobiah)\
**Post date:** [1 June 2016 00:13 UTC](https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248/1 "2016-06-01T00:13:45Z")

</div>

Just tried Cabbage with a simple instrument. When I play the virtual keyboard with the mouse, things work as expected. When I play either standalone Cabbage, or a Cabbage built vst plugin from my MIDI keyboard, a few of the notes seem to lose the Note Off, and they stay on. Now, the virtual keyboard doesn’t show that the note is held - it’s just that the sound continues. If I click the same note with the mouse, it normally shuts the note off. I don’t have this issue playing other software with my MIDI keyboard, including other VST plugins in the same host.

Thanks for any help. Here is the .csd.

```
<Cabbage>
form caption("Untitled") size(1500, 300), colour(58, 110, 182), pluginID("def1")
keyboard bounds(8, 158, 1400, 95),  
rslider bounds(184, 0, 114, 73), channel("rslider"), range(0, 1, , 1, 0.001), text("Fooman", ""),  
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d --midi-key-cps=5 --midi-velocity-amp=4
</CsOptions>
<CsInstruments>
; Initialize the global variables. 
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

;instrument will be triggered by keyboard widget
instr 1
print p4, p5
ivol	init	p4
ipitch init p5
irelease chnget "rslider"
kEnv madsr .01, .2, .6, irelease
aOut vco2 ivol, ipitch, 12

outs aOut*kEnv, aOut*kEnv
endin

</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z

i1 0 .5, 1, 40
</CsScore>
</CsoundSynthesizer>

```

Toby

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 June 2016 09:32 UTC](https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248/2 "2016-06-01T09:32:21Z")

</div>

Hi Toby, what version are you using? I just tried here on Windows with the latest build and I’m not seeing any issues. Might you be using an older version?

---

<div class="post-metadata">

**Author:** ![gsenna](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@gsenna](https://forum.cabbageaudio.com/u/gsenna)\
**Post date:** [1 June 2016 14:21 UTC](https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248/3 "2016-06-01T14:21:54Z")

</div>

Hi Toby,

I’ve remembered something. If your MIDI keyboard has an option that says something like “Use External MIDI Clock” or anything similar, try changing it. It worked with a Yamaha keyboard.

Cheers.

---

<div class="post-metadata">

**Author:** ![tobiah](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@tobiah](https://forum.cabbageaudio.com/u/tobiah)\
**Post date:** [5 June 2016 14:04 UTC](https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248/4 "2016-06-05T14:04:21Z")

</div>

I’m glad you were here! I found a setting on my Yamaha keyboard called ‘Sync’. Changed it from ‘Int’ (internal I guess) to MIDI. Now Cabbage plays fine. It’s strange that after 10 years of playing all sorts of software with the same keyboard I never once before had this problem.

Thanks!

Tobiah

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [5 June 2016 18:11 UTC](https://forum.cabbageaudio.com/t/cabbage-missing-note-off-messages-notes-stay-open/248/5 "2016-06-05T18:11:24Z")

</div>

> [@tobiah](#):
>
> It’s strange that after 10 years of playing all sorts of software with the same keyboard I never once before had this problem.

Cabbage is a very special software 😉

Thanks for letting us know you were able to resolve the problem, and to @gsenna for his input. I wouldn’t have known where to start on that one!
