(Japanese / English)

Meta Event

Format

Binary

$FF $[type] $[length] $[data]
DataTypeValue
typeHexadecimal00, 01, ... 7F
lengthBinary00, 01, ...
dataBinary00, 01, ...

Text

$FF $[type] "[text]" 
DataTypeValue
typeHexadecimal00, 01, ... 7F
textStringsa, aa, aaa, ...

Set Tempo

$FF $51 $03 @[BPM]
DataTypeValue
BPMdecimal4, 5, 6, ... 60000000

Time Signature

$FF $58 $04 [numerator]/[denomirator] $[click][quarter note / 32nd note]
DataTypeValue
numeratordecimal1, 2, ...
denomiratordecimal1, 2, 4, 8, ...
clickHexadecimal00, 01, ...
quarter note / 32nd noteHexadecimal(usualy)08

Key Signature

$FF $59 02 [number of sharps or flats] [minor or major]
DataTypeValue
number of sharps or flatsdecimal... -2, -1, 0, 1, 2, ...
minor or majordecimal(minor)1, (major)0

Example

;; TPQN   : 480

 0 1 0 : $FF $01 "hello world"      ;Text Event
       : $FF $03 "Track Name"       ;Track Name
       : $FF $04 "Instrument Name"  ;Instrument Name
       : $FF $51 $03  @120          ;BPM=120
       : $FF $58 $04  4/4  $1808    ;Time Signature=4/4
       : $FF $59 $02  1 2           ;B minor
 3 1 0 : $FF $2F $00                ;End of Track


Back