question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Channel 10 incorrectly loaded as drums

See original GitHub issue

midiconvert used by Magenta.js seems to consider both channel 9 and 10 as drums (as per General MIDI 2), so when loading a MIDI file with urlToNoteSequence, notes in channel 10 will have isDrum == true. This is inconsistent with the behavior of Magenta, where only channel 9 is loaded as drums (as per General MIDI).

Among other things, this means that MIDI files created with Magenta and containing more than 9 non-drum tracks will be loaded incorrectly in Magenta.js.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tambiencommented, Nov 3, 2019

not sure how that got in there, but just changed it to only channel 9. fix should be live in @tonejs/midi@2.0.11

0reactions
cifkaocommented, Feb 21, 2020

magenta/music seems to use midiconvert for loading the MIDI files, which, I guess, is an older version of Tonejs/Midi? So is it really fixed? (I haven’t tested it recently.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

get rid of the channel 10 drum track convention - PG Music
If you rechannel your track to a different channel (not 10), Coyote will play using that channel and it won't be drums. And...
Read more >
Imported MIDI Drums - Channel 10 - Can't hear - Logic Pro Help
I imported a midi file that I downloaded from the internet. 3 drum tracks on Channel 10, 11 instrument tracks on Channel 1....
Read more >
Sending MIDI Drums - Channel 10 - to VSTi and GM sf2
I loaded the synthfont vsti and now have no issues with the playing on drums on channel 10 when using synthfont. Still have...
Read more >
Launchpad Pro Mk3 Drum Mode sending to wrong MIDI channel
On my Launchpad Pro Mk3, I have note mode set to send to MIDI channel 1. I have a drum rack loaded in...
Read more >
Problem with drums midi files import - MuseScore
But in the future, probably best to just stick with the General MIDI standard - use channel 10 for percussion, and the pitch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found