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 5.2.1 to 5.3.0

2

lib/drums/hi-hat.js

@@ -62,3 +62,3 @@ // FROM: https://raw.githubusercontent.com/itsjoesullivan/hi-hat/master/index.js

gain.gain.setValueAtTime(0.00001, when);
gain.gain.exponentialRampToValueAtTime(1, when + 0.02);
gain.gain.exponentialRampToValueAtTime(1, when + 0.005);
gain.gain.exponentialRampToValueAtTime(0.3, when + 0.03);

@@ -65,0 +65,0 @@ gain.gain.exponentialRampToValueAtTime(0.00001, when + duration);

// FROM: https://raw.githubusercontent.com/itsjoesullivan/snare/master/index.js
var NoiseBuffer = require('noise-buffer');
var noiseBuffer = NoiseBuffer(1);

@@ -12,3 +13,2 @@ module.exports = function(context, parameters) {

var noiseBuffer = NoiseBuffer(1);

@@ -69,3 +69,3 @@ return function() {

noiseGain.gain.setValueAtTime(0.00001, when);
noiseGain.gain.exponentialRampToValueAtTime(Math.max(0.000001, parameters.snappy / 127), when + 0.01);
noiseGain.gain.exponentialRampToValueAtTime(Math.max(0.000001, parameters.snappy / 127), when + 0.005);
noiseGain.gain.exponentialRampToValueAtTime(0.00001, when + 0.1 + duration);

@@ -75,3 +75,3 @@ noise.start(when);

oscsGain.gain.setValueAtTime(0.00001, when);
oscsGain.gain.exponentialRampToValueAtTime(2 * Math.max((parameters.tone / 127), 0.0001), when + 0.01);
oscsGain.gain.exponentialRampToValueAtTime(2 * Math.max((parameters.tone / 127), 0.0001), when + 0.005);
oscsGain.gain.exponentialRampToValueAtTime(0.00001, when + duration);

@@ -78,0 +78,0 @@

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

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

@@ -24,3 +24,3 @@ var computed = require('../lib/computed-next-tick')

tone: Param(context, 0.5), // ratio
decay: Param(context, 0.5), // seconds
decay: Param(context, 0.2), // seconds
snappy: Param(context, 0.5), // ratio

@@ -27,0 +27,0 @@ amp: Param(context, 0.4)

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