fbpx
Skip to main content

MIDI Forum

Key Signature messa...
 
Notifications
Clear all

Key Signature message

3 Posts
3 Users
0 Reactions
5,244 Views
tom
 tom
Posts: 1
New Member
Topic starter
 

I am trying to find information about the intended purpose/use of the Key Signature Meta Message. How is it to be used? Is there a track number associated with this message?

 
Posted : 20/08/2021 6:14 pm
Geoff
Posts: 1047
Noble Member
 

As far as midi is concerned, this message doesn't do anything. It's there for information only. However, some software that seeks to display the information in the midi file will make use of this information, and this may affect how the musical information is displayed.

It is usual to put this item in the first track.

As per the SMF spec, this message comprises 5 bytes.

FF, 59, 02 signify the actual item, and there are two bytes of data.

The first byte of data is in the range -7 to 0 to 7 where a minus # is the number of flats, 0 means it's the key of C, and + numbers are the number of sharps. The second data item is either 0 or 1, where 0 indicates Major, and 1 signifies Minor key.

Geoff

 
Posted : 21/08/2021 4:46 am
Pedro Lopez-Cabanillas
Posts: 154
Estimable Member
 

[quotePost id=10375]I am trying to find information about the intended purpose/use of the Key Signature Meta Message. How is it to be used? Is there a track number associated with this message?[/quotePost]

This message is useful for musical score editors/notation programs, and for any other software interested in this particular notation feature.

In SMF type 1 files, all metadata messages, like any other message, belongs to one track.

 
Posted : 22/08/2021 4:46 am
Share: