ffts
extracts the fundamental frequency values as a time series
of signals selected by manualoc
or autodetec
.
ffts(X, wl = 512, flim = c(0, 22), length.out = 20, wn = "hanning", pal = reverse.gray.colors.2, ovlp = 70, inner.mar = c(5, 4, 4, 2), outer.mar = c(0, 0, 0, 0), picsize = 1, res = 100, cexlab = 1, title = TRUE, propwidth = FALSE, xl = 1, gr = FALSE, sc = FALSE, bp = c(0, 22), cex = 1, threshold = 15, col = "red2", pch = 16, mar = 0.05, lpos = "topright", it = "jpeg", img = TRUE, parallel = 1, path = NULL, img.suffix = "ffts", pb = TRUE)
spectro
. Default is c(0, 22).ftwindow
for more options.spectro
. Default is reverse.gray.colors.2.spectro
. Default is 70.par
.par
.spectro
.TRUE
.FALSE
.FALSE
.FALSE
.spectro
.FALSE
, image files are not produced. Default is TRUE
.NULL
(default) then the current working directory is used.TRUE
. Note that progress bar is only used
when parallel = 1.TRUE
it also produces image files with the spectrograms of the signals listed in the
input data frame showing the location of the fundamental frequencies.
approx
function to interpolate values between fundamental frequency #' measures. If there are no frequencies above the amplitude theshold at the begining or end
of the signals then NAs will be generated. On the other hand, if there are no frequencies
above the amplitude theshold in between signal segments in which amplitude was
detected then the values of this adjacent segments will be interpolated
to fill out the missing values (e.g. no NAs in between detected amplitude segments).
sig2noise
, dfts
, ffDTW
, dfDTW
Other spectrogram.creators: dfDTW
,
dfts
, ffDTW
,
snrspecs
, specreator
,
trackfreqs
## Not run:
# # set the temp directory
# setwd(tempdir())
#
# #load data
# data(list = c("Phae.long1", "Phae.long2","manualoc.df"))
# writeWave(Phae.long1, "Phae.long1.wav") #save sound files
# writeWave(Phae.long2, "Phae.long2.wav") #save sound files
#
# # run function
# ffts(manualoc.df, length.out = 50, flim = c(1, 12), bp = c(2, 9), wl = 300)
#
# Note that fundamental frequency is not accurate for noisy signals, works better with pure tones
#
# ## End(Not run)
Run the code above in your browser using DataLab