AudioAnalyzer
Takes measurements from audio streams that are connected to it via one or more Wires.
This class is not browsable. It is not visible in Studio's object browser.
Memory category | Internal |
---|
Member index 5
Description
AudioAnalyzer takes measurements from audio streams that are wired to it through Wire. It provides a single Input pin but does not produce any output streams.
History 12
- 637 Change ReturnType of GetConnectedWires from Array to Objects
- 637 Add SpectrumEnabled
- 618 Change Security of GetConnectedWires from PluginSecurity to None
- 607 Change Security of GetConnectedWires from RobloxScriptSecurity to PluginSecurity
- 597 Change MemoryCategory of AudioAnalyzer from Instances to Internal
- 593 Add GetConnectedWires
- 592 Change Category of RmsLevel from Data to Metering
- 592 Change Category of PeakLevel from Data to Metering
- 589 Add GetSpectrum
- 588 Add RmsLevel
- 588 Add PeakLevel
- 588 Add AudioAnalyzer
Members 5
GetConnectedWires
Parameters (1) | ||
---|---|---|
pin | string | |
Returns (1) | ||
Objects |
Thread safety | Unsafe |
---|
History 4
- 637 Change ReturnType of GetConnectedWires from Array to Objects
- 618 Change Security of GetConnectedWires from PluginSecurity to None
- 607 Change Security of GetConnectedWires from RobloxScriptSecurity to PluginSecurity
- 593 Add GetConnectedWires
GetSpectrum
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Array |
Returns the frequency spectrum of the last audio buffer, as an array of numbers. The elements of the array are root-mean-square volume levels, evenly spaced from 0 hertz to 24,000 hertz.
This function has a custom internal state. It may behave in a non-standard way.
Thread safety | Unsafe |
---|
History 1
- 589 Add GetSpectrum
PeakLevel
Type | Default | |
---|---|---|
float | 0 |
The loudest volume observed during the last audio buffer. This property changes often and thus does not fire changed events.
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.
Thread safety | ReadSafe |
---|---|
Category | Metering |
Loaded/Saved | false/true |
RmsLevel
Type | Default | |
---|---|---|
float | 0 |
The root-mean-square average volume observed during the last audio buffer. This property is generally more stable than PeakLevel but it may not capture momentary volume spikes.
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.
Thread safety | ReadSafe |
---|---|
Category | Metering |
Loaded/Saved | false/true |
SpectrumEnabled
Type | Default | |
---|---|---|
bool | true |
Thread safety | ReadSafe |
---|---|
Category | Metering |
Loaded/Saved | true |
History 1
- 637 Add SpectrumEnabled