comparison Code/ProcessDatabase.m @ 1:a3d62264030c

tested and working
author Dawn Black <dawn.black@eecs.qmul.ac.uk>
date Mon, 10 Sep 2012 09:13:53 +0100
parents ea0c737c6323
children 92ca03a8fa99
comparison
equal deleted inserted replaced
0:ea0c737c6323 1:a3d62264030c
253 % 253 %
254 % %lin 254 % %lin
255 case 'getPRAAT' 255 case 'getPRAAT'
256 % collate all Shimmer values 256 % collate all Shimmer values
257 statsFileName = '../../../../../../../TestResults/singingPRAATStats.txt'; 257 statsFileName = '../../../../../../../TestResults/singingPRAATStats.txt';
258 statsFileID = fopen( statsFileName, 'w' ); 258
259 % Add a header row 259 % Add a header row
260 if( firstfileOpen == 1 ) 260 if( firstfileOpen == 1 )
261 statsFileID = fopen( statsFileName, 'w' );
261 fprintf( statsFileID, 'Metrics calculated using the PRAAT software. \n' ); 262 fprintf( statsFileID, 'Metrics calculated using the PRAAT software. \n' );
262 fprintf( statsFileID, ' name \t JITTER: ddp \t local \t ppq5 \t rap \t SHIMMER: local \t dda \t apq3 \t apq5 \t apq11 \t FORMANTS: number of formants \t positions \t bandwidths \n'); 263 fprintf( statsFileID, ' name \t JITTER: ddp \t local \t ppq5 \t rap \t SHIMMER: local \t dda \t apq3 \t apq5 \t apq11 \n');
264 fprintf( statsFileID, 'For each of the BURG FORMANTS: numberOfFormants \t meanFrequency \t varFrequency \t minFrequency \t maxFrequency \n');
265 fprintf( statsFileID, 'meanFrequencyDerivative \t varienceFrequencyDerivative \t minFrequencyDerivative \t max FrequencyDerivative \n');
266 fprintf( statsFileID, 'meanFrequency2ndDerivative \t varienceFrequency2ndDerivative \t minFrequency2ndDerivative \t max Frequency2ndDerivative \n');
267 fprintf( statsFileID, 'meanBandwidth \t varBandwidth \t minBandwidth \t maxBandwidth \n');
268 fprintf( statsFileID, 'meanBandwidthDerivative \t varBandwidthDerivative \t minBandwidthDerivative \t maxBandwidthDerivative \n');
269 fprintf( statsFileID, 'meanBandwidth2ndDerivative \t varBandwidth2ndDerivative \t minBandwidth2ndDerivative \t maxBandwidth2ndDerivative \n');
270 fprintf( statsFileID, 'For the mean of all three formants: meanFrequency \t varFrequency \t minFrequency \t maxFrequency \n');
271 fprintf( statsFileID, 'meanFrequencyDerivative \t varienceFrequencyDerivative \t minFrequencyDerivative \t max FrequencyDerivative \n');
272 fprintf( statsFileID, 'meanFrequency2ndDerivative \t varienceFrequency2ndDerivative \t minFrequency2ndDerivative \t max Frequency2ndDerivative \n');
263 firstfileOpen = 0; 273 firstfileOpen = 0;
264 end 274 else
275 statsFileID = fopen( statsFileName, 'a' );
276 end
265 277
266 get_PRAAT( newDirName, statsFileID ); 278 get_PRAAT( newDirName, statsFileID );
267 fclose( statsFileID ); 279 fclose( statsFileID );
268 280
269 % case 'getJitter' 281 % case 'getJitter'