fbpx
Skip to main content

MIDI Forum

Which items can be ...
 
Notifications
Clear all

Which items can be variable length?

3 Posts
2 Users
0 Reactions
5,504 Views
Jason
Posts: 441
Honorable Member
Topic starter
 

Up to this point, I have only been reading in delta times using variable length values in my program. I see glancing through documentation that lengths of other things can also be represented with a variable length value.

Which items should I be checking for a vlv with? I don't think I've run in to any issues with it because generally most thing will fall in the less than 128 range, but I want to do everything properly, so will need to add in scanning any other vlvs correctly besides delta times.

 
Posted : 18/06/2021 4:35 pm
Bavi_H
Posts: 267
Reputable Member
 

Opening the Standard MIDI Files specification PDF and searching for instances of the word "variable", I confirmed that the following items are variable-length quantities:

• the delta-time before each event

• the length value in System Exclusive events (F0) or System Exclusive packet/Escaped events (F7):

F0
F7

• the length value in all meta events:

FF

 
Posted : 18/06/2021 7:07 pm
Jason
Posts: 441
Honorable Member
Topic starter
 

My reply seems to have vanished?

Anyway, thanks, I will be adding these in. Every little bit brings me closer to finally being done :p

 
Posted : 25/06/2021 7:59 pm
Share: