Skip to main content

Audio Signal Generation

About Audio Signal Generation

Audio signal generation refers to the process of creating sound waves that can be heard by the human ear. This can be achieved through various methods such as using electronic devices, software programs, or even physical instruments. The generated audio signal can be used for a variety of purposes such as music production, sound effects for movies or video games, or even for scientific research.

Sine Wave Generator

Audio Lab

This example generates a sine wave to the audio output using the SineGeneratorNode. Frequency and amplitude can be adjusted by the setFrequency and setAmplitude methods.

Code Example

{
"nodes": {
{ "id": "sineGeneratorNode", "type": "Switchboard.SineGenerator" }
},
"connections": {
{ "sourceNode": "sineGeneratorNode", "destinationNode": "outputNode" }
},
}

White Noise Generator

Audio Lab

This example generates white noise to the audio output using the WhiteNoiseGeneratorNode. This class has no properties or methods.

Code Example

{
"nodes": {
{ "id": "whiteNoiseGeneratorNode", "type": "Switchboard.WhiteNoiseGenerator" }
},
"connections": {
{ "sourceNode": "whiteNoiseGeneratorNode", "destinationNode": "outputNode" }
},
}