function [] = get_Jitter( dirName, statsFileID )

% this function collates the results of all values calculated using the PRAAT software 

% For jitter and shimmer PRAAT returns only a single value, not a
% frame-by-frame calculation. Therefore we cannot find the varience etc.


    % identify the speaker in the stats file
    fprintf( statsFileID, '%s ', dirName );
    
% -------------- get the jitter metrics -------------------
%     JITTER: ddp \t local \t ppq5 \t rap \t 

    metricName = '_jitter_ddp';
    metricFileName = [ dirName metricName '.txt'];
    readValueFromFile( statsFileID, metricFileName, metricName );
    
    metricName = '_jitter_local';
    metricFileName = [ dirName metricName '.txt'];
    readValueFromFile( statsFileID, metricFileName, metricName );

    metricName = '_jitter_ppq5';
    metricFileName = [ dirName metricName '.txt'];
    readValueFromFile( statsFileID, metricFileName, metricName );
   
    metricName = '_jitter_rap';
    metricFileName = [ dirName metricName '.txt'];
    readValueFromFile( statsFileID, metricFileName, metricName );

    
    fprintf( statsFileID, '\n');
    
    