Learn R Programming

sequenceR (version 1.0.1)

getTime: Get sampling time

Description

Get the times steps associated with a sound sample.

Usage

getTime(x)

Value

a numeric vector containing the sampling times in second.

Arguments

x

sound sample object.

Examples

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

Run the code above in your browser using DataLab