carrien / free-speech

Analysis and plotting code for speech neuroimaging experiments.
MIT License
4 stars 5 forks source link

Go to previous trial for audioGUI. Clearer 'are you sure?' overwrite message #36

Closed cwnaber closed 2 years ago

cwnaber commented 2 years ago

This PR is associated with another one in blab-lab/wave_viewer.

  1. Changes were necessary in audioGUI.m to accommodate the jump-to trial functionality in wave_viewer. Namely, the for loop on L63 is now a while loop, so that the trial number can dynamically change between iterations of the loop.
  2. savecheck is what displays the "are you sure you want to overwrite that file?" popup used in many lab functions. savecheck was heavily revised. It now displays a different message which splits out the filepath from filename. It also uses TeX formatting now, which allows for coloring in the file name for emphasis, and increasing the font size. Using TeX required some additional code to accommodate special characters not being interpreted as TeX commands.

Old savecheck prompt image

New savecheck prompt image

cwnaber commented 2 years ago

Based on conversation, I have removed functionality in audioGUI.m to jump to a specific trial. I have introduced functionality to go back to the previous trial in trials2track. More info in the wave_viewer pull request.