Contents page

Rules for Tools/struct KeyEvent

struct KeyEvent

KeyEvents represent Key and Scale/Mode in the Song Parameters. These map onto the Event structure. Notice that the scales are defined with the Chord structure.

struct KeyEvent {
    struct KeyEvent *next;      /* The next event in the list. */
    long time;                  /* When this event occurs. */
    char type;                  /* What type of event. */
    unsigned char root;         /* Root note. */
    char flats;                 /* Display the key with flats. */
    char pad;
    unsigned long scaleid;      /* Scale id. */
    struct Chord *scale;        /* Pointer to Scale definition. */