The AudioFile class describes the properties of audio files.

On this page:

Class Hierarchy

Functions

AudioFile.open

AudioFile.open(filename)

Description

The AudioFile.open function creates an AudioFile object. The AudioFile object can be used to retrieve information from the audio file. The location of the audio file can be in a folder or in a vstsound.

Available in: Controller.

Arguments

filenameThe file path and name of the audio file.string

Example

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

 

Classes

AudioFile Class

Description

The properties of an AudioFile object are described by the following fields.

Available in: Controller.

Fields

 

 

Insert link to top of page!

Methods

Insert Excerpt Include HALion macros with the desired pages - or delete!

Insert link to top of page!