New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

audio-slot

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-slot - npm Package Compare versions

Comparing version 3.6.0 to 3.7.0

13

modulators/envelope.js

@@ -16,3 +16,3 @@ var Observ = require('observ')

release: Property(0),
value: Property(1) //Param(context, multiplier.gain, 1)
value: Param(context, 1)
})

@@ -28,5 +28,6 @@

obs.triggerOn = function(at){
at = at||context.audio.currentTime
at = Math.max(at, context.audio.currentTime)
var peakTime = at + (obs.attack() || 0.005)
var value = obs.value.getValueAt(at+peakTime)

@@ -41,3 +42,3 @@ if (obs.release() && obs.attack()){

broadcast({
value: obs.value(),
value: value,
at: at,

@@ -48,3 +49,3 @@ duration: obs.attack(),

} else {
broadcast({ value: obs.value(), at: at })
broadcast({ value: value, at: at })
}

@@ -54,3 +55,3 @@

broadcast({
value: obs.sustain()*obs.value(),
value: obs.sustain()*value,
at: peakTime,

@@ -63,3 +64,3 @@ duration: obs.decay(),

obs.triggerOff = function(at){
at = at||context.audio.currentTime
at = Math.max(at, context.audio.currentTime)

@@ -66,0 +67,0 @@ // release

{
"name": "audio-slot",
"version": "3.6.0",
"version": "3.7.0",
"description": "Web Audio API FRP wrapper for creating, routing, and triggering AudioNodes.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc