| 110 | } |
| 111 | |
| 112 | void KeyWindow::KeyOn(int note, int color) |
| 113 | { |
| 114 | int tbl[12] = { 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12 }; |
| 115 | if(note<=0) return; |
| 116 | m_nKeyStatus[(tbl[note%12]+(note/12)*14)&0xFF] = 1; |
| 117 | m_nKeyColor[(tbl[note%12]+(note/12)*14)&0xFF] = color; |
| 118 | } |
| 119 | |
| 120 | void KeyWindow::KeyOff(int note) |
| 121 | { |