Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

AudioFile.open(filename)

Description

Available in: Controller, Processor.

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

  • No labels