AsspFileFormat: Get and set AsspFileFormat

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/AsspDataObj.R

Description

Function to get or set the file format of an AsspDataObj.

Usage

1
2
3

Arguments

x

an object of class AsspDataObj

value

an integer or a string indicating the new file format

Details

libassp handles a number of file formats common in speech research. This function enables the user to determine the file format of an object read from file and to set it for subsequent writing. This allows for file format conversion to some degree. Note, that many conversions are not reasonable/possible: conversions are therefore discouraged unless the user knows what they are doing. Format specifiers can be found in AsspFileFormats and exist in two forms: a code name and a code number. Both are suitable for setting the format.

Value

for AsspFileFormat the code name of the object's currently set file format

for AsspFileFormat<-, the updated object

Author(s)

Lasse Bombien

See Also

AsspFileFormats, AsspDataFormat

Examples

1
2
3
4
5
6
7
## Not run: 
obj  <- read.AsspDataObj('/path/to/file.wav')
AsspFileFormat(obj)
AsspFileFormat(obj) <- 'SSFF' ## or
AsspFileFormat(obj) <- 20

## End(Not run)

wrassp documentation built on May 20, 2021, 1:08 a.m.