Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
complex-analyser-node
Advanced tools
WebAudio ComplexAnalyserNode using AudioWorklet and WebAssembly.
import { ComplexAnalyserNode } from './complex-analyser-node.js';
const audioContext = new AudioContext();
// ComplexAnalyserNode
// input count = 1
// channel count = 2
// ch1 = In-phase
// ch2 = Quadrature
await ComplexAnalyserNode.addModule(audioContext);
const complexAnalyserNode = new ComplexAnalyserNode(audioContext, {
fftSize: 4096
});
const stream = await navigator.mediaDevices.getUserMedia({
audio: {
channelCount: {ideal: 2, min: 2},
/* required for 2ch input input */
echoCancelation: false,
noiseSuppression: false,
audioGainControl: false,
}
});
const mediaStreamSource = audioContext.createMediaStreamSource(stream);
mediaStreamSource.connect(complexAnalyserNode);
const gain = audioContext.createGain();
gain.gain.value = 0;
complexAnalyserNode.connect(gain);
await complexAnalyserNode.init();
gain.connect(audioContext.destination);
const I = new Float32Array(complexAnalyserNode.fftSize);
const Q = new Float32Array(complexAnalyserNode.fftSize);
const buffer = new Float32Array(this.complexAnalyserNode.fftSize);
const render = () => {
complexAnalyserNode.getFloatTimeDomainData(I, 0);
complexAnalyserNode.getFloatTimeDomainData(Q, 1);
drawWaveForms([I, Q]);
complexAnalyserNode.getFloatFrequencyData(buffer);
drawSpectrum(buffer);
requestAnimationFrame(render);
};
requestAnimationFrame(render);
init
cargo install cargo-make
cargo make build
run demo (just run http-server on ./site)
npm run serve
FAQs
WebAudio ComplexAnalyserNode (FFT for I/Q signal)
The npm package complex-analyser-node receives a total of 2 weekly downloads. As such, complex-analyser-node popularity was classified as not popular.
We found that complex-analyser-node 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.