readAudio: Read audio

View source: R/io.R

readAudioR Documentation

Read audio

Description

Internal soundgen function.

Usage

readAudio(
  x,
  input = checkInputType(x),
  i,
  samplingRate = NULL,
  scale = NULL,
  from = NULL,
  to = NULL
)

Arguments

x

audio input (only used for Wave objects or numeric vectors)

input

a list returned by checkInputType

i

iteration

samplingRate

sampling rate of x (only needed if x is a numeric vector, rather than an audio file or Wave object)

scale

maximum possible amplitude of input used for normalization of input vector (only needed if x is a numeric vector, rather than an audio file or Wave object)

from, to

if NULL (default), analyzes the whole sound, otherwise from...to (s)


tatters/soundgen documentation built on Aug. 22, 2023, 4:24 p.m.