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
|
- Source:
Returns:
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
|
- 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