Methods
A(f)
Calculates the A-weight values for the specified frequency/frequencies
Parameters:
Name | Type | Description |
---|---|---|
f |
number | Array.<number> | frequency/frequencies |
- Source:
B(f)
Calculates the B-weight values for the specified frequency/frequencies
Parameters:
Name | Type | Description |
---|---|---|
f |
number | Array.<number> | frequency/frequencies |
- Source:
CurrentDemand(Je, Ve, f)
Calculates the electrical current from the AC Main (A)
Parameters:
Name | Type | Description |
---|---|---|
Je |
Number | Power Demand |
Ve |
Number | electrical voltage from the AC Main (V) |
f |
Number | Power factor (defaults to 0.83) |
- Source:
dB2I(dB, unitsopt)
Converts Sound Intensity Level (LI) in dB to Sound Power in (W)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dB |
Number | Array.<Number> | Sound Intensity Level | |
units |
String |
<optional> |
Units for the result |
- Source:
dB2p(dB, unitsopt)
Converts Sound Pressure Level(Lp) in dB to Sound Pressure in (Pa)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dB |
Number | Array.<Number> | Sound Pressure Level | |
units |
String |
<optional> |
Units for the result |
- Source:
dB2W(dB, unitsopt)
Converts Sound Power Level (Lw) in dB to Sound Power in (W)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dB |
Number | Array.<Number> | Sound Power Level | |
units |
String |
<optional> |
Units for the result |
- Source:
EnergyDensity(E, S, c, t, W, I, p, rho)
Energy Density Calculation
Architectural Acoustics pg. 64 'Energy Density' Marshal Long, Second Edition
Parameters:
Name | Type | Description |
---|---|---|
E |
Number | Energy Contained in a Sound Wave |
S |
Number | Measurement Area |
c |
Number | Speed of Sound |
t |
Number | Time |
W |
Number | Power |
I |
Number | Intensity |
p |
Number | Pressure |
rho |
Number | Bulk Density of Medium |
- Source:
Flower(k, fc)
Returns the lower band limit of a frequency band
Parameters:
Name | Type | Description |
---|---|---|
k |
* | inverse fraction (i.e. third = 3, sixth = 6, etc.) |
fc |
* | center frequency |
- Source:
Fupper(k, fc)
Returns the upper band limit of a frequency band
Parameters:
Name | Type | Description |
---|---|---|
k |
* | inverse fraction (i.e. third = 3, sixth = 6, etc.) |
fc |
* | center frequency |
- Source:
Hann(N) → {Array.<number>}
Hann window
Parameters:
Name | Type | Description |
---|---|---|
N |
number | Length of the window |
- Source:
Returns:
a Hann window of length N
- Type
- Array.<number>
I2dB(I, unitsopt)
Converts Sound Intensity in (W) to Sound Intensity Level in (dB)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
I |
Number | Array.<Number> | Sound Intensity | |
units |
String |
<optional> |
Units for the result |
- Source:
meshVolume(mesh)
Calculates the volume of a mesh of triangles
Parameters:
Name | Type | Description |
---|---|---|
mesh |
Array.<Object> | Array of triangles of the form [ {x,y,z}, {x,y,z}, {x,y,z} ] |
- Source:
OctaveBands(startopt, endopt)
Returns the nominal octave band frequencies between a given range (inclusive)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
start |
number |
<optional> |
start frequency |
end |
number |
<optional> |
end frequency |
- Source:
p2dB(p, unitsopt)
Converts Sound Pressure in (Pa) to Sound Pressure Level in (dB)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
p |
Number | Array.<Number> | Sound Pressure | |
units |
String |
<optional> |
Units for the result |
- Source:
PowerDemand(channels, J, duty, efficieny, Jq)
Calcualtes the electrical power required by an amplifier
Marshal Long pg. 689
Parameters:
Name | Type | Description |
---|---|---|
channels |
Number | number of amplifier channels (assuming 2 channels per amplifier) |
J |
Number | rated amplifier output power for one channel in Watts |
duty |
Number | duty cycle |
efficieny |
Number | amplifier efficiency |
Jq |
Number | quiescent power for zero input voltage (defaults to 90W) |
- Source:
RoomModes(params)
Calculates the modal frequencies of a room of specified dimmensions
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | Solver parameters
Properties
|
- Source:
sum - Calculates the sum of a number array;(arr) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array.<Number> | Array of numbers; |
- Source:
Returns:
- Returns the sum of a number array
- Type
- Number
ThirdOctaveBands(startopt, endopt)
Returns the nominal third octave band frequencies between a given range (inclusive)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
start |
number |
<optional> |
start frequency |
end |
number |
<optional> |
end frequency |
- Source:
triangleVolume(p1, p2, p3) → {Number}
Calculates the signed volume of a triangle for 3D mesh calc
Parameters:
Name | Type | Description |
---|---|---|
p1 |
Object | Vector | Vector p1 containing components x,y,z; |
p2 |
Object | Vector | Vector p1 containing components x,y,z; |
p3 |
Object | Vector | Vector p1 containing components x,y,z; |
- Source:
- See:
Returns:
Returns signed volume of a triangle
- Type
- Number
W2dB(W, unitsopt)
Converts Sound Power in (W) to Sound Power Level(Lw) in dB
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
W |
Number | Array.<Number> | Sound Power | |
units |
String |
<optional> |
Units for the result |
- Source: