Interface: monaural

syngen.audio.binaural.monaural

Provides an interface for processing audio as an observer in a physical space. Importantly, it models interaural intensity differences, interaural arrival time, and acoustic shadow. Implementations are currently discouraged from using this directly.

Source:
To Do:
  • Document private members

Methods

(static) create(optionsopt) → {syngen.audio.binaural.monaural}

Instantiates a monaural processor.

Parameters:
Name Type Attributes Default Description
options Object <optional>
{}
Properties
Name Type Attributes Default Description
pan Number <optional>
0

Between [-1, 1] representing hard-left to hard-right.

Source:
Returns:
Type
syngen.audio.binaural.monaural

destroy()

Prepares the instance for garbage collection.

Source:

from(input)

Connects input to this with additional ...args.

Parameters:
Name Type Attributes Description
input AudioNode
...args * <optional>
<repeatable>
Source:

to(output)

Connects this to output with additional ...args.

Parameters:
Name Type Attributes Description
output AudioNode
...args * <optional>
<repeatable>
Source:

update(optionsopt)

Updates the internal circuit with options relative to an observer facing 0° at the origin.

Parameters:
Name Type Attributes Default Description
options Object <optional>
{}
Properties
Name Type Attributes Default Description
x ONumber <optional>
0
y ONumber <optional>
0
z ONumber <optional>
0
Source:
To Do:
  • Model acoustic shadow as a three-dimensional cone or hemisphere
  • Simplify so syngen.audio.binaural#update positions and orients each ear before calling