HOA:
Filter:
SC-HOA/Classes (extension) | Libraries > HOA

HOA
ExtensionExtension

a class that stores global variables for the HOA library.

Description

The HOA class defines variables that may be used by the rest of the HOA library, including resources for kernel encoding and decoding and sample soundfile paths. It is modeled after the Atk class.

Class Methods

.resourceDir

Returns:

the path to SC-HOA's resource directory. If SC-HOA was installed via Quarks, resourceDir should be equal to: Platform.userAppSupportDir +/+ "downloaded-quarks/SC-HOA/resources"

.soundsDir

Returns:

the path to the 'sounds' dir inside the SC-HOA resource directory

.kernelsDir

Returns:

the path to the 'kernels' dir inside the SC-HOA resource directory

.kernelsSubdir

name of subdirectory for kernels within the SC-HOA resource directory

.soundsSubdir

name of subdirectory for sounds within the SC-HOA resource directory

.openResourceDir

runs a unixCmd to open the SC-HOA resource directory.

.kernelDirsFor

Arguments:

keyword

string, possibly with wildcards, identifying the kernel subdirectory

subPaths

string woth subpahts leading to keyword

Returns:

array of paths matching the given parameters

.soundsDirsFor

Arguments:

keyword

string, possibly with wildcards, identifying the sounds subdirectory

subPaths

string woth subpahts leading to keyword

Returns:

array of paths matching the given parameters

.o2c

Arguments:

n

order

Returns:

channel count for given order

.c2o

Arguments:

n

channel count

Returns:

order for given channel count