Syntax of the .key File Format

First Command:
#dofs N
    d1 d2 d3 ... dn

This gives the number of degrees of freedom, followed by the names of the variables with which they are to be associated.

Second Command:
#duration t

This gives the length of time (in seconds) over which the values have been sampled.

Third Command:
#frames f

This is the frame/sample number.

The Rest:
The sample values for the keys. The values are listed in groups of N (the number of degrees of freedom read from the first command), where the first group corresponds to values of all the keys at the first frame, the second group corresponds to the values of all the keys at the second frame, etc. Within the group the values are given in the order that they were listed in the first command.