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
* 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. */