initial midi per channel note impl. add conversion warnings, and fix code to properly cast. some comments. some cosmetics