int num_staves;
};
-typedef struct score_note
-{
- score_pitch_t pitch;
- int octave;
- score_duration_t duration;
-} score_note_t;
-
score_t *
score_create (void *ctx)
{
}
score_note_t *
-score_staff_add_note (score_staff_t *staff,
- score_pitch_t pitch,
- int octave,
- score_duration_t duration)
+score_add_note (score_staff_t *staff,
+ score_pitch_t pitch,
+ int octave,
+ score_duration_t duration)
{
score_note_t *note;
if (note == NULL)
return NULL;
+ note->staff = staff;
note->pitch = pitch;
note->octave = octave;
note->duration = duration;
}
void
-score_staff_remove_note (score_staff_t *staff, score_note_t *note)
+score_remove_note (score_note_t *note)
{
+ score_staff_t *staff = note->staff;
int i;
for (i = 0; i < staff->num_notes; i++)