+ score_staff_t *staff;
+
+ char *name;
+ double width;
+} score_chord_t;
+
+typedef enum score_clef
+{
+ SCORE_CLEF_G,
+ SCORE_CLEF_TREBLE = SCORE_CLEF_G,
+ SCORE_CLEF_F,
+ SCORE_CLEF_BASS = SCORE_CLEF_F
+} score_clef_t;
+
+/* Allocate a new, empty score object, (with optional ctx as talloc
+ * owner). If ctx is NULL, the caller should call talloc_free on the
+ * score_t* when done with it. Otherwise, the object will be freed
+ * when ctx is freed. */
+score_t *
+score_create (void *ctx);
+
+/* Set an (approximate) staff height. The actual staff height may
+ * differ due to rounding to achieve evenly spaced, sharply rendered
+ * lines. the actual staff height is returned. */
+int
+score_set_staff_height (score_t *score, int height);
+
+/* Set the total width available for drawing the score. */
+void
+score_set_width (score_t *score, int width);
+
+/* Set the key for this score */
+void
+score_set_key (score_t *score, pitch_t key);
+
+/* Add a brace to the score, connecting the given number of staves.
+ *
+ * The staves to be connected are those that will next be added to the
+ * score. */
+void
+score_add_brace (score_t *score, int staves);