rpuggaardrode / praatpicture

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

Waveform skipped when plotting #9

Open sarkipo opened 4 months ago

sarkipo commented 4 months ago

Hi Rasmus,

I've just installed the package (from CRAN; reports version 1.2.0), and the result I'm getting with this code

praatpicture(sound="examples-MD-birqib/abaqar_10_1.wav",
             start=2.11,end=2.95,tg_tiers = c("Word","Sound"))

is this: grafik

That is, the wave is not plotted, and all the following frames are shifted (spectrogram in place of the waveform, first TG tier instead of the spectrum, etc.). Same if I explicitly add frames = c("sound", "spectrogram", "TextGrid"),. I actually can see that the waveform appears briefly in the bottom of the plot (I think below the main plot area) but is then overwritten with the rest and disappears.

rpuggaardrode commented 4 months ago

Hey Alexandre! Thanks for reaching out

This sounds like the settings of the previous plot may be interfering with the praatpicture plot. Does the same thing happen if you call dev.off() first and then call the praatpicture() code you pasted above? Either way, I'll try and implement a solution so this never happens

If the above doesn't work, could you share the sound and textgrid file with me so I can try and reproduce this?

sarkipo commented 4 months ago

Thanks Rasmus, dev.off() did the trick! But yes, a more general solution would be good

sarkipo commented 4 months ago

And I really enjoy the simplicity and flexibility of it... It's so much faster to tune :) Thanks again!!