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
# stop
() – Stop displaying the spectrum.
src/x-oscilloscope.tsx#L46
+ # Stabilizer
src/stabilizer.ts#L2
# findUpwardsZeroCrossing
(data, start, end)
src/stabilizer.ts#L47 # data
# start
# end
findUpwardsZeroCrossing(data, start, end) =>
# scorePoint
(pt, data)
src/stabilizer.ts#L40 # OscilloscopeElement
src/x-oscilloscope.tsx#L10 # height
= 50
src/x-oscilloscope.tsx#L13 # loop
src/x-oscilloscope.tsx#L24 # stop
()
} # onmounted
# onunmounted
# plotData
= ...
src/x-oscilloscope.tsx#L21 # stabilizer
= ...
src/x-oscilloscope.tsx#L22 # width
= 150
src/x-oscilloscope.tsx#L12 # mounted
($)
src/x-oscilloscope.tsx#L41 # $
# ctx
<T>(ctx) =>
} & __module & {}, "transition"
>>
mounted($) =>
# start
() – Start displaying the spectrum.
src/x-oscilloscope.tsx#L31 # stop
() – Stop displaying the spectrum.
src/x-oscilloscope.tsx#L37
## 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",