-
Notifications
You must be signed in to change notification settings - Fork 117
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
Demo code stale? 'sustain' is not an object, not an array #73
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hit me, @tambien. |
@drone1 is this still an issue? i think the examples have been updated since you originally posted this. |
"Basic example" from the README.md – the code has not changed:
I just tested the current repo with my same data. Now, instead of I guess that makes sense if there is no control change data. So, expected? Node v10.4.1. Thanks. |
It’s a shorthand function to convert JSON to a string.
…On Thu, Dec 19, 2019 at 13:50 KarrascoJena ***@***.***> wrote:
Hi, @drone1 <https://github.com/drone1> what is the meaning of
"json(note)" in your code?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#73?email_source=notifications&email_token=ABQIEPGTR62Z2PGDAUORU23QZNU2RA5CNFSM4HOPHMD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHJQE7Q#issuecomment-567476862>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIEPFXTIMLDOUK6HEMA2TQZNU2RANCNFSM4HOPHMDQ>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello and thanks for the cool project.
I'm parsing this file: https://www.dropbox.com/s/hecoqfrjok5fsjs/KICK1.mid?dl=1
Exported from Ableton 10 via "Export to MIDI file..." or whatever.
It's simple MIDI for a kick drum, all running on a single note w/ velocity changes, but nothing else, I believe.
In your demo code, you've got something like this:
But for me, track.controlChanges.sustain is an object (empty, or
{}
), and not iterable via forEach().I'm guessing the sample code is simply out of date, but you can inspect the MIDI file I've provided if you want, or feel free to let me know if I can provide more info.
track.notes
is an array and forEach() works fine. I can print note data without issue.Full code:
The text was updated successfully, but these errors were encountered: