Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

wave-visualizer

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

wave-visualizer

Audio visualizer library for javascript

    1.0.6latest

Version published
Maintainers
1
Yearly downloads
7,683
increased by73.94%

Weekly downloads

Readme

Source

Wave.js

Minimal wave visualizer for javascript from wave.js Visual audio from element or micro phone stream

Wave visulaizer

DOCUMENTATION

LIVE EXAMPLES

Installation

Install with NPM

npm i wave-visualizer

Setup

If your using npm use a default import to include wave.

import Wave from 'wave-visualizer';

Create a new wave object.

var wave = new Wave();

If your working with React, put the wave instance in state.

let [wave] = useState(new Wave());

Usage

Call one of the three main function on the wave object, fromFile, fromStream, fromElement.

wave.fromElement('audio_element_id', 'canvas_id');

Documentation

View the current documentation for Wave.js here.

Example

<html> <head></head> <body> <canvas id="output" height="500" width="500"></canvas> <script src="../dist/bundle.cjs.js"></script> <script> let wave = new Wave(); navigator.mediaDevices .getUserMedia({ audio: true, }) .then(function (stream) { wave.fromStream(stream, 'output', { colors: ['red', 'white', 'blue'], }); }) .catch(function (err) { console.log(err.message); }); </script> </body> </html>

Contributor Workflow

  1. Fork Wave.js repo.
  2. Clone to your local computer.
  3. Run "npm i" in the root folder to install dependencies.
  4. Run "npm run test" to start the dev server and code watcher.
  5. Open the src folder and make a change to one of the src files.
  6. Save changes and refresh browser window to see changes.
  7. Push to remote branch and create a pull request to the Wave.js master branch.

Keywords

FAQs

What is wave-visualizer?

Audio visualizer library for javascript

Is wave-visualizer popular?

The npm package wave-visualizer receives a total of 159 weekly downloads. As such, wave-visualizer popularity was classified as not popular.

Is wave-visualizer well maintained?

We found that wave-visualizer demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 17 Nov 2020
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc