Add helper functions to add annotation data for event and range annotations with secondary values, add scale degree to melody, key to harmony, and measure number to beats annotations, all as secondary values.
Also add main function with argument parsing etc.