]> git.cworth.org Git - scherzo/blobdiff - score.h
Add some color coding of input notes.
[scherzo] / score.h
diff --git a/score.h b/score.h
index 531710348a6a2caad7b1222e622fc8b8d8146cb6..d1f0406725944e2c66e3132b169bc3541bf8e1a9 100644 (file)
--- 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 *