midi-segmentizer
Advanced tools
@@ -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 @@ } |
+1
-1
| { | ||
| "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 @@ } |
112473
0.01%