WaveformDetail getWaveformDetail ( int rekordboxId , SlotReference slot , Client client ) throws IOException { final NumberField idField = new NumberField ( rekordboxId ) ; // First try to get the NXS2-style color waveform if we are supposed to. if ( preferColor . get ( ) ) { try { Message response = client . simpleRequest ( Message . KnownType . ANLZ_TAG_REQ , Message . KnownType . ANLZ_TAG , client . buildRMST ( Message . MenuIdentifier . MAIN_MENU , slot . slot ) , idField , new NumberField ( Message . ANLZ_FILE_TAG_COLOR_WAVEFORM_DETAIL ) , new NumberField ( Message . ALNZ_FILE_TYPE_EXT ) ) ; return new WaveformDetail ( new DataReference ( slot , rekordboxId ) , response ) ; } catch ( Exception e ) { logger . info ( "No color waveform available for slot " + slot + ", id " + rekordboxId + "; requesting blue version." , e ) ; } } Message response = client . simpleRequest ( Message . KnownType . WAVE_DETAIL_REQ , Message . KnownType . WAVE_DETAIL , client . buildRMST ( Message . MenuIdentifier . MAIN_MENU , slot . slot ) , idField , NumberField . WORD_0 ) ; return new WaveformDetail ( new DataReference ( slot , rekordboxId ) , response ) ; }
Requests the waveform detail for a specific track ID given a connection to a player that has already been set up .