X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=score.h;h=d1f0406725944e2c66e3132b169bc3541bf8e1a9;hb=590c3f4f3b3ab138c67439d71be13f82446b69d4;hp=531710348a6a2caad7b1222e622fc8b8d8146cb6;hpb=3f6a9cdbf572c83c323f40cc66e301bdf128f076;p=scherzo diff --git a/score.h b/score.h index 5317103..d1f0406 100644 --- a/score.h +++ b/score.h @@ -132,6 +132,12 @@ typedef struct score_note score_pitch_t pitch; int octave; score_duration_t duration; + + struct { + double r; + double g; + double b; + } color; } score_note_t; typedef enum score_clef @@ -189,6 +195,12 @@ score_add_note (score_staff_t *staff, void score_remove_note (score_note_t *note); +void +score_set_note_color_rgb (score_note_t *note, + double r, + double g, + double b); + /* Return the first note on the given staff with the given pitch, * octave, and durations. Returns NULL if no match is found. */ score_note_t *