Read and write ProTracker audio samples
samp_io.Rd
Functions to read and write ProTracker audio samples. Reading is supported for common types of WAV, IFF and AIFF files. Writing is supported for WAV and IFF files.
Value
pt2_read_sample()
returns a pt2samp
class object when successful.
pt_write_sample()
returns NULL
invisibly.
Examples
mod <- pt2_read_mod(system.file("mod.intro", package = "ProTrackR2"))
my_sample <- pt2_sample(mod, 1L)
my_sample_file <- tempfile(fileext = ".iff")
pt2_write_sample(my_sample, my_sample_file)