Last chance! 50% off unlimited learning
Sale ends in
ifreq(wave, f, phase = FALSE, threshold = NULL,
plot = TRUE, xlab = "Time (s)", ylab = NULL,
ylim = NULL, type = "l", ...)
wave
(in Hz). Does not need to be specified if embedded in wave
.TRUE
and plot
is also TRUE
plots the instantaneous phase instead of the instantaneous frequency.TRUE
plots the instantaneous frequency or phase
against time (by default TRUE
).plot
is TRUE
, type of plot that should be drawn.
See plot
for details (by default "l" for lines).plot
graphical parameters.plot
is FALSE
, ifreq
returns a list of two components:hilbert
, zc
# generate a sound with sine and linear frequency modulations
a<-synth(d=1, f=8000, cf=1500, fm=c(200,10,1000))
# plot on a single graphical device the instantaneous frequency and phase
op<-par(mfrow=c(2,1))
ifreq(a,f=8000,main="Instantaneous frequency")
ifreq(a,f=8000,phase=TRUE,main="Instantaneous phase")
par(op)
Run the code above in your browser using DataLab