Mercurial > hg > emotion-detection-top-level
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3:e1cfa7765647 | 4:92ca03a8fa99 |
|---|---|
| 1 | |
| 2 timeShift = length(formants) / length(vuv); | |
| 3 | |
| 4 for( idx = 1: length( formants ) ) | |
| 5 frameIdx = floor( idx / timeShift ) + 1; | |
| 6 if( vuv( frameIdx ) == 0 ) | |
| 7 % frame is silent | |
| 8 plot( formants( idx,2 ), 'w.' ); | |
| 9 plot( formants( idx,3 ), 'w.' ); | |
| 10 plot( formants( idx,4 ), 'w.' ); | |
| 11 elseif( vuv( frameIdx ) == 1 ) | |
| 12 % frame is voiced | |
| 13 plot( formants( idx,2 ), 'y.' ); | |
| 14 plot( formants( idx,3 ), 'c.' ); | |
| 15 plot( formants( idx,4 ), 'g.' ); | |
| 16 else | |
| 17 %frame is unvoiced | |
| 18 plot( formants( idx,2 ), 'r.' ); | |
| 19 plot( formants( idx,3 ), 'r.' ); | |
| 20 plot( formants( idx,4 ), 'r.' ); | |
| 21 end | |
| 22 end |
