Lab 14

This lab is due on Friday.

For each of the following, formulate a data definition, including the comment and the struct. Provide two examples of each.

  1. A chord-pair, representing two tones played together, has two midi note numbers and a duration in frames

  2. A chord, representing a set of tones played together, has a list of midi note numbers and a duration in frames

  3. A key-signature, representing a key signature, has a set of seven strings, indicating whether the given note in the scale is "sharp", "natural", or "flat".

  4. A chord-sequence, representing a sequence of chords, contains a list of chords and a volume.