On Wed 21 Dec 2016 at 18:50:58 (+0100), Mirosław Doroszewski wrote: > Rests in polyphonic and simple music in the same staff in LilyPond > version 2.18.2. > > 1. In polyphonic music there are at least 2 voices in a staff. > 2. It implies placing at least 2 rests in the staff. > 3. It happens that composer wants to simplify notation of notes and > rests to be seen like one voice music. > 4. It is set by command \oneVoice, and unset by commands \voiceOne, > \voiceTwo etc. > 5. But when notation of rests are simplified in every voices, too: > i.e. c'4 \oneVoice r \voiceOne ... — an error occurs: "rest direction > not set". > 6. Solution: simplifying visibility of rests only for first voice by > command \oneVoice, and writing s instead of r in every other voices, > i.e.: > > voiceI = { \relative c' { \voiceOne e4 e f \oneVoice r \voiceOne } } > voiceII = { \relative c' { \voiceTwo c4 c d s } } > \score { \new Staff << > \new Voice = "1" { \voiceI } > \new Voice = "2" { \voiceII } > >> > }
But now the problem is that you can't produce parts easily. To make a part easy to print, you want \new Voice = "1" { \voiceOne \voiceI } in the score's structure, and \new Voice = "1" { \voiceI } in the part's structure, no voice changes in voiceI, and all the rests written into voiceII. So I use LSR 336 to merge the rests. Cheers, David. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user