as.snd: as.snd

Description Usage Arguments Details Value Examples

View source: R/snd.R

Description

Renames the class(snd)["name"] attribute and sets class(snd)["type"] <- "Sound" (if it is not already set)

Usage

1
as.snd(snd, name = "")

Arguments

snd

snd object

name

New name

Details

At least, $sig and $fs members must be present in snd list.

If not present, it calculates $t, $nChannels, $nBits (default: 16), $nSamples, and $duration members of snd list

Value

snd object

Examples

1
2
class(snd.sample())
class(as.snd(snd.sample(), name = "New Name"))

rPraat documentation built on Dec. 9, 2018, 1:04 a.m.