WebGL-powered oscilloscope
 
 
 
Go to file
Igor null 74af1e3f3c fixed a few problems with array miscalculations
- scratch buffer is half the required size
- index array was half the required size
- drawElements accepts number of vertices, not number of triangles
2017-03-05 16:17:49 +02:00
demo handle a few corner cases in renderDom 2017-02-12 13:58:37 +02:00
dist fixed a few problems with array miscalculations 2017-03-05 16:17:49 +02:00
shaders make foreground color configurable 2017-01-23 17:19:03 -08:00
woscope-music@f98fb51b38 update woscope-music submodule and readme 2015-11-12 19:16:05 -08:00
.editorconfig add package files and build config 2015-11-09 05:01:44 -08:00
.gitignore add package files and build config 2015-11-09 05:01:44 -08:00
.gitmodules added woscope music submodule 2015-09-04 07:15:17 +00:00
.jshintrc don't throw web audio api error on load 2017-01-23 17:19:03 -08:00
.travis.yml add travis config for continuous integration 2015-11-12 18:14:58 -08:00
LICENSE update license 2017-02-01 23:22:32 -08:00
Readme.md add error callback, refactor nogl error 2017-01-22 16:11:58 -08:00
banner.txt add package files and build config 2015-11-09 05:01:44 -08:00
bower.json Release 0.2.1 2017-02-06 21:37:41 -08:00
index.html add options UI to demo (swap, invert, bloom) 2017-01-23 17:19:03 -08:00
index.js fixed a few problems with array miscalculations 2017-03-05 16:17:49 +02:00
package.json replaced html string templates with DOM templates 2017-02-12 13:30:57 +02:00

Readme.md

woscope: oscilloscope emulator

This is a POC oscilloscope emulator with live demo

Full explanation available on the blag

Code is available under MIT license.

Example

<audio id="myAudio" controls src="woscope-music/khrang.m4a"></audio><br>
<canvas id="myCanvas" width="800" height="800"></canvas>
<script src="dist/woscope.js"></script>
<script>
    var myCanvas = document.getElementById('myCanvas'),
        myAudio = document.getElementById('myAudio');

    woscope({
        canvas: myCanvas,
        audio: myAudio,
        callback: function () { myAudio.play(); },
        error: function (msg) { console.log('woscope error:', msg); }
    });
</script>

Dev commands

npm install      # install dev dependencies
npm run demo     # run demo locally with livereload
npm run build    # lint and build dist files