X-Git-Url: https://git.cworth.org/git?p=scherzo;a=blobdiff_plain;f=score.h;h=d1f0406725944e2c66e3132b169bc3541bf8e1a9;hp=531710348a6a2caad7b1222e622fc8b8d8146cb6;hb=6d1dd804ce022f0fbc3cebc853edcab5c81d5abc;hpb=dd9b9d386cfb63002f3e8d1521b25abfa58b76e5 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 *