@ SuppressWarnings ( "WeakerAccess" ) public String formatCueCountdown ( ) { int count = getCueCountdown ( ) ; if ( count == 511 ) { return "--.-" ; } if ( ( count >= 1 ) && ( count <= 256 ) ) { int bars = ( count - 1 ) / 4 ; int beats = ( ( count - 1 ) % 4 ) + 1 ; return String . format ( "%02d.%d" , bars , beats ) ; } if ( count == 0 ) { return "00.0" ; } return "??.?" ; }
Format a cue countdown indicator in the same way as the CDJ would at this point in the track .