Re: LilyPond and OpenDocument
I GOT IT I am happy to inform you, that I found a way importing Lilypond into Opendocument: Import the Lilypond ps file in Scribus. Export it as eps file. Import the eps file in OpenOffice! It is not the direct way, but you will get the best resolution and the possibility to resize the image however you like. I don't know why Openoffice has problems with the eps file that is created with lilypond's eps backend! Stefan I managed to Am Donnerstag, 4. Mai 2006 14:28 schrieb Colin Wilding: I tried this myself last night (in Linux) - no luck. Lilypond created an SVG file: Inkscape opened it but displayed only the staff lines and a few other bits; OpenOffice tried to open it but failed with a 'general input/output error'. I suspect there is a problem with fonts but I couldn't be sure. in principle, though, this approach ought to work. Colin Wilding wrote: One possibility would be to output the score in SVG format. There is filter available which allows you to open SVG files in OpenOffice Draw. I haven't tried this myself (yet). -- View this message in context: http://www.nabble.com/LilyPond-and-OpenDocument-t1548427.html#a4227990 Sent from the Gnu - Lilypond - User forum at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scribus and LilyPond on Windows
Hello, I succeeded importing the PS-File under Scribus in Linux. I don't have Windows so I can't try. But the PS-File imports perfectly with scribus 1.3.3.1. Import of Lilypond pdf files doesn't work but you can export pdf from scribus after editing the file. Maybe, You have to install the Lilypond fonts on your system. They are located under: c:\program files/LilyPond/usr/share/lilypond/version/fonts. Install all otf and type1 fonts. Then you should succeed importing the PS file and edit it in Scribus. (If you have problems, call again and I will try on another system with windows to help you.) Another possibility of opensource editing is running lilypond with the svg-Backend: lilypond --backend=svg filename.ly This svg file can be edited with Inkscape. http://www.inkscape.org/ But with Inkscape I had the problem that text markups were not exported with the correct formatting. Best regards Stefan Hackl Am Freitag, 21. April 2006 17:09 schrieb Bertalan Fodor: Does anybody succeeded with importing a LilyPond score into Scribus under Windows? I'd like to use the following scenario: 1. Create the score with LilyPond 2. Import the score into Scribus, make a book 3. Export the book as PDF 4. Import the book into InDesign at design studio. 5. Export from InDesign as PS and feed into the photo machine. Bert ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Which frontend?
Hello, I also tried several possibilities for input. I came to Noteedit and emacs. Noteedit helps me entering the notes and creates a basic output file for lilypond. Try the newest SVN Version of Noteedit, lilypond export was improved and very soon a direct-printing option will be available (see Noteedit developers list). I also head problems using jedit on linux. With Windows XP jedit works perfectly. But since I got some experience on Emacs I don't want to miss Emacs anymore. I open my ly-file created by Noteedit and to add details like fingering, Text markups, page layout etc. For me combining a gui with a powerful editor is the best way. And emacs needs some time because many options are not common (especially keyboard shortcuts) but in my opinion it is worth getting known to it. Greetings from Germany Stefan Am Samstag, 29. April 2006 16:23 schrieb Eyolf Ostrem: Which frontends do yo all use for lilypond? Here's the ones I've tried out so far, with my experiences - some bad, some good: 1. NoteEdit. I like the way one can just input bare, basic notation, and the configurability. I've also come to like the way the keyboard input works, at least after I redefined all the keys to something that suits me (note names in sequence and not their alphabetical values; durations likewise: 1/4 note should be between 1/8 and 1/2, not set to 4, 8 and 2; all the modifiers should be accessible to the duration hand without having to move around, etc). however: I haven't found a keyboard shortcut for \breve and \longa - essential if one writes a lot of renaissance music. Also, It would have been nice if one could generate a lilypond output on the fly, of whatever one has written in, without having to go through the process of exporting, opening the file, copy-pasting into the real document, etc. Also, I miss things like a default score setup, a snippet/templates library, a menu for inserting more specific lilypond commands (but I realize it's not only a lilypond frontend, so that's probably too much to ask). But all in all, it's so far my favorite frontend - not for generating whole scores, but for entering the music which I can then paste into another text file. 2. Rosegarden. I had hopes for this program, but most of them have been thrashed. The keyboard input mode is hopeless, with the fixed positions, relative to the key, which means (as far as I have found out), that if you write a piece in b major, there is no way one can insert notes with the keyboard below the middle line in a staff with a treble clef. There are other gripes too, but this is enough to make it useless for me. 3. Jedit + LilyPond plugin Looks very promising, but apparently there's something wrong with my java setup, because if I try to do anything more than the most basic text input, I get errors and nothing happens. 4. Denemo From the looks of it, it seems to have what I want from NoteEdit, but I've never been able to test it out properly, because it crashes all the time. Might have to do with my locale settings, which it doesn't like, but I'm not sure. The emacs mode - I haven't tried it out, but from what I've read, it also looks very promising. Is that something I should invest some more time in? I want a plain tool which can quickly insert notes through the keyboard, preferably also with sounding output, but without straying too far from the text mode of the basic ly-file. Have I missed anything? Eyolf Østrem ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Problem with polyphony - noteheads don't merge
Hello, I am typesetting a classical guitar piece, with four voices in the same staff. I tried different possibilities to include \override Staff.NoteCollision #'merge-differently-headed = ##t But the noteheads won't merge (see picture unmerged.png). If I replace the note in the third voice by an invisible break (e is replaced by s), it works perfectly. (picture: merged.png). Does anyone have an idea how to fix the problem? I attach the complete file to this Email. Thanks a lot! Stefan \version 2.8.1 \header { title = Introduktion und Variationen über einem Thema von Mozart composer = Fernando Sor } flat = \markup { \raise #0.4 \smaller \musicglyph #accidentals--2 } sharp = \markup { \raise #0.6 \smaller \musicglyph #accidentals-2 } textcodaysym = \markup { \hspace #1 \raise #1.1 \musicglyph #scripts-coda} StaffAVoiceA = \relative c { \voiceOne \clef G_8 \key g \major \time 4/4 \override Staff.NoteCollision #'merge-differently-headed = ##t e'2 e4.. e16 | e2 r4 r8. b16 ~ | % 3 b g' 2 a c fis 4 g b e | b e 2dis!4 r | % 5 fis2 fis4.. fis16 | fis2 r | % 7 b, b'-2 \grace { a'16 } b, b' 4\grace { a'16 } b, b' 4| e-0 g-3 2r | % 9 e e4 e | fis4.. g16 fis4 fis | % 11 gis!2 gis4 gis | a4.. a16 c8 r r4 | % 13 a2 \times 2/3 { b8 e, f! }\override TupletNumber #'transparent = ##t \times 2/3 { fis! g gis! } | a2 e g 4r8. g16 | % 15 g c, 4 fis8 r16 fis fis4 e8 r16 e | \times 2/3 { dis!8 b b } \times 2/3 {\stemDown b' \stemUp b, b } \times 2/3 {\stemDown b''\stemUp b,, b } a'8. a16 | % 17 g4 \times 2/3 {\stemDown b8 \stemUp b, b } \times 2/3 {\stemDown b'' \stemUp b,, b } e8. e16 | \times 2/3 { dis!8 b b } \times 2/3 { \stemDown b' \stemUp b, b } \times 2/3 { \stemDown b'' \stemUp b,, b } a' r16 fis | % 19 g4 \times 2/3 {\stemDown b8 \stemUp b, b } \times 2/3 {\stemDown b''\stemUp b,, b } e8. e16 | fis, dis'! 8r s4 s e'8. e16 | % 21 fis, dis'! 2r4 e'8. e16 | dis!4 s \override TupletNumber #'transparent = ##f \times 2/3 { r4 b8 } e8. e16 | % 23 fis, dis'! 4r8 r4 dis! b' r8 | dis! b' 2r4\fermata r8 b''16. a32 \bar |. } StaffAVoiceB = \relative c { \voiceTwo \override Staff.NoteCollision #'merge-differently-headed = ##t e, b' e g b 2 e b' e g b e b' e g b s % 3 r4 e'2. fis a r4 % 5 b, dis! b' 2 b dis! b' b dis! b' s % 7 s1 s % 9 g2 g4 g a2 a4 a % 11 b2 b4 b c2 a8 r r4 % 13 a'2 g e' 4s fis2 e4 r % 15 a,2 ais! b fis' b 4s s \times 2/3 { fis''8 b, b } \override TupletNumber #'transparent = ##t % 17 \times 2/3 { e b b } s4 s \times 2/3 { g8 b b } b, fis' 4s s \times 2/3 { fis''8 b, dis! } % 19 \times 2/3 { e b b } s4 s \times 2/3 { g8 b g } b,4 s2. % 21 \override TupletNumber #'transparent = ##f \times 2/3 { r8 b b } \override TupletNumber #'transparent = ##t \times 2/3 { c ( b ) b } \override TupletBracket #'transparent = ##t \times 2/3 { ais! ( b ) b } b4 \times 2/3 { r8 b b } \times 2/3 { c ( b ) b } \times 2/3 { ais! ( b ) b } b4 ~ % 23 b r8 r4 b r8 b2 r2 } StaffAVoiceC = \relative c { \voiceThree \override Staff.NoteCollision #'merge-differently-headed = ##t s1 s % 3 s s % 5 s s % 7 s s % 9 \times 2/3 { g8 \stemDown e' b' e b' } \times 2/3 { e b' e b' e b' } \times 2/3 {\stemUp g, \stemDown e' b' e b' }\override TupletNumber #'transparent = ##t \times 2/3 { \stemUp g, \stemDown e' b' e b' } \times 2/3 {\stemUp a, \stemDown e' c' e c' } \times 2/3 { e c' e c' e c' } \times 2/3 {\stemUp a,\stemDown e' c' e c' } \times 2/3 { \stemUp a,\stemDown e' c' e c' } % 11 \times 2/3 {\stemUp b\stemDown e d' e d' } \times 2/3 { e d' e d' e d' } \times 2/3 {\stemUp b\stemDown e d' e d' } \times 2/3 {\stemUp b \stemDown e d' e d' } \times 2/3 { \stemUp c \stemDown c' e c e } \times 2/3 { c e c e c e } s2 % 13 \times 2/3 {\stemUp a8 dis! e } \times 2/3 { fis e dis! } s2 \times 2/3 { fis,8 b c } \times 2/3 { cis! d dis! } \times 2/3 { e, g gis! } \stemDown \times 2/3 { a ais! b } % 15 \times 2/3 { \stemUp a, \stemDown a' c a c } \times 2/3 { a c a c a c } \times 2/3 {\stemUp ais,! \stemDown g' cis! g cis } \times 2/3 { g cis g cis g cis } s1 % 17 s } StaffAVoiceD = \relative c { \voiceFour \override Staff.NoteCollision #'merge-differently-headed = ##t s1 s % 3 s s % 5 s s % 7 s s % 9 s s % 11 s s % 13
Re: Guitar Barre Example
Hello, I managed to get the solid line. The Makro is now: barre = #(define-music-function (barre location str music) (string? ly:music?) (let ((spanned-music (let ((first-element #f) (last-element #f) (first-found? #f)) (music-map (lambda (m) (if (eqv? (ly:music-property m 'name) 'EventChord) (begin (if (not first-found?) (begin (set! first-found? #t) (set! first-element m))) (set! last-element m))) m) music) (if first-found? (begin (set! (ly:music-property first-element 'elements) (cons (make-music 'TextSpanEvent 'span-direction -1) (ly:music-property first-element 'elements))) (set! (ly:music-property last-element 'elements) (cons (make-music 'TextSpanEvent 'span-direction 1) (ly:music-property last-element 'elements) music))) (make-music 'SequentialMusic 'origin location 'elements (list #{ \once \override Voice . TextSpanner #'edge-text = #$(cons (format "C ~a" str) "") \once \override TextSpanner #'dash-fraction = #'() \once \override Voice . TextSpanner #'direction = #1 \once \override Voice . TextSpanner #'edge-height = #'(0 . 0.5) \once \override Voice . TextSpanner #'padding = #3 \once \override Voice . TextSpanner #'enclose-bounds = #1 #} spanned-music Greetings Stefan John D. Rimmer schrieb: Stefan, Thank you -- I'll check it out, tonight. Is there anyone to change the line from dashed to solid? Or is thisall that is possible using the text spanning? Is there another mechanism for the solid line? Best regards, John Stefan Hackl [EMAIL PROTECTED] wrote: Hello, you can find an example attached to this mail. It runs perfectly with Lily 2.8.0 Greetings Stefan Hackl [EMAIL PROTECTED] schrieb: Stefan, Thank you for the assist to that question! Would you please e-mail me a .ly file I can test? I tried to use it in one of my files, but it hung up. I'm using v2.7.38 John \version "2.8.0" barre = #(define-music-function (barre location str music) (string? ly:music?) (let ((spanned-music (let ((first-element #f) (last-element #f) (first-found? #f)) (music-map (lambda (m) (if (eqv? (ly:music-property m 'name) 'EventChord) (begin (if (not first-found?) (begin (set! first-found? #t) (set! first-element m))) (set! last-element m))) m) music) (if first-found? (begin (set! (ly:music-property first-element 'elements) (cons (make-music 'TextSpanEvent 'span-direction -1) (ly:music-property first-element 'elements))) (set! (ly:music-property last-element 'elements) (cons (make-music 'TextSpanEvent 'span-direction 1) (ly:music-property last-element 'elements) music))) (make-music 'SequentialMusic 'origin location 'elements (list #{ \once \override Voice . TextSpanner #'edge-text = #$(cons (format "C ~a" str) "") \once \override Voice . TextSpanner #'direction = #1 \once \override Voice . TextSpanner #'edge-height = #'(0 . 0.5) \once \override Voice . TextSpanner #'padding = #3 \once \override Voice . TextSpanner #'enclose-bounds = #1 #} spanned-music \header { title = "V. Bourre" composer = "J. S. Bach (1685-1750)" opus = "BWV 996" subtitle = "aus Lautensuite e-Moll" mutopiatitle = "V. Boure" mutopiacomposer = "BachJS" mutopiainstrument = "Guitar" source = "unknown" style = "Classical" copyright = "Edited 2006 by Stefan Hackl" maintainer = "Stefan Hackl" maintainerEmail = "[EMAIL PROTECTED]" lastupdated = "2006/February/26" tagline = " " } \paper { ragged-last-bottom = ##f foot-separation = 0.5\cm left-margin = 2\cm line-width = 17\cm } \layout { indent = 0\cm } \score { { \set Staff.midiInstrument = "acoustic guitar (nylon)" \key e \minor \clef "G_8" \relative c' { \partial 4 e8 fis g4 fis8-2 e dis4-4 e8 fis b,4 \barre #"II" { cis8-1 dis-4 e4-4 d8-4 c-1 b4 a8-2 } g fis4-4 g8 a b a g fis-4 e4-2 e'8 fis-2 g4 fis8 e dis4 e8 fis b,4 cis8 dis8 e4 d8 c b4 a8-1 g fis4.-3 g8 g2. \break \bar ":|:" b8 g d'4-4 a8-3 c-1 b4 g'8-4 d-3 e4 b8-4 d-2 c4-2 b8 a-3 gis4 a8 b c4 b8 a-3 a2. d8-4 a \break b4 g'8-4 d-3 e4 b8-4 d-2 c4-2 a'8-4 e-3 fis4-4 cis8-3 e d4-3 cis8-2 b \once \override Voice.Fingering #'padding = #1.5 \set fingeringOrientations =#'(right) 4.-\trill b8 b2. b'8 fis gis4-4 fis8-2 e a4-4 e8 g-3 fis4-1 e8 d-3 g4-4 \barre #"III" { d8 f-4 } e4-3 \barre #"VII" { a8-4 e-3} fis4-4 cis8-2 e-0 dis4-4 b2 e8 b \break c4-2 d8-2 a b4 c8-1 g a4 b8 fis g4 fis8 e-1 dis4-1 e8-1 fis g4 fis8-4-\trill e e2. } \\ \relative c { g8 fis-1 e4 a b-1 a g-3 fis-1 e fis-2 g-3 a b-1 a g-3 b-1 e,8 fis-1 g-3 fis e4 a b a g fis e fis g c-2 d-4 d \set fingeringOrientations =#'(left)<G,-2 d="" b-1="">2. g4-3 fis-2 d' g,-2 b-1 c-2 gis-3 a d e-2 a, e'
Re: solid line for textspanner?
Christopher Ellis schrieb: \override TextSpanner #'dash-fraction = #'() this works for me. Thank you! it works! Stefan --- Stefan Hackl [EMAIL PROTECTED] wrote: Hello, I would like to know, if it is possible to create textspanners with solid line instead of the dotted line. Greetings Stefan Hackl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user