Re: lilyvim
Hi Christian, Would this be of any use? https://github.com/gernest/lily.vim Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Why is skipTypesetting so loud?
When using \set skipTypesetting, stderr is *flooded* with messages saying `programming error: asked to compute volume at ...`, `programming error: no current dynamic`, and `continuing, cross fingers`. This makes it rather difficult to see if there are any actual errors, since those are printed before the five thousand lines of spam. It's fairly trivial to write a wrapper script to remove those lines, but the fact that the spam exists at all bothers me. It didn't exist in 2.18. Why does it exist now? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Git version control (was: Re: Hello / a 1st question)
On Thu, 2017-08-10 at 13:40 -0700, H. S. Teoh wrote: > On Thu, Aug 10, 2017 at 06:40:10PM +, Vlad Kudelin wrote: > > Lilypond just makes it natural to put everything under > >version control! > [...] > > [...] I use git, which allows me to experiment with different > branches (different ways of scoring a passage) quickly and easily, and > without risk of losing previous versions should I decide to revert. > So, here's a bonus, to be inserted immediately below the \version line of your score: \version "2.19.40" % from snippet 197 (more to see at http://lsr.di.unimi.it/LSR/Search ): #(define comml(object->string (command-line))) #(define loc (+ (string-rindex comml #\space ) 2)) #(define commllen (- (string-length comml) 2)) #(define filen(substring comml loc commllen)) % filename #(define modt (stat:mtime (stat filen))) % Last modified #(define modts(strftime "%d %b %Y %H:%M:%S" (localtime modt))) % Command line % gitrev (from http://lilypondblog.org/2014/01/why-use-version-control-for-engraving-scores/#more-2151 ) #(use-modules (ice-9 popen)) #(use-modules (ice-9 rdelim)) % NOTE: This function only reads the first line of the command! #(define (strsystem_internal cmd) (let* ((port (open-input-pipe cmd)) (str (read-line port))) (close-pipe port) str)) #(define-markup-command (strsystem layout props cmd) (markup?) (interpret-markup layout props (strsystem_internal cmd))) gitrev = \markup { \strsystem "/opt/local/bin/git rev-parse --short HEAD" } \header { tagline = \markup{ \center-column{ \concat {"Music engraving by Lilypond " $(lilypond-version) "-www.lilypond.org" } \line { "Version control for this edition: gitrev " \gitrev " " \modts } }} } Now you can tell whether that paper copy is up-to-date. Of course, you don't want this code cluttering up every lilypond score, so best put it in a separate file and \include it. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hello / a 1st question
On Thu, Aug 10, 2017 at 06:40:10PM +, Vlad Kudelin wrote: >Hello dear Lilypond community! >I am a new user, and a pretty happy one! Just found out about THIS >a week ago, and God! I am so grateful to the creators!!! >I am a guy who knows music and computers, but... hates mouse. In >fact I've got Carpal using mouse to enter 100s of notes in some >s/w But now I am free! can use emacs or whatever! – >un–be–live-able!!! >And also (perfectionists will understand the torture I've been >through) : Lilypond just makes it natural to put everything under >version control! >un–be–f- live-able!!! [...] Welcome to Lilypond. :-) I also hate the mouse, and I compose music with vim and lilypond. Which means I can work on my music remotely via SSH over a low-bandwidth link. No need for bandwidth (and memory) hogging VNC's. And yes, version control. I use git, which allows me to experiment with different branches (different ways of scoring a passage) quickly and easily, and without risk of losing previous versions should I decide to revert. Not to mention the beautiful scores Lilypond produces. You're in good company here. ;-) T -- Knowledge is that area of ignorance that we arrange and classify. -- Ambrose Bierce ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hello / a 1st question
On Thu, 2017-08-10 at 18:40 +, Vlad Kudelin wrote: > Hello dear Lilypond community! > > > I am a new user, and a pretty happy one! Just found out about THIS a > week ago, and God! I am so grateful to the creators!!! > > > I am a guy who knows music and computers, but... hates mouse. In fact > I've got Carpal using mouse to enter 100s of notes in some s/w But > now I am free! can use emacs or whatever! – un–be–live-able!!! > And also (perfectionists will understand the torture I've been > through) : Lilypond just makes it natural to put everything under > version control! > un–be–f- live-able!!! Welcome to the list. Yes, it's a wonderful piece of software :) > > That said, I hope it's all right to ask questions here, even if one is > a total newbee. > Here it is: > > > I need to accomplish a trivial (I think) task: a book with a bunch of > scores, in the form > > > Title, Composer... > Score > Title, Composer... > Score > > ... > > > However it doesn't look like it's easy. > I've spent two days reading the manual and the tutorial and > googling here is what I've found relevant: > > > 1) \bookpart : this does work, except for a page break that it creates > after each score... > It doesn't work for me (my "book" is a bunch of tiny 1-2 line little > songs for kids just starting to study piano); > > > 2) The Help page at LilyPond Notation Reference: 3.2.1 Creating titles > headers and footers > > > > LilyPond Notation Reference: 3.2.1 > Creating titles headers and footers > > LilyPond Notation Reference: 3.2.1 > Creating titles headers and footers > > > > > > > suggests using \header within \score; > > * After the music expression in a \score block. > > > > However this either takes the *last* header and makes it global > (ex1), > or doesn't create headers at all (ex2). > > > Any help would be greatly appreciated. > How about: \version "2.19.40" \paper { #(set-paper-size "a4") print-all-headers = ##t } \score { \header { title = "A score of A's" composer = "Albinoni" } { \repeat unfold 24 a'1 \bar "|." } } \markup \vspace #10 \score { \header { title = "Better with B's" composer = "P.D.Q.Bach" } { \repeat unfold 24 b'1 \bar "|." } } \markup \vspace #10 \score { \header { title = "All at C" composer = "Chopin" } { \repeat unfold 24 c''1 \bar "|." } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
lilyvim
Hello, I got used typesetting my musical scores with lilypond using the wonderful vim. Some time ago I used the lilyvim package designed by Heikki Junis respectively Aaron Mehl. Badly some of these files disappeared from my computers. I tried to contact Aaron and Heikki to get the lilyvim package from them. But all of the mail addresses I tried failed. Does anyone of you happen to have this package or would you be so kind to send me a working mail address of Heikki or Aaron? Thanks in advance Christian ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Changing alternative ending number to text
On Wed, Aug 9, 2017 at 9:21 AM, Lukas-Fabian Moserwrote: > Deriving from http://lsr.di.unimi.it/LSR/Item?id=316 (and regretting that I > don't fully understand the scheme code involved): > > \version "2.19.44" > > Fine = \markup { \text \small FINE } > > test = > \repeat volta 3 { > e''1 | } > > > \alternative { > { > c''1| > } > { > a''1 \bar "|." | > } > { >\set Score.repeatCommands = #(list (list 'volta Fine) 'start-repeat) > g''1 \bar "|." | > } > } > > \score { > \test > } > > 2017-08-09 15:04 GMT+02:00 Ralph Palmer : >> >> I have three endings : first, second, and FINE. Is it possible to >> change the "3." to "FINE" without using manual repeats? >> Beautiful! Thanks so much! All the best, Ralph -- Ralph Palmer Brattleboro, VT USA palmer.r.vio...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Get the paper size in scheme
Robert Kuboszwrites: > Hi everyone! > > I am currently creating a template for a book. I want to create a scheme > function, which adapts markup according to paper size. The problem is, > that I don't know how to get current paper size. Markup commands get a "layout" argument. You can then access the paper-width variable inside. Dimensions are in units depending on staff spaces, so you usually want to adjust for that. Which is reasonably easy, given that units are also expressed in staff spaces. There may be rounding errors due to that. #(define-markup-command (print-width layout props unit) (symbol?) (interpret-markup layout props (format #f "~f ~s" (/ (ly:output-def-lookup layout 'paper-width) (ly:output-def-lookup layout unit)) unit))) \markup { "Paperwidth is" \print-width #'cm "." } -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Get the paper size in scheme
Hi everyone! I am currently creating a template for a book. I want to create a scheme function, which adapts markup according to paper size. The problem is, that I don't know how to get current paper size. AFAIK there is #(set-default-paper-size "paper-size") and I could not find a variable holding the paper size. I want to ask you where to find the paper size or how to overpass this problem? Robert <>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: special ornament sign
Hi Stefan, How about: \version "2.19" yourSign = ^\markup { \combine \vcenter \center-align \fontsize #2.5 "~" \vcenter \center-align \fontsize #-3 "|" } mySign = ^\markup \with-dimensions #'(0 . 0) #'(0 . 0) \translate #'(-.4 . .4) { \combine \rotate #25 \concat \override #'(height . 0.5) \override #'(thickness . 1.4) { \draw-squiggle-line #1 #'(1 . 0) ##t \hspace #-.1 \draw-squiggle-line #1 #'(-1 . 0) ##t } \rotate #-10 \translate #'(1 . 0) \fontsize #-4 \scale #'(.8 . 2.1) \vcenter\musicglyph #"scripts.ustaccatissimo" } \fixed c''{ \time 3/8 s4. b8\yourSign d'16 b g8 b8\mySign d'16 b g8 s } Cheers, Pierre 2017-08-09 23:05 GMT+02:00 Stefan Thomas: > Dear Thomas, > thanks for Your tipp! > I did it now with > slashedturn = \markup { >\combine >\vcenter \center-align \fontsize #2.5 "~" >\vcenter \center-align \fontsize #-3 "|" >} > > 2017-08-09 22:43 GMT+02:00 Thomas Morley : > >> 2017-08-09 22:26 GMT+02:00 Stefan Thomas : >> > Dear community, >> > I need to typeset a sign, which looks a bit like a that You can see in >> > meaure number 10 (right hand) in the following example: >> > http://petrucci.mus.auth.gr/imglnks/usimg/7/7c/IMSLP92499-PM >> LP29490-haydn_fant_op58.pdf >> > I found something similar here: >> > http://lists.gnu.org/archive/html/lilypond-user/2009-09/msg00393.html >> > but it looks a bit to "heavy" for me. Is there another way to build this >> > sign? Maybee I could use another special font (if one exists) for that? >> > Thanks for Your help, >> > Stefan >> >> Something of: >> >> \markup { 톗 } >> \markup { 톘 } >> \markup { 톙 } >> \markup { 톚 } >> >> ? >> >> >> Cheers, >> Harm >> > > > ___ > 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: Automatically numbering "instrument name"?
Hi Sam, thank you for your feddback. My name is Manuela, I am female :-) 2017-08-09 21:00 GMT+02:00 Sam Bivens: > Hi Manuel and Malte, > > Thanks so much for the help; this is exactly what I was looking for! > > Sam > > On Wed, Aug 9, 2017 at 4:18 AM, Malte Meyn wrote: > >> >> >> Am 09.08.2017 um 06:34 schrieb Manuela Gößnitzer: >> >>> Do you mean something like this? >>> >>> #(define score-number 0) %% insert in first score >>> >>> #(set! score-number (1+ score-number)) >>> >>> \new PianoStaff \with { >>> instrumentName = \markup { >>> #(number->string score-number) "." >>> } >>>} >>> \relative c'' { c } >>> >> >> You would have to do this set! before every score. Try the following >> instead: >> >> \version "2.19.64" >> >> #(define sn 0) >> >> #(define (score-number) >>(set! sn (1+ sn)) >>(string-append (number->string sn) ".")) >> >> \new Staff \with { >> instrumentName = #(score-number) >> } c' >> \new Staff \with { >> instrumentName = #(score-number) >> } c' >> \new Staff \with { >> instrumentName = #(score-number) >> } c' >> \new Staff \with { >> instrumentName = #(score-number) >> } c' >> \new Staff \with { >> instrumentName = #(score-number) >> } c' >> >> >> ___ >> lilypond-user mailing list >> lilypond-user@gnu.org >> https://lists.gnu.org/mailman/listinfo/lilypond-user >> > > > > -- > Sam Bivens > Music Theory Faculty | Cleveland Institute of Music > Ph.D. Candidate | Eastman School of Music > Co-Editor, *Intégral* > > ___ > 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