Learn R Programming

sonicscrewdriver (version 0.0.7)

sDuration: Sample duration

Description

Calculates the time represented by n samples in a Wave.

Usage

sDuration(n = 1, wave = NULL, samp.rate = NULL)

Value

A numeric value in seconds

Arguments

n

The number of the samples

wave

A Wave object containing pulses

samp.rate

Integer sampling rate

Examples

Run this code
sDuration(n=20, samp.rate=44100)
if (FALSE) {
sDuration(n=20, wave=sheep)#'
}


Run the code above in your browser using DataLab