-Handle all notes off in notecache.

git-svn-id: http://svn.fuzzle.org/mloop/mloop/trunk@4 ba049829-c6ef-42ef-81ac-908dd8d2e907
remotes/git-svn@10
petern 2009-07-21 21:44:16 +00:00
parent cf1e699840
commit 46e2d9f0ad
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ public:
if ((cmd & 0xF0) == 0x80) velocity = 0;
m_notes[channel][note] = velocity;
}
} else if ((cmd & 0xF0) == 0xB0 && buffer[1] == 0x7B) {
/* All notes off */
int8_t channel = cmd & 0x0F;
memset(m_notes[channel], 0, sizeof m_notes[channel]);
}
}
};