initial note drawing code (very rudimentary, lots todo)