Skip to content

Getting key signature, time signature and different instruments from a midifile #159

Answered by melanchall
GardSveen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

First of all, there are no such things as treble and bass staff in a MIDI file. MIDI file contains track chunks. We can get of course Key Signature and Time Signature events (there can be multiple such events in a MIDI file) and then you can decide by yourself where treble staff and bass one.

Please give me a MIDI file you want to retrieve the info from and I'll be able to say more. And also please say where bass and treble staffs in the file.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@GardSveen
Comment options

Answer selected by GardSveen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Just question about the library
2 participants