Concentration sound noise/river babbling & rain sound healing machine | ZeroTools

This is a concentration BGM synthesis tool that allows you to blend white noise, pink noise, brown noise, and the sounds of rain, wind, and waves to your desired balance. It is a convenient web tool that operates completely locally and safely without sending data to an external server.

Loading tool interface...

Client-Side Secure Execution

This tool executes entirely in your browser sandbox. None of your input strings, files, or configurations are uploaded to any external server.

ZeroTools: Browser Processing & Privacy

ZeroTools focuses on tools that process input on your device. Check each tool’s scope and limitations before use.

Processing and privacy policy
Chapter 1

Web Audio API architecture design for environmental sound and healing noise generation

The sound generation algorithm that forms the basis of this platform operates based on AudioContext, which provides advanced control over the browser's standard Web Audio API.

Unlike the typical method of streaming external audio asset files over the network, all acoustic waveform data is generated by real-time calculations using client-side computational resources.

This completely local processing architecture ensures a stable playback environment that is completely independent of network communication delays and bandwidth limitations.

By incorporating the latest AudioWorklet processor into the acoustic calculation pipeline, replacing the traditional ScriptProcessor, it performs floating point operations at a sampling rate of 44,000 samples per second on an independent thread separated from the main JavaScript thread.

As a result, UI drawing and user input processing do not block audio processing, allowing infinite continuous playback without audio dropouts.

At the lowest level of waveform generation, AudioBufferSourceNode is used to expand the generated mathematical noise waveform directly into memory, creating a foundation for efficiently performing buffering and loop processing using hardware acceleration.

Chapter 2

Mathematical generation algorithms and frequency spectrum characteristics of various noises

The noise generation engine synthesizes three basic acoustic waveforms: white noise, pink noise, and brown noise using a purely mathematical approach.

When generating white noise, we do not rely on linear congruential methods or pseudo-random number generators such as Mersenne Twister, but instead generate a uniformly distributed random number array using cryptographic or standard random number functions provided by the browser.

This achieves flat frequency characteristics with completely equal power density per unit frequency over the entire frequency band.

On the other hand, to generate pink noise, which is said to be the closest to natural fluctuations, we apply an additive synthesis method called pole-zero filtering or the Voss-McCartney algorithm.

In order to have equal energy in each octave band, we use floating-point array convolution to precisely simulate the one-to-f noise characteristic in which the power density attenuates in inverse proportion to the frequency as the frequency increases.

Furthermore, in generating Brownian noise, by applying a first-order integrator-type digital filter that adds random numbers and multiplies the leakage coefficient to the immediately preceding sample value, it has deep bass characteristics that are inversely proportional to the square of the frequency, reproducing acoustic characteristics similar to random walk motion.

Chapter 3

Real-time spatial mixing and dynamic frequency control of multiple natural environmental sound channels

A mixing console mechanism that multiplexes natural environmental sounds such as rain, waves, bonfire, and wind in addition to artificial noise waveforms is implemented as a routing graph within the AudioContext.

Each ambient sound channel is assigned to a separate AudioBufferSourceNode and has independent amplitude control via the GainNode.

This allows users to continuously vary the gain value of each channel using the slider UI and synthesize any acoustic space. In addition, to fine-tune the frequency characteristics of environmental sounds, low-pass and high-pass filters using BiquadFilterNodes are placed in series on each routing path.

By dynamically changing filter parameters such as the cutoff frequency and Q value, acoustic adjustments can be made to eliminate audible oppressive sensations, such as softening the sharpness of rain sounds with too strong high frequencies, or extracting only the low frequency components of wave sounds to give them a sense of depth.

These nodes are finally aggregated into a master GainNode, which is sent to the speaker output after undergoing dynamics processing to prevent clipping distortion.

Chapter 4

Infinite buffering loop and asynchronous fade timer control mechanism

In order to achieve stable environmental sound playback over long periods of time, this system uses an infinite loop playback algorithm that eliminates memory leaks.

Rather than generating a large audio buffer, define short waveform segments of several seconds on the AudioBuffer and enable seamless continuous playback by enabling the loop attribute of the AudioBufferSourceNode.

To prevent click noise due to non-zero-crossing discontinuities that may occur at loop boundaries, a window function process is applied internally that crossfades the start and end of the buffer in a small time window.

Furthermore, the timer function for the purpose of sleep induction and concentration time management is implemented using AudioParam's automation functions linearRampToValueAtTime and exponentialRampToValueAtTime methods.

A fadeout operation that logarithmically attenuates the master gain value toward the expiration time of the specified offset timer is scheduled directly on the audio rendering thread, ensuring precise and smooth volume control that does not rely on a JavaScript-side timer function.

Chapter 5

Persistence of noise synthesis parameters in the browser and state management

This environmental sound generation tool has a complete state management mechanism that stores complex user-built noise mix parameters locally on the client side.

All settings, such as the base volume level of white noise, pink noise, and brown noise, the channel gain of various natural environmental sounds, and the cutoff frequency of the applied filter, are structured as serialized data in JSON format.

This structured data is written synchronously to the browser's local storage area using the Web Storage API, so it is immediately carried over to the next session without sending data to the server.

A front-end reactive state management library constantly monitors changes to these parameters and issues immediate, smoothed value update instructions to the appropriate AudioParam in the AudioContext whenever a UI event, such as a slider operation, occurs.

This data flow ensures that the sound generation algorithm and user interface state are always in perfect sync.

Chapter 6

Practical application of acoustic frequencies for autonomic nervous regulation and spatial masking

Each acoustic waveform generated is designed for a variety of applications based on human auditory psychology and physiological responses.

White noise's wide-band, uniform frequency characteristics have an excellent effect in comprehensively masking sudden surrounding noises, making it an effective means of preventing conversations from leaking in office environments and alleviating internal hyperacusis such as tinnitus.

In addition, pink noise, which contains a one-to-F fluctuation component, is said to have a high mathematical affinity with human heart rate fluctuations and brain wave fluctuations, and functions as a background sound that reduces the cognitive load on the brain during long periods of study or deep concentration work.

Furthermore, Brown noise, which has a predominant low frequency component, has deep acoustic characteristics similar to the sound of blood flow in the uterus or the environmental sounds of the deep sea, so it is expected to lead to the parasympathetic nervous system becoming dominant and have the effect of relieving physical and mental tension during the sleep onset period.

By dynamically mixing these sounds according to the user's own physiological state and the surrounding environment, and removing unpleasant bands through filtering, an advanced sound masking solution is created that creates an optimal acoustic space.

Frequently Asked Questions (FAQ)

A.
No external software installation is required as it runs directly using native browser Web Audio and MediaRecorder APIs.
A.
Audio signals from your microphone are processed exclusively within local browser memory and never transmitted externally.
A.
All audio waveform processing is computed in your browser using local CPU power. With zero server network latency, operation is ultra-smooth and fast.