Re: \makeOctaves broken?
On Wed, Apr 18, 2012 at 4:44 PM, Urs Liska wrote: > I was quite happy to find the function \makeOctaves in the LSR. > > But now it seems to be broken - there is no error message, but the function > doesn't do anything (2.15.36). > As I don't know _anything_ about Scheme I can't do more than ask if anybody > has an idea what has changed with LilyPond so that this function is now > broken? David Kastrup did a quick fix a few months back:http://lists.gnu.org/archive/html/lilypond-user/2012-03/msg00114.html I just tried it and it had a few problems: - it didn't work within a relative section. It only worked within relative sections before. - Slurs and dynamics attached to single notes are lost during the conversion to chords. Below fixes the relative problem, but I haven't spent enough time on it to figure out the second problem. That will take a little bit more time to understand the internal structure changes which I don't have at the moment. Perhaps you can take a look and make it work. -Jay \version "2.15.35" #(define (with-octave-up m octave) (let* ((old-pitch (ly:music-property m 'pitch)) (new-note (ly:music-deep-copy m)) (new-pitch (ly:make-pitch (- octave 1) (ly:pitch-notename old-pitch) (ly:pitch-alteration old-pitch (set! (ly:music-property new-note 'pitch) new-pitch) (list m new-note))) #(define (octavize music t) (map-some-music (lambda (m) (cond ((music-is-of-type? m 'event-chord) (set! (ly:music-property m 'elements) (append-map! (lambda (n) (if (music-is-of-type? n 'note-event) (with-octave-up n t) (list n))) (ly:music-property m 'elements))) m) ((music-is-of-type? m 'note-event) (make-event-chord (with-octave-up m t))) (else #f))) music)) makeOctaves = #(define-music-function (parser location arg mus) (integer? ly:music?) (octavize mus arg)) \relative c' { \time 3/8 \key gis \minor \makeOctaves #1 { dis8(\f e dis')~ dis8.( cis16 b8 } \makeOctaves #-1 { ais' gis dis) cis( dis )\p } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Separating bow marks from notes
Hi, Thanks, that worked great. BTW The fingerings where in both voices just to show how they weren't aligned properly. > I don't understand why you are using fingerings and bows in both voices!? > > but you can still make it work "correctly" using explicit voices: > > \score { > \new Staff << >\context Voice = "1" \marks >\context Voice = "1" \notes > >> > } > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
\makeOctaves broken?
I was quite happy to find the function \makeOctaves in the LSR. But now it seems to be broken - there is no error message, but the function doesn't do anything (2.15.36). As I don't know _anything_ about Scheme I can't do more than ask if anybody has an idea what has changed with LilyPond so that this function is now broken? I thought I could live without \makeOctaves (at least for some time). But now I've come across a piece that practically consists of octaves ... Any help would really be apreciated. Best Urs %LSR This function was contributed by Jay Anderson. #(define (octave-up m t) (let* ((octave (1- t)) (new-note (ly:music-deep-copy m)) (new-pitch (ly:make-pitch octave (ly:pitch-notename (ly:music-property m 'pitch)) (ly:pitch-alteration (ly:music-property m 'pitch) (set! (ly:music-property new-note 'pitch) new-pitch) new-note)) #(define (octavize-chord elements t) (cond ((null? elements) elements) ((eq? (ly:music-property (car elements) 'name) 'NoteEvent) (cons (car elements) (cons (octave-up (car elements) t) (octavize-chord (cdr elements) t (else (cons (car elements) (octavize-chord (cdr elements ) t) #(define (octavize music t) (if (eq? (ly:music-property music 'name) 'EventChord) (ly:music-set-property! music 'elements (octavize-chord (ly:music-property music 'elements) t))) music) makeOctaves = #(define-music-function (parser location arg mus) (integer? ly:music?) (music-map (lambda (x) (octavize x arg)) mus)) \relative c' { \time 3/8 \key gis \minor \makeOctaves #1 { dis8( e dis')~ dis8.( cis16 b8} \makeOctaves #-1 { ais' gis dis) cis( dis) } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Oldstyle Figures (OSF) from OpenType Font
Hello list, can anybody tell me if I can use the 'Old Style Figure' subset of an OpenType font in markups? Thank you for any help Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Understanding how LilyPond handles external fonts
Hello list, I have some difficulties understanding how to access the different versions/weights/styles of external fonts (in markups mode). And I'm not sure if this is a LilyPond or rather a documentation issue. So before submitting a documentation suggestion I'd like to really understand the issue. I understand that I have to override the font-name property to access external fonts. For example \override TextScript #'font-name = #"Arial" or \markup { \override #'(font-name . "Arial") ... } What I'm not really clear about is how LilyPond accesses the different variations of the fonts. It seems that overriding font-series doesn't have an effect at all. Instead I seem to have to specify the full font-name So \markup { \override #'(font-name . "Arial") \override #'(font-series . bold) } doesn't work, while \markup { \override #'(font-name . "Arial Bold") ... } does. So if this is true (and not considered as a bug) I think there would be the need for a documentation improvement. To understand this topic I have another question: What is the correct form of the font-name that has to be specified? Where does LilyPond look at? I have a font family installed which has a great variety of fonts, lets call it Minion Pro. Let's say I want to use the Medium Condensed version, then how should I know what name to use here? In Scribus it is called "Medium Cond", in OpenOffice "Med Cond", Fontmatrix gives me - "Medium Cond" - Postscript name "MediumCn" Nowhere I find "Medium Condensed", but this is the only one that works with LilyPond. Any ideas? Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: piano hand bracket
In data mercoledì 18 aprile 2012 15:26:49, Phil Holmes ha scritto: > http://lsr.dsi.unimi.it/LSR/Item?id=466 > > > Phil Holmes Thanks! > -- oiram/bin/selom Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: String Bass Notation
Tim Roberts wrote: > > > This is a hand-drawn score. I'm thinking that they probably meant snap > pizzicato, and it was easier to draw the line all the way through than > to stop part way through. Snap pizzicato would fit in the context, and > I have found no source that shows the exact "phi" symbol. Have any of > you string players seen that notation? > sorry, I didn't find this score - am i missing something? Eluze -- View this message in context: http://old.nabble.com/String-Bass-Notation-tp33709263p33710930.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: Custodes appear one octave higher than I expect
2012/4/18 David Kastrup > Jakub Pavlík writes: > > > Hi, > > > > > > I have a funny problem with LilyPond 2.15.37: > > Do you have a way to check whether 2.14 is affected as well? > > > in the following snippet, the custos appears one octave higher than > > the note which actually follows on the next line. Does anyone have an > > idea where I make (or LilyPond makes) an error and how to fix it? > > > > Thanks, > > Jakub Pavlík > > > > -- snippet: > > > > \layout { > > > > \context { > > > > \Score > > > > \consists Custos_engraver > > > > } > > > > } > > > > \score { > > > > \relative c' { > > > > f g g g a4 bes a( g) f g a f g g \bar "|" \break > > > > d g g g f( e) f( g) g f e( f) f( g) g \bar "|" > > > > } > > > > \addlyrics { > > > > Hos -- po -- din je mi -- lo -- srd -- ný a dob -- ro -- ti -- vý: > > > > u -- sta -- no -- vil pa -- mát -- ku na své di -- vy, > > > > } > > > > } > Yes, the snippet looks (at least the custodes do) exactly the same compiled with 2.14.2 as with 2.15.37 and changing the context from \Score to \Staff as proposed by Marek solves the problem as well. Jakub P.S.: I'm sorry for posting you twice, David - I forgot first to send the reply to the whole list... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
String Bass Notation
Playing in the pit for Pirates of Penzance last night, the bass player pointed out an articulation mark in the string bass part that neither of us had seen before. It was basically the Greek character "phi" -- a circle with a vertical line all the way through it. It occurred several times. This is a hand-drawn score. I'm thinking that they probably meant snap pizzicato, and it was easier to draw the line all the way through than to stop part way through. Snap pizzicato would fit in the context, and I have found no source that shows the exact "phi" symbol. Have any of you string players seen that notation? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Output for tablet or smartphone
Hello, 1) Has anyone printed out a pdf score for a tablet or smartphone that is just like one long roll? In other words, if you have voice and piano, it'd just be the two continuous staves in one long system, and the paper width would be however long it needs to be to fit everything onto one page. Then you could scroll horizontally with your finger to read the music. -Jonathan___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: piano hand bracket
http://lsr.dsi.unimi.it/LSR/Item?id=466 Phil Holmes - Original Message - From: Mario Moles To: lilypond-user@gnu.org Sent: Tuesday, April 17, 2012 1:00 PM Subject: piano hand bracket Hi lilyponders! How can I do what I scored in the picture? I'm sorry for his bad qualities! In particular I am interested in the sign with another hand to make a note on the stave of the piano! Hi! -- oiram/bin/selom Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni. -- ___ 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: Separating bow marks from notes
lesmondo wrote: > > Hi, > > > I'm trying to separate bow marks/fingerings from notes and the bow > marks/fingerings don't align with the notes correctly. > > What am I doing wrong? > > I don't understand why you are using fingerings and bows in both voices!? but you can still make it work "correctly" using explicit voices: \score { \new Staff << \context Voice = "1" \marks \context Voice = "1" \notes >> } -- View this message in context: http://old.nabble.com/Separating-bow-marks-from-notes-tp33707675p33708076.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: Using \tempo or multiple events in define-event-function
Pavel Roskin writes: > Hello! > > I cannot use define-event-function for tempo changes. That's what I'm > trying to do: > > \version "2.15.36" > rit = #(define-event-function (parser location) () #{ > ^"rit." \tempo 4=40 > #}) > \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } > > I get an error: > > event.ly:3:10: error: syntax error, unexpected \tempo, expecting $end > ^"rit." > \tempo 4=40 > event.ly:5:38: error: error in #{ ... #} > \new Voice { \tempo 4=50 c'4 e'4 \rit > g'2 } Yup. define-event-function can only be used to return _one_ postevent. > There is an additional problem with \tempo. It returns a value > that causes an error: > > \version "2.15.36" > rit = #(define-event-function (parser location) () #{ > \tempo 4=40 > #}) > \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } \tempo is not a postevent. You can try selling it as one by writing #{ -\tempo ... #} but I don't know whether that will actually work. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Using \tempo or multiple events in define-event-function
Hello! I'm trying to define macros that would change tempo and print tempo indications at once. Since both the tempo and the markup are written after the note, I'm trying to use define-event-function. That's what I'm trying to do: \version "2.15.36" rit = #(define-event-function (parser location) () #{ ^"rit." \tempo 4=40 #}) { \tempo 4=50 c'4 e'4 \rit g'2 } I get an error: event.ly:3:10: error: syntax error, unexpected \tempo, expecting $end ^"rit." \tempo 4=40 event.ly:5:27: error: error in #{ ... #} { \tempo 4=50 c'4 e'4 \rit g'2 } It turns out I cannot put more than one statement into the function. For example, this works: \version "2.15.36" rit = #(define-event-function (parser location) () #{ ^"rit." #}) { \tempo 4=50 c'4 e'4 \rit g'2 } And this works: \version "2.15.36" rit = #(define-event-function (parser location) () #{ \pp #}) { \tempo 4=50 c'4 e'4 \rit g'2 } But this doesn't work: \version "2.15.36" rit = #(define-event-function (parser location) () #{ ^"rit." \pp #}) { \tempo 4=50 c'4 e'4 \rit g'2 } event.ly:3:10: error: syntax error, unexpected EVENT_IDENTIFIER, expecting $end ^"rit." \pp event.ly:5:27: error: error in #{ ... #} { \tempo 4=50 c'4 e'4 \rit g'2 } There is an additional problem with \tempo. It returns a value that causes an error: \version "2.15.36" rit = #(define-event-function (parser location) () #{ \tempo 4=40 #}) { \tempo 4=50 c'4 e'4 \rit g'2 } event.ly:5:22: error: post event function cannot return #) (text) (origin . #))((display-methods #) (name . TempoChangeEvent) (types general-music event tempo-change-event)) > #) (symbol . tempoWholesPerMinute))((display-methods #) (name . PropertySet) (types layout-instruction-event general-music) (iterator-ctor . #)) > ))((display-methods # # # # # # # #) (name . ContextSpeccedMusic) (iterator-ctor . #https://lists.gnu.org/mailman/listinfo/lilypond-user
Separating bow marks from notes
Hi, I'm trying to separate bow marks/fingerings from notes and the bow marks/fingerings don't align with the notes correctly. What am I doing wrong? An example shows my problem. \version "2.14.2" notes = { c d e-4\upbow f-4\upbow } marks = { s-4\upbow s s s-4\upbow} \score { \new Staff <<\marks \notes >>} Thanks Les ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
piano hand bracket
Hi lilyponders! How can I do what I scored in the picture? I'm sorry for his bad qualities! In particular I am interested in the sign with another hand to make a note on the stave of the piano! Hi! -- oiram/bin/selom Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.<>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custodes appear one octave higher than I expect
Jakub Pavlík writes: > Hi, > > > I have a funny problem with LilyPond 2.15.37: Do you have a way to check whether 2.14 is affected as well? > in the following snippet, the custos appears one octave higher than > the note which actually follows on the next line. Does anyone have an > idea where I make (or LilyPond makes) an error and how to fix it? > > Thanks, > Jakub Pavlík > > -- snippet: > > \layout { > > \context { > > \Score > > \consists Custos_engraver > > } > > } > > \score { > > \relative c' { > > f g g g a4 bes a( g) f g a f g g \bar "|" \break > > d g g g f( e) f( g) g f e( f) f( g) g \bar "|" > > } > > \addlyrics { > > Hos -- po -- din je mi -- lo -- srd -- ný a dob -- ro -- ti -- vý: > > u -- sta -- no -- vil pa -- mát -- ku na své di -- vy, > > } > > } > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Separating bow marks from notes
Hi, I'm trying to separate bow marks/fingerings from notes and the bow marks/fingerings don't align with the notes correctly. What am I doing wrong? An example shows my problem. \version "2.14.2" notes = { c d e-4\upbow f-4\upbow } marks = { s-4\upbow s s s-4\upbow} \score { \new Staff <<\marks \notes >>} Thanks Les ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lilypond 2.14.2 on PuppyLinux
Hi, This post for information only. Good news: later Lilypond 2.14.2 gets nice installed on later «flavours» of Puppylinux, i.e. tested on wary5.3 ; racy5.3; dpup-Exprimo (kernels 3.X series - also available: extra language packs for de , fr , es, pl, ru locales - have tested the french one) but not on Slacko5.3.1 (built around kernel 2.6.37.6 for slackware archive compatibility; for this, install the .txz slackware archive of Lilypond instead); nor on PuppyLinux earlier serie 4.X; nor on Lupu528 ( built around the kernel2.6.33.2; even the Ubuntu Lilypond archive does not install); A few users have reportedthey like using Lilypond on PuppyLinux because of the fast compile of .ly codes. They also reported (around september 2011) installation difficulties of Lilypond from version 2.13.42: then the sh installation returned the following error message : - sh lilypond-2.13.42-linux-x86.sh ... bzip2: (stdin) is not a bzip2 file tar: Child died with signal 13 tar: Exiting with failure status due to previous errors. ... - see also issue 1731 in bug-lilypond list. here are some links to the development threads which also contains download links: wary5.3 ; racy5.3: http://murga-linux.com/puppy/viewtopic.php?t=76182 dpup-Exprimo: http://murga-linux.com/puppy/viewtopic.php?t=76247 Slacko5.3.1: http://murga-linux.com/puppy/viewtopic.php?t=72805 also more general info on: http://www.puppylinux.com/ and http://www.puppylinux.org/ Hope this could help. Cheers, Charlie ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Using \tempo or multiple events in define-event-function
Hello! I cannot use define-event-function for tempo changes. That's what I'm trying to do: \version "2.15.36" rit = #(define-event-function (parser location) () #{ ^"rit." \tempo 4=40 #}) \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } I get an error: event.ly:3:10: error: syntax error, unexpected \tempo, expecting $end ^"rit." \tempo 4=40 event.ly:5:38: error: error in #{ ... #} \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } It turns out I cannot put more than one statement into the function. For example, this works: \version "2.15.36" rit = #(define-event-function (parser location) () #{ ^"rit." #}) \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } And this works: \version "2.15.36" rit = #(define-event-function (parser location) () #{ \pp #}) \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } But this doesn't work: \version "2.15.36" rit = #(define-event-function (parser location) () #{ ^"rit." \pp #}) \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } There is an additional problem with \tempo. It returns a value that causes an error: \version "2.15.36" rit = #(define-event-function (parser location) () #{ \tempo 4=40 #}) \new Voice { \tempo 4=50 c'4 e'4 \rit g'2 } event.ly:5:33: error: post event function cannot return #) (text) (origin . #))((display-methods #) (name . TempoChangeEvent) (types general-music event tempo-change-event)) > #) (symbol . tempoWholesPerMinute))((display-methods #) (name . PropertySet) (types layout-instruction-event general-music) (iterator-ctor . #)) > ))((display-methods # # # # # # # #) (name . ContextSpeccedMusic) (iterator-ctor . #https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custodes appear one octave higher than I expect
Dne 18. dubna 2012 14:06 Marek Klein napsal(a): > Hello, > > > 2012/4/18 Jakub Pavlík > >> Hi, >> >> I have a funny problem with LilyPond 2.15.37: >> in the following snippet, the custos appears one octave higher than the >> note which actually follows on the next line. Does anyone have an idea >> where I make (or LilyPond makes) an error and how to fix it? >> >> > It works, if you change \Score to \Staff - like: > > \layout { > > \context { > > \Staff > > \consists Custos_engraver > > } > > HTH > > Marek Klein > http://gregoriana.sk > > Thank you very much. It really solved the issue. Jakub ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custodes appear one octave higher than I expect
Hello, 2012/4/18 Jakub Pavlík > Hi, > > I have a funny problem with LilyPond 2.15.37: > in the following snippet, the custos appears one octave higher than the > note which actually follows on the next line. Does anyone have an idea > where I make (or LilyPond makes) an error and how to fix it? > > It works, if you change \Score to \Staff - like: \layout { \context { \Staff \consists Custos_engraver } HTH Marek Klein http://gregoriana.sk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Custodes appear one octave higher than I expect
Hi, I have a funny problem with LilyPond 2.15.37: in the following snippet, the custos appears one octave higher than the note which actually follows on the next line. Does anyone have an idea where I make (or LilyPond makes) an error and how to fix it? Thanks, Jakub Pavlík -- snippet: \layout { \context { \Score \consists Custos_engraver } } \score { \relative c' { f g g g a4 bes a( g) f g a f g g \bar "|" \break d g g g f( e) f( g) g f e( f) f( g) g \bar "|" } \addlyrics { Hos -- po -- din je mi -- lo -- srd -- ný a dob -- ro -- ti -- vý: u -- sta -- no -- vil pa -- mát -- ku na své di -- vy, } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user