https://github.com/cran/tuneR
Revision f6977c3ef8ea48eff4bc888c56c75a1b0abd2bf8 authored by Uwe Ligges on 29 June 2010, 00:00:00 UTC, committed by Gabor Csardi on 29 June 2010, 00:00:00 UTC
1 parent 55a1962
Raw File
Tip revision: f6977c3ef8ea48eff4bc888c56c75a1b0abd2bf8 authored by Uwe Ligges on 29 June 2010, 00:00:00 UTC
version 0.4-0
Tip revision: f6977c3
spec2cep.Rd
\name{spec2cep}
\alias{spec2cep}
\title{ Spectra to Cepstra Conversion }
\description{
Calculate cepstra from spectral samples (in columns of spec) through Discrete
Cosine Transformation.
}
\usage{
spec2cep(spec, ncep = 12, type = c("t2", "t1", "t3", "t4"))
}
\arguments{
  \item{spec}{ Input spectra (samples/time frames in columns)}
  \item{ncep}{ Number of cepstra to return }
  \item{type}{ DCT Type }
}
\value{
  \item{cep }{Matrix of resulting cepstra.}
  \item{dctm }{Returns the DCT matrix that spec was multiplied by to give cep.}
}
\references{Daniel P. W. Ellis: \url{http://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/} }
\author{ Sebastian Krey \email{krey@statistik.tu-dortmund.de} }
\seealso{\code{\link{lpc2cep}}} 
%% \code{\link{cep2spec}}, \code{\link{lpc2spec}}
\examples{
  testsound <- normalize(sine(400) + sine(1000) + square(250), "16")
  pspectrum <- powspec(testsound@left, testsound@samp.rate)
  aspectrum <- audspec(pspectrum, testsound@samp.rate)
  cepstra <- spec2cep(aspectrum$aspectrum)
}
\concept{ cepstra }
\concept{ spectra }
\concept{ conversion }
back to top