X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=score.h;h=ea363538b95d47a5c75bf4dc78882f017a9797df;hb=1cfc79bb867bfa72e9982b79a65bd353bd120ee9;hp=fe627b8ad401ab489bd073ee47adcd530b6c8bd5;hpb=1fe478f5aaa4f8ebff2a3f7771809c3d1aaa5ef4;p=scherzo diff --git a/score.h b/score.h index fe627b8..ea36353 100644 --- a/score.h +++ b/score.h @@ -140,6 +140,14 @@ typedef struct score_note } color; } score_note_t; +typedef struct score_chord +{ + score_staff_t *staff; + + char *name; + double width; +} score_chord_t; + typedef enum score_clef { SCORE_CLEF_G, @@ -191,7 +199,19 @@ score_add_note (score_staff_t *staff, int octave, score_duration_t); -/* Remove the given note from the given staff. */ +/* Add a chord symbol of 'name' to a staff. + * + * For now, the chord symbols are free-form names. + */ +score_chord_t * +score_add_chord (score_staff_t *staff, + const char * name); + +/* Remove the given chord from its staff. */ +void +score_remove_chord (score_chord_t *chord); + +/* Remove the given note from its staff. */ void score_remove_note (score_note_t *note);