Prototype of left/right hand midi track separation

Hi,
I made a prototype for MIDI LH/RH track separation:
Not fixed-point separation - program try to take octave -hand-width into account.

Result
without separation: http://imageshack.us/photo/my-images/248/wasn.png/
now with separation: http://imageshack.us/photo/my-images/27/nowju.png/

What do you think about the code?
And about code style, is it important to use Banner style? Quite rare one :)

--
Andrey M. Tokarev
andrey.m.tokarev@gmail.com
IRC: trig-ger