public int getXForBeat ( int beat ) { BeatGrid grid = beatGrid . get ( ) ; if ( grid != null ) { return millisecondsToX ( grid . getTimeWithinTrack ( beat ) ) ; } return 0 ; }
Determine the X coordinate within the component at which the specified beat begins .