Dawn@4: function [] = get_Jitter( dirName, statsFileID ) Dawn@4: Dawn@4: % this function collates the results of all values calculated using the PRAAT software Dawn@4: Dawn@4: % For jitter and shimmer PRAAT returns only a single value, not a Dawn@4: % frame-by-frame calculation. Therefore we cannot find the varience etc. Dawn@4: Dawn@4: Dawn@4: % identify the speaker in the stats file Dawn@4: fprintf( statsFileID, '%s ', dirName ); Dawn@4: Dawn@4: % -------------- get the jitter metrics ------------------- Dawn@4: % JITTER: ddp \t local \t ppq5 \t rap \t Dawn@4: Dawn@4: metricName = '_jitter_ddp'; Dawn@4: metricFileName = [ dirName metricName '.txt']; Dawn@4: readValueFromFile( statsFileID, metricFileName, metricName ); Dawn@4: Dawn@4: metricName = '_jitter_local'; Dawn@4: metricFileName = [ dirName metricName '.txt']; Dawn@4: readValueFromFile( statsFileID, metricFileName, metricName ); Dawn@4: Dawn@4: metricName = '_jitter_ppq5'; Dawn@4: metricFileName = [ dirName metricName '.txt']; Dawn@4: readValueFromFile( statsFileID, metricFileName, metricName ); Dawn@4: Dawn@4: metricName = '_jitter_rap'; Dawn@4: metricFileName = [ dirName metricName '.txt']; Dawn@4: readValueFromFile( statsFileID, metricFileName, metricName ); Dawn@4: Dawn@4: Dawn@4: fprintf( statsFileID, '\n'); Dawn@4: Dawn@4: