With the callers no longer doing anything with this return value, we
can now drop it entirely.
staff->num_chords -= 1;
}
staff->num_chords -= 1;
}
score_staff_add_note (score_staff_t *staff,
pitch_t pitch,
score_duration_t duration)
score_staff_add_note (score_staff_t *staff,
pitch_t pitch,
score_duration_t duration)
if (note->pitch == pitch &&
note->duration == duration)
{
if (note->pitch == pitch &&
note->duration == duration)
{
}
}
note = talloc (staff, score_note_t);
if (note == NULL)
}
}
note = talloc (staff, score_note_t);
if (note == NULL)
note->staff = staff;
note->pitch = pitch;
note->staff = staff;
note->pitch = pitch;
staff->num_notes);
if (staff->notes == NULL) {
staff->num_notes = 0;
staff->num_notes);
if (staff->notes == NULL) {
staff->num_notes = 0;
}
staff->notes[staff->num_notes - 1] = note;
}
staff->notes[staff->num_notes - 1] = note;
score_add_note (score_t *score, pitch_t pitch, score_duration_t duration)
{
score_staff_t *staff, *nearest_staff = NULL;
score_add_note (score_t *score, pitch_t pitch, score_duration_t duration)
{
score_staff_t *staff, *nearest_staff = NULL;
/* Nothing to do if we have no staff, (there's no place to add a note) . */
if (score->num_staves == 0)
/* Nothing to do if we have no staff, (there's no place to add a note) . */
if (score->num_staves == 0)
/* Find the staff where the note will be closest to the center of
* the staff. */
/* Find the staff where the note will be closest to the center of
* the staff. */
- return score_staff_add_note (nearest_staff, pitch, duration);
+ score_staff_add_note (nearest_staff, pitch, duration);
* _EIGHTH, etc.) or numerical as simply the denominator (WHOLE=1,
* QUARTER=4, EIGHTH=8, etc.)
*/
* _EIGHTH, etc.) or numerical as simply the denominator (WHOLE=1,
* QUARTER=4, EIGHTH=8, etc.)
*/
score_staff_add_note (score_staff_t *staff,
pitch_t pitch,
score_duration_t duration);
/* Add a note to the score, (automatically selecting the nearest
* staff) */
score_staff_add_note (score_staff_t *staff,
pitch_t pitch,
score_duration_t duration);
/* Add a note to the score, (automatically selecting the nearest
* staff) */
score_add_note (score_t *score, pitch_t pitch, score_duration_t duration);
/* Add a chord symbol of 'name' to a staff.
score_add_note (score_t *score, pitch_t pitch, score_duration_t duration);
/* Add a chord symbol of 'name' to a staff.