]> git.cworth.org Git - scherzo/blobdiff - score.h
Re-order the signatures array for the seventh chords
[scherzo] / score.h
diff --git a/score.h b/score.h
index fe627b8ad401ab489bd073ee47adcd530b6c8bd5..ea363538b95d47a5c75bf4dc78882f017a9797df 100644 (file)
--- a/score.h
+++ b/score.h
@@ -140,6 +140,14 @@ typedef struct score_note
     } color;
 } score_note_t;
 
+typedef struct score_chord
+{
+    score_staff_t *staff;
+
+    char *name;
+    double width;
+} score_chord_t;
+
 typedef enum score_clef
 {
     SCORE_CLEF_G,
@@ -191,7 +199,19 @@ score_add_note (score_staff_t *staff,
                int octave,
                score_duration_t);
 
-/* Remove the given note from the given staff. */
+/* Add a chord symbol of 'name' to a staff.
+ *
+ * For now, the chord symbols are free-form names.
+ */
+score_chord_t *
+score_add_chord (score_staff_t *staff,
+                const char * name);
+
+/* Remove the given chord from its staff. */
+void
+score_remove_chord (score_chord_t *chord);
+
+/* Remove the given note from its staff. */
 void
 score_remove_note (score_note_t *note);