soundgen (version 1.8.2)

osc_dB: Oscillogram on a decibell scale

Description

Deprecated; use link{osc} instead.

Usage

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,
  ...
)

Arguments

x

path to a .wav file or a vector of amplitudes with specified samplingRate

dynamicRange

dynamic range of the oscillogram, dB

dB

if TRUE, plots on a dB instead of linear scale

maxAmpl

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

samplingRate

sampling rate of x (only needed if x is a numeric vector, rather than a .wav file)

returnWave

if TRUE, returns a log-transformed waveform as a numeric vector

plot

if TRUE, plots the oscillogram

xlab

axis labels

ylab

axis labels

bty

box type (see `?par`)

midline

if TRUE, draws a line at 0 dB

maxPoints

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()`

Examples

Run this code
# 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