vertical line drawing and midi note drawing more efficient by calculating all ahead of time and simply using scaling and translating.  Also, note placement is never out of sync with vertical lines this way.