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

Track names cause merging to break #129

Open
xp2-882030kgz010602 opened this issue Dec 3, 2023 · 0 comments
Open

Track names cause merging to break #129

xp2-882030kgz010602 opened this issue Dec 3, 2023 · 0 comments

Comments

@xp2-882030kgz010602
Copy link

I don't know what's going on here.

var track1=new MidiWriter.Track();
track1.addEvent(new MidiWriter.NoteEvent({pitch:["A3"],duration:'4'}));
var track2=new MidiWriter.Track();
//Uncommenting the below line causes the tracks to be merged incorrectly
//track2.addTrackName("name");
track2.addEvent(new MidiWriter.NoteEvent({pitch:["A3"],duration:'4',wait:'T256'}));
track1.mergeTrack(track2);
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