ae.utils.sound.wave

Some simple wave generator functions.

Members

Functions

fade
auto fade(W w)

Fade out this wave (multiply samples by a linearly descending factor).

sawToothWave
auto sawToothWave(real interval)
sineWave
auto sineWave(real interval)

Simple wave generator.

squareWave
auto squareWave(real interval)

Simple wave generator.

stretch
auto stretch(W wave, real factor)

Stretch a wave with linear interpolation.

triangleWave
auto triangleWave(real interval)
whiteNoise
auto whiteNoise()
whiteNoiseSqr
auto whiteNoiseSqr()

Simple wave generator.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>