powered by
Deprecated; use link{osc} instead.
link{osc}
osc_dB( x, dynamicRange = 80, dB = TRUE, maxAmpl = NULL, samplingRate = NULL, returnWave = FALSE, plot = TRUE, xlab = NULL, ylab = NULL, bty = "n", midline = TRUE, maxPoints = NULL, ... )
path to a .wav file or a vector of amplitudes with specified samplingRate
dynamic range of the oscillogram, dB
if TRUE, plots on a dB instead of linear scale
the maximum theoretically possible value indicating on which scale the sound is coded: 1 if the range is -1 to +1, 2^15 for 16-bit wav files, etc
sampling rate of x (only needed if x is a numeric vector, rather than a .wav file)
x
if TRUE, returns a log-transformed waveform as a numeric vector
if TRUE, plots the oscillogram
axis labels
box type (see `?par`)
if TRUE, draws a line at 0 dB
the maximum number of points to plot (speeds up the plotting of long audio files, but beware of antialiasing)
Other graphical parameters passed on to `plot()`
# NOT RUN { sound = sin(1:2000/10) * getSmoothContour(anchors = c(1, .01, .5), len = 2000) osc_dB(sound) # }
Run the code above in your browser using DataLab