X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=score.h;h=d1f0406725944e2c66e3132b169bc3541bf8e1a9;hb=4676dbf9aedc08f3b7c75e71db4e82b666cc0cc1;hp=1e74b1abbe70ad702f4559a0244d797390b25519;hpb=16d07286a5344861bd26ad97e97612d3806d1da7;p=scherzo diff --git a/score.h b/score.h index 1e74b1a..d1f0406 100644 --- a/score.h +++ b/score.h @@ -128,9 +128,16 @@ typedef enum score_duration typedef struct score_note { + score_staff_t *staff; 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 @@ -179,14 +186,20 @@ score_add_staff (score_t *score, score_clef_t clef); * QUARTER=4, EIGHTH=8, etc.) */ score_note_t * -score_staff_add_note (score_staff_t *staff, - score_pitch_t pitch, - int octave, - score_duration_t); +score_add_note (score_staff_t *staff, + score_pitch_t pitch, + int octave, + score_duration_t); /* Remove the given note from the given staff. */ void -score_staff_remove_note (score_staff_t *staff, score_note_t *note); +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. */