# openmusic-white-noise

> Function to generate n samples of white noise

Latest version **1.0.2** (published 2014-11-03) · Apache 2 license · 0 weekly downloads

## Install

```sh
npm install openmusic-white-noise
pnpm add openmusic-white-noise
yarn add openmusic-white-noise
bun add openmusic-white-noise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-11-03 |
| First published | 2014-10-24 |
| Weekly downloads | 0 |
| License | Apache 2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | sole |
| Maintainers | solesole, sole |
| Keywords | web, audio, white, noise |

## Links

- npm: https://www.npmjs.com/package/openmusic-white-noise
- Repository: https://github.com/openmusic/white-noise
- Issues: https://github.com/openmusic/white-noise/issues
- npm.io page: https://npm.io/package/openmusic-white-noise

## Dependencies (5)

- [gulp](https://npm.io/package/gulp.md) ^3.8.9
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.0
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^1.0.1
- [gulp-browserify](https://npm.io/package/gulp-browserify.md) ^0.5.0
- [openmusic-oscilloscope](https://npm.io/package/openmusic-oscilloscope.md) ^1.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2014-11-03
- 1.0.1 — 2014-10-27
- 1.0.0 — 2014-10-24

## README

# openmusic-white-noise

> Function to generate n samples of white noise

[![Install with NPM](https://nodei.co/npm/openmusic-white-noise.png?downloads=true&stars=true)](https://nodei.co/npm/openmusic-white-noise/)

## Usage

Install first: `npm install openmusic-white-noise`.

Then you can use it in your code:

```javascript
var generateWhiteNoise = require('openmusic-white-noise');

// this generates an array with 100 white noise samples
var samples = generateWhiteNoise(100);

// a second of white noise if sampling rate is 44100:
var whiteNoiseSecond = generateWhiteNoise(44100);
```

## Demo

** YOU NEED SUPPORT FOR WEB COMPONENTS IN YOUR BROWSER BECAUSE WE'RE NOT SHIMMING ANYTHING IN **

Firefox: go to `about:config`, find `dom.webcomponents.enabled` and set it to true.

Chrome: maybe nothing to do?

Run `npm install` so it installs stuff for the demo. Then `gulp build`, and then you can open `build/demo/index.html` for the demo.

If you do changes in the code, you'll need to rebuild the demo. Use `gulp build` or `gulp` only for running `build` and setting up a `watch` loop that automatically rebuilds the demo as you change its files.

---
_Source: https://npm.io/package/openmusic-white-noise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
