manualoc
produce an interactive spectrographic view to measure start
and end times of acoustic signals.manualoc(wl = 512, flim = c(0,12), seltime = 1, tdisp = NULL, reccomm =
FALSE, wn = "hanning", title = TRUE, selcomm = FALSE, osci = FALSE, player =
NULL, pal = reverse.gray.colors.2)
spectro
(seewave package). Default is
reverse.gray.colors.2. See Details.The function produces and .csv file (manualoc_output.csv) with information about the .wav file name, selection number, start and end time, selection comment (selcomm), and sound file comment (reccomm). The file is saved in the working directory and is updated every time the user moves into the next sound file (Next rec "button") or stop the process (Stop "button"). When resuming the process (after "stop" and re-running the function in the same working directory), the function will keep the previous selections and will only pick up .wav files that are not present in the .csv file (not previously analyzed).
When users go to the next sound file (Next rec "button") without making any selection the file is still included in the .csv file, with NA's in the "end", "time" and "selec" field. Windows length (wl) control the temporal and frequency precision of the spectrogram. A high "wl" value increases the frequency resolution but reduces the temporal one, and vice versa. Any color palette that comes with the seewave package can be used: temp.colors, reverse.gray.colors.1, reverse.gray.colors.2, reverse.heat.colors, reverse.terrain.colors, reverse.topo.colors, reverse.cm.colors, heat.colors, terrain.colors, topo.colors, cm.colors. The function could be slow when working on files of length > 5min.
data(list = c("Phae.long1", "Phae.long2", "Phae.long3", "Phae.long4"))
writeWave(Phae.long1,"Phae.long1.wav")
writeWave(Phae.long2,"Phae.long2.wav")
writeWave(Phae.long3,"Phae.long3.wav")
writeWave(Phae.long4,"Phae.long4.wav")
manualoc()
Run the code above in your browser using DataLab