MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / KeyOn

Method KeyOn

nsfplug_ui/KeyWindow.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void 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
120void KeyWindow::KeyOff(int note)
121{

Callers 1

OnTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected