return NULL;
/* Also sets space_height and line_width */
- score_set_staff_height (score, 24);
+ score_set_staff_height (score, 76);
/* Just to have some nominal width. */
- score->width = 800;
+ score->width = 1000;
score->braces = NULL;
score->num_braces = 0;
}
}
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0); /* black */
+ cairo_set_source_rgb (cr,
+ note->color.r,
+ note->color.g,
+ note->color.b);
cairo_show_glyphs (cr, ¬e_glyph, 1);
cairo_restore (cr);
note->octave = octave;
note->duration = duration;
+ note->color.r = 0.0;
+ note->color.g = 0.0;
+ note->color.b = 0.0;
+
line = _score_note_to_line (staff, note);
if (line < 0) {
int lines = (int) (- line);
}
}
+void
+score_set_note_color_rgb (score_note_t *note,
+ double r,
+ double g,
+ double b)
+{
+ note->color.r = r;
+ note->color.g = g;
+ note->color.b = b;
+}
+
score_note_t *
score_staff_find_note (score_staff_t *staff,
score_pitch_t pitch,