You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Error Error: TNaN is not a valid duration.
at getTickDuration (e:\chongchong-free-master\node_modules\midi-writer-js\build\index.js:355:17)
at NoteEvent (e:\chongchong-free-master\node_modules\midi-writer-js\build\index.js:794:31)
at writeMIDI (e:\chongchong-free-master\libCCMZ.js:148:20)
at writeAndConvert (e:\chongchong-free-master\functions.js:26:17)
at <anonymous> (e:\chongchong-free-master\libCCMZ.js:56:17)
如题,具体报错如下
原因是
MidiWriter.NoteEvent
的mDuration
为undefined
进一步向上溯源
因为在此处
if (tick === thisTick)
为假,所以直接跳过了mDuration
的赋值因为我看不懂这段代码为何要这样计算所以也没法改,除了这位老师的作品外又测试了其他几首,复杂一点的作品速度就有问题了
如果作者能补完核心代码的注释那就好了
The text was updated successfully, but these errors were encountered: