multiple chords for one note's duration
Is there any way to typeset two or more chords over, say, a whole note (the note spans a whole 4/4 measure, but one chord is positioned at the beginning of the measure, and another, say, half-way) illustrating attached
markup(List) text color
Greetings. For my life I can't (find|figure out) the code for changing text color in \markupList. The "font-size" line does work - the font size change is applied to the entire paragraph. The "\override #'(font-color . red)" line does not cause an error, but has no effect on the color. Using version 2.19.83. Please help. Thanks. #(define-markup-list-command (paragraph layout props args) (markup-list?) #:properties ((par-indent 3)) (interpret-markup-list layout props #{\markuplist \justified-lines { \hspace #par-indent #args } #})) \markuplist { \override #'(font-size . -2) \override #'(font-color . red) \paragraph { Monsieur le baron était un des \bold plus puissants seigneurs de la Westphalie, car son château avait une porte et des fenêtres. Sa grande salle même était ornée d'une tapisserie. Tous les chiens de ses basses-cours composaient une meute dans le besoin ; ses. Etc... } }
svg output - note/rest grouping
Hello There's been discussion about this over the last few years; however, i'm not sure if this particular feature has been requested before How easy would it be to modify the generated SVG document, such that every note and rest be encapsulated in its own markup group: and (perhaps also opt out of hyperlinks, and stuff like that - though that's lower priority for me)
Re: \override multiple properties?
> On February 1, 2020 at 7:06 PM Aaron Hill wrote: > related \overrides into their own music variable or function, if there > needs to be some parameterization: > > > \version "2.18" > > emphasizeStem = { >\override Stem.thickness = #3.0 >\override Stem.color = #'(0.5 0.3 0.2) > } > > % . . . > \new Voice \with { \emphasizeStem } { b'4 c''2. } > % . . . > \new Voice { e'8 g' \once \emphasizeStem f'4 a'2 } > % . . . > > > Grouping related \overrides together in a well-named variable promotes > readability, reusability and maintainability. As an added bonus, \once > can be used with the variable without needing to apply it to every > \override. In my case i am needing to override a series of notes and then revert. (So, don't want to use "\once"). I have already used your construct, coupling it with reverting directives grouped the same way (with a named group): emphasizeStem = { \override Stem.thickness = #3.0 \override Stem.color = #'(0.5 0.3 0.2) } revertStem = { \revert Stem.thickness \revert Stem.color } Then i mark up a set of notes with the above two, as start and end markers, like so: e'8 \emphasizeStem gis'' cis'' e'' dis'' \revertStem fis'' What would be nice is be able to parametrize those blocks somehow But, i guess, that can only be done with a Scheme function? I'm shaky on scheme.
\override multiple properties?
The documentation examples are showing single property overrides, like so: \override Voice.Stem.thickness = #3.0 Is it possible to override multiple with just one "\override" directive? something like this (wrong syntax): \override { Voice.Stem.thickness = #3.0 Voice.Stem.color = #(rgb-color 0.3 0.1 0.1) } to reduce redundant syntax, if one had to override many at once.
Re: Stop the resonance of the open hihat in the Midi rendering
> On January 29, 2020 at 8:19 AM Denis Bitouzé wrote: > > > Le 28/01/20 à 15h06, Aaron Hill a écrit : > > > In fact, I would love to see something like articulate.ly that > > humanizes the performance more so by adding in natural imperfections. > > So do I, for swing.ly as well :) 10 ditto's on the swing!
Re: Stop the resonance of the open hihat in the Midi rendering
> On January 27, 2020 at 8:45 PM Aaron Hill wrote: > > > On 2020-01-27 12:27 pm, Denis Bitouzé wrote: > > Hello, > > > > the following drum partition has (semi-)opening hihat. In the Midi > > output, the resonance of this hihat is not stopped, even if followed by > > an explicitly closed hihat. > > It is usually expected that synthesizers implement drum note exclusivity > groups, which allow only one of the group to be playing at any given > time. The three standard hi-hat notes (42=closed, 44=pedal, 46=open) > often form one such group. So if the tail of an open hi-hat is not > being cut off by a subsequent closed hi-hat, that may indicate a problem > with the synthesizer itself or whatever patch is loaded. > This might be broadening the scope of the original concern, but as food for thought: One would want to control the timing of the HH closing for *artistic* purposes... the HH closing can make for rhythmic expression (and often does, in live performance) That said, however, the automation of the above (in lilypond) may be outside the scope of what the app is intended for (primarily score engraving). Correct me if i'm wrong.
Re: building v2.19.83 - can't find libguile.so.17
On January 26, 2020 at 10:02 AM Bric wrote: On January 25, 2020 at 4:21 AM David Kastrup < d...@gnu.org> wrote: Jonas Hahnfeld < hah...@hahnjo.de> writes: Am Freitag, den 24.01.2020, 16:45 -0500 schrieb Bric: i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS -pthread -L/usr/local/lib -lguile -lltdl -lgmp -lcrypt -lm -lltdl how can i make lilypond find the shared object? I just checked and Ubuntu apparently doesn't look for libraries in /usr/local/lib (at least on my system). If you want it to, you might try export'ing LD_LIBRARY_PATH=/usr/local/lib in your shell. This *should* work without removing other versions of guile from your system. I have my version of Guile-1.8 installed in a place where Ubuntu will most certainly not bother looking unless told otherwise guile-config is supposed to be supplying the required options for compiling and linking to make it look in the installation place relevant when guile-config was being installed. Well, i don't know what happened at this point. I got a minute to get back to it just now, ran "make" in the source root, where I was getting the error earlier, and make finished ! Then "sudo make install" and "lilypond --version" is now showing "...2.19.83" i don't remember what i may have done a couple of days ago - with library paths or guile-config, etc. Sorry. This successful build still has the ./configure options I sent a few days ago: $ ./configure GUILE=/usr/bin/guile GUILE_CONFIG=/usr/local/bin/guile-config and to answer the question about LD_LIBRARY_PATH : mine is/was empty; i did not set it to /usr/local/lib I just remembered: I ran ./smart-autogen.sh in the source root earlier - that may have fixed it (?) I don't remember if I also ran ./smart-configure.sh -- David Kastrup
Re: building v2.19.83 - can't find libguile.so.17
On January 25, 2020 at 4:21 AM David Kastrup < d...@gnu.org> wrote: Jonas Hahnfeld < hah...@hahnjo.de> writes: Am Freitag, den 24.01.2020, 16:45 -0500 schrieb Bric: i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS -pthread -L/usr/local/lib -lguile -lltdl -lgmp -lcrypt -lm -lltdl how can i make lilypond find the shared object? I just checked and Ubuntu apparently doesn't look for libraries in /usr/local/lib (at least on my system). If you want it to, you might try export'ing LD_LIBRARY_PATH=/usr/local/lib in your shell. This *should* work without removing other versions of guile from your system. I have my version of Guile-1.8 installed in a place where Ubuntu will most certainly not bother looking unless told otherwise guile-config is supposed to be supplying the required options for compiling and linking to make it look in the installation place relevant when guile-config was being installed. Well, i don't know what happened at this point. I got a minute to get back to it just now, ran "make" in the source root, where I was getting the error earlier, and make finished ! Then "sudo make install" and "lilypond --version" is now showing "...2.19.83" i don't remember what i may have done a couple of days ago - with library paths or guile-config, etc. Sorry. This successful build still has the ./configure options I sent a few days ago: $ ./configure GUILE=/usr/bin/guile GUILE_CONFIG=/usr/local/bin/guile-config and to answer the question about LD_LIBRARY_PATH : mine is/was empty; i did not set it to /usr/local/lib -- David Kastrup
Re: building v2.19.83 - can't find libguile.so.17
On January 24, 2020 at 4:50 PM David Kastrup < d...@gnu.org> wrote: Bric < b...@flight.us> writes: i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS had to build guile-1.8.8, after which lilypond ./configure was happy, and finished (posted about my guile struggles a few days ago) -pthread -L/usr/local/lib -lguile -lltdl -lgmp -lcrypt -lm -lltdl how can i make lilypond find the shared object? I use ./configure GUILE=/usr/bin/guile GUILE_CONFIG=/usr/local/tmp/guile-1.8/bin/guile-config and that's basically all. GUILE can be a 2.x Guile version (it is used for scripting), but GUILE_CONFIG needs to be the 1.8 build. I tried your method and got the same error. Can't find libguile.so.17 attaching the config.log of this latest attempt -- David Kastrup This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure GUILE=/usr/bin/guile GUILE_CONFIG=/usr/local/bin/guile-config ## - ## ## Platform. ## ## - ## hostname = li742-122 uname -m = x86_64 uname -r = 4.15.0-45-generic uname -s = Linux uname -v = #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home//.local/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin PATH: /usr/local/lib ## --- ## ## Core tests. ## ## --- ## configure:2338: checking build system type configure:2352: result: x86_64-unknown-linux-gnu configure:2372: checking host system type configure:2385: result: x86_64-unknown-linux-gnu configure:2439: checking Package configure:2464: result: LILYPOND configure:2467: checking builddir configure:2479: result: /data/installers/lily/lilypond-2.19.83 configure:2482: checking for stepmake configure:2490: result: ./stepmake (${datarootdir}/stepmake not found) configure:2564: checking for gmake configure:2594: result: no configure:2564: checking for make configure:2580: found /usr/bin/make configure:2591: result: make configure:2714: checking for find configure:2730: found /usr/bin/find configure:2741: result: find configure:2865: checking for tar configure:2881: found /bin/tar configure:2892: result: tar configure:3145: checking for bash configure:3176: result: /bin/bash configure:3188: checking for python configure:3276: result: python configure:3279: checking python version configure:3281: result: 2.7.17 configure:3291: checking for python configure:3309: found /usr/bin/python configure:3321: result: /usr/bin/python configure:3482: checking how to replicate source files to build files configure:3490: result: ln configure:3607: checking for gcc configure:3623: found /usr/local/bin/gcc configure:3634: result: gcc configure:3863: checking for C compiler version configure:3872: gcc --version >&5 gcc (GCC) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3883: $? = 0 configure:3872: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/9.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../configure --disable-multilib Thread model: posix gcc version 9.2.0 (GCC) configure:3883: $? = 0 configure:3872: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3883: $? = 1 configure:3872: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:3883: $? = 1 configure:3903: checking whether the C compiler works configure:3925: gccconftest.c >&5 conftest.c:9: warning: "PACKAGE_NAME" redefined 9 | #define PACKAGE_NAME "LilyPond" | conftest.c:2: note: this is the location of the previous definition 2 | #define PACKAGE_NAME "" | configure:3929: $? = 0 configure:3977: result: yes configure:3980: checking for C compiler default output file name configure:3982: result: a.
building v2.19.83 - can't find libguile.so.17
i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS had to build guile-1.8.8, after which lilypond ./configure was happy, and finished (posted about my guile struggles a few days ago) But "make" errors out with: cat Documentation/out/generate-documentation.log : /lilypond-2.19.83/out/bin/lilypond: error while loading shared libraries: libguile.so.17: cannot open shared object file: No such file or directory i built guile to /usr/local/lib, and have a symlink with the above file name lilypond can't find ls -l /usr/local/lib/libguile.so.17* lrwxrwxrwx 1 root root 18 Jan 18 23:54 /usr/local/lib/libguile.so.17 -> libguile.so.17.4.0 -rwxr-xr-x 1 root root 4607496 Jan 18 23:54 /usr/local/lib/libguile.so.17.4.0 guile-config link : -pthread -L/usr/local/lib -lguile -lltdl -lgmp -lcrypt -lm -lltdl how can i make lilypond find the shared object?
Re: compiling 2.19.83 needs guile-config < 1.9.0
On January 18, 2020 at 6:05 PM David Kastrup < d...@gnu.org> wrote: Michael Käppler < xmichae...@web.de> writes: Am 18.01.2020 um 09:36 schrieb David Kastrup: Bric < b...@flight.us> writes: >>> I was asking about the latter: the older versions of guile are not compiling. >>> >>> Has anyone run into this? and solved it? >> Take the tip of the branch_release-1-8 branch in the Guile repository. >> Thien-Thi Nguyen has kept that compilable even though no official >> release is. >> This is interesting. A couple of hours ago I had the discussion with Federico whether there is a reason for compiling guile in LilyDev postinstall based on branch_release-1-8 rather than just taking guile-1.8.8.tar.gz from ftp.gnu.org. Are the fixes on top of the guile-1.8.8 release really important for us? We probably still need to configure using --disable-error-on-warning , and without those changes, building will fail at least when trying to build the documentation with a newer Texinfo version. ./configure option "--disable-error-on-warning" made guile-1.8.8 compile (yay) The "errors" were warnings raised to errors apparently (?) After that, lilypond-2.19.83 ./configure was happy about the guile version, and completed configure. But then lilypond errors out on: GNUmakefile:295: recipe for target 'out/internals.texi' failed"
Re: compiling 2.19.83 needs guile-config < 1.9.0
On January 16, 2020 at 4:47 PM Thomas Morley < thomasmorle...@gmail.com> wrote: Am Do., 16. Jan. 2020 um 21:29 Uhr schrieb Bric < b...@flight.us>: > I think this was discussed before, but i'm not sure how to downgrade guile on Ubuntu 18.04.2 LTS I tried building guile-1.8.0, guile-1.8.4, guile-1.8.5, but the build fails for all three. lilypond ./configure error: ERROR: Please install required programs: guile-config < 1.9.0 (installed: 2.2.3) (guile-devel, guile-dev or libguile-dev package) libguile (libguile-dev, guile-devel or guile-dev package). GUILE-with-rational-bugfix You likely need to point configure to guile and guile-config ../configure GUILE_CONFIG=/path/to/guile-config GUILE=/path/to/guile i don't follow the above. You would point to /path/to/guile-config and /path/to/guile if you have the right version installed. Lilypond is complaining that my installed version is too new. A (rare) need to downgrade a dependency, correct? Or -- correct me if i'm wrong -- as an alternative to downgrading, I could build an old, compatible version from source, to an isolated directory, and satisfy the lilypond dependency that way? I was asking about the latter: the older versions of guile are not compiling. Has anyone run into this? and solved it? Cheers, Harm
compiling 2.19.83 needs guile-config < 1.9.0
I think this was discussed before, but i'm not sure how to downgrade guile on Ubuntu 18.04.2 LTS I tried building guile-1.8.0, guile-1.8.4, guile-1.8.5, but the build fails for all three. lilypond ./configure error: ERROR: Please install required programs: guile-config < 1.9.0 (installed: 2.2.3) (guile-devel, guile-dev or libguile-dev package) libguile (libguile-dev, guile-devel or guile-dev package). GUILE-with-rational-bugfix
Re: Corrected: Beaming in LilyPond
On April 5, 2018 at 7:46 PM Andrew Bernardwrote: I guess it's a bit like LilyJazz. Jazz people seem to want engraved scores to look like handwritten sheets done with a biro. But this always looks terribly 'faux' to me. Ha! I've always felt like jazz fonts (in general) where a strange and trivial pursuit/fetish/habit/convention/etc.And maybe my misgivings about the value of jazz fonts are boosted by my swimming (or wanting to swim) between genres... A distinct font for one particular genre insinuates that it is, indeed, a separate genre or universe -- to be kept apart from others.My 3 cents. Andrew On 6 April 2018 at 04:52, Simon Albrecht wrote: If you mimick the stem lengths and directions of the manuscript in LilyPond, your engraving will still differ from Bach’s manuscript in many ways. It’s a totally different style of engraving, which follows different rules. ___ 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
how to produce this symbol?
attaching a png of some sort of glissando or downward run. Does anyone know how to produce it in lilypond ? thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how to produce this symbol?
On 01/09/2016 10:48 AM, Pierre Perol-Schneider wrote: Hi Bric, How about : \version "2.18.2" \transpose c c'' { s2. r4 | dis8 ^\markup { \translate #'(-5 . 0) \rotate #-45 \pattern #4 #X #0 \musicglyph #"scripts.trill_element" } e gis b } That works great! Michael Gerdau's code connects two distinct notes with a glissando; this one looks identical to the single-note ornament that is in the original music. thanks. Cheers, Pierre 2016-01-09 15:37 GMT+01:00 Bric <b...@flight.us <mailto:b...@flight.us>>: attaching a png of some sort of glissando or downward run. Does anyone know how to produce it in lilypond ? thanks ___ lilypond-user mailing list lilypond-user@gnu.org <mailto: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
what is the object associated with extraNatural ?
The extraNatural property is a boolean, for key signature change, which switches off/on the appearance of cancellation naturals. But what is the name of the actual engraving object for the set of naturals that appear? (Such that one may change its visual properties (like color, size, and what not)) Just like one can do this: \override Staff.KeySignature.color = #red It seems one should be able to do this: \override Staff.extraNaturalObject.color = #red I've searched the docs to no avail. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: what is the object associated with extraNatural ?
On 01/02/2016 02:19 PM, Noeck wrote: Hi, I am not sure whether you talk about key signatures or accidentals. In case of key signatures it is KeyCancellation (as Kieren said), in case of accidentals (which seems more likely as you refer to extraNatural), it is Accidental. For this graphical object, there is no differentiation between sharps,it is Accidental. For this graphical object, there is no differentiation between sharps, Hi, I am not sure whether you talk about key signatures or accidentals. In case of key signatures it is KeyCancellation (as Kieren said), in case of accidentals (which seems more likely as you refer to extraNatural), it is Accidental. For this graphical object, there is no differentiation between sharps,it is Accidental. For this graphical object, there is no differentiation between sharps, flats naturals and extra naturals. To my knowledge you can only color all accidentals of a note at once. This shows all three objects in flats naturals and extra naturals. To my knowledge you can only color all accidentals of a note at once. This shows all three objects in different colors: Yes, KeyCancellation is what I was looking for. Thanks again! { \override Staff.Accidental.color = #blue \override Staff.KeySignature.color = #green \override Staff.KeyCancellation.color = #red \set Staff.extraNatural = ##t \key fis \major aeses4 as ais \key a \major a } Cheers, Joram ___ 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: chord symbol styling
On 10/27/2015 12:05 AM, tisimst wrote: \override ChordName #'font-size = #2 \override ChordName #'font-family = #'roman \override ChordName #'font-series = #'bold wonderful! it works. Including ChordName.color For some reason, font-size seems to have a minimum. Value "1" seems to be the minimum, and anything below that (e.g., 0.1) seems to be rounded up to 1. I could be wrong. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
chord symbol styling
none of the threads discussing this lead to any solution, in my research How do you change font-family, font-style, font-size of the chord fonts? I have tried things like... \override ChordName #'font-name = "DejaVu Serif" \override ChordName #'font-size = #2 \override ChordName #'font-family = #'roman \override ChordName #'font-series = #'bold but that changes nothing. Maybe I don't know the correct context these commands shouild be in... my *.ly code "compiles" without error, but the chord symbols remain the same. Do I need to use the full path of the fonts? thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Chord Symbol fonts
how does one change the fonts for the chord symbols? (I am finding lots of info on the general font setting, but not this, in particular) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Unicode Font Issues
On 11/02/2014 05:22 AM, Jay Vara wrote: Yes, you are right. The unicode fonts failed on 2.19.5. I even tried the new windows 10 and it failed. Now that I know it works on linux (thanks to Bric), I will try to get access to linux using virtual box and try it out. Just my two cents about Linux and Ubuntu: Installing Ubuntu has become a breeze. Also, there are a plethora of cool utilities that make compiling easy, too (it's nice to be able to compile the latest lilypond and whatever, locally). Well, you need to know some basic command-line stuff, I suppose. One particular, however: I would stay away from Unity, and opt for GNOME during installation. Someone could still correct me and persuade me about the glory of Unity, but I have instinctively disliked it from its inception, and am happily using the traditional Gnome. And I also feel like the new newcomers who never get to experience Gnome would be missing its sensibility and might never know they had the option to choose between the two. Well, the above is more like 25cents. And I risk reactionary responses from Unity fans - but rational arguments are welcomed. good luck with your installation and implementation. Should be really easy. On Sat, Nov 1, 2014 at 2:08 PM, Werner LEMBERG w...@gnu.org mailto:w...@gnu.org wrote: If it works on Linux, I may have a way to get Linux on the windows PC using Virtual Box. On the other hand I am using version 2.18.2 - perhaps I should try 2.19.5 first. I fear that 2.19.5 will fail on Windows as 2.18.2 does. Werner ___ 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: Unicode Font Issues
On 11/03/2014 08:09 AM, Martin Tarenskeen wrote: On Mon, 3 Nov 2014, Bric wrote: One particular, however: I would stay away from Unity, and opt for GNOME during installation. Someone could still correct me and persuade me about the glory of Unity, but I have instinctively disliked it from its inception, and am happily using the traditional Gnome. With traditional do you mean Gnome 2.x or the new Gnome 3.x + Gnome-shell? Just like Unity (which I have not tried yet) Gnome3/Gnome-shell can be quite a shock if you are looking for a traditional desktop. I am really happy with it now, but it did take some time to get used to. There are other alternatives if you are looking for something more traditional. Linux = freedom of choice. good point. I guess there was a big leap from 2 to 3. I am using 3.10.4 currently. The bigger differences though are internal, AFAICT; the exterior of 3 doesn't seem that much different from 2.0. (And I did use the word traditional in quotes, originally ;-) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Unicode Font Issues
On 10/31/2014 07:29 AM, Jay Vara wrote: I tried to use unicode fonts for the lyrics. While the fonts show perfectly well in the input file, the output is not correct. Is there a workaround? %% \version 2.18.2 \score { \new Staff \relative c' { {c2 d4e f2 g a b c} \new Lyrics \lyricmode { ಸಾ ರಿ ಗಾ ಮಾ ಪಾ ದಾ ನೀ ಸಾ } } } %%% Here is what it prints and also what it should print. Inline image 1 If the bottom one is correct then it is rendering correctly on Ubuntu 14.04, lilypond 2.19.3. see attached jpeg. ___ 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
how to force shortened staff lines?
i want to generate a landscape score, but one where the staff lines extend some percentage of the printable area - let's say, 70%. Leaving 30% width blank, on the right, for hand-written annotations (upon printout). I've tried: line-width = 70% , line-width = 7.0\in , and right-margin = 3.0\in but all that is being ignored. At least in the \paper { } block. Help? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how to force shortened staff lines?
On 09/16/2014 08:44 PM, Knute Snortum wrote: This seems to work fine for me: %% --- Begin \version 2.18.2 \paper { right-margin = 3.0\in } \score { \relative c' { \repeat unfold 32 { c4 d e f } } \layout { } } %%--- End My profuse apologiesto the list. I had overlooked the offending directive earlier; it was: line-width = 13.5\in so sorry. I have a different though related question; postingas a separate thread. thank you! Can you post a short example that shows us the problem? Knute Snortum (via Gmail) On Tue, Sep 16, 2014 at 10:36 AM, Bric b...@flight.us mailto:b...@flight.us wrote: i want to generate a landscape score, but one where the staff lines extend some percentage of the printable area - let's say, 70%. Leaving 30% width blank, on the right, for hand-written annotations (upon printout). I've tried: line-width = 70% , line-width = 7.0\in , and right-margin = 3.0\in but all that is being ignored. At least in the \paper { } block. Help? ___ lilypond-user mailing list lilypond-user@gnu.org mailto: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
a column of text to the right of the score
earlier today I asked about creating blank margins for HAND-WRITTEN annotations (and got help - thanks). I would also like to know how one can include typed text in the same space, as a column of text to the right of the score, spanning the full height of the printable area - for comments, verses, pedagogical notes, etc. I have a hunch this is a page layout question that's already been addressed, but I couldn't find previous discussion. TIA ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: help with recompile - solved
On 02/23/2014 06:58 AM, Federico Bruni wrote: 2014-02-23 12:26 GMT+01:00 Bric b...@flight.us mailto:b...@flight.us: On 02/23/2014 04:58 AM, Federico Bruni wrote: My experience says python can be a mess, in terms of versions (backwards incompatibility). What version of python(s) does lilypond expect? 2.4 is the version of python shipped in the binary packages on the website. 2.7.x is fine as well. What do you get from? python -V $ python -V Python 2.7.6 $ apt-cache policy python-dev python-dev: Installed: 2.7.5-5ubuntu3 Candidate: 2.7.5-5ubuntu3 Version table: *** 2.7.5-5ubuntu3 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages 100 /var/lib/dpkg/status good, do you still get an error about python-dev? What's the current error when you run ./autogen.sh? I just updated the git, and the problem has been corrected somehow. the updated ./configure told me I was missing the flex program. So, I apt-get-installed flex - surprisingly I did have a package named just that (!)... That's strange because it didn't show up in the apt-file find 'FlexLexer' output. I think that was the primary glitch with flex. the other two complaints - about guile and python - simply went away, with the git update (I don't think I changed anything on my end) So, now I have: $ lilypond --version GNU LilyPond 2.19.3 thank you to all, extremely much ! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: help with recompile
On 02/23/2014 04:58 AM, Federico Bruni wrote: 2014-02-20 0:01 GMT+01:00 Bric b...@flight.us mailto:b...@flight.us: On 02/19/2014 03:28 PM, Bric wrote: I need to recompile. I upgraded to bleeding-edge, pre-release ubuntu Trusty 14.04. (Yeah. I know. Probably dumb.) Got a bunch of packages with build-depend (sudo apt-get build-dep lilypond) ./configure is now giving me: ERROR: Please install required programs: FlexLexer.h (flex package) libguile (libguile-dev, guile-devel or guile-dev package). Python.h (python-devel, python-dev or libpython-dev package) lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts) OK. I got it down to: ERROR: Please install required programs: FlexLexer.h (flex package) libguile (libguile-dev, guile-devel or guile-dev package). Python.h (python-devel, python-dev or libpython-dev package) Have you installed the suggested packages? flex, guile-1.8-dev, python-dev, texlive-lang-cyrillic My experience says python can be a mess, in terms of versions (backwards incompatibility). What version of python(s) does lilypond expect? 2.4 is the version of python shipped in the binary packages on the website. 2.7.x is fine as well. What do you get from? python -V $ python -V Python 2.7.6 $ apt-cache policy python-dev python-dev: Installed: 2.7.5-5ubuntu3 Candidate: 2.7.5-5ubuntu3 Version table: *** 2.7.5-5ubuntu3 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages 100 /var/lib/dpkg/status I have installed all the python *-dev packages available to 14.04 at this time ... ( python2.3-dev python2.7-dev python2.4-dev python2.5-dev python2.6-dev python2.7-dev python-dev libpython2.3 libpython2.4 libpython2.5 libpython2.7 libpython2.7-dev libpython3.3 libpython3.3-dev libpython3.4 libpython3.4-dev libpython-all-dev libpython-dev ) still, lilypond configure complains (!!!) You installed too many packages. python-dev is usually a dependency package to the default version of python in your system. Maybe the last Ubuntu is using python3? (just a guess) guile: I have tried guile2.0 and guile1.8 (they are mutually exclusive; one removes the other on install) guile2.0 is not supported by lilypond yet OK. I currently have: $ apt-cache policy guile-1.8-dev guile-1.8-dev: Installed: 1.8.8+1-8ubuntu3 Candidate: 1.8.8+1-8ubuntu3 Version table: *** 1.8.8+1-8ubuntu3 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages 100 /var/lib/dpkg/status flex: same as with guile, I have installed flex-old and libfl-dev, alternatively (mutually exclusive) Don't you have a flex package? $ apt-file find FlexLexer.h bison++: /usr/share/doc/bison++/Example/FlexLexer.h bisonc++-doc: /usr/share/doc/bisonc++-doc/examples/bison++Example.NEW/FlexLexer.h.gz bisonc++-doc: /usr/share/doc/bisonc++-doc/examples/bison++Example.ORG/FlexLexer.h.gz flex-old: /usr/include/FlexLexer.h libfl-dev: /usr/include/FlexLexer.h libfreehdl0-dev: /usr/include/freehdl/FlexLexer.h libjsyntaxpane-java-doc: /usr/share/doc/libjsyntaxpane-java-doc/api/jsyntaxpane/lexers/DefaultJFlexLexer.html libjsyntaxpane-java-doc: /usr/share/doc/libjsyntaxpane-java-doc/api/jsyntaxpane/lexers/JFlexLexer.html libossim-dev: /usr/include/ossim/base/ossimFlexLexer.h libquickfix-dev: /usr/include/quickfix/FlexLexer.h mozart: /usr/include/mozart/FlexLexer.h $ sudo apt-get install libfl-dev [sudo] password for robin: Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: flex-old The following NEW packages will be installed: libfl-dev 0 upgraded, 1 newly installed, 1 to remove and 16 not upgraded. Need to get 0 B/17.4 kB of archives. After this operation, 383 kB disk space will be freed. Do you want to continue? [Y/n] Y ... installation of package completes I have gone back and forth between flex-old and libfl-dev, re-./configure-ing with each change, same config error. _ by the way, I re-cloned the whole git source from scratch, just in case. DIdn't help, same error. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
help with recompile
I need to recompile. I upgraded to bleeding-edge, pre-release ubuntu Trusty 14.04. (Yeah. I know. Probably dumb.) Got a bunch of packages with build-depend (sudo apt-get build-dep lilypond) ./configure is now giving me: ERROR: Please install required programs: FlexLexer.h (flex package) libguile (libguile-dev, guile-devel or guile-dev package). Python.h (python-devel, python-dev or libpython-dev package) lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts) I am thinking the easiest way right now is to build whatever it still wants locally, but stash it away in /opt/version_blah_blah/, then tell ./configure to build against these exception builds Which libs/packages/sources do I still need to provide ./configure ? thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: help with recompile
On 02/19/2014 03:28 PM, Bric wrote: I need to recompile. I upgraded to bleeding-edge, pre-release ubuntu Trusty 14.04. (Yeah. I know. Probably dumb.) Got a bunch of packages with build-depend (sudo apt-get build-dep lilypond) ./configure is now giving me: ERROR: Please install required programs: FlexLexer.h (flex package) libguile (libguile-dev, guile-devel or guile-dev package). Python.h (python-devel, python-dev or libpython-dev package) lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts) OK. I got it down to: ERROR: Please install required programs: FlexLexer.h (flex package) libguile (libguile-dev, guile-devel or guile-dev package). Python.h (python-devel, python-dev or libpython-dev package) My experience says python can be a mess, in terms of versions (backwards incompatibility). What version of python(s) does lilypond expect? I have installed all the python *-dev packages available to 14.04 at this time ... ( python2.3-dev python2.7-dev python2.4-dev python2.5-dev python2.6-dev python2.7-dev python-dev libpython2.3 libpython2.4 libpython2.5 libpython2.7 libpython2.7-dev libpython3.3 libpython3.3-dev libpython3.4 libpython3.4-dev libpython-all-dev libpython-dev ) still, lilypond configure complains (!!!) guile: I have tried guile2.0 and guile1.8 (they are mutually exclusive; one removes the other on install) flex: same as with guile, I have installed flex-old and libfl-dev, alternatively (mutually exclusive) None of the three complaints go away, with any combination. I am stumped. I am thinking the easiest way right now is to build whatever it still wants locally, but stash it away in /opt/version_blah_blah/, then tell ./configure to build against these exception builds Which libs/packages/sources do I still need to provide ./configure ? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
rolled (arpeggiated) chord
there is a recent thread with the subject rolled chords but I couldn't see the answer to my quest(ion) there. What is the lilypond code for expressing a rolled chord? A vertical squiggly line to the left of a chord? I tried \arpeggio, but it doesn't seem to work. do I have the right code bit? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: rolled (arpeggiated) chord
On 02/05/2014 06:04 AM, Bric wrote: there is a recent thread with the subject rolled chords but I couldn't see the answer to my quest(ion) there. What is the lilypond code for expressing a rolled chord? A vertical squiggly line to the left of a chord? I tried \arpeggio, but it doesn't seem to work. do I have the right code bit? never mind. It just worked with \arpeggio. Must have had a typo somewhere. Apologies (there are variations? Like \arpeggioUpArrow , etc? For some reason this is really hard to find in the docs) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: nuancing and customizing midi rendering
On 01/15/2014 02:37 PM, Peter Bjuhr wrote: On 01/15/2014 08:28 PM, Bric wrote: Please forgive me if this has been discussed and/or documented; I haven't found specifics yet. Are there lilypond controls for things like staccato, accents, and other articulations/dynamics, with respect to midi output? I noticed that the midi output is sensitive to the \staccato directive, for instance, trying alter the sound accordingly. But can one finesse the \staccato, controlling the exact length of the note, in milliseconds or whatever the midi resolution allows? also, any other similar ornamentations, and articulations one could control and customize in lily code ? I realize the piano, forte, fortissimo, etc., are honored, and there is a minimum and maximum midivolume directive, which apparently would factor into crescendo's and diminuendo's... How/where do i find out more ? Maybe this could be a good starting point!? http://www.lilypond.org/doc/v2.18/Documentation/notation/what-goes-into-the-midi-output_003f Take also a closer look at The Articulate script mentioned... Looks like the Articulate script tries to simulate stoccato by shortening written note duration and writing in a compensating rest (i.e., { e4\stoccato b\stoccato } is converted to { e16 r8. b16 r8. }). As the documentation warns, this, of course, alters the rendered visual while (trying to) alter the midi properly. It seems that IDEALLY, one would want the modification to be done directly on midi level, with the visual, written left unaltered. Plus, if there were a variety of overrides and (micro)controls over specific midi durations, with the conventional dynamic notation included among the parameters of the functions, it would be the ultimate way to finesse the midi audio, it seems. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
nuancing and customizing midi rendering
Please forgive me if this has been discussed and/or documented; I haven't found specifics yet. Are there lilypond controls for things like staccato, accents, and other articulations/dynamics, with respect to midi output? I noticed that the midi output is sensitive to the \staccato directive, for instance, trying alter the sound accordingly. But can one finesse the \staccato, controlling the exact length of the note, in milliseconds or whatever the midi resolution allows? also, any other similar ornamentations, and articulations one could control and customize in lily code ? I realize the piano, forte, fortissimo, etc., are honored, and there is a minimum and maximum midivolume directive, which apparently would factor into crescendo's and diminuendo's... How/where do i find out more ? thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midiInstrument not rendered for some values
On 01/11/2014 09:51 AM, Martin Tarenskeen wrote: On Sat, 11 Jan 2014, Noeck wrote: But you can do better than default timidity: timidity/timidity++ has no default soundfont. In fact it doesn't have a soundfont at all. It's the distributions that provide a soundfont or patchset and use this as default. But if you want to use another soundfont, you are free to do so. You just need to edit or replace the *.cfg file. For example on Fedora the FluidR3 soundfont is used by default (On fedora it's split into three packages namely fluid-soundfont-common, fluid-soundfont-gm, and fluid-soundfont-gs) But in the Fedora repositories you can also find PersonalCopy-Light-soundfont. And there are many more, free and nonfree, available from other sources. Under Ubuntu (and I suppose Debian and other distributions) there is a package called fluid-soundfont-gm If you install that and use it in timidity by changing the following line in /etc/timidity/timidity.cfg: - source /etc/timidity/freepats.cfg + source /etc/timidity/fluidr3_gm.cfg You can play at least all the 6 examples from your mail. Unfortunately another poster needed to replace fluidR3 with freepats, because he was having stereo panning problems with fluidR3 ... I need to investigate these cases but: sometimes it could be that it's not the soundfont but timidity's .cfg file that causes a problem. The simplest cfg file for a soundfont named example.sf2 would simply contain one single line soundfont example.sf2 This way it is possible to hear what is caused by the soundfont only, and not influenced by settings in a timidity.cfg file. Not to digress from lilypond /too/ much, but FWIW, some default patches for the timidity(++) on my Ubuntu sound significantly better than the ones in the FluidR3 soundfont (strings, for instance). I am talking about the quality (verisimilitude) and beauty of the actual sound, not panning issues. I will look into creating my own font by cherry-picking various patches from different fonts and consolidating them into one preferred set. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
midiInstrument not rendered for some values
trying random instruments from the list of instruments on this page: http://www.lilypond.org/doc/v2.17/Documentation/notation/midi-instruments here are the values for which my timidity (version 2.13.2) creates an audible track (a few picked at random): cello xylophone pan flute and here are a few values for which there is no sound in the generated midi file: contrabass honky-tonk pizzicato strings is this a glitch? is it my timidity ? I just downloaded, compiled and installed the latest git, version 2.19.0 (on linux), thinking that would solve it, but does not. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: chart alignment
On 12/28/2013 09:58 AM, Alex Loomis wrote: The documentation for chords is here: http://lilypond.org/doc/v2.16/Documentation/notation/displaying-chords I had read these docs. They don't quite explain everything. Without a tiny example of the offending code it's difficult to be sure, but I'd think something like textLengthOn might help? Here is *revised* lilypond code: http://www.flight.us/misc/chord_glitch.ly renders like this for me: http://www.flight.us/misc/chord_glitch.png Is there a way to force the chord chart to stay down? Always aligned with the preceding chart... Also, about fonts: I designated the Baskerville font, and that worked, but the sharp sign seems oversized. Any redemption for that? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
chart alignment
How can I avoid the following glitch: http://www.flight.us/misc/chart_glitch.png (the final fret chart is misaligned, rising above the adjacent one, instead of vertically aligning with the one on its left.) also struggling with labelling the chords with the chord letters (A, C#m, etc.), but that's kind of a separate issue TIA ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: modular markup and arguments
On 11/07/2013 12:31 AM, Paul Morris wrote: Bric wrote So, can one throw in conditionals? (1) Can one, for instance, check/manifest the pitch and duration of '#the-music' ? And based on those values are, write something or not? (2) And how DOES one write something extra? For example, add a note, or add a \markup (again, conditionally, perhaps). I tried adding variants of the following... Check out these snippets: http://lsr.dsi.unimi.it/LSR/Item?id=82 http://lsr.dsi.unimi.it/LSR/Item?id=83 They show examples of how to add things to the music (on the input side) using scheme. Doing it conditionally would then be the next step. (3) Is #the-music an object, with properties and stuff, and how does one access/modify those properties? This should help with this: http://lilypond.org/doc/v2.16/Documentation/extending/displaying-music-expressions OK. I've read through the above. I haven't done much with adding things to the music on the input side like you are wanting. I have mostly customized what's output by conditionally modifying grob properties. These are two different sides or angles... For example, NoteHead.color is a grob property and you could conditionally change it based on a note's pitch using scheme, for example: http://lsr.dsi.unimi.it/LSR/Item?id=572 I have SOME understanding of the advanced snippet code The other two you referred to seem to be vital to my quest - http://lsr.dsi.unimi.it/LSR/Item?id=82 http://lsr.dsi.unimi.it/LSR/Item?id=83 Development is moving insanely fast here. I just compiled 2.17.29, and there's already 2.17.95 I guess I need to build the latest frescobaldi, locally(?), so it's in step with the latest lilypond? Some feedback on the snippet database: It has a sort by date option, but the dates are not showing. I think it would be of some benefit to manifest the dates. Also, to juxtapose the code and its rendered result, on the same page, would also be good (save a lot of time, in the long run) So, obviously, just to add a ^markup to the music function is not trivial. I'm gathering that (text) markup belongs to an event function, rather than a music function, and the two can't be integrated ... although, that doesn't sound likely, off the top of my head, given the power and flexibility of this environment. I have lots of other reflections but will post this for now. thanks! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: modular markup and arguments
On 11/07/2013 05:57 AM, David Kastrup wrote: Bric b...@flight.us writes: So, obviously, just to add a ^markup to the music function is not trivial. I'm gathering that (text) markup belongs to an event function, rather than a music function, and the two can't be integrated ... although, that doesn't sound likely, off the top of my head, given the power and flexibility of this environment. Markups can't be added to general music expressions (what would c1 \\ d2 ^hi even mean?). But in this case you can just attach it to an empty chord starting with the music expression, like ^markup text #the-music ... Fascinating! That worked. When I add your empty chord structure, I get one single insertion of the markup, per single invocation of the function (even though it gets applied to multiple notes). (If the ^\markup... comes before #the-music, it's on the first note of the set of notes; if after, it follows the set of notes). So... this is all quite amazing and powerful.But the interplay between the multiplicity of notes, and the singularity of \markup is something to finesse further. Because, what I am observing sort of defies my earlier idea of conditionally checking every note, its properties, and, based on a boolean, inserting or not inserting a markup. If the markup is inserted only once per invocation of the function, then what I was thinking would be impossible. But, i would guess, there's some way to do multiple insertions of markup, per function instantiation. thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: modular markup and arguments
On 11/05/2013 07:51 PM, David Kastrup wrote: Bric b...@flight.us writes: On 11/05/2013 03:08 PM, David Kastrup wrote: Paul Morris p...@paulwmorris.com writes: But I think what you really want is a music function: \version 2.17.29 boo = #(define-music-function (parser location the-music) (ly:music?) #{ \override NoteHead.color = #red #the-music \revert NoteHead.color #}) \relative c' { c4 d e f \boo { g a b } c d e } For such fixed override/revert pairings you should write \temporary\override in the music function instead of just \override: otherwise any previous \override NoteHead.color = #blue will get overwritten and not get restored afterwards. You rock! This forum rocks! Lilypond rocks! That said: how do I parametrize \boo ? With the color as parameter, for example, for something like: c4 d e f \boo #'red { g a b } c d e f8 g \boo #'blue { b d a4 d } dis e fis I realize I'm completely clueless about the syntax boo = #(define-music-function (parser location color the-music) (color? ly:music?) #{ \temporary \override NoteHead.color = #color #the-music \revert NoteHead.color #}) But colors are not symbols but triplets. The default colors red/blue/black... are stored in variables of that name. So you'd have to write \boo #red { g a b } ... rather than \boo #'red ... This is so awesome! So, can one throw in conditionals? (1) Can one, for instance, check/manifest the pitch and duration of '#the-music' ? And based on those values are, write something or not? (2) And how DOES one write something extra? For example, add a note, or add a \markup (again, conditionally, perhaps). I tried adding variants of the following... boo = #(define-music-function (parser location color the-music) (color? ly:music?) #{ \temporary \override NoteHead.color = #color #the-music (^\markup C) \revert NoteHead.color #}) but none of them work. Obviously, I don't know where scheme ends and lilypond code begins, in the above, and I don't even know scheme that well. (By the way, I think I read the relevant parts of the documentation, as much as I could find. I couldn't find stuff on this level) (3) Is #the-music an object, with properties and stuff, and how does one access/modify those properties? thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
modular markup and arguments
Hi, all I was pleasantly astounded that lilypond allows for things like boo = { \once { \override NoteHead.color = #red } } and then mark up notes sporadically, with \boo cis' \boo d But here's what I want (give me an inch, I'll want a lightyear!) I want the ability to distribute the effect of \boo to a SET of notes. Such as \boo { dis' e' fis' g' } where all the four notes are affected by boo. I tried using boo = { \override NoteHead.color = #red } and then \boo dis' e' fis' g \revert but that, of course, is incorrect syntax. So what gives? Such a wonderful thing as a modular markup and yet it's a hair away from being hyperglorious only because you cannot parametrize it, or make it distributive to a set. By the way, can someone please tell me what the above is called, in lilypond jargon. I also realize that in lilypond, the term markup is reserved for text, and I think that's unfortunate, because it's a broader concept, that would include the phenomenon I am refferring to here. It would be amazingly cool if you could feed parameters into \boo This would then be an awesome hybrid of markup+algorithmic syntax (am I off my rocker!??) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: modular markup and arguments
On 11/05/2013 03:08 PM, David Kastrup wrote: Paul Morris p...@paulwmorris.com writes: But I think what you really want is a music function: \version 2.17.29 boo = #(define-music-function (parser location the-music) (ly:music?) #{ \override NoteHead.color = #red #the-music \revert NoteHead.color #}) \relative c' { c4 d e f \boo { g a b } c d e } For such fixed override/revert pairings you should write \temporary\override in the music function instead of just \override: otherwise any previous \override NoteHead.color = #blue will get overwritten and not get restored afterwards. You rock! This forum rocks! Lilypond rocks! That said: how do I parametrize \boo ? With the color as parameter, for example, for something like: c4 d e f \boo #'red { g a b } c d e f8 g \boo #'blue { b d a4 d } dis e fis I realize I'm completely clueless about the syntax ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: id's for svg elements
On 10/27/2013 03:29 AM, David Kastrup wrote: Mike Solomon m...@mikesolomon.org writes: On Oct 27, 2013, at 12:57 AM, Bric b...@flight.us wrote: Hi! I see it. And I can see that you're doing some sort of awesome magic here, but it remains a total mystery... looking at the code, and looking at the result, alike. (what's a grob property? I guess it's time to hit the fine manual…) Yeah, definitely hit the manuals - they explain in details what grob properties are, how to access them, how to create callback functions, etc.. I sometimes have difficulty distinguishing sarcasm from enthusiasm. At any rate, the manuals should by now contain a number of good leads. How far you get with them without additional help really depends on your general problem solving and computing skills. If your main interest are classic and ancient languages, you're not likely to run into anything you perceive as worryingly difficult. If you are a computer science major, you might encounter some stumbling blocks. The above is sarcasm or enthusiasm? Not a comp sci major, but I've dabbled in Sanskrit (fairly enthusiastically, while that lasted). Will that impede my getting intimate with the grob properties and lilypond scm call-backs? Wow. Truly, lilypond seems to be a work of art, code-wise, with massive ability to intervene and modify anything at any level, from what you guys have said here. At any rate, the user lists are rather helpful resources as well. This user list must be in the top 99 percentile in terms of quickness, thoroughness, and effectiveness of response. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
latest source (was Re: id's for svg elements)
On 10/27/2013 03:07 AM, Mike Solomon wrote: (PS: how is it that you have 2.17.30, when the latest version is 2.17.29 ? http://download.linuxaudio.org/lilypond/source/v2.17/ ) I build LilyPond from source, and the current version in current master is 2.17.30. uuuh... so did /I/, from 2.17.29. But the above link to source tar balls is the most recent source I see. There's no 2.17.30 there. When I go to the development and unstable source page, I still only see 2.17.29 as the latest: http://lilypond.org/development.html When I google — [ lilypond 2.17.30 ] — I get links external to lilypond.org, and just documentations and forums. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
id's for svg elements
can someone help scope out the task of adding semantically sound unique identifiers to the svg elements? Such that the id bears info on, at least, the staff, (maybe bar), and note/chord index (consecutive integer index, for instance) the output-svg.scm script has various routines to build the svg elements/tags/attributes, and these are implemented by other scm scripts (e.g., round-filled-box)... Before I spend hours (days?) trying to figure out the precise subroutine chain/tree , perhaps someone can lead me directly to the top-level code that feeds lilypond info into these scripts? And whereby one can feed staff/movement info, along with note index down to the final svg output? And is this a realistic goal, I wonder? I think even just identifying CLASS information in the id=... attribute might help. Just to set the stem rect apart from the staff line rect, for instance, would already be an improvement; but, of course, I prefer even more specifics, as I described above. thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: id's for svg elements
On 10/26/2013 04:15 AM, Mike Solomon wrote: On Oct 26, 2013, at 10:51 AM, Bric b...@flight.us wrote: can someone help scope out the task of adding semantically sound unique identifiers to the svg elements? Such that the id bears info on, at least, the staff, (maybe bar), and note/chord index (consecutive integer index, for instance) the output-svg.scm script has various routines to build the svg elements/tags/attributes, and these are implemented by other scm scripts (e.g., round-filled-box)... Before I spend hours (days?) trying to figure out the precise subroutine chain/tree , perhaps someone can lead me directly to the top-level code that feeds lilypond info into these scripts? And whereby one can feed staff/movement info, along with note index down to the final svg output? And is this a realistic goal, I wonder? I think even just identifying CLASS information in the id=... attribute might help. Just to set the stem rect apart from the staff line rect, for instance, would already be an improvement; but, of course, I prefer even more specifics, as I described above. thanks. There is a grob property that is called id that is called far downstream (right when the backends are getting the last information about the grobs before drawing them). That means that, if you create a callback for this property, you can feed it all sorts of info. The resulting SVG object will be wrapped in a group with this id. For example… \version 2.17.30 #(define (note-number grob) (string-concatenate (list NoteHead/ (number-string (ly:pitch-semitones (ly:event-property (ly:grob-property grob 'cause) 'pitch)) \relative c' { \override NoteHead.id = #note-number a } Then lilypond -dbackend=svg yourfilename.ly Then open the SVG and look for id=NoteHead/-3 Cheers, MS Hi! I see it. And I can see that you're doing some sort of awesome magic here, but it remains a total mystery... looking at the code, and looking at the result, alike. (what's a grob property? I guess it's time to hit the fine manual...) I can see that your code above generates this in the resulting *.svg file: g id=NoteHead/-3 path transform=translate(24.1197, 21.1727) scale(0.0040, -0.0040) d=M217 139c57 0 112 -31 112 -94c0 -72 -55 -121 -102 -149c-35 -21 -74 -35 -115 -35c-57 0 -112 31 -112 94c0 72 55 121 102 149c35 21 74 35 115 35z fill=currentColor/ /g but I have no idea why this is so, and why there's a group with only one member in it. I presume you are suggesting to group the notehead, the stem, and maybe accidentals, and what not, under the same group and group id? thanks! (PS: how is it that you have 2.17.30, when the latest version is 2.17.29 ? http://download.linuxaudio.org/lilypond/source/v2.17/ ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: midi (and ONLY! midi) transposing
On 10/23/2013 05:07 AM, Rutger Hofman wrote: On 10/23/2013 10:55 AM, Bric wrote: For scores with multiple instruments of various tunings, how do you tell lilypond to to render midi with normalized pitch (everything adjusted to concert pitch, appropriately) — WITHOUT transposing the visual, written notes. E.g., a trumpet part is written a whole tone higher, and you want to keep it written that way, but, at the same time, you wanna hear your trumpet part sound in tune with its concurrent piano part. The way things are right now, one needs to create an additional lilypond, containing WRITTEN transposition, to get a score like that sounding right. Or /is/ there are way to do it with a couple of code directives? thanks Doesn't \transposition do what you want? In 2.17: http://lilypond.org/doc/v2.17/Documentation/notation/displaying-pitches#index-_005ctransposition That's it !! (time to (re)read the fine manual, beginning to end) THANKS! Although, I must say: it's an awful choice of markup words, given the semantics at play: \transpose to change written pitch and \transposition to change the audible, midi pitch because they are noun- and verb-form variants of the same word, and the noun versus verb distinction somehow aligns with the audio versus visual distinction ... doesn't seem congruent or intiutive (I did find the transpose command earlier, and realized it wasn't changing the pitch — only the written.) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
midi (and ONLY! midi) transposing
For scores with multiple instruments of various tunings, how do you tell lilypond to to render midi with normalized pitch (everything adjusted to concert pitch, appropriately) — WITHOUT transposing the visual, written notes. E.g., a trumpet part is written a whole tone higher, and you want to keep it written that way, but, at the same time, you wanna hear your trumpet part sound in tune with its concurrent piano part. The way things are right now, one needs to create an additional lilypond, containing WRITTEN transposition, to get a score like that sounding right. Or /is/ there are way to do it with a couple of code directives? thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 7-year-old question
On 10/20/2013 12:25 AM, Jay Anderson wrote: On Sat, Oct 19, 2013 at 7:12 PM, Bric b...@flight.us wrote: In 2005 someone asked this - http://lists.gnu.org/archive/html/lilypond-user/2005-11/msg00273.html Can one generate/access a list of coordinates for each rendered note/chord (per staff)? Check out ly2video (https://github.com/aspiers/ly2video/). Especially the 'dump-spacetime-info' function in ly2video.py. It's purpose is to dump the horizontal position for aligning to audio, but I think a similar function could work to pull out absolute positioning in x and y. OK. Checked it out. So far: so close but so far! I issue: $ ./ly2video.py -i test.ly -o myvid.avi It generates some png's, seeming to do fine with the visual part of it. (I see the resulting one-liner png files). But it fails with the audio, it seems: When it tries to read the midi file that it apparently should have generated, it doesn't find it (cuz it wasn't generated! :-). It's looking for it in the tmp directory where the png's are, and stuff. snip. Traceback (most recent call last): File ./ly2video.py, line 1907, in module status = main() File ./ly2video.py, line 1860, in main getMidiEvents(midiPath) File ./ly2video.py, line 549, in getMidiEvents midiFile = midi.read_midifile(midiFileName) File /data/builds/ly2video/midi/fileio.py, line 156, in read_midifile midifile = open(midifile) IOError: [Errno 2] No such file or directory: '/data/builds/ly2video/ly2video.tmp/sanitised.midi' as far as the spacetime file you mentioned. Sure, it exists, but i don't know what to do with it. The file itself does not store the coordinates data, and i don't know how to run the scheme code inside, or if I should at all. ly2video.tmp/dump-spacetime-info.ly In other words, I see the file, but i don't see the coordinates data. help! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
7-year-old question
In 2005 someone asked this - http://lists.gnu.org/archive/html/lilypond-user/2005-11/msg00273.html Can one generate/access a list of coordinates for each rendered note/chord (per staff)? (I don't think it should matter that a lot of scaling happens; one could probably reverse the scaling through some trial error approximation, in the worst case scenario) I'm not finding a solution/answer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
insert an arbitrary SVG ?
Is there a way to insert an arbitrary SVG shape? If there is not, I presume a work-around would be inserting a glyph from some special font. (The latter method would not allow for multiple colors, of course, inside the SVG shape). TIA ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: svg output
On March 18, 2013 at 1:38 PM Eluze elu...@gmail.com wrote: Bric wrote lilypond -o outfile.svg -fsvg infile.ly please note that lilypond adds the extension automatically so probably you want to write lilypond -o outfile -dbackend=svg infile.ly Eluze How hard would it be to enhance the svg export with robust svg element id's that retain (at least SOME of) the original lilypond's note characteristics ?? instead of assigning anonymous generic inkscape object names (e.g., id=rect7306 ), have id's such as: path style=... d=... id=note23_gis_head path style=... d=... id=note23_gis_stem path style=... d=... id=note23_gis_elem1 path style=... d=... id=note23_gis_elem2 ... etc. Maybe there's a category of elements that comprises both sounding notes and rests? I.e., duration elements ... in which case, perhaps, that should be used instead of note above? Also: path style=... d=... id=bar1 path style=... d=... id=bar2 path style=... d=... id=bar3 etc... --- I thought about the svg grouping option, but that would be a more radical revision than creating smart id's like above. Such id's would IMPLY grouping, semantically. The parsers could sort out and group elements much more easily, it seams, actually adding the svg grouping, post factum, if need be. -- View this message in context: http://lilypond.1069038.n5.nabble.com/svg-output-tp137775p142987.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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: svg output
On December 16, 2012 at 4:52 PM Gerard McConnell gerine...@gmail.com wrote: Apparently Microsoft has created the problem: «Known issues with this security update We are aware of issues related to OpenType Font (OTF) rendering in applications such as PowerPoint on affected versions of Windows that occur after this security update is applied. We are currently investigating these issues and will take appropriate action to address the known issues. » I'll have a look at the manual and see if I can find out how to use an alternative font in Lilypond for now. Thanks again for the help, Gerard Hi, guys: I don't think I have the font problem (I'm on Ubuntu, and I viewed the attached svg files in Inkscape with no apparent problems); however, I can't even get past step 1 — saving as svg. I end up with a ps file, not svg. I do the following: lilypond -o outfile.svg -fsvg infile.ly and that prints: Processing `infile.ly' Parsing... Interpreting music...[8] Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `outfile.svg.ps'... Success: compilation successfully completed And the only thing produced is outfile.svg.ps, and it IS a post-script file, not an svg. What am I doing wrong? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
output to a single, unwrapped, one-line PNG ?
Hi, all Is there a way to have lilypond output to a very long, skinny PNG image with a one-line score? In other words, no wrapping or line breaking — bar after bar laid out horizontally, to the very end (and, of course, only one instance of Clefs, Time Signature, Key — at the very beginning) The word line is in quotes, because I have a piano score, with two staffs, obviously, and I am referring to the TWO staffs as one line TIA! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: output to a single, unwrapped, one-line PNG ?
On December 16, 2012 at 7:11 AM David Kastrup d...@gnu.org wrote: Bric b...@flight.us writes: Hi, all Is there a way to have lilypond output to a very long, skinny PNG image with a one-line score? In other words, no wrapping or line breaking — bar after bar laid out horizontally, to the very end (and, of course, only one instance of Clefs, Time Signature, Key — at the very beginning) The word line is in quotes, because I have a piano score, with two staffs, obviously, and I am referring to the TWO staffs as one line URL:http://lilypond.org/doc/v2.16/Documentation/notation/one_002dline-page-breaking Cool! It worked for me. Although I /am/ getting what seems to be a bug that this guy pointed out this past summer: http://lists.gnu.org/archive/html/lilypond-devel/2012-06/msg00546.html Also, is there a way to specify resolution for the PNG? -- David Kastrup ___ 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: output to a single, unwrapped, one-line PNG ?
On December 16, 2012 at 7:40 AM Richard Shann richard.sh...@virgin.net wrote: googling the name ly:one-line-breaking I came up with this \paper{ page-breaking=#ly:one-line-breaking } which appears to do the trick. HTH Yes. Thanks again. I forgot to be more specific in previous reply, about my bug. I am getting the extra blank space, below the score — about an 800-pixel excess for the image height (the actual score line is just below the top border. Auto-cropping in gimp seems to fix that quickly. Richard Shann On Sun, 2012-12-16 at 13:11 +0100, David Kastrup wrote: Bric b...@flight.us writes: Hi, all Is there a way to have lilypond output to a very long, skinny PNG image with a one-line score? In other words, no wrapping or line breaking — bar after bar laid out horizontally, to the very end (and, of course, only one instance of Clefs, Time Signature, Key — at the very beginning) The word line is in quotes, because I have a piano score, with two staffs, obviously, and I am referring to the TWO staffs as one line URL:http://lilypond.org/doc/v2.16/Documentation/notation/one_002dline-page-breaking ___ 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
2.17.7 won't compile
I'm getting this error on make: --- begin quote - ! I can't find file `mfplain'. l.27 input mfplain --- end quote --- What is mfplain ? Online searching fails to explain. I'm on Ubuntu Maverick (10.10). Thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Centering / Indenting a paragraph?
On November 23, 2012 at 6:17 PM Trevor Daniels t.dani...@treda.co.uk wrote: Bric, you wrote Friday, November 23, 2012 10:57 PM Nope. Removed all the \hspaces. The third paragraph (set of \line's) is still rammed all the way to the left, crossing the gutter. Actually, changing \column to \center-column shoves the paragraph left, beyond the absolute margin ( pixel 0) When it's \column the paragraph is left-aligned, but with a 2-cm or so left margin If you look at the example at the end of section 2.1.3 in the Notation Reference, and add the following to the end, it will add a centered sixth verse. You should be able to work out from this what you need to do. Here's the extra verse - make sure you get fill-line (which centres a single argument) and line (which makes a single argument from two) right! \markup { \fill-line { \line { \bold 6. \column { This is verse six. It has two lines. } } } } Trevor OK. I hadn't checked my version -- it is/was 2.14 . Somewhere between 2.14 and 2.16.1 things like \vspace and other syntax/commands were added... Since it's developing so fast, it might be a good idea to mention versions to a newbie. Ubuntu still has nothing newer than 2.14 in its repositories. Anyhow, I'm trying the most stable now -- 2.16.1 ; let me see how far I can get with 2.16.1 on my own. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Centering / Indenting a paragraph?
Hi, I'm new to this list and to lilypond I just learned that I can do this: \markup { \fill-line { \hspace #1 \column { \line { This is my first verse } \line { For Column 1 as a supplemental } \line { Text blurb below the score } \line { This is when I don't } \line { Want to align multiple } \line { Verses directly beneath the score staves } } \hspace #2 \column { \line { This is my second verse } \line { It is for Column 2 } \line { of the second } \line { Blurb. } \line { Pretty cool and all is well } \line { Wit these two columns } } \hspace #3 } The above is rendered fine, with two columns well balanced. the problem is: How do I add a third paragraph, centered and indented? If I add the following after the above... \markup { \fill-line { \column { \line { \italic { I want this } } \line { \italic { Centered underneath } } \line { \italic { The above two verses } } \line { \italic { Apparently, that isn't easy! } } } \hspace #4 } } it is left-justified, left-aligned. How do I shift the paragraph? Also, while we're on this topic: (2) How do I add an empty line (forced newline, paragraphbreak, or some such), in the above sets of lines? (3) How can I add other things like solid horizontal line (rules), etc.., etc. ? Thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Centering / Indenting a paragraph?
On November 23, 2012 at 3:29 PM SoundsFromSound soundsfromso...@gmail.com wrote: Bric wrote Hi, I'm new to this list and to lilypond How do I shift the paragraph? Also, while we're on this topic: (2) How do I add an empty line (forced newline, paragraphbreak, or some such), in the above sets of lines? (3) How can I add other things like solid horizontal line (rules), etc.., etc. ? Thanks Hi Bric, Welcome to the list! Does this thread help at all with your question? http://lilypond.1069038.n5.nabble.com/Adding-3-column-section-to-score-td136474.html Changinge \column to \center-column doesn't center the column. It only shoves the verse further leftward, beyond gutter (left) margin. (the rounded box is rendered fine, though) Ben - composer | sound designer -- View this message in context: http://lilypond.1069038.n5.nabble.com/Centering-Indenting-a-paragraph-tp136743p136744.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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Centering / Indenting a paragraph?
On November 23, 2012 at 4:08 PM Thomas Morley thomasmorle...@googlemail.com wrote: 2012/11/23 Bric b...@flight.us: Hi, I'm new to this list and to lilypond I just learned that I can do this: \markup { \fill-line { \hspace #1 \column { \line { This is my first verse } \line { For Column 1 as a supplemental } \line { Text blurb below the score } \line { This is when I don't } \line { Want to align multiple } \line { Verses directly beneath the score staves } } \hspace #2 \column { \line { This is my second verse } \line { It is for Column 2 } \line { of the second } \line { Blurb. } \line { Pretty cool and all is well } \line { Wit these two columns } } \hspace #3 } The above is rendered fine, with two columns well balanced. the problem is: How do I add a third paragraph, centered and indented? If I add the following after the above... \markup { \fill-line { \column { \line { \italic { I want this } } \line { \italic { Centered underneath } } \line { \italic { The above two verses } } \line { \italic { Apparently, that isn't easy! } } } \hspace #4 } } it is left-justified, left-aligned. How do I shift the paragraph? Lily does what you told her: \fill-line with \column { ... } on the left and \hspace #4 on the right. Visible, if you add \box before \hspace #4. Deleting \hspace #4 will center it horizontally on the page. Nope. Removed all the \hspaces. The third paragraph (set of \line's) is still rammed all the way to the left, crossing the gutter. Actually, changing \column to \center-column shoves the paragraph left, beyond the absolute margin ( pixel 0) When it's \column the paragraph is left-aligned, but with a 2-cm or so left margin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user