diff --git a/README.md b/README.md index 5994a74..06ad132 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

-x-oscilloscope +x-oscilloscope

@@ -27,14 +27,14 @@ import { OscilloscopeElement } from 'x-oscilloscope' customElements.define('x-oscilloscope', OscilloscopeElement) document.body.innerHTML = `
- +
` -const ctx = new AudioContext({ sampleRate: 44100, latencyHint: 'playback' }) +const ctx = new AudioContext({ sampleRate: 44100, latencyHint: 0.08 }) const analyser = ctx.createAnalyser() -analyser.fftSize = 2048 +analyser.fftSize = 8192 analyser.smoothingTimeConstant = 0 analyser.maxDecibels = 0 analyser.minDecibels = -100 @@ -64,11 +64,11 @@ if (ctx.state !== 'running') ## API -

# OscilloscopeElement src/x-oscilloscope.tsx#L7

+

# Stabilizer src/stabilizer.ts#L2
# OscilloscopeElement src/x-oscilloscope.tsx#L10

## Credits -- [mixter](https://npmjs.org/package/mixter) by [stagas](https://github.com/stagas) – A Web Components framework. +- [sigl](https://npmjs.org/package/sigl) by [stagas](https://github.com/stagas) – Web framework - [x-plot](https://npmjs.org/package/x-plot) by [stagas](https://github.com/stagas) – A Web Component that plots zoomable and pannable waveforms. ## Contributing diff --git a/package.json b/package.json index ca925c5..5ff43d3 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "stagas", "short": "stagas/x-oscilloscope", "description": "Audio oscilloscope visualizer Web Component", - "version": "1.0.1", + "version": "2.0.0", "license": "MIT", "repository": { "type": "git",