WaveMC

0th

Percentile

Constructors and coercion for class WaveMC objects

Constructors and coercion for class WaveMC objects

Keywords
methods
Usage
WaveMC(data, ...)
# S4 method for matrix
WaveMC(data = matrix(numeric(0), 0, 0), samp.rate = 44100, bit = 16, pcm = TRUE, ...)
Arguments
data

Except for a numeric matrix, the argument data can also be a numeric vector (for one channel), data.frame (columns representing channels), list (elements containing numeric vectors that represent the channels), or Wave object.

samp.rate, bit, pcm

See Section “Slots” on the help page WaveMC-class.

...

Further arguments to be passed to the matrix method.

Value

An object of WaveMC-class.

See Also

WaveMC-class, Wave-class, writeWave, readWave

Aliases
  • WaveMC
  • WaveMC,ANY-method
  • WaveMC,Wave-method
  • WaveMC,numeric-method
  • WaveMC,matrix-method
  • WaveMC,data.frame-method
  • WaveMC,list-method
  • [,WaveMC-method
  • coerce,matrix,WaveMC-method
  • coerce,data.frame,WaveMC-method
  • coerce,list,WaveMC-method
  • coerce,numeric,WaveMC-method
  • coerce,WaveMC,data.frame-method
  • coerce,WaveMC,matrix-method
  • coerce,WaveMC,Wave-method
Examples
# NOT RUN {
# constructing a WaveMC object (1 sec.) containing sinus sound with 440Hz:
x <- seq(0, 2*pi, length = 44100)
channel <- round(32000 * sin(440 * x))
WMCobj <- WaveMC(data = channel)
WMCobj
# }
Documentation reproduced from package tuneR, version 1.3.3, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.