Re: On creating "title pages" and the like
Am 28.10.2013 01:03, schrieb Joshua Nichols: I'm not familiar enough to know how well LilyPond works with creating separate title pages... Is there a feasible way of doing this within LilyPond? Here is a complete real live example. It might be improved though. Regards Helge %= % % Konservatorium Schwerin % % author: Helge Kruse % %= \version "2.16.0" #(ly:set-option 'midi-extension "midi") #(ly:set-option 'delete-intermediate-files #t) #(ly:set-option 'point-and-click #f) #(set-default-paper-size "a4") %\include "../../Tools/Tools.ily" %% Bookpart first page and last page predicates #(define (not-part-first-page layout props arg) (if (= (chain-assoc-get 'page:page-number props -1) (ly:output-def-lookup layout 'first-page-number)) empty-stencil (interpret-markup layout props arg))) #(define (part-first-page layout props arg) (if (= (chain-assoc-get 'page:page-number props -1) (ly:output-def-lookup layout 'first-page-number)) (interpret-markup layout props arg) empty-stencil )) \paper { %%set to ##t if your score is less than one page: ragged-last-bottom = ##t ragged-bottom = ##f oddFooterMarkup = \markup { \on-the-fly #part-first-page \teeny { Notensatz: Helge Kruse } } oddHeaderMarkup = \markup \fill-line { "" \on-the-fly #not-part-first-page \fromproperty #'header:composer \on-the-fly #not-part-first-page \fromproperty #'header:title \on-the-fly #not-part-first-page \fromproperty #'header:instrument \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string } evenHeaderMarkup = \markup \fill-line { \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string \on-the-fly #not-part-first-page \fromproperty #'header:instrument \on-the-fly #not-part-first-page \fromproperty #'header:title \on-the-fly #not-part-first-page \fromproperty #'header:composer "" } tocTitleMarkup = \markup \huge \column { \hspace #1 \hspace #1 \fill-line { \null "Inhaltsverzeichnis" \null } \hspace #1 \hspace #1 } tocItemMarkup = \markup \fill-line { \fromproperty #'toc:text \fromproperty #'toc:page } } changeBeaming = \set beamExceptions = #'((end . ( ((1 . 8) . (2 2 2 2)) ((1 . 16) . (4 4 4 4)) ((1 . 24) . (3 3 3 3 3 3 3 3)) ((1 . 32) . (8 8 8 8)) ))) revertBeaming = \set beamExceptions = #'() hideTuplet = { \override TupletNumber #'stencil = ##f \override TupletBracket #'bracket-visibility = ##f } showTuplet = { \revert TupletNumber #'stencil \override TupletBracket #'bracket-visibility = ##t } %\include "Allegro.ly" AllegroCornoOne = \relative c'' { c } AllegroCornoTwo = \relative c'' { c } AllegroViolinoOne = \relative c'' { c } AllegroViolinoTwo = \relative c'' { c } AllegroViola = \relative c'' { c } AllegroBasso = \relative c' { c } AllegroHarpRight = \relative c'' { c } AllegroHarpLeft = \relative c' { c } %\include "Affettuoso.ly" AffettuosoFlautoOne = \relative c'' { c } AffettuosoFlautoTwo = \relative c'' { c } AffettuosoViolinoOne = \relative c'' { c } AffettuosoViolinoTwo = \relative c'' { c } AffettuosoViola = \relative c'' { c} AffettuosoBasso = \relative c' { c } AffettuosoHarpRight= \relative c'' { c } AffettuosoHarpLeft = \relative c' { c } %\include "AllegroNonTroppo.ly" AllegroNonTroppoCornoOne = \relative c'' { c } AllegroNonTroppoCornoTwo = \relative c'' { c } AllegroNonTroppoViolinoOne = \relative c'' { c } AllegroNonTroppoViolinoTwo = \relative c'' { c } AllegroNonTroppoViola = \relative c'' { c } AllegroNonTroppoBasso = \relative c' { c } AllegroNonTroppoHarpRight = \relative c'' { c } AllegroNonTroppoHarpLeft = \relative c' { c } \book { \bookpart { \header { title = \markup \center-column { " " " " " " " " "Concerto in G" " " "per la Arpa o il Cembalo concertato" " " " " } subtitle = \markup \center-column { "accompagnate " "da due Violini e Basso," "con due Corni e due Flauti per rinforza" " " " " " " " " } dedication = "Giovanni Guglielmo Hertel" date = "1727-1789" tagline = ##f copyright = ##f } \markuplist \table-of-contents \pageBreak } \bookpart { \tocItem \markup {Partitur} \header { title="Concerto per la Arpa" composer = "Hertel" } \tocItem \markup {" Allegro"} \score { << \new StaffGroup << \new Staff=CornoOne \with { instrumentName = #"Corno 1" } { \AllegroCornoOne } \new Staff=CornoTwo \with { instrumentName = #"Corno 2" } { \AllegroCornoTwo } >> \new StaffGroup << \new Staff=ViolinoOne \with { instrumentName = #"Violino 1" } { \AllegroViolinoOne } \new Staff=ViolinoTwo \with { instrumentName = #"Violino 2" }{ \AllegroViolinoTwo } >> \new Staff=Viola \with { instrum
Re: On creating "title pages" and the like
Am 28.10.2013 05:22, schrieb Kevin Tough: My lilypond install of 2.16.2 cannot parse the input file. It hangs at fatal error: failed files: "SnippetForBookWithTitleAndTOC" (4 of 29): error: unknown escaped string: *\markuplines' I am guessing now that a snippet then is a separate file that should be located somewhere where Lilypond can find it. No, that's not the issue. Only respond to this mail if you have had a problem with the file. I will dig into the documentation about snippets, should I need to get this working. The issue is that the LSR file is written for 2.14, and the syntax has changed in the meantime: \markuplines is now \markuplist. That's what David is referring to with his advice to use convert-ly. HTH Urs Cheers, Kevin Tough On Sun, 2013-10-27 at 21:07 -0500, James wrote: On Oct 27, 2013, at 19:03 , Joshua Nichols wrote: I'm not familiar enough to know how well LilyPond works with creating separate title pages... Is there a feasible way of doing this within LilyPond? I'm not talking about using TeX, LaTeX, or invoking "lilypond-book," but just through the use of markups, etc Or, perhaps a compromise is available? Thanks for your thoughts! Sincerely, Josh I've heavily adapted this snippet for my own use. It should be a starting place at least to develop your own. http://lsr.dsi.unimi.it/LSR/Item?id=368 James Worlton ___ 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
Frescobaldi Feature Request: p&c position after object
Point&click jumps to the start of the object that was clicked. I find that 99% of the times I use point&click, the next thing I do is move the cursor to the end of the object. Would it be possible to automate this behaviour? E.g., add an option to have frescobaldi perform a 'skip to next whitespace' after p&c? -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Frescobaldi Feature Request: p&c position after object
That should be added to the new "Editor Preferences" page I think. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Frescobaldi Feature Request: p&c position in midi player
This is probably hard to do, but nevertheless... asking is easy :). Would it be possible for frescobaldi to have point&click adjust the midi player to the correct position (or measure)? -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond help - arbitrary accidental glyphs
On 27 Oct 2013, at 23:07, Han-Wen Nienhuys wrote: > [+lilypond-user] > > You should ask on lilypond-user > > On Sun, Oct 27, 2013 at 1:07 AM, Clive So wrote: >> Dear Han-Wen, >> >> I have been studying 31 equal temperament and wish to implement Adriaan >> Fokker's notation in Lilypond. I would very much appreciate it if you could >> give me some help. >> >> In search for a solution, I found a 2008 thread between you and Graham >> Breed: >> http://lilypond.1069038.n5.nabble.com/Arbitrary-accidental-glyphs-td110936.html. >> This seems to correspond to my problem, but unfortunately it is way beyond >> my technical ability. I have even tried to study his codes for using >> Sagittal in Lilypond (http://x31eq.com/lilypond/), but it was again too >> technical for me. Editing the Metafont source also seems too difficult. There seems to be a problem: Graham originally retuned pitchnamesEnglish, but that is no longer used in english.ly, which merely invokes \language “english". Also, there LilyPond has a separate system for key signatures, so if one wants working microtonal such, one is essentially stuck with equal temperaments a multiple of 12. If you don’t actually need E31 to be played, you might use E36, E60 or something. I have a file for E36. Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Frescobaldi Feature Request: p&c position in midi player
Am 28.10.2013 09:59, schrieb Johan Vromans: This is probably hard to do, but nevertheless... asking is easy :). Would it be possible for frescobaldi to have point&click adjust the midi player to the correct position (or measure)? -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user AFAICS this won't work reliably because the point-and-click links don't contain any information about the position in the piece. Maybe there will be a partial functionality possible because current development may give Frescobaldi a better (but not complete) musical understanding of the input files. However please place such feature requests on Frescobaldi's issue tracker (https://github.com/wbsoft/frescobaldi/issues). Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Title Page
There is always more than one way to skin the cat I use something like The file mozza4.eps is a graphic use a batch file for %%F in (*.png) do sam2p.exe %%F %%~nF.eps for %%F in (*.jpg) do sam2p.exe %%F %%~nF.eps To convert to eps I forget where I found sam2p.exe but it should be in the Lilypond archives somewhere % % K388 Serenade Clarinet 1 % --- \version "2.16.0" #(set-global-staff-size 20) % % variables for later use to avoid repititions %- date = #(strftime "%d-%m-%Y" (localtime (current-time))) xtitle = "Serenade No. 12 K388" xsubtitle = "arranged as Wind Quintet " xChristian = "Wolfgang Amadeus" xSurname = "Mozart" xdates = "(1756-1791)" xpart = "Clarinet 1" xinstrument = "Clt1" xmidiInstrument = "clarinet" xgraphic="./mozza4.eps" xstamp = \markup{\concat { "Engraved " \bold \date " with " \with-url #"http://lilypond.org/"; "LilyPond " \simple #(lilypond-version) " (http://lilypond.org/)" } } %--- % variable to control minimum ledger space after pageturn shrinkage %--- ledgers = \override Staff.LedgerLineSpanner #'minimum-length-fraction = #0.5 % --- % define staffinstrument % -- staffinstrument = \new Staff { \set Staff.instrumentName = \xinstrument \set Staff.midiInstrument = \xmidiInstrument } % % header for the first page only %-- \header { mycustomtext= \markup { \fill-line { \column { \center-align { \xstamp " " \fontsize #-1 "Original IMSLP90054-PMLP40436-Mozart_K388_NMA_score.pdf" \fontsize #-1 "Finale version Copyright@2002 Oliver Seeley and assigned to public domain" } } } } } % --- % set the paper layout for binding % footer has title and page number % --- \paper { two-sided = ##t top-margin = 10\mm bottom-margin = 10\mm inner-margin = 20 \mm outer-margin = 20 \mm binding-offset = 5 \mm first-page-number = #1 blank-after-score-page-force = #10 page-breaking = #ly:page-turn-breaking ragged-bottom = ##t indent = 20\mm print-page-number = ##t print-first-page-number = ##f oddHeaderMarkup = \markup \null evenHeaderMarkup = \markup \null oddFooterMarkup = \markup { \fill-line { \fontsize #2 \fromproperty #'header:mycustomtext \on-the-fly #print-page-number-check-first \fontsize #2 \fromproperty #'page:page-number-string } % end of fill line } % end of markup block evenFooterMarkup = \oddFooterMarkup } % end of paper block % --- % typeset the movements in a book % --- \book{ % --- % Frontispiece block - note use of variables % --- \markup { \fill-line { \column { \center-align { \vspace #2 \fontsize #10 \concat { \xChristian " " \xSurname } \vspace #1 \fontsize #6 \xdates \vspace #1 \fontsize #10 \xtitle \vspace #1 \fontsize #5 \xsubtitle \vspace #1 \fontsize #5 \italic "(Nacht-Musique)" \vspace #1 \fontsize #2 "originally scored for 2 oboes 2 clarinets 2 F Horns and 2 Bassoons" \vspace #1 \general-align #Y #DOWN { \epsfile #Y #40 #"./mozza4.eps" } \vspace #1 \fontsize #4 \xpar
Re: A function for specifying slur attachment
Hi Janek, it's great to hear that! Please let us all know when you release a new version of your snippet. Take care, Gilberto -- View this message in context: http://lilypond.1069038.n5.nabble.com/A-function-for-specifying-slur-attachment-tp152860p153050.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: So, slashed beamed grace notes...
Hi David, I am sorry for the late reply. Your snippet is being so useful to me now, I am already using it to type a score full of slashed graces. Thanks a lot for sharing it here, and in case you make some other modifications to it, please share it with us! Take care, Gilberto -- View this message in context: http://lilypond.1069038.n5.nabble.com/So-slashed-beamed-grace-notes-tp152817p153051.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: crescendo hairpin with text
Hi Janek, If possible, please set the alignment so that adjacent hairpins or dynamic texts are properly aligned. The existing “hairpinWithCenteredText” function doesn’t align well by default, I believe. Thanks! Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Feedback for Frescobaldi's Preview Mode
Am 26.10.2013 10:53, schrieb Urs Liska: > Hi, > > now the new Preview Modes in Frescobaldi have been available for a > while I would like to have some feedback. I know they aren't > 'production quality' yet and I want to improve them. > > So please report any inconveniences, bugs or additional wishes. > For example I know that 'Display grob anchors' and 'Display grob > names' don't behave well together, but any feedback on similar issues > is welcome. > > Best > Urs > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > Hi, I really like the "Display Control Points" feature while working with croos staff slurs. Coole would be if I could adjust the slurs by dragging the displayed control points regards rene brandenburger ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Feedback for Frescobaldi's Preview Mode
Am 28.10.2013 13:56, schrieb René Brandenburger: Am 26.10.2013 10:53, schrieb Urs Liska: Hi, now the new Preview Modes in Frescobaldi have been available for a while I would like to have some feedback. I know they aren't 'production quality' yet and I want to improve them. So please report any inconveniences, bugs or additional wishes. For example I know that 'Display grob anchors' and 'Display grob names' don't behave well together, but any feedback on similar issues is welcome. Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Hi, I really like the "Display Control Points" feature while working with croos staff slurs. Coole would be if I could adjust the slurs by dragging the displayed control points We're actually hoping to be able to do that in the not-so-far future. But currently the music view is still a static PDF display. regards rene brandenburger ___ 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: Lilypond help - arbitrary accidental glyphs
On 27 Oct 2013, at 23:07, Han-Wen Nienhuys wrote: > [+lilypond-user] > > You should ask on lilypond-user > > On Sun, Oct 27, 2013 at 1:07 AM, Clive So wrote: >> Dear Han-Wen, >> >> I have been studying 31 equal temperament and wish to implement Adriaan >> Fokker's notation in Lilypond. I would very much appreciate it if you could >> give me some help. >> >> In search for a solution, I found a 2008 thread between you and Graham >> Breed: >> http://lilypond.1069038.n5.nabble.com/Arbitrary-accidental-glyphs-td110936.html. >> This seems to correspond to my problem, but unfortunately it is way beyond >> my technical ability. I have even tried to study his codes for using >> Sagittal in Lilypond (http://x31eq.com/lilypond/), but it was again too >> technical for me. Editing the Metafont source also seems too difficult. I was able to get compile an example with apparently working microtonal key signatures as well. Just make sure “regular.ly” is in the same directory as the attached file. Hans regularE31.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Citing Lilypond in a paper?
Hello Ryan McClure: On Sun, 27 Oct 2013 19:58:10 -0700 (PDT) ryanmichaelmcclure wrote: > Would this be the way I should do it, in your opinion? > > CREATOR INFORMATION (2013). Lilypond (Version 2.17.29) [Software]. > Available from http://lilypond.org/download.html > I believe that the proper capitalization of LilyPond is with a capital 'p' as well, such as written in this sentence. Oddly, I cannot find a reference within the Chicago Manual of Style (my Music History Departments preferred citation style) for computer software. I would most likely discuss this with your teacher. Yea! Rachael ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RhythmicStaff followed by Staff in the same score block
Hi guys..Is this possible.. I'm dealing with speaking music which has chords and duration..something like poetry over music..and afterwords singing parts.. i know that i can separate score blocks but it would be better if it could be in the same..then i wouldnt have problems with bar numbers and \mark \default staff.. thanks.. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: RhythmicStaff followed by Staff in the same score block
Stjepan Horvat wrote Monday, October 28, 2013 4:38 PM > Hi guys..Is this possible.. > I'm dealing with speaking music which has chords and duration..something > like poetry over music..and afterwords singing parts.. > i know that i can separate score blocks but it would be better if it > could be in the same..then i wouldnt have problems with bar numbers and > \mark \default staff.. > thanks.. Possible, but can be tricky. See http://www.lilypond.org/doc/v2.17/Documentation/notation/opera-and-stage-musicals#dialogue-over-music for a starting point. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re:Lilypond help - arbitrary accidental glyphs
I have been studying 31 equal temperament and wish to implement Adriaan Fokker's notation in Lilypond. I would very much appreciate it if you could give me some help. In search for a solution, I found a 2008 thread between you and Graham Breed: http://lilypond.1069038.n5.nabble.com/Arbitrary-accidental-glyphs-td110936.html. This seems to correspond to my problem, but unfortunately it is way beyond my technical ability. I have even tried to study his codes for using Sagittal in Lilypond (http://x31eq.com/lilypond/), but it was again too technical for me. Editing the Metafont source also seems too difficult. The latest code is at https://bitbucket.org/x31eq/microlily and fixes some problems with Lilypond upgrades but what's on the website is probably fine for you. Anyway, what you want looks simpler than either the Sagittal JI or tripod code. Maybe the best thing's to send me the font and I'll sort it out. It can then be the example for the next person to want to do this kind of thing. Which of the Fokker symbols is missing from the standard Lilypond set? There seems to be a problem: Graham originally retuned pitchnamesEnglish, but that is no longer used in english.ly, which merely invokes \language ?english". There's no need for pitchnamesEnglish any more. Also, there LilyPond has a separate system for key signatures, so if one wants working microtonal such, one is essentially stuck with equal temperaments a multiple of 12. I'm not sure if this is a problem or not. But at least conventional key signatures will be retuned by regular.ly. Graham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Citing Lilypond in a paper?
On 27/10/2013 10:58 PM, ryanmichaelmcclure wrote: Hi Mark, Thank you for your response. I have a few quick questions about this quickly: Who should I put as the creator of the software at the beginning? Would this be the way I should do it, in your opinion? CREATOR INFORMATION (2013). Lilypond (Version 2.17.29) [Software]. Available from http://lilypond.org/download.html Another approach would be citing a conference proceeding where LilyPond was introduced, such as (from http://lilypond.org/publications.html) Han Wen Nienhuys and Jan Nieuwenhuizen. LilyPond, a system for automated music engraving. In Colloquium on Musical Informatics (XIV CIM 2003), May 2003. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: crescendo hairpin with text
Hi Janek, > Done - see attachments. How do you like it? Looks great! > I didn't notice any alignment problems. Seems to work correctly. Yep, don’t notice the same problems that plagued the old version(s). p.s. Maybe the docs/examples should warn people that Gould explicitly recommends against putting text inside hairpins? While I love the fact that Lilypond (including your excellent extensions) give people lots of flexibility, I feel we as a community should be encouraging best engraving practices. Cheers, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: crescendo hairpin with text
2013/10/28 Kieren MacMillan : > Hi Janek, > >> Done - see attachments. How do you like it? > > Looks great! thanks! > p.s. Maybe the docs/examples should warn people that Gould explicitly > recommends against putting text inside hairpins? While I love the fact that > Lilypond (including your excellent extensions) give people lots of > flexibility, I feel we as a community should be encouraging best engraving > practices. That'd be nice, but it's definitely outside the scope of this snippet. For this to make sense, we probably should define some global "warning policy" first, and that's something i definitely don't have time to discuss now :-( best, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: crescendo hairpin with text
2013/10/28 Kieren MacMillan : > p.s. Maybe the docs/examples should warn people that Gould explicitly > recommends against putting text inside hairpins? While I love the fact that > Lilypond (including your excellent extensions) give people lots of > flexibility, I feel we as a community should be encouraging best engraving > practices. On second thought: there's no reason why i couldn't put a warning in the snippet demonstration. Updated in repository :) Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond help - arbitrary accidental glyphs
On 28 Oct 2013, at 21:52, Graham Breed wrote: I have been studying 31 equal temperament and wish to implement Adriaan Fokker's notation in Lilypond. I would very much appreciate it if you could give me some help. In search for a solution, I found a 2008 thread between you and Graham Breed: http://lilypond.1069038.n5.nabble.com/Arbitrary-accidental-glyphs-td110936.html. This seems to correspond to my problem, but unfortunately it is way beyond my technical ability. I have even tried to study his codes for using Sagittal in Lilypond (http://x31eq.com/lilypond/), but it was again too technical for me. Editing the Metafont source also seems too difficult. ... >> There seems to be a problem: Graham originally retuned pitchnamesEnglish, >> but that is no longer used in english.ly, which merely invokes \language >> ?english". > > There's no need for pitchnamesEnglish any more. I was looking at an older version you sent me, but I got your site regular.ly working sort of. >> Also, there LilyPond has a separate system for key signatures, so if one >> wants working microtonal such, one is essentially stuck with equal >> temperaments a multiple of 12. > > I'm not sure if this is a problem or not. But at least conventional key > signatures will be retuned by regular.ly. This seemed to work, too, but I am curious if what I did is right: it seems one typesets in E24, with LilyPond does not apply enharmonic equivalents. Then for the MIDI file, one retunes it. Is that so? Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
New "make-path-stencil" function
Hi all, While working on a snippet for the "make-connected-path-stencil" function[1] I got to thinking about whether it would be possible to write a function that would have all of its benefits but none of its limitations. A function that would combine the benefits of make-connected-path-stencil: - automatically calculate the stencil extents so you don't have to do this manually. - allow scaling of the stencil. And the benefits of using "ly:make-stencil" with a "path" expression[2]: - allow use of all path commands, both relative and absolute, not just lineto and curveto. (i.e. lineto rlineto curveto rcurveto moveto rmoveto closepath) - allow "unconnected" paths with multiple segments. (i.e. allow (r)moveto in the middle of the path expression) - allow use of different "cap" and "join" styles, not just round. By drawing on the "make-connected-path-stencil" code and the "path" code itself from "output-svg.scm" I've been able to work up a function that can do all of the above, a flexible tool that can handle any "path stencil" job. See the attached file. Eventually I could see a version of this making its way into LilyPond (either alongside or as a replacement of "make-connected-path-stencil"). In the meantime I can put it in the LSR and/or add it to the OpenLilyLib snippet collection (although it's kind of long with the helper functions). If anyone has suggestions for ways to improve the code, I'd be happy to hear them. I'm still learning my way around (often laboriously) with scheme! Cheers, -Paul Here are snippets demonstrating each of the current ways to make a path stencil: [1] http://lsr.dsi.unimi.it/LSR/Item?id=891 [2] http://lsr.dsi.unimi.it/LSR/Item?id=623 make-path-stencil-function.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: New "make-path-stencil" function
Hi Paul, On Mon, Oct 28, 2013 at 8:26 PM, Paul Morris wrote: [...] > > Eventually I could see a version of this making its way into LilyPond > (either alongside or as a replacement of "make-connected-path-stencil"). > Thank you for posting this! In the process of working on adding niente circles to Ferneyhough hairpins (Issue 3357), I noticed that these hairpins don't work with line breaks. (They are simply duplicated.) The routine which draws them uses make-connected-path-stencil. Since the latter starts everything from (0 0), you can't draw broken pieces which are open at both ends. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Change page number during score
Here's an example that numbers pages with prime numbers. ;-) Ok, that was just for fun. Here's also a version that skips a specific list of page numbers. (IMHO, it would still be better to figure out how to embed your graphic pages within Lilypond using eps!) -Curt From: lilypond-user-bounces+lilypond=fishlet@gnu.org [mailto:lilypond-user-bounces+lilypond=fishlet@gnu.org] On Behalf Of David Nalesnik Sent: Saturday, October 26, 2013 1:14 PM To: Hwaen Ch'uqi Cc: EdBeesley; lilypond-user; Trevor Daniels Subject: Re: Change page number during score Hi, > > You're right, there's no way to set the page number, AFAIK :( Well, no simple way. It is possible to write a markup function to increment the page numbers at a certain point. I retooled a function which does Roman numeral page numbers here: http://www.mail-archive.com/lilypond-user@gnu.org/msg73483.html The function below takes a range of "skipped pages." So, the example "skips" page numbers 2 through 5. Thus, the score will be numbered 1, 6, 7... Hope this helps, David % \version "2.17.29" % should work with 2.16 too #(define-markup-command (skip-page-number-range layout props arg) (number-list?) (let ((page-number (chain-assoc-get 'page:page-number props -1))) (interpret-markup layout props (if (>= page-number (car arg)) (number->string (+ page-number (1+ (- (cadr arg) (car arg) (chain-assoc-get 'page:page-number-string props -1) \paper { print-first-page-number = ##t print-page-number = ##t oddHeaderMarkup = \markup \fill-line { " " \on-the-fly #not-first-page \fromproperty #'header:instrument \on-the-fly #print-page-number-check-first \skip-page-number-range #'(2 5) } evenHeaderMarkup = \markup \fill-line { \on-the-fly #print-page-number-check-first \skip-page-number-range #'(2 5) \on-the-fly #not-first-page \fromproperty #'header:instrument " " } } \score { \new Staff { \repeat unfold 6 { s1 \pageBreak } } } % Example to use prime numbers for page numbers \version "2.13.51" #(define (is-prime x k) (if (= x k) #t (if (= (remainder x k) 0) #f (is-prime x (+ k 1) #(define (nth-prime n next) (if (= n 1) next (if (is-prime (+ 1 next) 2) (nth-prime (- n 1) (+ 1 next)) (nth-prime n (+ 1 next) #(define-markup-command (page-number-compute layout props) () (let ((page-number (chain-assoc-get 'page:page-number props 0))) (interpret-markup layout props (format "~a" (nth-prime page-number 2) \header { title = "Mary Had a Little Lamb" } \paper { print-first-page-number = ##t oddHeaderMarkup = \markup { \fill-line { \larger \on-the-fly #print-page-number-check-first \page-number-compute \null \null } } evenHeaderMarkup = \markup { \fill-line { \null \null \larger \on-the-fly #print-page-number-check-first \page-number-compute } } } rh = \relative c' { e8 d c d e e e4 \pageBreak d8 d d4 e8 g g4 \pageBreak e8 d c d e e e e \pageBreak d d e d c2 \pageBreak } lh = \relative c { c8 g, c g, b g, c g, c g, c g, b g, c c4 } \score { \new PianoStaff << \new Staff { \time 2/4 \key c \major \clef treble \rh \transpose c d \rh \key bes \major \transpose c bes \rh \bar "|." } \new Staff { \clef bass \lh \transpose c d \lh \key bes \major \transpose c bes \lh \bar "|." } >> \layout { } } \version "2.13.51" #(define page-number-skip-list '(3 4 7 14)) #(define (pages-less skip-list page offset) (if (null? skip-list) offset (pages-less (cdr skip-list) page (+ offset (if (<= (car skip-list) (+ page offset)) 1 0) #(define-markup-command (page-number-compute layout props) () (let ((page-number (chain-assoc-get 'page:page-number props 0))) (interpret-markup layout props (format "~a" (+ page-number (pages-less page-number-skip-list page-number 0)) \header { title = "Mary Had a Little Lamb" } \paper { print-first-page-number = ##t oddHeaderMarkup = \markup \fill-line { \null \on-the-fly #not-part-first-page \fromproperty #'header:instrument \on-the-fly #print-page-number-check-first \page-number-compute } evenHeaderMarkup = \markup \fill-line { \on-the-fly #print-page-number-check-first \page-number-compute \on-the-fly #not-part-first-page \fromproperty #'header:instrument \null } } rh = \relative c' { e8 d c d e e e4 \pageBreak d8 d d4 e8 g g4 \pageBreak e8 d c d e e e e \pageBreak d d e d c2 \pageBreak } lh = \relative c { c8 g, c g, b g, c g, c g, c g, b g, c c4 } \score { \new PianoStaff << \new Staff { \time 2/4 \key c \major \clef treble \rh \transpose c d \rh \key bes \major \transpose c bes \rh \bar "|." } \n
Re: New "make-path-stencil" function
On 10/28/13 7:26 PM, "Paul Morris" wrote: >Hi all, > >While working on a snippet for the "make-connected-path-stencil" >function[1] I got to thinking about whether it would be possible to write >a function that would have all of its benefits but none of its >limitations. A function that would combine the benefits of >make-connected-path-stencil: > >- automatically calculate the stencil extents so you don't have to do >this manually. > >- allow scaling of the stencil. > > >And the benefits of using "ly:make-stencil" with a "path" expression[2]: > >- allow use of all path commands, both relative and absolute, not just >lineto and curveto. (i.e. lineto rlineto curveto rcurveto moveto rmoveto >closepath) Cool idea! > >- allow "unconnected" paths with multiple segments. (i.e. allow (r)moveto >in the middle of the path expression) Seems to allow simplification of complex stencils. > >- allow use of different "cap" and "join" styles, not just round. It's part of the LilyPond engraving aesthetic to use round caps and joins. Engraving on metal plates doesn't have sharp corners. That's why we don't have the other styles. If you look at all of our box stencils, you'll see they have rounded corners. So I don't think we should support other cap and join styles. But I could certainly be overruled here. > > >By drawing on the "make-connected-path-stencil" code and the "path" code >itself from "output-svg.scm" I've been able to work up a function that >can do all of the above, a flexible tool that can handle any "path >stencil" job. See the attached file. Does it also work with output-ps.scm? > >Eventually I could see a version of this making its way into LilyPond >(either alongside or as a replacement of "make-connected-path-stencil"). >In the meantime I can put it in the LSR and/or add it to the OpenLilyLib >snippet collection (although it's kind of long with the helper functions). It seems like we would replace make-connected-path-stencil with make-path-stencil. > >If anyone has suggestions for ways to improve the code, I'd be happy to >hear them. I'm still learning my way around (often laboriously) with >scheme! I haven't tried to rewrite your code, but when I first learned Scheme I was told that anytime you saw lots of set! expressions in the code, you were trying to write procedural code (I.e. c) instead of functional code (Scheme). Your code seems to have lots of set! expressions; it may be possible to rewrite it in a more functional manner. Anyway, this is a nice contribution! Thanks, Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: New "make-path-stencil" function
David Nalesnik writes: > Hi Paul, > > > On Mon, Oct 28, 2013 at 8:26 PM, Paul Morris wrote: > > [...] > > >> >> Eventually I could see a version of this making its way into LilyPond >> (either alongside or as a replacement of "make-connected-path-stencil"). >> > > Thank you for posting this! > > In the process of working on adding niente circles to Ferneyhough hairpins > (Issue 3357), I noticed that these hairpins don't work with line breaks. > (They are simply duplicated.) The routine which draws them uses > make-connected-path-stencil. Since the latter starts everything from (0 > 0), you can't draw broken pieces which are open at both ends. Why not? You know about ly:translate-stencil, right? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to combine accidental glyphs for new note names?
pls-2 wrote > Hey all, > > I'd like to be able to call some rare accidentals by their own note names. > ... > Thanks for your help! > patrick > > > ___ > lilypond-user mailing list > lilypond-user@ > https://lists.gnu.org/mailman/listinfo/lilypond-user Hello, I see two options: 1. Build your own font which includes the additional glyphs (and all the other accidental glyphs, too). Then make LILYPOND use this new font for all accidentals. 2. Replace the stencil function of the Accidentals by your own scheme procedure. This will return your "combined stencil" for your additions, but will call the original stencil function for all the other standard glyphs. I expect, you will have to "wrap" some other callback functions of this GROB in the same way. You may find some more information how to solve it if your search for: sagittal (uses microtonal accidentals from an extra font) lilyJAZZ (also uses it's own notation font, as far as I've noticed) bold tenuto in the LSR (wraps the stencil function for articulations to return stencils build of simple geometry for tenuto and portato) I hope, this information will help you to proceed, ArnoldTheresius -- View this message in context: http://lilypond.1069038.n5.nabble.com/How-to-combine-accidental-glyphs-for-new-note-names-tp153021p153084.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user