Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions speech/audioGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@
bPraat = 0;
end
end

% notify user if they loaded in an old wave_viewer_params folder that
% doesn't have ptrack_method as a field
if itrial == 1 && ~isfield(sigproc_params, 'ptrack_method') && ~exist('ptrack_method_checked','var')
ptrack_method_checked = true; %#ok<NASGU>
sigproc_params.ptrack_method = 'praat';
announcement = sprintf(['\nPreviously, pitch was tracked in this dataset using a custom MATLAB script. ' ...
'Now, praat will be used instead. If you want to keep the old method, click the ' ...
'''pitch params'' button in audioGUI and enter ''MATLAB'' in the pitch track method field.\n'...
'Press ENTER to continue to audioGUI.']);
input(announcement);
end

%% call wave viewer
endstate = wave_viewer(y,'fs',fs,'name',sprintf('trial(%d)',trialNum), ...
Expand Down