xPosition method

double xPosition(
  1. Note note
)

A Note's center's x position on a chart

Implementation

double xPosition(Note note) =>
    xOffset + (note.timing.toSixteenthNth() - 1) * sixteenthSpacing;