powered by
Renames the class(snd)["name"] attribute and sets class(snd)["type"] <- "Sound" (if it is not already set)
class(snd)["name"]
class(snd)["type"] <- "Sound"
as.snd(snd, name = "")
snd object
New name
At least, $sig and $fs members must be present in snd list.
$sig
$fs
snd
If not present, it calculates $t, $nChannels, $nBits (default: 16), $nSamples, and $duration members of snd list
$t
$nChannels
$nBits
$nSamples
$duration
# NOT RUN { class(snd.sample()) class(as.snd(snd.sample(), name = "New Name")) # }
Run the code above in your browser using DataLab