Embedding eps over staff lines and music as graphical notation
How can I insert an EPS file over the staff lines, ignoring collisions? I want to suggest random notes played from high to low pitches with graphical notation by inserting the attached eps file, linking the first note with the last, in the following snippet. I can't find how to make lilypond ignore the object extent and collisions. Also, by looking at the output I'm getting in Frescobaldi, it seems that even if I do that, the eps image is not transparent. I'm open to suggestions for alternatives to solve this problem, of course. I just don't want to have to manually insert the graphic in an SVG file after the compilation since it's very annoying to do that every single time I have to recompile due to revisions. \version "2.19.35" \relative c''' { b32[ -\markup { \epsfile #X #25 #"improv.eps" } s s s s s s s s s s s s b,,] } Caio ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedding eps over staff lines and music as graphical notation
2016-04-28 15:35 GMT+02:00 Caio Giovaneti de Barros : > How can I insert an EPS file over the staff lines, ignoring collisions? > > I want to suggest random notes played from high to low pitches with > graphical notation by inserting the attached eps file, linking the first > note with the last, in the following snippet. I can't find how to make > lilypond ignore the object extent and collisions. Also, by looking at the > output I'm getting in Frescobaldi, it seems that even if I do that, the eps > image is not transparent. > > I'm open to suggestions for alternatives to solve this problem, of course. I > just don't want to have to manually insert the graphic in an SVG file after > the compilation since it's very annoying to do that every single time I have > to recompile due to revisions. > > \version "2.19.35" > > \relative c''' { > b32[ -\markup { > \epsfile #X #25 #"improv.eps" > } > s s s s s s s s s s s s b,,] > } > > Caio Is the below of some help? \version "2.19.35" impMrkp = %\tweak staff-padding #'() %% not sure if needed \tweak staff-padding #'() \tweak outside-staff-priority #'() \tweak layer #-30 \tweak Y-offset #'() -\markup { \hspace #3 \vcenter \epsfile #X #25 #"improv.eps" } \relative c''' { \textLengthOn b32[ \impMrkp b,,] } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedding eps over staff lines and music as graphical notation
Em 28-04-2016 18:01, Thomas Morley escreveu: 2016-04-28 15:35 GMT+02:00 Caio Giovaneti de Barros : How can I insert an EPS file over the staff lines, ignoring collisions? Is the below of some help? \version "2.19.35" impMrkp = %\tweak staff-padding #'() %% not sure if needed \tweak staff-padding #'() \tweak outside-staff-priority #'() \tweak layer #-30 \tweak Y-offset #'() -\markup { \hspace #3 \vcenter \epsfile #X #25 #"improv.eps" } \relative c''' { \textLengthOn b32[ \impMrkp b,,] } Yes, that did the trick. Thank you! I was not aware of \textLengthOn. Awesome. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedding eps over staff lines and music as graphical notation
Well, actually... Now I have another problem I didn't realize before. In the piece I'm actually engraving the dots must cross staves and in the solution below the eps does ignore the staff above, but avoids collision with the staff below. Any suggestions? \version "2.19.35" impMrkp = %\tweak staff-padding #'() %% not sure if needed \tweak staff-padding #'() \tweak outside-staff-priority #'() \tweak layer #-30 \tweak Y-offset #'() -\markup { \hspace #3 \vcenter \epsfile #X #25 #"improv.eps" } << \new Staff = "UP" { \relative c''' { \stemDown \textLengthOn b32[ \impMrkp \change Staff = "DOWN" b,,] } } \new Staff = "DOWN" { \relative c''' { s16 } } >> Em 29-04-2016 10:01, Caio Giovaneti de Barros escreveu: Em 28-04-2016 18:01, Thomas Morley escreveu: 2016-04-28 15:35 GMT+02:00 Caio Giovaneti de Barros : How can I insert an EPS file over the staff lines, ignoring collisions? Is the below of some help? \version "2.19.35" impMrkp = %\tweak staff-padding #'() %% not sure if needed \tweak staff-padding #'() \tweak outside-staff-priority #'() \tweak layer #-30 \tweak Y-offset #'() -\markup { \hspace #3 \vcenter \epsfile #X #25 #"improv.eps" } \relative c''' { \textLengthOn b32[ \impMrkp b,,] } Yes, that did the trick. Thank you! I was not aware of \textLengthOn. Awesome. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedding eps over staff lines and music as graphical notation
I think I solved it. The trick was removing the the vertical-skylines property: impMrkp = %\tweak staff-padding #'() %% not sure if needed %\tweak staff-padding #'() \tweak outside-staff-priority #'() \tweak layer #-30 \tweak Y-offset #-3 \tweak vertical-skylines #'() -\markup { \hspace #3 \vcenter \epsfile #X #25 #"improv.eps" } << \new Staff = "UP" { \relative c''' { \stemDown \textLengthOn b32[ \impMrkp \change Staff = "DOWN" b,,] } } \new Staff = "DOWN" { \relative c''' { s16 } } >> Em 29-04-2016 10:27, Caio Giovaneti de Barros escreveu: Well, actually... Now I have another problem I didn't realize before. In the piece I'm actually engraving the dots must cross staves and in the solution below the eps does ignore the staff above, but avoids collision with the staff below. Any suggestions? \version "2.19.35" impMrkp = %\tweak staff-padding #'() %% not sure if needed \tweak staff-padding #'() \tweak outside-staff-priority #'() \tweak layer #-30 \tweak Y-offset #'() -\markup { \hspace #3 \vcenter \epsfile #X #25 #"improv.eps" } << \new Staff = "UP" { \relative c''' { \stemDown \textLengthOn b32[ \impMrkp \change Staff = "DOWN" b,,] } } \new Staff = "DOWN" { \relative c''' { s16 } } >> ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user