struct NBeat { struct NBeat *next; long time; /* When this beat starts. */ char type; /* Ignore. */ char triplet; /* This holds triplet notes. */ char downbeat; /* This lands on a downbeat. */ char empty; /* Nothing in this, just a rest. */ unsigned short index; /* Index into measure. */ unsigned short length; /* Length of beat. */ unsigned short grain; /* The smallest fraction. */ };