Re: -dshow-available-fonts vs. UNIX stdout?
On Wed, 20 Jun 2012 10:14:09 +0100, Phil Holmes wrote: - Original Message - From: James Harkins jamshar...@gmail.com To: lily-users lilypond-user@gnu.org Sent: Wednesday, June 20, 2012 9:36 AM Subject: Re: -dshow-available-fonts vs. UNIX stdout? On 6/20/12, Ramana Kumar ramana.ku...@gmail.com wrote: probably lilypond isn't writing to stdout. maybe stderr? OK, let me refine the question. If it isn't using stdout, is there a good reason why is it using something else? Or is it just a bug? hjh As a general rule, Unix orientated programs direct the main output of the program to stdout, Correct. and other informative messages to stderr. The main output of lilypond is the pdf, which actually goes to a file. The main output of 'lilypond -dshow-available-fonts foo.ly' is a pdf file? New to me ... The main output (actually the _only_ output) of such an invokation is the list of available fonts. The informative messages (e.g. a list of fonts) continue to adopt the principle of going to stderr. So testing for the existance of a font like $ lilypond -dshow-available-fonts | grep 'MySwaschiGlyphs' doesn't work. (BTW. grepping stderr is almost always a sign of bad scripting ...) Cheers, Ralf Mattes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: forcing two pages
These are the \paper variables you need to try around with: system-count = 8 % total number of systems in the score page-count = 2 % number of pages in the score max-systems-per-page = 4 min-systems-per-page = 4 % if max/min are equal it's basically a hardcoded command ragged-bottom = ##f % fill pages fully ragged-last-bottom = ##f % Also fill the last page fully HTH Urs Am 19.06.2012 20:10, schrieb Fidler Aoileann: Hello, The music I have written has one page and one line of music. The first page seems very busy and squashed to me so I'd like it to be spread out over the two pages. Can anyone help? Many thanks Aoileann ___ 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
redirect the list/output of #(ly:font-config-display-fonts)
hi! is it possible (and how) to redirect the generated list to a special file? thanks Eluze -- View this message in context: http://old.nabble.com/redirect-the-list-output-of--%28ly%3Afont-config-display-fonts%29-tp34054316p34054316.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: redirect the list/output of #(ly:font-config-display-fonts)
-Eluze elu...@gmail.com writes: hi! is it possible (and how) to redirect the generated list to a special file? Not that I would see. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Removing noChordSymbol - N.C
Hello, I have just started using Lilypond and I must say it exceeds all my expectations! I trying to add Chords to a melody using \chordmode and I have most things working. One thing that I would like to do is sometimes I don't want any chord, usually in Pickup Measures. If I put a rest (r1) I get a N.C. Is there someway to make a rest without getting a no chord symbol? // Anders -- Computer says No! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Why can't I post?
Hello, I have just become a member of the lilypond-user list. I have tried to send some questions but nothing has arrived! Is there some waiting period or something else that makes my postings not reaching the list? // Anders ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
functions in include file
Hello, I have just started using Lilypond and I have found some functions on the net which I would like to put in an include file. But I can't figure out how!? One of these function is Mr. John Mandereaus Diatonic/modal transposition function I have put the code in a file (diatonic-transpose.lyi) and is calling it like this %% Start of file \version 2.14.2 \include diatonic-transpose.lyi notes = \relative c' { c d e f g a b c } \score { \new Staff { \clef G \notes \diatonicTranspose c \major #2 \notes } \layout {} \midi {} } %% EOF When I compile it I get: Starting lilypond-windows.exe 2.14.2 [test-dia-transpose.ly]... Processing `C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly' Parsing... C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:13:15: error: unknown escaped string: `\diatonicTranspose' \diatonicTranspose c \major #2 \notes C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:13:15: error: syntax error, unexpected STRING \diatonicTranspose c \major #2 \notes C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:10:2: error: errors found, ignoring music expression error: failed files: C:/Users/ame/Documents/Lilipond/Tests/test-dia- transpose.ly Exited with return code 1. So WHY can't it find \diatonicTranspose ??? // Anders Here is diatonic-transpose.lyi %% Start of file diatonic-transpose.lyi #(define (true-quotient n d) Return the one true quotient in integer division of n by d, i.e. return the integer q so that there is a unique integer r that satisfies n = qd + r and 0 = r |d| (if (= n 0) (quotient n d) (- (quotient n d) 1))) #(define (ly-pitch-modal-pitch ly-pitch scale tonic-c-diff) Convert ly-pitch to a list (octave degree depresentation) which represents the modal pitch in scale, with tonic-c-diff as the pitch diff from tonic to middle C. scale should be a notename-alteration alist of length 7 which represents the alteration of each note with C as first pitch of the scale. (let* ((normalized-pitch (ly:pitch-transpose ly-pitch tonic-c-diff)) (notename (ly:pitch-notename normalized-pitch))) (list (ly:pitch-octave normalized-pitch) ;; octave notename ;; degree ;; alteration (- (ly:pitch-alteration normalized-pitch) (ly:assoc-get notename scale) #(define (degree-transpose modal-pitch degree-delta scale-length) Transpose modal-pitch (octave degree alteration) by degree-delta assuming scale-length. (let* ((octave (car modal-pitch)) (degree (cadr modal-pitch)) (alteration (caddr modal-pitch)) (relative-new-degree (+ degree degree-delta))) (list (+ octave (true-quotient relative-new-degree scale-length)) (modulo relative-new-degree scale-length) alteration))) #(define (modal-pitch-ly-pitch modal-pitch scale c-tonic-diff) Convert modal-pitch -- a list (octave degree alteration) -- to a standard pitch using scale and pitch diff from middle C to tonic. scale should be a notename-alteration alist of length 7 which represents the alteration of each note with C as first pitch of the scale. (let* ((octave (car modal-pitch)) (degree (min 6 (cadr modal-pitch))) (alteration (caddr modal-pitch)) (abs-alteration (+ alteration (ly:assoc-get degree scale (ly:pitch-transpose (ly:make-pitch octave degree abs-alteration) c-tonic-diff))) #(define (lookup-music-property event type) Return the first music property of the given type found in event, or #f is no such property is found. event should be music or a list of music. (if (null? event) #f (if (list? event) (or (lookup-music-property (car event) type) (lookup-music-property (cdr event) type)) (let ((p (ly:music-property event 'pitch))) (if (not (null? p)) p (let* ((e (ly:music-property event 'element)) (es (ly:music-property event 'elements)) (p2 (if (null? e) '() (lookup-music-property e type (if (not (null? p2)) p2 (lookup-music-property es type #(define (mode-transpose pitch-note1 scale1 degree-delta pitch-note2 scale2 music) (let ((tonic-diff1 (ly:pitch-diff (ly:make-pitch 0 0 0) (lookup-music-property pitch-note1 'pitch))) (tonic-diff2 (ly:pitch-diff (lookup-music-property pitch-note2 'pitch) (ly:make-pitch 0 0 0 (music-map (lambda (event) (let ((p (ly:music-property event 'pitch))) (if (ly:pitch? p) (ly:music-set-property! event 'pitch (modal-pitch-ly-pitch (degree-transpose (ly-pitch-modal-pitch p scale1 tonic-diff1) degree-delta (length scale1)) scale2 tonic-diff2))) event)) music))) modeTranspose =
Choir with solos - lyrics handling
Hello everybody, I'm typesetting a choral (SATB) piece with solos (by men or women) and am having problems with the lyrics handling. The piece starts with SATB, then TB do a solo part, then SA do solo (both included in \saSoloZwei and\tbSoloZwei) and after SATB again - see [1]. In the non-solo parts the lyrics are the same for every voice, except for some rhythmical differences (sopranos do g8. g16 g2., while basses do c4. c8 c2) here and there. Right now I have two sets of lyrics - one below every stave and they aren't always correctly set to the rhythm. Does anybody have a good template, where I only have to type the lyrics once, the 1 line of lyrics is placed between the staves and goes on through SATB parts, SA solos and TB solos? The templates I found where only SA-TB or S-A-T-B all the time and if I wanted only 1 line of lyrics, it either left out SA solo or TB solo. I can also deliver the rest of the code as well as the produced PDF output. Thanks in advance Hartmut [1] current LY structure: saMusic = \relative c'' { \global \sopranoEins \altoEins \saSoloZwei \sopranoDrei \altoDrei } tbMusic = \relative c' { \voiceOne \tenorEins \voiceTwo \bassEins \tbSoloZwei \voiceOne \tenorDrei \voiceTwo \bassDrei } \score { \new ChoirStaff \new Staff \with { instrumentName = \markup \center-column { Sopran Alt } } \new Voice = sa { \saMusic } % \new Voice = saSolo { \saSolo } \new Lyrics \lyricsto sa \verse \new Staff \with { instrumentName = \markup \center-column { Tenor Bass } } \clef bass \new Voice = tb { \tbMusic } \new Lyrics \lyricsto tb \verse %\pianoReduction } -- -- Hartmut Leister haleis...@gmx.de Hofer Straße 58a, 04317 Leipzig 0175/8491877 http://www-user.tu-chemnitz.de/~harl -- E-Mails richtig schreiben: http://www-user.tu-chemnitz.de/~harl/email_nettiquette.php http://www-user.tu-chemnitz.de/~harl/gpg.php NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing noChordSymbol - N.C
\set noChordSymbol = On Thu, Jun 21, 2012 at 10:44 AM, Anders Eriksson andis.eriks...@gmail.com wrote: Hello, I have just started using Lilypond and I must say it exceeds all my expectations! I trying to add Chords to a melody using \chordmode and I have most things working. One thing that I would like to do is sometimes I don't want any chord, usually in Pickup Measures. If I put a rest (r1) I get a N.C. Is there someway to make a rest without getting a no chord symbol? // Anders -- Computer says No! ___ 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: Why can't I post?
Received. Welcome :-) Il giorno 22/giu/2012 18:17, Anders Eriksson andis.eriks...@gmail.com ha scritto: Hello, I have just become a member of the lilypond-user list. I have tried to send some questions but nothing has arrived! Is there some waiting period or something else that makes my postings not reaching the list? // Anders ___ 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: Why can't I post?
On Fri, Jun 22, 2012 at 2:41 PM, Anders Eriksson andis.eriks...@gmail.com wrote: Hello, I have just become a member of the lilypond-user list. Is there some waiting period or something else that makes my postings not reaching the list? Sometimes the messages get delayed a few hours. Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why can't I post?
Surely there is a template for the Welcome to lilypond-user e-mail that gets sent out that could be edited to add Your posts will appear after the moderator approves your subscription. This could take up to a day. Regards, Jeff From: Janek Warchoł janek.lilyp...@gmail.com To: Anders Eriksson andis.eriks...@gmail.com Cc: lilypond-user@gnu.org Sent: Friday, June 22, 2012 12:56 PM Subject: Re: Why can't I post? On Fri, Jun 22, 2012 at 2:41 PM, Anders Eriksson andis.eriks...@gmail.com wrote: Hello, I have just become a member of the lilypond-user list. Is there some waiting period or something else that makes my postings not reaching the list? Sometimes the messages get delayed a few hours. Janek ___ 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: redirect the list/output of #(ly:font-config-display-fonts)
- == -Eluze elu...@gmail.com writes: - is it possible (and how) to redirect the generated list to a - special file? ly:font-config-display-fonts seems to rely on side-effects, just returning #unspecified, so not much hope there. There is a hacky way to redirect stderr inside lilypond though: #(begin (ly:stderr-redirect ./fontlist.lst w) (ly:font-config-display-fonts)) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing noChordSymbol - N.C
Hi Anders, alternatively to Lucas' suggestion: Use s instead of r - that way you can have NC where you put r and blank where you put s. Best, Robert Am 6/22/12 6:24 PM, schrieb Lucas Gonze: \set noChordSymbol = On Thu, Jun 21, 2012 at 10:44 AM, Anders Eriksson andis.eriks...@gmail.com wrote: Hello, I have just started using Lilypond and I must say it exceeds all my expectations! I trying to add Chords to a melody using \chordmode and I have most things working. One thing that I would like to do is sometimes I don't want any chord, usually in Pickup Measures. If I put a rest (r1) I get a N.C. Is there someway to make a rest without getting a no chord symbol? // Anders -- Computer says No! ___ 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: redirect the list/output of #(ly:font-config-display-fonts)
andersvi-2 wrote: - == -Eluze elu...@gmail.com writes: - is it possible (and how) to redirect the generated list to a - special file? ly:font-config-display-fonts seems to rely on side-effects, just returning #unspecified, so not much hope there. There is a hacky way to redirect stderr inside lilypond though: #(begin (ly:stderr-redirect ./fontlist.lst w) (ly:font-config-display-fonts)) great - this does it (and I didn't see any side-effects) -thanks! Eluze -- View this message in context: http://old.nabble.com/redirect-the-list-output-of--%28ly%3Afont-config-display-fonts%29-tp34054316p34056294.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: functions in include file
On 22/06/12 22:38, Anders Eriksson wrote: Hello, I have just started using Lilypond and I have found some functions on the net which I would like to put in an include file. But I can't figure out how!? One of these function is Mr. John Mandereaus Diatonic/modal transposition function I have put the code in a file (diatonic-transpose.lyi) and is calling it like this %% Start of file \version 2.14.2 \include diatonic-transpose.lyi notes = \relative c' { c d e f g a b c } \score { \new Staff { \clef G \notes \diatonicTranspose c \major #2 \notes } \layout {} \midi {} } %% EOF When I compile it I get: Starting lilypond-windows.exe 2.14.2 [test-dia-transpose.ly]... Processing `C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly' Parsing... C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:13:15: error: unknown escaped string: `\diatonicTranspose' \diatonicTranspose c \major #2 \notes C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:13:15: error: syntax error, unexpected STRING \diatonicTranspose c \major #2 \notes C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:10:2: error: errors found, ignoring music expression error: failed files: C:/Users/ame/Documents/Lilipond/Tests/test-dia- transpose.ly Exited with return code 1. So WHY can't it find \diatonicTranspose ??? It works fine for me when I create the same files with the same code on my machine. Is the include file in the same directory as the main file? Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: functions in include file
Hello Nick, Yes the include file is in the same directory as the main. I tested compiling using Lilypond directly and it worked! I'm using Frescobaldi so the error is in this program not in Lilypond... Must be some configuration... Thanks for your input! // Anders On 2012-06-22 23:18, Nick Payne wrote: On 22/06/12 22:38, Anders Eriksson wrote: Hello, I have just started using Lilypond and I have found some functions on the net which I would like to put in an include file. But I can't figure out how!? One of these function is Mr. John Mandereaus Diatonic/modal transposition function I have put the code in a file (diatonic-transpose.lyi) and is calling it like this %% Start of file \version 2.14.2 \include diatonic-transpose.lyi notes = \relative c' { c d e f g a b c } \score { \new Staff { \clef G \notes \diatonicTranspose c \major #2 \notes } \layout {} \midi {} } %% EOF When I compile it I get: Starting lilypond-windows.exe 2.14.2 [test-dia-transpose.ly]... Processing `C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly' Parsing... C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:13:15: error: unknown escaped string: `\diatonicTranspose' \diatonicTranspose c \major #2 \notes C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:13:15: error: syntax error, unexpected STRING \diatonicTranspose c \major #2 \notes C:/Users/ame/Documents/Lilipond/Tests/test-dia-transpose.ly:10:2: error: errors found, ignoring music expression error: failed files: C:/Users/ame/Documents/Lilipond/Tests/test-dia- transpose.ly Exited with return code 1. So WHY can't it find \diatonicTranspose ??? It works fine for me when I create the same files with the same code on my machine. Is the include file in the same directory as the main file? Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- Computer says No! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: functions in include file
Nick Payne-3 wrote: On 22/06/12 22:38, Anders Eriksson wrote: One of these function is Mr. John Mandereaus Diatonic/modal transposition function I have put the code in a file (diatonic-transpose.lyi) and is calling it like this %% Start of file \version 2.14.2 \include diatonic-transpose.lyi a simple question - are you sure you have saved it in diatonic-transpose.lyi? if I compile your code and this file contains nothing I (or some other code) I get exactly the error messages you report. it is quite common to use the extension .ily for files to be included but I never saw .lyi - can you please check that?! Eluze -- View this message in context: http://old.nabble.com/functions-in-include-file-tp34055276p34057010.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: functions in include file
On 12-06-22 03:35 PM, Anders Eriksson wrote: Hello Nick, Yes the include file is in the same directory as the main. I tested compiling using Lilypond directly and it worked! I'm using Frescobaldi so the error is in this program not in Lilypond... Must be some configuration... Thanks for your input! // Anders In Frescobaldi, one of the options is configuring a list of include directories, under Edit | Preferences. HTH, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user