Socket
Socket
Sign inDemoInstall

@ryohey/wavelet

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ryohey/wavelet - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

5

dist/index.js

@@ -58,3 +58,6 @@ const audioDataToAudioBuffer = (audioData) => {

getSamples(bank, instrument, pitch, velocity) {
const parameters = this.sampleParameters?.[bank]?.[instrument]?.[pitch]?.filter((s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]) ?? [];
const instrumentParameters = this.sampleParameters[bank]?.[instrument] ??
this.sampleParameters[0]?.[instrument] ?? // fallback to bank 0
null;
const parameters = instrumentParameters?.[pitch]?.filter((s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]) ?? [];
const samples = [];

@@ -61,0 +64,0 @@ for (const parameter of parameters) {

@@ -50,3 +50,6 @@ (function () {

getSamples(bank, instrument, pitch, velocity) {
const parameters = this.sampleParameters?.[bank]?.[instrument]?.[pitch]?.filter((s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]) ?? [];
const instrumentParameters = this.sampleParameters[bank]?.[instrument] ??
this.sampleParameters[0]?.[instrument] ?? // fallback to bank 0
null;
const parameters = instrumentParameters?.[pitch]?.filter((s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]) ?? [];
const samples = [];

@@ -53,0 +56,0 @@ for (const parameter of parameters) {

@@ -68,3 +68,6 @@ (function () {

getSamples(bank, instrument, pitch, velocity) {
const parameters = this.sampleParameters?.[bank]?.[instrument]?.[pitch]?.filter((s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]) ?? [];
const instrumentParameters = this.sampleParameters[bank]?.[instrument] ??
this.sampleParameters[0]?.[instrument] ?? // fallback to bank 0
null;
const parameters = instrumentParameters?.[pitch]?.filter((s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]) ?? [];
const samples = [];

@@ -71,0 +74,0 @@ for (const parameter of parameters) {

22

package.json
{
"name": "@ryohey/wavelet",
"version": "0.7.2",
"version": "0.7.3",
"description": "A wavetable synthesizer that never stops the UI thread created by AudioWorklet.",

@@ -20,13 +20,13 @@ "main": "dist/index.js",

"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^10.0.1",
"@types/audioworklet": "^0.0.36",
"@types/jest": "^29.2.4",
"jest": "^29.3.1",
"rollup": "^3.7.5",
"ts-jest": "^29.0.3",
"tslib": "^2.4.1",
"typescript": "^4.9.4"
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/audioworklet": "^0.0.55",
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"rollup": "^4.18.0",
"ts-jest": "^29.1.4",
"tslib": "^2.6.3",
"typescript": "^5.4.5"
}
}

@@ -51,4 +51,9 @@ import { SampleParameter, SampleRange } from "../SynthEvent"

): Sample[] {
const instrumentParameters =
this.sampleParameters[bank]?.[instrument] ??
this.sampleParameters[0]?.[instrument] ?? // fallback to bank 0
null
const parameters =
this.sampleParameters?.[bank]?.[instrument]?.[pitch]?.filter(
instrumentParameters?.[pitch]?.filter(
(s) => velocity >= s.velRange[0] && velocity <= s.velRange[1]

@@ -55,0 +60,0 @@ ) ?? []

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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