-Handle all notes off in notecache.
git-svn-id: http://svn.fuzzle.org/mloop/mloop/trunk@4 ba049829-c6ef-42ef-81ac-908dd8d2e907remotes/git-svn@10
parent
cf1e699840
commit
46e2d9f0ad
|
@ -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]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue