Re: Edition Engraver and staff changes
Am 05.09.2018 um 15:01 schrieb Urs Liska: > > > Am 5. September 2018 14:27:06 MESZ schrieb Simon Albrecht > : >> On 15.08.2018 07:50, Jan-Peter Voigt wrote: >>> yes you are right, \change Staff cannot be used with the EE. Some >> time >>> ago I tried to make it possible, but it results in a fatal crash of >>> lilypond if the EE sends such an event. I add this to the issues. >> >> Maybe with a minimal example this should also be added > > Yes. > >> to the LilyPond >> issue tracker? > > No, here: https://GitHub com/openlilylib/edition-engraver/issues https://github.com/openlilylib/edition-engraver/issues/24 But still it might be added to the lilypond issue tracker because it is a reproducible crash not dependent of the EE. Jan-Peter ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Edition Engraver and staff changes
Am 5. September 2018 14:27:06 MESZ schrieb Simon Albrecht : >On 15.08.2018 07:50, Jan-Peter Voigt wrote: >> yes you are right, \change Staff cannot be used with the EE. Some >time >> ago I tried to make it possible, but it results in a fatal crash of >> lilypond if the EE sends such an event. I add this to the issues. > >Maybe with a minimal example this should also be added Yes. > to the LilyPond >issue tracker? No, here: https://GitHub com/openlilylib/edition-engraver/issues > >Best, Simon > >___ >lilypond-user mailing list >lilypond-user@gnu.org >https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Edition Engraver and staff changes
On 15.08.2018 07:50, Jan-Peter Voigt wrote: yes you are right, \change Staff cannot be used with the EE. Some time ago I tried to make it possible, but it results in a fatal crash of lilypond if the EE sends such an event. I add this to the issues. Maybe with a minimal example this should also be added to the LilyPond issue tracker? Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Edition Engraver and staff changes
hello Auke, if you want to separate the staff changes from the note input, you could use a separate variable with spacer rests and put the staff changes (+ stem directions + ...) in there: \extra = { s1*2 \change Staff = "right" s1*2 ... \change Staff = "left" s1*2 } etc... then add that variable: " \new Voice { \lefthandnonalto \extra } " cheers Arne -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Edition Engraver and staff changes
Hallo Jan-Peter, Thanks for the clarification. I had hoped it would be possible in some other way. Hopefully it will be possible in a future version of the EE. Until then I'll do it the old-fashioned way (manually). Auke Op 15 augustus 2018 07:50:57 schreef Jan-Peter Voigt : Hello Auke, yes you are right, \change Staff cannot be used with the EE. Some time ago I tried to make it possible, but it results in a fatal crash of lilypond if the EE sends such an event. I add this to the issues. Jan-Peter Am 14.08.2018 um 21:51 schrieb Partitura Organum: Hello all, In organ music it is quite common that one of the hands plays a part that is either to high or to low for the 'common' clefs, but that can be perfectly rendered with the alto clef. Not many organists are still able to read the alto clef, so I usually make to versions, one with the alto clef, and one with the part distributed over two staves (see images for an example). Since the notes do not change, only the way they are rendered, I thought it would be a good use case for the edition engraver. Problem however is that the Edition Engraver references contexts and I cannot tell one context to become another. The command 'change Staff' cannot be used with the Edition Engraver. Below is my (not so minimal) not-working example. Is there a way to tell the Edition Engraver that a part should switch Staff? Or is the Edition Engraver not suitable for my use case (which means that I should continue to do it manually)? %== \include "/oll-core/package.ily" \loadPackage edition-engraver %\addEdition alto \addEdition nonalto \consistToContexts #edition-engraver Score.Staff.Voice righthand = \relative c''{ a2 a | b1 | c4 b a2\trill } lefthand = \relative c'{ f8 e d c d c b a | gis8 a b c d e fis gis | a8 a, b cis d d, e fis | } pedal = \relative c { b2 d | e1 | a,2 c } lefthandnonalto=\relative c'{ \clef bass \change Staff="right" \voiceTwo f8 e d c d c \change Staff="left" \oneVoice b a | gis a b c \change Staff="right" \voiceTwo d e fis gis | a \change Staff="left" \oneVoice a, b cis d d, e fis | } \editionMod alto 1 0/4 left.Voice.A \clef alto \editionMod nonalto 1 0/4 right.Voice.A \voiceOne \editionMod nonalto 1 0/4 left.Voice.A \change Staff="right" \editionMod nonalto 1 0/4 left.Voice.A \voiceTwo \score { << \new Staff = "right" \with { \editionID right } \new Voice { \righthand } \new Staff = "left" \with { \editionID left } %\new Voice { \lefthand} \new Voice { \lefthandnonalto} \new Staff { \clef bass \pedal } > } %=== Regards, Auke ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Edition Engraver and staff changes
Hello Auke, yes you are right, \change Staff cannot be used with the EE. Some time ago I tried to make it possible, but it results in a fatal crash of lilypond if the EE sends such an event. I add this to the issues. Jan-Peter Am 14.08.2018 um 21:51 schrieb Partitura Organum: > Hello all, > > In organ music it is quite common that one of the hands plays a part > that is either to high or to low for the 'common' clefs, but that can > be perfectly rendered with the alto clef. Not many organists are still > able to read the alto clef, so I usually make to versions, one with the > alto clef, and one with the part distributed over two staves (see images > for an example). > > > > > > > > > Since the notes do not change, only the way they are rendered, I thought > it would be a good use case for the edition engraver. Problem however > is that the Edition Engraver references contexts and I cannot tell one > context to become another. The command 'change Staff' cannot be used > with the Edition Engraver. Below is my (not so minimal) not-working > example. Is there a way to tell the Edition Engraver that a part should > switch Staff? Or is the Edition Engraver not suitable for my use case > (which means that I should continue to do it manually)? > > > %== > \include "/oll-core/package.ily" > \loadPackage edition-engraver > %\addEdition alto > \addEdition nonalto > \consistToContexts #edition-engraver Score.Staff.Voice > > righthand = \relative c''{ > a2 a | > b1 | > c4 b a2\trill > } > > lefthand = \relative c'{ > f8 e d c d c b a | > gis8 a b c d e fis gis | > a8 a, b cis d d, e fis | > } > > pedal = \relative c { > b2 d | > e1 | > a,2 c > } > > lefthandnonalto=\relative c'{ > \clef bass > \change Staff="right" \voiceTwo f8 e d c d c \change Staff="left" > \oneVoice b a | > gis a b c \change Staff="right" \voiceTwo d e fis gis | > a \change Staff="left" \oneVoice a, b cis d d, e fis | > } > > > \editionMod alto 1 0/4 left.Voice.A \clef alto > > \editionMod nonalto 1 0/4 right.Voice.A \voiceOne > \editionMod nonalto 1 0/4 left.Voice.A \change Staff="right" > \editionMod nonalto 1 0/4 left.Voice.A \voiceTwo > > \score { > << > \new Staff = "right" \with { > \editionID right > } > \new Voice { \righthand } > > \new Staff = "left" \with { > \editionID left > } > %\new Voice { \lefthand} > \new Voice { \lefthandnonalto} > > \new Staff { > \clef bass \pedal > } > >> > } > %=== > > Regards, > Auke > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Edition Engraver and staff changes
Hello Auke Am 14.08.2018 um 21:51 schrieb Partitura Organum: Hello all, In organ music it is quite common that one of the hands plays a part that is either to high or to low for the 'common' clefs, but that can be perfectly rendered with the alto clef. Not many organists are still able to read the alto clef, so I usually make to versions, one with the alto clef, and one with the part distributed over two staves (see images for an example). ... Since the notes do not change, only the way they are rendered, I thought it would be a good use case for the edition engraver. Problem however is that the Edition Engraver references contexts and I cannot tell one context to become another. The command 'change Staff' cannot be used with the Edition Engraver. Below is my (not so minimal) not-working example. Is there a way to tell the Edition Engraver that a part should switch Staff? Or is the Edition Engraver not suitable for my use case (which means that I should continue to do it manually)? I have not tested your example but believe you that it isn't working. I don't have insight in this kind of inner workings of the edition-engraver, but I hope it should be possible to make that work (which wouldn't be an input syntax thing but a task for the edition-engraver to explicitly support). I suggest you either wait for Jan-Peter to give his opinion on this or just go forward and add this as a feature request on https://github.com/openlilylib/edition-engraver/issues. Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Edition Engraver and staff changes
Hello all, In organ music it is quite common that one of the hands plays a part that is either to high or to low for the 'common' clefs, but that can be perfectly rendered with the alto clef. Not many organists are still able to read the alto clef, so I usually make to versions, one with the alto clef, and one with the part distributed over two staves (see images for an example). Since the notes do not change, only the way they are rendered, I thought it would be a good use case for the edition engraver. Problem however is that the Edition Engraver references contexts and I cannot tell one context to become another. The command 'change Staff' cannot be used with the Edition Engraver. Below is my (not so minimal) not-working example. Is there a way to tell the Edition Engraver that a part should switch Staff? Or is the Edition Engraver not suitable for my use case (which means that I should continue to do it manually)? %== \include "/oll-core/package.ily" \loadPackage edition-engraver %\addEdition alto \addEdition nonalto \consistToContexts #edition-engraver Score.Staff.Voice righthand = \relative c''{ a2 a | b1 | c4 b a2\trill } lefthand = \relative c'{ f8 e d c d c b a | gis8 a b c d e fis gis | a8 a, b cis d d, e fis | } pedal = \relative c { b2 d | e1 | a,2 c } lefthandnonalto=\relative c'{ \clef bass \change Staff="right" \voiceTwo f8 e d c d c \change Staff="left" \oneVoice b a | gis a b c \change Staff="right" \voiceTwo d e fis gis | a \change Staff="left" \oneVoice a, b cis d d, e fis | } \editionMod alto 1 0/4 left.Voice.A \clef alto \editionMod nonalto 1 0/4 right.Voice.A \voiceOne \editionMod nonalto 1 0/4 left.Voice.A \change Staff="right" \editionMod nonalto 1 0/4 left.Voice.A \voiceTwo \score { << \new Staff = "right" \with { \editionID right } \new Voice { \righthand } \new Staff = "left" \with { \editionID left } %\new Voice { \lefthand} \new Voice { \lefthandnonalto} \new Staff { \clef bass \pedal } >> } %=== Regards, Auke ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user