Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Error: TNaN is not a valid duration #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julienchauveau
Copy link

This fixes #8 issue.

/home/pi/chongchong-free/node_modules/midi-writer-js/build/index.js:355
throw new Error(duration + ' is not a valid duration.');
^

Error: TNaN is not a valid duration.
at Function.getTickDuration (/home/pi/chongchong-free/node_modules/midi-writer-js/build/index.js:355:17)
at new NoteEvent (/home/pi/chongchong-free/node_modules/midi-writer-js/build/index.js:794:31)
at Object.writeMIDI (/home/pi/chongchong-free/libCCMZ.js:145:20)
at writeAndConvert (/home/pi/chongchong-free/functions.js:26:17)
at /home/pi/chongchong-free/libCCMZ.js:56:17

/home/pi/chongchong-free/node_modules/midi-writer-js/build/index.js:355
          throw new Error(duration + ' is not a valid duration.');
                ^

Error: TNaN is not a valid duration.
    at Function.getTickDuration (/home/pi/chongchong-free/node_modules/midi-writer-js/build/index.js:355:17)
    at new NoteEvent (/home/pi/chongchong-free/node_modules/midi-writer-js/build/index.js:794:31)
    at Object.writeMIDI (/home/pi/chongchong-free/libCCMZ.js:145:20)
    at writeAndConvert (/home/pi/chongchong-free/functions.js:26:17)
    at /home/pi/chongchong-free/libCCMZ.js:56:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

可能不支持坐山听风老师的所有作品 Uncaught Error Error: TNaN is not a valid duration.
1 participant