All Projects → Sambego → oscilloscope.js

Sambego / oscilloscope.js

Licence: other
A small javascript plugin to create an oscilloscope of an audio-context

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to oscilloscope.js

webaudio-oscilloscope
A highly customizable oscilloscope for Web Audio 🔈 🎤
Stars: ✭ 57 (+103.57%)
Mutual labels:  oscilloscope, web-audio-api
sisco.lv2
Simple Scope
Stars: ✭ 40 (+42.86%)
Mutual labels:  oscilloscope
Comet
Web Synthesis on steroids
Stars: ✭ 18 (-35.71%)
Mutual labels:  web-audio-api
websynth
Web Synthesizer From Space
Stars: ✭ 16 (-42.86%)
Mutual labels:  oscilloscope
ollie
Voice control for digital oscilloscopes using Snips
Stars: ✭ 39 (+39.29%)
Mutual labels:  oscilloscope
mm-components
Music Markups components
Stars: ✭ 50 (+78.57%)
Mutual labels:  web-audio-api
MiniGBS
Small .gbs chiptune player for Linux
Stars: ✭ 15 (-46.43%)
Mutual labels:  oscilloscope
music visualizer
Shader viewer / music visualizer for Windows and Linux
Stars: ✭ 137 (+389.29%)
Mutual labels:  oscilloscope
Girinoscope
A simple Java graphical user interface for Girino, a Fast Arduino Oscilloscope.
Stars: ✭ 48 (+71.43%)
Mutual labels:  oscilloscope
ScopeMCU
虚拟示波器 MCU端
Stars: ✭ 59 (+110.71%)
Mutual labels:  oscilloscope
cycle-audio-graph
Audio graph driver for Cycle.js based on virtual-audio-graph
Stars: ✭ 19 (-32.14%)
Mutual labels:  web-audio-api
generative.fm
A platform for playing generative music in the browser.
Stars: ✭ 1,557 (+5460.71%)
Mutual labels:  web-audio-api
nikku
👽 Web-based BRSTM player
Stars: ✭ 35 (+25%)
Mutual labels:  web-audio-api
react-redux-webaudio
An event manager for the Web Audio API, integrated with react-redux.
Stars: ✭ 23 (-17.86%)
Mutual labels:  web-audio-api
corruption-loops
Digitally disintegrating music
Stars: ✭ 37 (+32.14%)
Mutual labels:  web-audio-api
picosdk-c-examples
A set of C/C++ examples for PicoScope® oscilloscope and PicoLog® data logger products.
Stars: ✭ 37 (+32.14%)
Mutual labels:  oscilloscope
Keras-to-Realtime-Audio
No description or website provided.
Stars: ✭ 22 (-21.43%)
Mutual labels:  web-audio-api
wavebin
∿ Oscilloscope waveform capture viewer and converter.
Stars: ✭ 31 (+10.71%)
Mutual labels:  oscilloscope
tiny scope
Tiny Scope for Arduino
Stars: ✭ 34 (+21.43%)
Mutual labels:  oscilloscope
AudioMasher
Generative Audio Playground
Stars: ✭ 50 (+78.57%)
Mutual labels:  web-audio-api

oscilloscope.js

A small javascript plugin to create an oscilloscope of an audio-context. You can see an example here

Install

bower install oscilloscope.js

Basic setup

// Create an audio-context
var audioContext = new window.AudioContext(),
    oscillator = audioContext.createOscillator();
    oscillator.type = 'sine';
    oscillator.frequency.value = 400;
    oscillator.start();

// Create an Oscilloscope instance
//   Parameters:
//     - The container in which the oschilloscope gets created
//     - an optional audio-context on which the oscilloscope creates an analyser-node,
//          and can connect to the destination.
//          If no audio-context is specified, a new one will be created created.
var oscilloscope = new Oscilloscope('.js-oscilloscope', audioContext);

// Connect the oscillator-node to the oscilloscope
oscillator.connect(oscilloscope.analyserNode);

// Start the oscilloscope
oscilloscope.start();

API

Properties

Oscilloscope.target // Container

Oscilloscope.width // The oscilloscope' width

Oscilloscope.height // The oscilloscope' height

Oscilloscope.svg // The svg-element in which we draw the oscilloscope

Oscilloscope.wave // The path svg-element which represents the audio wave

Oscilloscope.audioContext // The oscilloscope' audio-context

Oscilloscope.running // Indicates if the oscilloscope is running

Oscilloscope.hasAudio // Indicates if the oscilloscope is connected to the audio-context' destination

Methods

/**
 * Start the oscilloscope
 */
Oscilloscope.start();

/**
 * Stop the oscilloscope
 */
Oscilloscope.stop();

/**
 * Connect the analyser-node to another audio-node
 * @param  {audioNode} node An audio-node to connect to
 */
Oscilloscope.connect(audioNode);

/**
 * Connect the analyser-node to the audio-context' destination
 */
Oscilloscope.toggleAudio();

License

Oscilloscope.js is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].