
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@teropa/oscilloscope
Advanced tools
Visualises the waveform of any Web Audio node. Uses simple edge triggering to stabilise the waveform.
npm install @teropa/oscilloscope
ES Modules, CommonJS modules, and an UMD build are all provided.
Create an oscilloscope and attach it to an existing <canvas>
element, then connect it to an AudioNode and start visualising:
import { Oscilloscope } from "@teropa/oscilloscope";
let oscilloscope = new Oscilloscope(myCanvasElement, audioContext, {
fftSize: 4096,
});
oscilloscope.connect(myAudioNode);
oscilloscope.start();
The canvas visualisatioon will be sized according to the natural (CSS-based) size of the canvas.
The third argument to the constructor supports the following options:
fftSize
- number - the FFT size of the backing AnalyserNode. This affects how large the visualised time window is.edgeThreshold
- number - the threshold that will trigger the oscilloscope's renderingedgeTrigger
- rising
or falling
- whether the edge triggering occurs when the signal rises above, or drops below, the edge threshold.backgroundColor
- string - the (CSS) color to use for the visualisation backgroundlineColor
- string - the (CSS) color to use for the signal linelineWidth
- number - how thick to draw the signal lineFAQs
An oscilloscope for Web Audio nodes
The npm package @teropa/oscilloscope receives a total of 4 weekly downloads. As such, @teropa/oscilloscope popularity was classified as not popular.
We found that @teropa/oscilloscope demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.