Skip to content

Notify if setting pitch tracking method for first time#159

Draft
cwnaber wants to merge 2 commits intomasterfrom
ptrack-notify
Draft

Notify if setting pitch tracking method for first time#159
cwnaber wants to merge 2 commits intomasterfrom
ptrack-notify

Conversation

@cwnaber
Copy link
Collaborator

@cwnaber cwnaber commented Nov 4, 2025

In ~January 2024, I added functionality to wave_viewer to allow pitch tracking with Praat. Previously, a custom MATLAB script performed pitch tracking. Also in ~January 2024, a field was added to wave_viewer_params.mat to specify the pitch tracking method (sigproc_params.ptrack_method). The default pitch tracking method became 'praat'.

After that update, if a user loaded in a dataset where there was no value in sigproc_params.ptrack_method (ie, any dataset from before ~January 2024), ptrack_method would be automatically and silently set to 'praat'. If the user then recalculated that specific trial, or overwrote wave_viewer_params and then reran waverunner, the values and sampling rate of the pitch track would change. This could lead to situations where the pitch data changed unexpectedly.

This PR introduces a change that will announce to the user that the ptrack_method is being set to 'praat' and tells the user how to change it back, if they so desire. We expect that for most datasets, people are fine with using praat as the pitch tracking methods, if they are even concerned with the pitch tracking in the first place.

@cwnaber
Copy link
Collaborator Author

cwnaber commented Nov 4, 2025

Current thought -- this is almost always notifying someone who doesn't care about pitch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant