Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
audio-aggregate-param
Advanced tools
Aggregate multiple AudioParam instances into a single object
Group multiple AudioParam
s into a single aggregate parameter for centralised manipulation.
$ npm install audio-aggregate-param
// some code yadda yadda
var osc1 = context.createOscillator();
var osc2 = context.createOscillator();
var osc3 = context.createOscillator();
var AudioAggregateParam = require('audio-aggregate-param');
var param = new AudioAggregateParam();
param.add(osc1.frequency);
param.add(osc2.frequency, 2);
param.add(osc3.frequency, 4);
// set frequency of osc1, osc2 and osc3
// osc1 = 220, osc2 = 440, osc3 = 880
param.cancelScheduledValues(context.currentTime);
param.setValueAtTime(220, context.currentTime);
// ramp oscillator frequencies over the next 2 seconds
// osc -> 440, osc2 -> 880, osc3 -> 1760
param.exponentialRampToValueAtTime(context.currentTime + 2, 440);
osc1.connect(context.destination);
osc2.connect(context.destination);
osc3.connect(context.destination);
osc1.start(0);
osc2.start(0);
osc3.start(0);
aggregate = new AudioAggregateParam()
aggregate.add(param, [scaleFactor])
Add a new AudioParam
instance to this aggregate. If specified, all values assigned to this parameter - either directly or via one of the ramping/curve functions - will be multiplied by scaleFactor
.
AudioParam
methodsThe following are proxied to the corresponding method of each aggregated AudioParam
:
aggregate.value = newValue
aggregate.setValueAtTime(value, startTime)
aggregate.linearRampToValueAtTime(value, endTime)
aggregate.exponentialRampToValueAtTime(value, endTime)
aggregate.setTargetAtTime(timeConstant, target, startTime)
aggregate.setValueCurveAtTime(values, startTime, duration)
aggregate.cancelScheduledValues(time)
ISC
FAQs
Aggregate multiple AudioParam instances into a single object
The npm package audio-aggregate-param receives a total of 0 weekly downloads. As such, audio-aggregate-param popularity was classified as not popular.
We found that audio-aggregate-param 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.