Home Reference Source Repository

References

Class Summary

Static Public Class Summary
public

Binaural panner with multiple sources and a listener.

public

Container for HRTF set.

public

Camera-like listener.

public

SOFA remote data-base.

public

Single source.

Function Summary

Static Public Function Summary
public

almostEquals(value: Number, reference: Number, tolerance: Number): Number

Test whether a value is around a reference, given a tolerance.

public

almostEqualsModulo(value: Number, reference: Number, modulo: Number, tolerance: Number): Number

Test whether a value is around a reference, given a tolerance and a modulo.

public

Get the arc-tangent (2 arguments) of 2 angles in degrees.

public

Prefix SOFA coordinate system with sofa.

public

cos(angle: Number): Number

Get the cosinus of an angle in degrees.

public

createDiracBuffer(options: Object): AudioBuffer

Create a Dirac buffer, zero-padded.

public

createNoiseBuffer(options: Object): AudioBuffer

Create a noise buffer.

public

dBToLin(dBValue: Number): Number

Convert a dB value to a linear amplitude, i.e.

public

Get the distance between to points.

public

Get the squared distance between to points.

public

Convert an angle in radians to degrees.

public

Convert openGL coordinates to SOFA cartesian.

public

Convert openGL coordinates to SOFA spherical.

public

Convert openGL coordinates to Spat4 cartesian.

public

Convert openGL coordinates to Spat4 spherical.

public

Convert openGL coordinates to other system.

public

Parse data set meta data into an object of {definition: {key: values}} objects.

public

parseSofa(sofaString: String): Object

Parses a SOFA JSON string with into an object with name, data and metaData attributes.

public

resampleFloat32Array(options: Object): Promise.<Float32Array | Error>

Convert an array, typed or not, to a Float32Array, with possible re-sampling.

public

sin(angle: Number): Number

Get the sinus of an angle in degrees.

public

Convert SOFA cartesian coordinates to openGL.

public

Convert SOFA cartesian coordinates to SOFA spherical.

public

Convert SOFA spherical coordinates to openGL.

public

Convert SOFA spherical coordinates to SOFA spherical.

public

Convert coordinates to SOFA cartesian.

public

Convert Spat4 cartesian coordinates to openGL.

public

Convert Spat4 cartesian coordinates to Spat4 spherical.

public

Convert Spat4 spherical coordinates to openGL.

public

Convert Spat4 spherical coordinates to Spat4 spherical.

public

Generates a SOFA JSON string from an object.

public

Convert coordinates to openGL.

public

Get the coordinate system general type (cartesian or spherical).

public

Convert an angle in degrees to radians.

Variable Summary

Static Public Variable Summary
public

Short description of the library.

public

Radian to degree multiplication factor.

public

License of the library.

public

Name of the library.

public

Degree to radian multiplication factor.

public

Semantic version of the library.

Typedef Summary

Static Public Typedef Summary
public

Coordinate system: gl, sofaCartesian, sofaSpherical, spat4Cartesian, or spat4Spherical.

public

Coordinates: vec3

Coordinates as an array of 3 values: [x, y, z] or [azimuth, elevation, distance], depending on system

public
public

SOFA cartesian coordinate system: sofaCartesian.

public

SOFA spherical coordinate system: sofaSpherical.

public

Spat4 cartesian coordinate system: spat4Cartesian.

public

Spat4 spherical coordinate system: spat4Spherical.