rpuggaardrode / praatpicture

Make Praat Picture style plots of acoustic data
Other
27 stars 4 forks source link

change behavior when loading ssff files #3

Closed rpuggaardrode closed 9 months ago

rpuggaardrode commented 1 year ago

Currently, using the pitch_ssffExt argument in emupicture() requires the pitch track to be saved as $F0, because this is what wrassp does. If the file is generated with something else though, it can have any name, and technically it shouldn't matter -- just use names() to grab the name of the first vector, or even just index with [[1]]. If this is fixed, the pitch frame can also be used as a dummy for any SSFF track (although this would also require adding support for changing y-axis labels to be useful -- probably a good idea regardless). Same with intensity and (I guess) with formants, although formants are a little trickier because wrassp::forest() at least generates separate vectors for frequencies and bandwidths.

rpuggaardrode commented 9 months ago

Fixed in version 0.3.0 by indexing with [[1]] as suggested above. Support for changing y-axis labels was added in the previous update. Pitch can be used as a dummy for any SSFF track now, but only one of course. In future should add more explicit support for this.