Socket
Socket
Sign inDemoInstall

yjmidi

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yjmidi - npm Package Compare versions

Comparing version 2.4.1 to 2.5.0

2

package.json
{
"name": "yjmidi",
"version": "2.4.1",
"version": "2.5.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "description": "midi/yjk file parser/player",

@@ -14,3 +14,3 @@ const EventEmitter = require('events');

loadMidi(data){
loadMidi(data,opts = {}){
if(this.playing) this.pause();

@@ -22,6 +22,6 @@ if(data instanceof MidiFile){

}
this.prepare();
this.prepare(opts);
}
getPoly(port){
/*getPoly(port){
return this.calcPolyOfAllTracks();

@@ -31,3 +31,3 @@ if(port !== 0){

}
}
}*/

@@ -68,3 +68,7 @@ calcPoly(portNum = 0,allPorts = false){

prepare(){
prepare(opts){
opts = Object.assign({
dontSendMidiReset:false
},opts || {});
this.playms = 0;

@@ -74,3 +78,3 @@ this.lastplayms = 0;

this.tempo = 1; // ๋ฐฐ์† ์„ค์ •
this.resetNotes(true);
if(!opts.dontSendMidiReset) this.resetNotes(true);

@@ -77,0 +81,0 @@ // reset sysex๊ฐ€ ์—†๋Š” midiํŒŒ์ผ์˜ ๊ฒฝ์šฐ gs reset์„ ๊ธฐ๋ณธ์œผ๋กœ ์ ์šฉํ•˜๋„๋ก ์„ค์ •

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