![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
audio-param-transform
Advanced tools
Apply multiple transforms with custom functions to Web Audio API AudioParams.
Apply multiple transforms with custom functions to Web Audio API AudioParams.
$ npm install audio-param-transform
var extendTransform = require('audio-param-transform')
Pass in the AudioParam you wish to add a transform()
method to and the relevant AudioContext.
Returns the extended param.
Returns an instance of TransformAudioParam applied to the target AudioParam which works the same as the base AudioParam, except applying the specified func(a, b)
to all values, ramps and curves.
If you do not specify a function, the specified value for this transform will override all previous transforms (if any).
Creating a transpose param.
var extendTransform = require('audio-param-transform')
var audioContext = new AudioContext()
var oscillator = audioContext.createOscillator()
oscillator.connect(audioContext.destination)
// create a base transform in case we want to automate the two independently
var baseFrequencyParam = oscillator.frequency.transform()
// now add the transpose transform
var transposeParam = oscillator.frequency.transform(transpose)
// modulate the transpose up an octave then down again each second
var on = false
setInterval(function(){
if (on){ // ramp up
transposeParam.linearRampToValueAtTime(12, audioContext.currentTime + 0.3)
} else { // and back again
transposeParam.linearRampToValueAtTime(0, audioContext.currentTime + 0.3)
}
on = !on
}, 1000)
function transpose(a,b){
return a * Math.pow(2, (b || 0) / 12)
}
FAQs
Apply multiple transforms with custom functions to Web Audio API AudioParams.
The npm package audio-param-transform receives a total of 3 weekly downloads. As such, audio-param-transform popularity was classified as not popular.
We found that audio-param-transform 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.