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

I get two tracks instead of one. The first has the notes, the second the track name. #14

Open
bcichowlas opened this issue May 29, 2022 · 0 comments

Comments

@bcichowlas
Copy link

bcichowlas commented May 29, 2022

Hi! I really like this project. Is it still being updated? Is there a newer version somewhere?

Here's my situation
Random16s.mid.zip

That MIDI file has only one track, but MidiParser makes two tracks out of it, putting the notes on the first track and the name on the second track. That causes problems for apps that try to find notes based on the name of the track.

Oddly, if you load the same file into the current version of Logic Pro, it splits it into two files as well. However, both the notes and the track name are on the second track in the display. However, it's event list puts the name on the upper track, even though it displays on the bottom.

I wasn't trying to create a difficult track and I've spent a day or so just trying to figure out what is going on (and not really successful at that). I created the track by simply cutting two measures of a drum pattern sample track and pasting it to a new track in Logic Pro at the beginning. Then I erased everything else and wound up with this.

So possibly it is a very odd case and unimportant. In any event, it would be great to hear the the project is still active. I'm using it for an iPad music app that I am designing and building now. Thanks.

(later).After looking at the source code of this repository, I see that I think it relies on Apple's Midi Sequence classes in AudioToolbox to do the actual parsing. If so, the problem must be within there. That also may explain why I saw some similar problems with Logic Pro handling the same type of file.

I need to kludge my way through this for my own app somehow. So currently I am trying an awful write around where, if I look up the name and find it on track 1, but track 1 has no note events, I use track 0 instead. It actually seems to work so far, but it feels like opening a can of worms.

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

No branches or pull requests

1 participant