🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

midi-segmentizer

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

midi-segmentizer - npm Package Compare versions

Comparing version
2.2.1-0
to
2.2.1-1
+3
-3
dist/segmentizer.js

@@ -237,6 +237,6 @@ "use strict";

let res = null;
if (addingLyric && lyric) {
if (addingLyric) {
for (const note of notes) {
if (note.id === addingLyric) {
tempNotes.push(Object.assign(Object.assign({}, note), { lyric }));
tempNotes.push(Object.assign(Object.assign({}, note), { lyric: lyric || undefined }));
res = note;

@@ -368,3 +368,3 @@ }

velocity: 1,
lyric: null, // TODO: fix
lyric: note.lyric,
});

@@ -371,0 +371,0 @@ }

{
"name": "midi-segmentizer",
"version": "2.2.1-0",
"version": "2.2.1-1",
"description": "break a simple midi file into monophonic segments",

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

@@ -279,6 +279,6 @@ import React, { useEffect, useRef, useState } from "react";

let res: DrawableNote | null = null;
if (addingLyric && lyric) {
if (addingLyric) {
for (const note of notes) {
if (note.id === addingLyric) {
tempNotes.push({ ...note, lyric });
tempNotes.push({ ...note, lyric: lyric || undefined });
res = note;

@@ -449,3 +449,3 @@ } else {

velocity: 1,
lyric: null, // TODO: fix
lyric: note.lyric,
});

@@ -452,0 +452,0 @@ }