AudioFile.open(filename)

Description

Available in: Controller.

Arguments

filenameThe file path and name of the audio file.string

Return Values

Returns an AudioFile object of the specified audio file.

Example

-- open an audio file from Skylab
fname = "vstsound://F29C895D6D8E4D6C9BCBBA5198412192/.samples/Ambient Pad 01/Ambient Pad 01 - C3.tg3c"
af = AudioFile.open(fname)
-- print the sample rate and bit depth
print("Sample Rate: "..af.rate)
print("Bit Depth: "..af.bits)

See Also: AudioFilegetPeak