sDuration: Sample duration

View source: R/sDuration.R

sDurationR Documentation

Sample duration

Description

Calculates the time represented by n samples in a Wave.

Usage

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

Arguments

n

The number of the samples

wave

A Wave object containing pulses

samp.rate

Integer sampling rate

Value

A numeric value in seconds

Examples

sDuration(n=20, samp.rate=44100)
## Not run: 
sDuration(n=20, wave=sheep)#'

## End(Not run)



sonicscrewdriver documentation built on May 29, 2024, 3:39 a.m.