Skip to content

πŸŽ₯ Make videos programmatically with React

`@remotion/effects`: Add white noise effect (#7823)

Jonny Burger43b05dfeb89c
diff --git a/.agents/skills/add-effect/SKILL.md b/.agents/skills/add-effect/SKILL.md
index 694be1336c..047313294a 100644
--- a/.agents/skills/add-effect/SKILL.md
+++ b/.agents/skills/add-effect/SKILL.md
@@ -231,7 +231,7 @@ Follow existing effect pages:
Update:
-- `packages/docs/sidebars.ts` β€” add `'effects/<effect-name>'`.
+- `packages/docs/sidebars.ts` β€” add `'effects/<effect-name>'` in alphabetical order.
- `packages/docs/docs/effects/table-of-contents.tsx` β€” add a card in the right category.
- `packages/docs/src/data/articles.ts` by running the card generator, not by hand.
diff --git a/packages/docs/components/demos/index.tsx b/packages/docs/components/demos/index.tsx
index a4e50d0273..e2df4fef26 100644
--- a/packages/docs/components/demos/index.tsx
+++ b/packages/docs/components/demos/index.tsx
@@ -45,6 +45,7 @@ import {
effectsUvTranslateDemo,
effectsVignetteDemo,
effectsWaveDemo,
+ effectsWhiteNoiseDemo,
effectsXyTranslateDemo,
ellipseDemo,
fadePresentationDemo,
@@ -114,6 +115,7 @@ const demos: DemoType[] = [
effectsSpeckleDemo,
effectsMirrorDemo,
effectsNoiseDemo,
+ effectsWhiteNoiseDemo,
effectsScanlinesDemo,
effectsLinesDemo,
effectsScaleDemo,
diff --git a/packages/docs/components/demos/types.ts b/packages/docs/components/demos/types.ts
index b78dfe7376..e6647154b4 100644
--- a/packages/docs/components/demos/types.ts
+++ b/packages/docs/components/demos/types.ts
@@ -30,6 +30,7 @@ import {
} from '../effects/effects-translate-preview';
import {EffectsVignettePreview} from '../effects/effects-vignette-preview';
import {EffectsWavePreview} from '../effects/effects-wave-preview';
+import {EffectsWhiteNoisePreview} from '../effects/effects-white-noise-preview';
import {
ClockWipeDemo,
CubeDemo,
@@ -2060,6 +2061,38 @@ export const effectsNoiseDemo: DemoType = {
],
};
+export const effectsWhiteNoiseDemo: DemoType = {
+ comp: EffectsWhiteNoisePreview,
+ compHeight: 720,
+ compWidth: 1280,
+ durationInFrames: 1,
+ fps: 30,
+ id: 'effects-white-noise',
+ autoPlay: false,
+ controls: false,
+ logLevel: 'info',
+ options: [
+ {
+ name: 'amount',
+ type: 'numeric',
+ min: 0,
+ max: 1,
+ step: 0.01,
+ default: 1,
+ optional: 'no',
+ },
+ {
+ name: 'seed',
+ type: 'numeric',
+ min: 0,
+ max: 100,
+ step: 1,
+ default: 0,
+ optional: 'no',
+ },
+ ],
+};
+
export const effectsScanlinesDemo: DemoType = {
comp: EffectsScanlinesPreview,
compHeight: 720,
diff --git a/packages/docs/components/effects/effects-white-noise-preview.tsx b/packages/docs/components/effects/effects-white-noise-preview.tsx
new file mode 100644
index 0000000000..fdd04c2128
--- /dev/null
+++ b/packages/docs/components/effects/effects-white-noise-preview.tsx
@@ -0,0 +1,19 @@
+import {whiteNoise} from '@remotion/effects/white-noise';
+import React from 'react';
+import {CanvasImage} from 'remotion';
+import {EFFECTS_PREVIEW_IMAGE_SRC} from './effects-preview-image';
+
+export const EffectsWhiteNoisePreview: React.FC<{
+ readonly amount: number;
+ readonly seed: number;
+}> = ({amount, seed}) => {
+ return (
+ <CanvasImage
+ src={EFFECTS_PREVIEW_IMAGE_SRC}
+ width={1280}
+ height={720}
+ fit="cover"
+ effects={[whiteNoise({amount, seed})]}
+ />
+ );
+};
diff --git a/packages/docs/docs/effects/table-of-contents.tsx b/packages/docs/docs/effects/table-of-contents.tsx
index 1a9ae5eee8..82ed64a66e 100644
--- a/packages/docs/docs/effects/table-of-contents.tsx
+++ b/packages/docs/docs/effects/table-of-contents.tsx
@@ -207,6 +207,13 @@ const categories: {
name: 'noise()',
description: 'Procedural grain effect',
},
+ {
+ link: '/docs/effects/white-noise',
+ preview: '/img/effects-white-noise-preview.png',
+ alt: 'white noise effect preview',
+ name: 'whiteNoise()',
+ description: 'Random grayscale noise layer',
+ },
{
link: '/docs/effects/scanlines',
preview: '/img/effects-scanlines-preview.png',
diff --git a/packages/docs/docs/effects/white-noise.mdx b/packages/docs/docs/effects/white-noise.mdx
new file mode 100644
index 0000000000..c3181247d2
--- /dev/null
+++ b/packages/docs/docs/effects/white-noise.mdx
@@ -0,0 +1,82 @@
+---
+image: /generated/articles-docs-effects-white-noise.png
+slug: /effects/white-noise
+title: whiteNoise()
+sidebar_label: whiteNoise()
+crumb: '@remotion/effects'
+---
+
+# whiteNoise()<AvailableFrom v="4.0.470" />
+
+_Part of the [`@remotion/effects`](/docs/effects/api) package._
+
+Replaces or blends canvas-based components such as [`<Video>`](/docs/media/video), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas) and [`<Solid>`](/docs/solid) with a grayscale white noise layer.
+
+Use it for TV static, signal loss, or snow-like visuals. For subtle additive film grain, use [`noise()`](/docs/effects/noise) instead.
+
+The effect preserves the source alpha mask. Transparent regions stay transparent.
+
+## Difference from `noise()`
+
+`whiteNoise()` blends the source towards a random grayscale image. By default, it fully replaces visible pixels with white noise.
+
+[`noise()`](/docs/effects/noise) adds centered noise to the existing pixels instead. It is better suited for subtle grain while preserving the image.
+
+## Preview
+
+<Demo type="effects-white-noise" />
+
+## Example
+
+```tsx twoslash title="MyComp.tsx"
+import {AbsoluteFill} from 'remotion';
+import {Video} from '@remotion/media';
+import {whiteNoise} from '@remotion/effects/white-noise';
+
+export const MyComp: React.FC = () => {
+ return (
+ <AbsoluteFill>
+ <Video
+ src="https://remotion.media/video.mp4"
+ effects={[
+ whiteNoise({
+ amount: 1,
+ seed: 7,
+ }),
+ ]}
+ />
+ </AbsoluteFill>
+ );
+};
+```
+
+## API
+
+Pass an object with the following properties. You can also call `whiteNoise()` without arguments.
+
+### `amount?`
+
+Blend amount from `0` to `1`. Defaults to `1`.
+
+Use `0` to leave the layer unchanged. Use `1` to fully replace the image with white noise inside the source alpha mask.
+
+### `seed?`
+
+Seed for the random noise pattern. Defaults to `0`.
+
+Change it to get a different static white noise pattern. To animate the noise, pass a value derived from [`useCurrentFrame()`](/docs/use-current-frame).
+
+### `disabled?`
+
+When `true`, the effect is skipped. Defaults to `false`.
+
+## Requirements
+
+`whiteNoise()` uses a WebGL2 backend. During renders, enable WebGL via [`Config.setChromiumOpenGlRenderer()`](/docs/config#setchromiumopenglrenderer) (for example `'angle'`). See [Using WebGL during renders](/docs/remotion/html-in-canvas#using-webgl-during-renders).
+
+## See also
+
+- [`@remotion/effects`](/docs/effects/api)
+- [`noise()`](/docs/effects/noise)
+- [`scanlines()`](/docs/effects/scanlines)
+- [Source code for this effect](https://github.com/remotion-dev/remotion/blob/main/packages/effects/src/white-noise.ts)
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index f3d71329d1..035e870c19 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -294,6 +294,7 @@ const sidebars: SidebarsConfig = {
'effects/uv-translate',
'effects/vignette',
'effects/wave',
+ 'effects/white-noise',
'effects/xy-translate',
],
},
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index cd57fedc41..30a0100e23 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -1961,6 +1961,15 @@ export const articles = [
noAi: false,
slug: 'effects/wave',
},
+ {
+ id: 'effects/white-noise',
+ title: 'whiteNoise()',
+ relativePath: 'docs/effects/white-noise.mdx',
+ compId: 'articles-docs-effects-white-noise',
+ crumb: '@remotion/effects',
+ noAi: false,
+ slug: 'effects/white-noise',
+ },
{
id: 'effects/xy-translate',
title: 'xyTranslate()',
diff --git a/packages/docs/src/remotion/Root.tsx b/packages/docs/src/remotion/Root.tsx
index 967e994aa4..00d1cd8723 100644
--- a/packages/docs/src/remotion/Root.tsx
+++ b/packages/docs/src/remotion/Root.tsx
@@ -33,6 +33,7 @@ import {
} from '../../components/effects/effects-translate-preview';
import {EffectsVignettePreview} from '../../components/effects/effects-vignette-preview';
import {EffectsWavePreview} from '../../components/effects/effects-wave-preview';
+import {EffectsWhiteNoisePreview} from '../../components/effects/effects-white-noise-preview';
import {articles} from '../data/articles';
import {AllTemplates} from './AllTemplates';
import {Article} from './Article';
@@ -303,6 +304,16 @@ export const RemotionRoot: React.FC = () => {
premultiply: false,
}}
/>
+ <Still
+ id="effects-white-noise-preview"
+ component={EffectsWhiteNoisePreview}
+ width={1280}
+ height={720}
+ defaultProps={{
+ amount: 1,
+ seed: 0,
+ }}
+ />
<Still
id="effects-scanlines-preview"
component={EffectsScanlinesPreview}
diff --git a/packages/docs/static/generated/articles-docs-effects-white-noise.png b/packages/docs/static/generated/articles-docs-effects-white-noise.png
new file mode 100644
index 0000000000..c8e2a15063
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-effects-white-noise.png differ
diff --git a/packages/docs/static/img/effects-white-noise-preview.png b/packages/docs/static/img/effects-white-noise-preview.png
new file mode 100644
index 0000000000..5c9264bfb6
Binary files /dev/null and b/packages/docs/static/img/effects-white-noise-preview.png differ
diff --git a/packages/effects/bundle.ts b/packages/effects/bundle.ts
index 21a89397c4..4728eb370c 100644
--- a/packages/effects/bundle.ts
+++ b/packages/effects/bundle.ts
@@ -33,6 +33,7 @@ const effectEntrypoints = [
'src/translate.ts',
'src/vignette.ts',
'src/wave.ts',
+ 'src/white-noise.ts',
];
console.time('Generated.');
diff --git a/packages/effects/package.json b/packages/effects/package.json
index 14c075e37b..7be865eee0 100644
--- a/packages/effects/package.json
+++ b/packages/effects/package.json
@@ -164,6 +164,11 @@
"module": "./dist/esm/wave.mjs",
"import": "./dist/esm/wave.mjs"
},
+ "./white-noise": {
+ "types": "./dist/white-noise.d.ts",
+ "module": "./dist/esm/white-noise.mjs",
+ "import": "./dist/esm/white-noise.mjs"
+ },
"./package.json": "./package.json"
},
"typesVersions": {
@@ -245,6 +250,9 @@
],
"wave": [
"dist/wave.d.ts"
+ ],
+ "white-noise": [
+ "dist/white-noise.d.ts"
]
}
},
diff --git a/packages/effects/src/test/effect-params.test.ts b/packages/effects/src/test/effect-params.test.ts
index be331f378f..ecaa3d8431 100644
--- a/packages/effects/src/test/effect-params.test.ts
+++ b/packages/effects/src/test/effect-params.test.ts
@@ -25,6 +25,7 @@ import {tint} from '../tint.js';
import {uvTranslate, xyTranslate} from '../translate.js';
import {vignette} from '../vignette.js';
import {wave} from '../wave/index.js';
+import {whiteNoise} from '../white-noise.js';
test('@remotion/effects expose documentation links', () => {
expect(barrelDistortion().definition.documentationLink).toBe(
@@ -108,6 +109,9 @@ test('@remotion/effects expose documentation links', () => {
expect(wave().definition.documentationLink).toBe(
'https://www.remotion.dev/docs/effects/wave',
);
+ expect(whiteNoise().definition.documentationLink).toBe(
+ 'https://www.remotion.dev/docs/effects/white-noise',
+ );
});
test('@remotion/effects expose API names as Studio labels', () => {
@@ -139,6 +143,7 @@ test('@remotion/effects expose API names as Studio labels', () => {
expect(vignette().definition.label).toBe('vignette()');
expect(xyTranslate().definition.label).toBe('xyTranslate()');
expect(wave().definition.label).toBe('wave()');
+ expect(whiteNoise().definition.label).toBe('whiteNoise()');
});
test('barrelDistortion() accepts default params', () => {
@@ -296,6 +301,41 @@ test('wave() direction produces distinct effect keys', () => {
expect(horizontal.effectKey).not.toBe(vertical.effectKey);
});
+test('whiteNoise() accepts default params', () => {
+ expect(() => whiteNoise()).not.toThrow();
+});
+
+test('whiteNoise() rejects non-finite amount', () => {
+ expect(() => whiteNoise({amount: Number.NaN})).toThrow(
+ '"amount" must be a finite number',
+ );
+});
+
+test('whiteNoise() rejects amount below range', () => {
+ expect(() => whiteNoise({amount: -0.1})).toThrow('"amount" must be >= 0');
+});
+
+test('whiteNoise() rejects amount above range', () => {
+ expect(() => whiteNoise({amount: 1.1})).toThrow('"amount" must be <= 1');
+});
+
+test('whiteNoise() rejects non-finite seed', () => {
+ expect(() => whiteNoise({seed: Number.NaN})).toThrow(
+ '"seed" must be a finite number',
+ );
+});
+
+test('whiteNoise() parameters produce distinct effect keys', () => {
+ const defaultStatic = whiteNoise();
+ const subtle = whiteNoise({amount: 0.2});
+ const reseeded = whiteNoise({seed: 4});
+
+ expect(
+ new Set([defaultStatic.effectKey, subtle.effectKey, reseeded.effectKey])
+ .size,
+ ).toBe(3);
+});
+
test('grayscale() accepts default params', () => {
expect(() => grayscale()).not.toThrow();
});
diff --git a/packages/effects/src/white-noise.ts b/packages/effects/src/white-noise.ts
new file mode 100644
index 0000000000..91704e3c17
--- /dev/null
+++ b/packages/effects/src/white-noise.ts
@@ -0,0 +1,260 @@
+import type {SequenceSchema} from 'remotion';
+import {Internals} from 'remotion';
+import {
+ assertOptionalFiniteNumber,
+ validateUnitInterval,
+} from './color-utils.js';
+import {assertEffectParamsObject} from './validate-effect-param.js';
+
+const {createEffect, createWebGL2ContextError} = Internals;
+
+const DEFAULT_AMOUNT = 1 as const;
+const DEFAULT_SEED = 0 as const;
+
+const whiteNoiseSchema = {
+ amount: {
+ type: 'number',
+ min: 0,
+ max: 1,
+ step: 0.01,
+ default: DEFAULT_AMOUNT,
+ description: 'Amount',
+ },
+ seed: {
+ type: 'number',
+ step: 1,
+ default: DEFAULT_SEED,
+ description: 'Seed',
+ },
+} as const satisfies SequenceSchema;
+
+export type WhiteNoiseParams = {
+ /** Blend amount from `0` to `1`. Defaults to `1`. */
+ readonly amount?: number;
+ /** Seed for the random noise pattern. Defaults to `0`. */
+ readonly seed?: number;
+};
+
+type WhiteNoiseResolved = {
+ amount: number;
+ seed: number;
+};
+
+const resolve = (params: WhiteNoiseParams): WhiteNoiseResolved => ({
+ amount: params.amount ?? DEFAULT_AMOUNT,
+ seed: params.seed ?? DEFAULT_SEED,
+});
+
+const validateWhiteNoiseParams = (params: WhiteNoiseParams): void => {
+ assertEffectParamsObject(params, 'White noise');
+ assertOptionalFiniteNumber(params.amount, 'amount');
+ assertOptionalFiniteNumber(params.seed, 'seed');
+ validateUnitInterval(params.amount ?? DEFAULT_AMOUNT, 'amount');
+};
+
+type WhiteNoiseState = {
+ readonly gl: WebGL2RenderingContext;
+ readonly program: WebGLProgram;
+ readonly vao: WebGLVertexArrayObject;
+ readonly vbo: WebGLBuffer;
+ readonly texture: WebGLTexture;
+ readonly uSource: WebGLUniformLocation | null;
+ readonly uAmount: WebGLUniformLocation | null;
+ readonly uSeed: WebGLUniformLocation | null;
+};
+
+const VERTEX_SHADER = /* glsl */ `#version 300 es
+in vec2 aPos;
+in vec2 aUv;
+out vec2 vUv;
+
+void main() {
+ vUv = aUv;
+ gl_Position = vec4(aPos, 0.0, 1.0);
+}
+`;
+
+const FRAGMENT_SHADER = /* glsl */ `#version 300 es
+precision highp float;
+
+in vec2 vUv;
+out vec4 fragColor;
+
+uniform sampler2D uSource;
+uniform float uAmount;
+uniform float uSeed;
+
+float random(vec2 co) {
+ return fract(sin(dot(co, vec2(12.9898, 78.233)) + uSeed * 37.719) * 43758.5453);
+}
+
+void main() {
+ vec4 color = texture(uSource, vUv);
+ float noise = random(gl_FragCoord.xy);
+ vec3 unpremultiplied = color.a == 0.0 ? vec3(0.0) : color.rgb / color.a;
+ vec3 mixed = mix(unpremultiplied, vec3(noise), uAmount);
+ fragColor = vec4(mixed * color.a, color.a);
+}
+`;
+
+const compileShader = (
+ gl: WebGL2RenderingContext,
+ type: number,
+ source: string,
+): WebGLShader => {
+ const shader = gl.createShader(type);
+ if (!shader) {
+ throw new Error('Failed to create shader');
+ }
+
+ gl.shaderSource(shader, source);
+ gl.compileShader(shader);
+
+ if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
+ const info = gl.getShaderInfoLog(shader) ?? 'Unknown shader compile error';
+ gl.deleteShader(shader);
+ throw new Error(info);
+ }
+
+ return shader;
+};
+
+const createProgram = (
+ gl: WebGL2RenderingContext,
+ vertexSource: string,
+ fragmentSource: string,
+): WebGLProgram => {
+ const vertex = compileShader(gl, gl.VERTEX_SHADER, vertexSource);
+ const fragment = compileShader(gl, gl.FRAGMENT_SHADER, fragmentSource);
+ const program = gl.createProgram();
+ if (!program) {
+ throw new Error('Failed to create program');
+ }
+
+ gl.attachShader(program, vertex);
+ gl.attachShader(program, fragment);
+ gl.linkProgram(program);
+ gl.deleteShader(vertex);
+ gl.deleteShader(fragment);
+
+ if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
+ const info = gl.getProgramInfoLog(program) ?? 'Unknown program link error';
+ gl.deleteProgram(program);
+ throw new Error(info);
+ }
+
+ return program;
+};
+
+const createWhiteNoiseState = (
+ gl: WebGL2RenderingContext,
+ vertexSource: string,
+ fragmentSource: string,
+): WhiteNoiseState => {
+ const program = createProgram(gl, vertexSource, fragmentSource);
+ const vao = gl.createVertexArray();
+ const vbo = gl.createBuffer();
+ const texture = gl.createTexture();
+
+ if (!vao || !vbo || !texture) {
+ throw new Error('Failed to create WebGL resources');
+ }
+
+ gl.bindVertexArray(vao);
+ gl.bindBuffer(gl.ARRAY_BUFFER, vbo);
+ gl.bufferData(
+ gl.ARRAY_BUFFER,
+ new Float32Array([-1, -1, 0, 0, 1, -1, 1, 0, -1, 1, 0, 1, 1, 1, 1, 1]),
+ gl.STATIC_DRAW,
+ );
+
+ const aPos = gl.getAttribLocation(program, 'aPos');
+ const aUv = gl.getAttribLocation(program, 'aUv');
+ gl.enableVertexAttribArray(aPos);
+ gl.vertexAttribPointer(aPos, 2, gl.FLOAT, false, 16, 0);
+ gl.enableVertexAttribArray(aUv);
+ gl.vertexAttribPointer(aUv, 2, gl.FLOAT, false, 16, 8);
+
+ gl.bindTexture(gl.TEXTURE_2D, texture);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
+
+ return {
+ gl,
+ program,
+ vao,
+ vbo,
+ texture,
+ uSource: gl.getUniformLocation(program, 'uSource'),
+ uAmount: gl.getUniformLocation(program, 'uAmount'),
+ uSeed: gl.getUniformLocation(program, 'uSeed'),
+ };
+};
+
+export const whiteNoise = createEffect<WhiteNoiseParams, WhiteNoiseState>({
+ type: 'remotion/white-noise',
+ label: 'whiteNoise()',
+ documentationLink: 'https://www.remotion.dev/docs/effects/white-noise',
+ backend: 'webgl2',
+ calculateKey: (params) => {
+ const resolved = resolve(params);
+ return `white-noise-${resolved.amount}-${resolved.seed}`;
+ },
+ setup: (target) => {
+ const gl = target.getContext('webgl2', {
+ premultipliedAlpha: true,
+ alpha: true,
+ preserveDrawingBuffer: true,
+ });
+ if (!gl) {
+ throw createWebGL2ContextError('white noise effect');
+ }
+
+ gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
+
+ return createWhiteNoiseState(gl, VERTEX_SHADER, FRAGMENT_SHADER);
+ },
+ apply: ({source, width, height, params, state, flipSourceY}) => {
+ const resolved = resolve(params);
+
+ state.gl.viewport(0, 0, width, height);
+ state.gl.bindFramebuffer(state.gl.FRAMEBUFFER, null);
+ state.gl.activeTexture(state.gl.TEXTURE0);
+ state.gl.bindTexture(state.gl.TEXTURE_2D, state.texture);
+ state.gl.pixelStorei(state.gl.UNPACK_FLIP_Y_WEBGL, flipSourceY);
+ state.gl.texImage2D(
+ state.gl.TEXTURE_2D,
+ 0,
+ state.gl.RGBA,
+ state.gl.RGBA,
+ state.gl.UNSIGNED_BYTE,
+ source as TexImageSource,
+ );
+
+ state.gl.useProgram(state.program);
+ if (state.uSource) {
+ state.gl.uniform1i(state.uSource, 0);
+ }
+
+ if (state.uAmount) {
+ state.gl.uniform1f(state.uAmount, resolved.amount);
+ }
+
+ if (state.uSeed) {
+ state.gl.uniform1f(state.uSeed, resolved.seed);
+ }
+
+ state.gl.bindVertexArray(state.vao);
+ state.gl.drawArrays(state.gl.TRIANGLE_STRIP, 0, 4);
+ },
+ cleanup: ({gl, program, vao, vbo, texture}) => {
+ gl.deleteTexture(texture);
+ gl.deleteBuffer(vbo);
+ gl.deleteProgram(program);
+ gl.deleteVertexArray(vao);
+ },
+ schema: whiteNoiseSchema,
+ validateParams: validateWhiteNoiseParams,
+});