Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Audio Noise Generator for Web Browsers

License

NotificationsYou must be signed in to change notification settings

DIDAVA/dNoise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Noise Generator for Web Browsers

dNoise is a standard audio noise generator covering most popular noise types such asWhite Noise,Pink Noise,Red Noise also known asBrownian Noise,Blue Noise, andViolet Noise that are used by sound engineers.dNoise usesWeb Audio API which is not supported in old browsers likeMicrosoft Internet Explorer and works on latest modern browsers such asChrome,Firefox andSafari.

Basic Setup

constnoise=newdNoise();

Methods

dNoise starts generating noise ba calling methods:

Generator Methods

noise.white();// Starts generating white noisenoise.pink();// Starts generating pink noisenoise.blue();// Starts generating blue noisenoise.red();// Starts generating red or brownian noisenoise.violet();// Starts generating violet noise

Stop Method

Stops the generator immediately

noise.stop();// Stops generator

Properties

dNoise comes with a few useful properties:

Volume

Sets or gets the output volume. The default value is1.

noise.volume=0.75;// Sets the output volume to 0.75letcurrentVolume=noise.volume;// Gets the current output volume

Modes

Returns a list of available noise modes as an array.

letavailableModes=noise.modes;// Gets available noise modes

Time

Returns the playback duration in seconds.

letduration=noise.time;// Gets playback duration

formattedTime

Returns playback duration inhh:mm:ss format.

letduration=noise.formattedTime;// Gets formatted playback duration

For more information and details please check theexample.Improvment pulls and feature requests are welcome.


[8]ページ先頭

©2009-2025 Movatter.jp