annotate Code/Test/formantPlotter.m @ 4:92ca03a8fa99 tip

Update to ICASSP 2013 benchmark
author Dawn Black
date Wed, 13 Feb 2013 11:02:39 +0000
parents
children
rev   line source
Dawn@4 1
Dawn@4 2 timeShift = length(formants) / length(vuv);
Dawn@4 3
Dawn@4 4 for( idx = 1: length( formants ) )
Dawn@4 5 frameIdx = floor( idx / timeShift ) + 1;
Dawn@4 6 if( vuv( frameIdx ) == 0 )
Dawn@4 7 % frame is silent
Dawn@4 8 plot( formants( idx,2 ), 'w.' );
Dawn@4 9 plot( formants( idx,3 ), 'w.' );
Dawn@4 10 plot( formants( idx,4 ), 'w.' );
Dawn@4 11 elseif( vuv( frameIdx ) == 1 )
Dawn@4 12 % frame is voiced
Dawn@4 13 plot( formants( idx,2 ), 'y.' );
Dawn@4 14 plot( formants( idx,3 ), 'c.' );
Dawn@4 15 plot( formants( idx,4 ), 'g.' );
Dawn@4 16 else
Dawn@4 17 %frame is unvoiced
Dawn@4 18 plot( formants( idx,2 ), 'r.' );
Dawn@4 19 plot( formants( idx,3 ), 'r.' );
Dawn@4 20 plot( formants( idx,4 ), 'r.' );
Dawn@4 21 end
Dawn@4 22 end