tSamples: Samples per time period

View source: R/sDuration.R

tSamplesR Documentation

Samples per time period

Description

Calculates the number of samples for a given duration of a wave

Usage

tSamples(time = 1, wave = NULL, samp.rate = NULL)

Arguments

time

The duration in seconds

wave

A Wave object containing pulses

samp.rate

Integer sampling rate

Value

Number of samples

Examples

tSamples(10, samp.rate=44100)
## Not run: 
tSamples(10, wave=sheep)

## End(Not run)



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