cepstro {seewave} | R Documentation |
This function returns a two-dimension cepstrographic representation of a time wave. The function corresponds to a short-term cepstral transform. An amplitude contour plot can be overlaid.
cepstro(wave, f, channel = 1, wl = 512, ovlp = 0, plot = TRUE, grid = TRUE, scale = TRUE, cont = FALSE, collevels = seq(0, 1, 0.01), palette = reverse.heat.colors, contlevels = seq(0, 1, 0.01), colcont = "black", colbg="white", colgrid = "black", colaxis = "black", collab = "black", xlab = "Time (s)", ylab = "Quefrency (ms)", scalelab = "Amplitude", main = NULL, scalefontlab = 1, scalecexlab = 0.75, axisX = TRUE, axisY = TRUE, tlim = NULL, qlim = NULL, ...)
wave |
an R object. |
f |
sampling frequency of |
channel |
channel of the R object, by default left channel (1). |
wl |
if |
ovlp |
overlap between two successive windows (in %). |
plot |
logical, if |
grid |
logical, if |
scale |
logical, if |
cont |
logical, if |
collevels |
a set of levels which are used to partition the amplitude range of the cepstrogram (in dB). |
palette |
a color palette function to be used to assign colors in the plot. |
contlevels |
a set of levels which are used to partition the amplitude range for contour overplot (in dB). |
colcont |
colour for |
colbg |
background colour. |
colgrid |
colour for |
colaxis |
color of the axes. |
collab |
color of the labels. |
xlab |
label of the time axis. |
ylab |
label of the quefrency axis. |
main |
label of the main title. |
scalelab |
amplitude scale label. |
scalefontlab |
font of the amplitude scale label. |
scalecexlab |
cex of the amplitude scale label. |
axisX |
if |
axisY |
if |
tlim |
modifications of the time X-axis limits. |
qlim |
modifications of the quefrency Y-axis limits (in ms). |
... |
other |
It is unfortunately not possible to turn the y-axis to a frequency scale.
See spectro
for the use of the graphical arguments.
This function returns a list of three items:
time |
a numeric vector corresponding to the time axis. |
freq |
a numeric vector corresponding to the quefrency axis. |
amp |
a numeric matrix corresponding to the the successive cepstral profiles computed along time. |
This function is based on ceps
.
Jerome Sueur sueur@mnhn.fr.
Oppenheim, A.V. and Schafer, R.W. 2004. From frequency to quefrency: a history of the cepstrum. Signal Processing Magazine IEEE, 21: 95-106.
data(sheep) sheepc <- cutw(sheep, f=8000, from = 0.19, to = 2.3) cepstro(sheepc,f=8000)