Santiago Barreda
Assistant Professor, Department of Linguistics, UC Davis

Main Research Vignettes CV phonTools Statistics Links


spectralslice [phonTools]


This function can be used to create spectra of input signals. A recently added options allows for plotting line spectra. The user is given control over all parameters.




Code used to generate examples:

library (phonTools) ## synthesize schwa-like vowel vowel = vowelsynth (ffs = c(500,1500,2500,3500,4500))$sound ## compare window lengths par (mfrow = c(3,1)) spectralslice (vowel[500:550], fs = 10000) spectralslice (vowel[500:1000], fs = 10000) ## line spectrum spectralslice (vowel[500:600], padding = 0, line = TRUE, fs = 10000)