An open API service indexing awesome lists of open source software.

https://github.com/samccone/wavesvg

wavesvg
https://github.com/samccone/wavesvg

Last synced: about 1 year ago
JSON representation

wavesvg

Awesome Lists containing this project

README

          

wave svg
----------------

#### wavesvg

```js
new waveSvg({
buffer: Audiobuffer,
maxHeight: 300,
width: 1300, //
pixelsPerSecond: 200, //
appendTo: dom node, //
max: 0.2 //
workerPath: "path to worker" //
downSample: 16 // -- higher num for faster render
});
```
##### interface

```js
instance.updatePixelsPerSecond(n);
instance.updateMaxScalar(n);
instance.updateDownSampleRate(n);
```

#### streamsvg

```js
navigator.webkitGetUserMedia({audio: true}, function(d) {
new streamSvg({
maxHeight: 300,
pixelsPerSecond: 200,
stream: d,
max: 2
});
});
```

##### interface

```js
// you can also not pass a stream and just call
instance.onstream(buffer);
```

#### To Dev
```
cake watch
```

#### To Build From Source
```
cake build
```