Spectrogram values

30 views
Skip to first unread message

Jernej Polajnar

unread,
Nov 29, 2022, 3:57:45 AM11/29/22
to seewave
Hi all,

sorry for a potentially basic question - not an expert in R, but I'm interested in precise (absolute) values at given points in a spectrogram created by the spectro function. Two problems:

1) spectro returns "invalid contour levels: must be strictly increasing" even with contours swithed off, so I'm unable to obtain a non-normalized spectrogram in absolute values

spectro(a, 51200, channel = 1, wl = 800, wn = "blackman", ovlp = 0, flim=c(0,2.5), tlim=c(65,115), norm=FALSE, scale=FALSE, dB=NULL, cont=FALSE)

2) playing around with default spectrogram settings, the "amp" element of the spectro output list confuses me. Is there an easy way to extract the value at given time-frequency coordinates?

Any help would be appreciated. Thank you,

Jernej Polajnar

Jernej Polajnar

unread,
Dec 6, 2022, 2:55:59 AM12/6/22
to seewave
Update: I think the spectrogram error is because I was trying to process a 32-bit wave file, not a normal 16-bit. Is there any way to handle 32-bit waves in seewave? Please ignore my second question from before, I managed to extract the "amp" element properly.

Thank you,
Jernej

torek, 29. november 2022 ob 09:57:45 UTC+1 je oseba Jernej Polajnar napisala:
Reply all
Reply to author
Forward
0 new messages