getTime: Get sampling time

View source: R/class_soundSample.R

getTimeR Documentation

Get sampling time

Description

Get the times steps associated with a sound sample.

Usage

getTime(x)

Arguments

x

sound sample object.

Value

a numeric vector containing the sampling times in second.

Examples

# Define sound sample
sam <- soundSample(sin(2*pi*seq(0,1,,44100)*440)+0.1*rnorm(44100)) # 1-second noisy A
# Compute sampling times
timeSteps=getTime(sam)

benRenard/sequenceR documentation built on Jan. 11, 2025, 2:33 a.m.