Skip to content

Commit 17483d7

Browse files
committed
Chord names are not necessary above all staves in a system
1 parent 9a78f20 commit 17483d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/org/audiveris/omr/text/TextRole.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public static TextRole guess (TextLine line,
248248

249249
break;
250250

251-
case WITHIN_STAVES: // Name, Lyrics, Direction
251+
case WITHIN_STAVES: // Name, Lyrics, Direction, ChordName, Metronome
252252
if (leftOfStaves) {
253253
if (TextWord.PART_NAME_WORDS != null) {
254254
Matcher matcher = TextWord.PART_NAME_WORDS.matcher(line.getValue());
@@ -261,6 +261,8 @@ public static TextRole guess (TextLine line,
261261
}
262262
} else if (metronomeAllowed && MetronomeInter.isLikely(line)) {
263263
return Metronome;
264+
} else if (isAllChords) {
265+
return ChordName;
264266
} else if (lyricsAllowed //
265267
///&& hasVowel //
266268
&& (switches.getValue(ProcessingSwitch.lyrics) //

0 commit comments

Comments
 (0)