Learn R Programming

sonicscrewdriver (version 0.0.7)

tSamples: 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)

Value

Number of samples

Arguments

time

The duration in seconds

wave

A Wave object containing pulses

samp.rate

Integer sampling rate

Examples

Run this code
tSamples(10, samp.rate=44100)
if (FALSE) {
tSamples(10, wave=sheep)
}


Run the code above in your browser using DataLab