as.snd {rPraat}R Documentation

as.snd

Description

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

Usage

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

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

[Package rPraat version 1.3.2-1 Index]