improved notemap generation.