Dealing with hidden staves #546
-
Thanks for all the work on Audiveris! I love having an open source means of OMR. I work mostly with choral music and often have a piece that starts with a piano introduction in which the voices are hidden in the first system. It also may happen in the middle of the piece- a system with piano only and no voices. When this happens, the measures of the piano and the voices are not aligned in export. How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
The voices can come and go from one measure to the other. At export time, Audiveris can create virtual staves on-the-fly, made of a sequence of measures filled with whole rests, precisely to keep voices alignment in the exported data. If not, there must be a bug somewhere. |
Beta Was this translation helpful? Give feedback.
-
The curly bracket in the bottom left of page 4 was not recognized. And since the role of such brace is to indicate that the embraced staves belong to the same part, Audiveris engine thought the 2 staves were separate parts. And since logical parts from one system to the next need to exhibit the same number of contained staves, the engine thought these two 1-staff parts could not belong to the same logical 2-staff part found at the end of system above. This explains your problems when exporting the results to MusicXML, which is done ... part by part! To fix this, simply point to the underlying glyph and in the shape board (found in right side column), select the "Barlines" palette. In this palette, you'll find the BRACE shape button. A double-click on this button, and your brace glyph gets assigned the BRACE shape. You'll be prompted about the target staff for this brace, select staff above. Now, when exporting the whole score (you no longer need to export page by page), I got an exception on every page. Diving in the code, I discovered this was due to looking for potential beams related to a rest chord in the dummy measures inserted for voices alignment. I just fixed the bug in the development branch. You have two possibilities:
|
Beta Was this translation helpful? Give feedback.
-
Regarding the popup dialog about which staff to select, I agree this is somewhat confusing for the case of a side brace. |
Beta Was this translation helpful? Give feedback.
-
Raw engine output for this page 4 is a sequence of 12 staves gathered in 2 systems:
System 2:
A staff not linked to another staff corresponds to an isolated part (a single instrument). These part numbers, called "logical parts", are processed in the scope of the whole score (I should say movement to be more precise, but here we have a single movement in the score). For example you can find this fifth part in every system since the beginning of the score, until we hit the 2nd system of page 4. Suddenly, the engine is obliged to create two new parts (for stave 11 and for staff 12) because these "parts" have no corresponding parts early in the score. These new parts are named part 6 and part 7 respectively. And since the export to MusicXML format is done "partwise", you get a separate XML fragment for every part. "Part" 6 gives a separate fragment. "Part" 7 gives another separate fragment. Manually linking the staves 11 and 12 with a brace allows the engine to stay with its original 5 parts all score long. |
Beta Was this translation helpful? Give feedback.
-
@Ace214 |
Beta Was this translation helpful? Give feedback.
-
I didn't notice, but we should have exchanged these messages on the Issues forum rather than on this Discussions forum. |
Beta Was this translation helpful? Give feedback.
The curly bracket in the bottom left of page 4 was not recognized. And since the role of such brace is to indicate that the embraced staves belong to the same part, Audiveris engine thought the 2 staves were separate parts. And since logical parts from one system to the next need to exhibit the same number of contained staves, the engine thought these two 1-staff parts could not belong to the same logical 2-staff part found at the end of system above. This explains your problems when exporting the results to MusicXML, which is done ... part by part!
Small problem, big consequence!
To fix this, simply point to the underlying glyph and in the shape board (found in right side column), select…