fix spacing
distinguish note from pitch using type property