Re: Problems with lilypond-invoke-editor

2024-04-11 Thread Ben Bradshaw
Sorry, I'll try and be more specific. I don't use a desktop environment
either, so I normally open emacs from a keybinding that uses the spawn
command in herbstluftwm (which I think is basically a bash exec). Then
after I compile a lilypond file with C-c C-c (and choose lilypond) then
choose view, zathura opens and when I point and click it gets those errors.
If I just close that instance of zathura, and then open a new one (from
dmenu), then point and click works.

I haven't had time to try xpdf yet, but knowing this I can adjust and open
zathura by itself instead of however emacs opens it through the command and
things work. Just a change of habit.

On Thu, Apr 11, 2024, 10:17 PM David Wright 
wrote:

> On Wed 10 Apr 2024 at 21:35:16 (-0600), Ben Bradshaw wrote:
> > Well I fixed having multiple lilyponds installed, and at first I thought
> it
> > worked. Zathura and xpdf at least work when I open them separately.
>
> I'm not sure exactly what you mean by open separately. Is this: typing
>  in a command line, or clicking on a viewer's icon, or (by file
> association) clicking on a PDF document?
>
> > I guess
> > it's a minor annoyance, but if I open zathura from the C-c C-c part of
> > emacs, then it doesn't work and I get those errors.
>
> Same again—how do you start emacs?
>
> > I have no clue why that
> > would make a difference, but it seems to be the case. Open the file in a
> > viewer separately and point and click works just fine. Use the lilypond
> > command view and it doesn't.
>
> I've only tested with xpdf and emacs, each one opened from the command
> line (because I don't use a desktop). Point-and-click works whether
> xpdf was started from the command line or from  ^C^C ViewPDF in emacs.
>
> > I guess I haven't tried to see if other pdf
> > viewers work from the command menu, but it seems like it wouldn't be a
> > zathura problem.
>
> I would try with xpdf, because it has a simpler configuration/mechanism
> than viewers like zathura and evince. If xpdf works correctly, I would
> suspect that there might by more Gnome-y stuff required to get zathura
> to work when launched by emacs with ^C^C, rather than by Gnome. But
> that's only a guess.
>
> Would you be able to adjust your workflow to begin by running zathura
> on the PDF, and just clicking on an item in the score to launch emacs?
> (Perhaps that's what you're already doing.)
>
> Cheers,
> David.
>


Re: Problems with lilypond-invoke-editor

2024-04-10 Thread Ben Bradshaw
Well I fixed having multiple lilyponds installed, and at first I thought it
worked. Zathura and xpdf at least work when I open them separately. I guess
it's a minor annoyance, but if I open zathura from the C-c C-c part of
emacs, then it doesn't work and I get those errors. I have no clue why that
would make a difference, but it seems to be the case. Open the file in a
viewer separately and point and click works just fine. Use the lilypond
command view and it doesn't. I guess I haven't tried to see if other pdf
viewers work from the command menu, but it seems like it wouldn't be a
zathura problem.

On Sun, Apr 7, 2024 at 10:44 AM David Wright 
wrote:

> On Fri 05 Apr 2024 at 20:43:01 (-0600), Ben Bradshaw wrote:
> > I've been using frescobaldi mostly because I like the point and click
> > functionality. I just discovered today that you can configure that to
> work
> > with other PDF viewers and editors, which I would like to do, since I
> keep
> > trying to use emacs bindings inside frescobaldi
> > Anyways, I thought that I had everything figured out. But when I try and
> > click I get some stuff showing up in an emacs buffer.
> >
> > Traceback (most recent call last):
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> > ^
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> >   File "/usr/local/bin/lilypond-invoke-editor", line 79, in
> replace_template
> > return template % {
> >
> > ValueError: unsupported format character ':' (0x3a) at index 25
> >
> > Is this a problem with the program or my config? I'm using arch linux,
> > herbstluftwm window manager (followed the settings for GNOME 3 to get a
> > desktop entry, otherwise it would only launch firefox), zathura as PDF
> > viewer, emacs as LYEDITOR.
> >
> > Any help would be greatly appreciated so I can stop doing C-x C-s every
> > time I want to save!
>
> I'm not sure why you have /usr/local/bin/ occurring in your error
> messages as I don't see any string "local/" on the page:
>
>   https://archlinux.org/packages/extra/x86_64/lilypond/files/
>
> Is there any possibility that you have multiple versions of LP
> installed, and that one version is calling another?
>
> BTW you can bisect the problem and test lilypond-invoke-editor
> separately at the command line just by typing:
>
>   $ lilypond-invoke-editor textedit://:LL:CC:CC
>
>  is a .ly file, LL a line number, CC a column number
> (actual numbers not important), as in:
>
>   $ lilypond-invoke-editor textedit:///tmp/blue.ly:50:10:10
>
> Either of:
>
>   $ type  lilypond-invoke-editor
>   $ which lilypond-invoke-editor
>
> will tell you which executable is being run. But if your Gnome3
> settings include a path for that executable, you obviously need
> to test it with that path.
>
> Cheers,
> David.
>


Re: Problems with lilypond-invoke-editor

2024-04-07 Thread Ben Bradshaw
Hmm it could be. I downloaded the source code so I could get images in the
info files. I noticed yesterday actually that the source version was going
to /use/local . I'll try and set the prefix correctly when I compile and
see if I can get just one version of LP.

Thanks for catching that!

On Sun, Apr 7, 2024, 10:44 AM David Wright 
wrote:

> On Fri 05 Apr 2024 at 20:43:01 (-0600), Ben Bradshaw wrote:
> > I've been using frescobaldi mostly because I like the point and click
> > functionality. I just discovered today that you can configure that to
> work
> > with other PDF viewers and editors, which I would like to do, since I
> keep
> > trying to use emacs bindings inside frescobaldi
> > Anyways, I thought that I had everything figured out. But when I try and
> > click I get some stuff showing up in an emacs buffer.
> >
> > Traceback (most recent call last):
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> > ^
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> >   File "/usr/local/bin/lilypond-invoke-editor", line 79, in
> replace_template
> > return template % {
> >
> > ValueError: unsupported format character ':' (0x3a) at index 25
> >
> > Is this a problem with the program or my config? I'm using arch linux,
> > herbstluftwm window manager (followed the settings for GNOME 3 to get a
> > desktop entry, otherwise it would only launch firefox), zathura as PDF
> > viewer, emacs as LYEDITOR.
> >
> > Any help would be greatly appreciated so I can stop doing C-x C-s every
> > time I want to save!
>
> I'm not sure why you have /usr/local/bin/ occurring in your error
> messages as I don't see any string "local/" on the page:
>
>   https://archlinux.org/packages/extra/x86_64/lilypond/files/
>
> Is there any possibility that you have multiple versions of LP
> installed, and that one version is calling another?
>
> BTW you can bisect the problem and test lilypond-invoke-editor
> separately at the command line just by typing:
>
>   $ lilypond-invoke-editor textedit://:LL:CC:CC
>
>  is a .ly file, LL a line number, CC a column number
> (actual numbers not important), as in:
>
>   $ lilypond-invoke-editor textedit:///tmp/blue.ly:50:10:10
>
> Either of:
>
>   $ type  lilypond-invoke-editor
>   $ which lilypond-invoke-editor
>
> will tell you which executable is being run. But if your Gnome3
> settings include a path for that executable, you obviously need
> to test it with that path.
>
> Cheers,
> David.
>


Problems with lilypond-invoke-editor

2024-04-05 Thread Ben Bradshaw
Hello,
I've been using frescobaldi mostly because I like the point and click
functionality. I just discovered today that you can configure that to work
with other PDF viewers and editors, which I would like to do, since I keep
trying to use emacs bindings inside frescobaldi
Anyways, I thought that I had everything figured out. But when I try and
click I get some stuff showing up in an emacs buffer.

Traceback (most recent call last):
  File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
editor_commands = [list(map(replace_template, cmd)) for cmd in
editor_commands]

^
  File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
editor_commands = [list(map(replace_template, cmd)) for cmd in
editor_commands]
   
  File "/usr/local/bin/lilypond-invoke-editor", line 79, in replace_template
return template % {
   
ValueError: unsupported format character ':' (0x3a) at index 25

Is this a problem with the program or my config? I'm using arch linux,
herbstluftwm window manager (followed the settings for GNOME 3 to get a
desktop entry, otherwise it would only launch firefox), zathura as PDF
viewer, emacs as LYEDITOR.

Any help would be greatly appreciated so I can stop doing C-x C-s every
time I want to save!


Ben


Re: Raising all metronome marks

2024-04-03 Thread Ben Bradshaw
Ah man! Forgetting the Score context in my override strikes again! The
padding was my initial choice, but that wasn't working either.

Thanks for the help, one of these days I'll remember to check that first
when something isn't working how I think it should.

Best,
Ben

On Wed, Apr 3, 2024, 12:03 AM Sebastien Richard 
wrote:

>
> Hello,
>
> Here is what I mostly use :
>
> \override Score.MetronomeMark.padding = #6
>
> just before the tempo mark (works with lilypond 2.24.2)
>
>
> I have another example with a markup but it's much more complex (I can
> send it if you want)
>
> BR,
>
> ---
>  Sébastien
>
>
> --
> *From:* lilypond-user-bounces+richardsgjm=hotmail@gnu.org
>  on behalf of Ben
> Bradshaw 
> *Sent:* Wednesday, April 3, 2024 05:52
> *To:* Lily Pond 
> *Subject:* Raising all metronome marks
>
> Hello,
> I like my tempo markings to be a bit higher than the default in lilypond.
> I'm struggling to figure out how to globally raise them. I can do it
> locally with \offset Y-offset 3 for instance, of \tweak Y-offset #3, but I
> can't get it to work globally. I've tried \override MetronomeMark.Y-offset
> = #3 as well as \offset Y-offset 3 MetronomeMark , but neither seems to
> work. Any suggestions?
>
> Thanks,
> Ben
>


Raising all metronome marks

2024-04-02 Thread Ben Bradshaw
Hello,
I like my tempo markings to be a bit higher than the default in lilypond.
I'm struggling to figure out how to globally raise them. I can do it
locally with \offset Y-offset 3 for instance, of \tweak Y-offset #3, but I
can't get it to work globally. I've tried \override MetronomeMark.Y-offset
= #3 as well as \offset Y-offset 3 MetronomeMark , but neither seems to
work. Any suggestions?

Thanks,
Ben


Re: Troubles with StaffGrouper

2024-03-20 Thread Ben Bradshaw
Ah wonderful thanks! So basically what was happening is that a global
VericalAxisGroup will override the StaffGrouper, and so I needed to only
locally change the VerticalAxisGroup. Then the StaffGrouper actually worked!

On Wed, Mar 20, 2024 at 1:38 AM Xavier Scheuer  wrote:

> On Wed, 20 Mar 2024 at 04:48, Ben Bradshaw 
> wrote:
> >
> > Hello,
> > I think I must not be understanding how the StaffGrouper works. I'm
> doing a score with instrument and piano accompaniment, and have the piano
> music in a PianoStaff. I'm trying to get more space between the solo staff
> and the piano staff. This is what I tried...
> >
> > \layout{
> > \context {
> > \Score
> > \override VerticalAxisGroup.staff-staff-spacing.minimum-distance = #14
> > \override StaffGrouper.staff-staff-spacing.minimum-distance = #6
> > }
> >
> > But it seems the StaffGrouper spacing isn't applied, and what I get is
> big space between all three lines. I thought that the StaffGrouper was
> supposed to override settings in the VerticalAxisGroup, but maybe I have to
> do it a different way? Any help would be greatly appreciated.
>
> Hello,
>
> Well, apparently that's the case if you don't change the default values of
> VerticalAxisGroup.staff-staff-spacing (maybe that's a bug).
> In your case I would change the value of
> VerticalAxisGroup.staff-staff-spacing for the staff above the PianoStaff.
>
> \score {
>   <<
> \new Staff \with {
>   \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance
> . 12)
> (minimum-distance . 11)
> (padding . 1))
> } { c'1 }
> \new PianoStaff <<
>   \new Staff { c'1 }
>   \new Staff { c'1 }
> >>
>   >>
> }
>
> Kind regards,
> Xavier
>
>


Troubles with StaffGrouper

2024-03-19 Thread Ben Bradshaw
Hello,
I think I must not be understanding how the StaffGrouper works. I'm doing a
score with instrument and piano accompaniment, and have the piano music in
a PianoStaff. I'm trying to get more space between the solo staff and the
piano staff. This is what I tried...

\layout{
\context {
\Score
\override VerticalAxisGroup.staff-staff-spacing.minimum-distance = #14
\override StaffGrouper.staff-staff-spacing.minimum-distance = #6
}

But it seems the StaffGrouper spacing isn't applied, and what I get is big
space between all three lines. I thought that the StaffGrouper was supposed
to override settings in the VerticalAxisGroup, but maybe I have to do it a
different way? Any help would be greatly appreciated.

Thanks,
Ben


Schenkerian slurs and framework

2024-03-04 Thread Ben Bradshaw
Hello,
I read the 2005 article in the Linux journal about making schenkerian
graphs, and I feel like it covered everything except one type of slur. I
think I've heard it called a swan slur before. It's a slur that hooks
around a note. In this picture it's the slur connecting the e flat in the
bass to the second b flat.
https://i0.wp.com/johnhalle.com/wp-content/uploads/2020/08/image-3.png?ssl=1
I feel like I need one more point to modify in the bezier curve to get it
to hook around like that. Is that possible?

Also, while searching for an answer to this I saw reference to a
LilySchenker framework but I can't find any more info about it, probably
because there's some famous person named Lily Schenker... Anyone have more
info on that?

Thanks,
Ben


Measure Counter Engraver with groups bigger than a measure

2024-01-27 Thread Ben Bradshaw
Hello everyone,
I have some music that has a four measure repeating section and then puts
numbers at the first measure to indicate how many times the group has been
done. I thought the measure counter engraver would work nicely, but it
numbers every measure instead of every four measures. Is there a way to
make it count in groups of 4? Or is a different tool better suited?

Thanks,
Ben


Re: Parenthesizing multiple events

2023-11-20 Thread Ben Bradshaw
As an alternate approach could you use the \arrpegioBracket ? It's a little
more square, but I think there's a way to override that. I used it once to
put a bracket around a cord. You just have to override one of the
properties to move the endpoints in the negative direction as well as an x
offset for the closing side.

On Mon, Nov 20, 2023, 7:35 AM Luca Fascione  wrote:

> Did this change between 22 and 24?
> Is there somewhere I can go to see the implementation for the LSR that
> used 2.22?
>
> L
>
> On Mon, 20 Nov 2023, 15:07 Knute Snortum,  wrote:
>
>> On Mon, Nov 20, 2023 at 4:35 AM Luca Fascione 
>> wrote:
>>
>>> Also,
>>> it doesn't seem to actually work on 2.22 (see below)
>>>
>>> How does this even compile on the LSR?
>>>
>>
>> The LSR uses LilyPond 2.24.2, which compiles the source without error.
>>
>> --
>> Knute Snortum
>>
>


Re: lilypond does not generate pdf - new install on mac os sonoma

2023-11-11 Thread Ben Bradshaw
Essentially you need to downgrade ghostscript a version. Although with the
new release announced today I don't know if it will be fixed or not.

On Sat, Nov 11, 2023, 5:22 PM Leonardo van der Laat 
wrote:

> I'm having the same problem.
> There's already a thread about this:
> https://lists.gnu.org/archive/html/lilypond-user/2023-06/msg00135.html
> Joshua Armenta posted a solution, something to do with Ghostscript, but I
> couldn't make it to work.
>
> On Sat, Nov 11, 2023 at 5:39 PM Abe Raher  wrote:
>
>> hey folks – with my newly installed lilypond on mac os sonoma, lilypond
>> generates midi but no pdfs
>>
>> i've tested a number of .ly files that successfully generated scores
>> previously – none generate pdfs now
>>
>> and i just tested the simplest template in lilypond's docs ... please
>> have a look at the log output and give me a clue!
>>
>> thanks very much
>>
>> ***
>>
>> what i've got:
>>
>> Mac OS: 14.1.1 (23B81)
>>
>> % lilypond --version
>>
>> GNU LilyPond 2.24.2 (running Guile 3.0)
>>
>>
>>
>> test file:
>>
>>
>>
>> melody = \relative c' {
>>   \clef treble
>>   \key c \major
>>   \time 4/4
>>
>>   a4 b c d
>> }
>>
>> \score {
>>   \new Staff \melody
>>   \layout { }
>>   \midi { }
>> }
>>
>>
>>
>> test command:
>>
>>  % lilypond --loglevel=debug template-notes-only.ly
>>
>>
>> ***
>>
>>
>> command output:
>>
>>
>> Log level set to 287
>> GNU LilyPond 2.24.2 (running Guile 3.0)
>>
>> Relocation
>>   Absolute file name of LilyPond binary computed from PATH:
>>
>> PATH=/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin
>> argv0=lilypond
>>   Setting INSTALLER_PREFIX to '/usr/local/Cellar/lilypond/2.24.2'
>>   Using run-time value for datadir,
>> setting it to
>> '/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2'
>>   Using run-time value for libdir,
>> setting it to '/usr/local/Cellar/lilypond/2.24.2/lib/lilypond/2.24.2'
>>   Using run-time value for localedir,
>> setting it to '/usr/local/Cellar/lilypond/2.24.2/share/locale'
>>   Using compile-time value for relocdir,
>> setting it to ''
>>   Prepending '/usr/local/Cellar/lilypond/2.24.2/bin' to PATH
>>   Setting PATH to
>> '/usr/local/Cellar/lilypond/2.24.2/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin'
>> Setting GUILE_AUTO_COMPILE to '0'
>> Setting GUILE_WARN_DEPRECATED to 'detailed'
>> Setting XDG_CACHE_HOME to
>> '/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2'
>> Setting GC_INITIAL_HEAP_SIZE to '40M'
>> Setting GC_NPROCS to '1'
>> Setting GC_FREE_SPACE_DIVISOR to '1'
>>
>>
>> Effective prefix:
>> '/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2'
>>
>> PATH="/usr/local/Cellar/lilypond/2.24.2/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin"
>>
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/lily.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/lily-library.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/output-lib.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/markup-macros.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/parser-ly-from-scheme.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/file-cache.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/define-event-classes.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/define-music-callbacks.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/define-music-types.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/define-note-names.scm]
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/c++.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/chord-entry.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/skyline.scm]
>>
>> [/usr/local/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/scm/lily/markup.scm]

Re: what is the musical ornament called that looks like a mordent but has curl in front of it?

2023-10-26 Thread Ben Bradshaw
Hmm Google failed me and didn't bring that page up. That's way better!

On Thu, Oct 26, 2023, 10:33 PM Kenneth Wolcott 
wrote:

> Ah! a \downmordent :-) I was looking right at it on the Lilypond list
> of ornaments...
>
> On Thu, Oct 26, 2023 at 8:28 PM Kenneth Wolcott
>  wrote:
> >
> > Hi;
> >
> > what is the musical ornament called that looks like a mordent but has
> > curl in front of it?
> >
> > I'm engraving a 8notes.com Tuba+Piano arrangement of the Aria from the
> > Goldberg Variations.
> >
> > Attached is a screenshot.
> >
> > Thanks,
> > Ken Wolcott
>
>


Re: what is the musical ornament called that looks like a mordent but has curl in front of it?

2023-10-26 Thread Ben Bradshaw
+

I believe it's called a Schleifer, at least that's what the curly part is.
It frequently attaches to a mordent. I'm not sure how to do it in lilypond
though. There is an example in the LSR,
https://lsr.di.unimi.it/LSR/Item?u=1=720 , but it has the curl on the
other side of the mordent. But maybe it can give a starting point for
making this.

On Thu, Oct 26, 2023 at 10:07 PM Kenneth Wolcott 
wrote:

> Hi;
>
> what is the musical ornament called that looks like a mordent but has
> curl in front of it?
>
> I'm engraving a 8notes.com Tuba+Piano arrangement of the Aria from the
> Goldberg Variations.
>
> Attached is a screenshot.
>
> Thanks,
> Ken Wolcott
>


Re: Images in Info files

2023-09-22 Thread Ben Bradshaw
Thanks, I finally got it to work! Probably did a while ago but was looking
at a manual that seems to not have many pictures. Tried the notation manual
and wala! There's pictures!

On Fri, Sep 22, 2023 at 4:59 AM David Kastrup  wrote:

> Ben Bradshaw  writes:
>
> > Hello,
> > I've been trying to get images to work in the info manuals (inside emacs
> on
> > arch linux) but have had no luck so far. I tried to do what is in this
> post
> >  https://lists.gnu.org/archive/html/lilypond-user/2014-08/msg00341.html
> > <https://lists.gnu.org/archive/html/lilypond-user/2014-08/msg00341.html>
> ,
> > but it doesn't seem to work. As far as I can tell, when I gunzip one of
> the
> > info.gz files and get an info file, the code doesn't have anything in it
> to
> > link to an image. The html files that get installed have the paths, and
> > those files work fine, but the info manuals don't. Is there a way to
> > compile the documentation to get images in the info manuals? The usage
> > manual suggests that there is a --info-images-dir argument in
> > lilypond-book, but I'm not sure where to try that. Any help would be
> > appreciated!
>
> make info
>
> will do the info pages with images, as opposed to just
>
> make all
>
> which creates info pages without images.  I am not 100% sure whether
> "make info" works without a preceding "make doc" these days.  There was
> some aggrievance of that kind at some point of time in the recent past.
>
> --
> David Kastrup
>


Images in Info files

2023-09-21 Thread Ben Bradshaw
Hello,
I've been trying to get images to work in the info manuals (inside emacs on
arch linux) but have had no luck so far. I tried to do what is in this post
 https://lists.gnu.org/archive/html/lilypond-user/2014-08/msg00341.html
<https://lists.gnu.org/archive/html/lilypond-user/2014-08/msg00341.html> ,
but it doesn't seem to work. As far as I can tell, when I gunzip one of the
info.gz files and get an info file, the code doesn't have anything in it to
link to an image. The html files that get installed have the paths, and
those files work fine, but the info manuals don't. Is there a way to
compile the documentation to get images in the info manuals? The usage
manual suggests that there is a --info-images-dir argument in
lilypond-book, but I'm not sure where to try that. Any help would be
appreciated!

Thanks,
Ben


Re: Lilypond not generating PDF

2022-07-04 Thread Ben Eisenstein
I was finally able to get a PDF. I had to run command shell in 
administrative mode. Then switch to the directory the test file was in. 
I was then able to run test.ly.


Thank you for the clue that it was a permissions issue.

I would suggest changing the Windows instructions or at least indicate 
that it should be run in command shell at the elevated level. But if 
this is all going to change in the next release, then maybe not worth 
the effort.


Ben




Lilypond not generating PDF

2022-07-04 Thread Ben Eisenstein
I installed Lilypond pn Windows 10. I followed the intstructions of 
updating the path. Then I put the test.ly file on the desktop. Then 
placed it's icon over the Lilypond icon.


Two files were created: test and test-tmp-9972888,

This is the content of test:

   # -*-compilation-*-
   Processing `C:/Users/Ben/Desktop/test.ly'
   Parsing...
   Interpreting music...
   Preprocessing graphical objects...
   Finding the ideal number of pages...
   Fitting music on 1 page...
   Drawing systems...
   Converting to `/Users/Ben/Desktop/test.pdf'...

The tst-temp file starts with:

   %!PS-Adobe-3.0
   %%Creator: LilyPond 2.22.1
   %%Pages: 1
   %%PageOrder: Ascend
   %%Orientation: Portrait
   %%DocumentMedia: a4 595.28 841.89 80 () ()
   %%DocumentSuppliedResources: font C059-Bold
   %%DocumentSuppliedResources: font C059-Roman
   %%DocumentSuppliedResources: font Emmentaler-20
   %%EndComments

Any ideas as to what could be wrong?

Thanks,

Ben


Re: Film style large time signatures

2021-06-08 Thread Ben

On 6/8/2021 2:59 PM, Ignacio Lois wrote:
Yes, I've seen that and it's certainly a possibility, but I'm hoping 
to achieve something like this 
.


On Tue, Jun 8, 2021 at 3:35 AM Xavier Scheuer > wrote:


On Mon, 7 Jun 2021 at 21:55, Ignacio Lois mailto:ignaciol...@gmail.com>> wrote:
>
> Can this be done simply? Those large time signatures that are as
tall as each section. I've been browsing the snippets to no avail.
>
> If this has to be done from scratch, how would you approach it?
>
> Thanks

Hello,

https://lsr.di.unimi.it/LSR/Item?id=272

Maybe?

Cheers,
Xavier

-- 
Xavier Scheuer mailto:x.sche...@gmail.com>>



Hi Ignacio,

I use this approach sometimes when I need that style choice:

noTimeSig = { \omit TimeSignature }
largeTimeSig = {
   \numericTimeSignature
   \override Staff.TimeSignature.font-size = 9
}

\new StaffGroup <<
   \new Staff \with \noTimeSig {
 \repeat unfold 25 d''4
   }
   \new Staff \with \largeTimeSig {
 \repeat unfold 24 d''4
 \once\override Staff.TimeSignature.extra-offset = #'(0 . 4)
 d''4

   }
   \new Staff \with \noTimeSig {
 \repeat unfold 25 d''4
   }
   \new Staff \with \noTimeSig {
 \repeat unfold 25 d''4
   }
   \new Staff \with \noTimeSig {
 \repeat unfold 25 d''4
   }
   \new Staff \with \largeTimeSig {
 \repeat unfold 12 d''4
 \once\override Staff.TimeSignature.extra-offset = #'(0 . -4)
 \time 3/2
 \repeat unfold 12 d''4
 \time 4/4
 d''4
   }
   \new Staff \with \noTimeSig {
 \repeat unfold 25 d''4
   }
 >>



Re: Dynamics context

2020-09-08 Thread Ben

On 9/8/2020 2:05 PM, Martín Rincón Botero wrote:

Hi Wol,

yes, what you mention is indeed a good case for using dynamics in 
their own variable. The problem comes when using a Dynamics context 
from an independent dynamics variable for music that by its own nature 
is not really compatible with that approach, or for which the 
resulting code looks/feels clumsy. Btw. if you have your dynamics 
already in a different variable, maybe you could give the Dynamics 
context a shot! ;-).


Cheers,
Martín.

Am Di., 8. Sept. 2020 um 18:06 Uhr schrieb antlists 
mailto:antli...@youngman.org.uk>>:


On 07/09/2020 17:01, Martín Rincón Botero wrote:
> I wanted to ask if using the Dynamics context is the simplest way
> available in Lilypond for achieving this kind of vertically aligned
> dynamics. The huge drawback of the Dynamics context is that it
disrupts
> the syntax, since dynamics can’t be used next to the first note
they’re
> attached to, but instead they need a separate variable, reducing
> readability of the actual “music”.

Just to throw my two-pennorth in, while I didn't know about the
dynamics
context, I've started separating dynamics out ...

I do band parts, and if the dynamics are replicated across, say, all
trombones I find it easier to have the notes in one variable, the
dynamics in another, and to merge them for each part. Especially as,
although I haven't really been doing scores, I can then merge all the
trombone parts, and the dynamics, to put them on one line of the
score.

It's not unusual for different instruments to have different
dynamics,
as usually the cornets have the melody in the first section, then the
bass instruments in the trio, often with the middle instruments
such as
trombones and euphs having a middle section. So whoever's got the
melody
might be ff, with the others p underneath.

At the end of the day, horses for courses and if it doesn't work
for you
then fine. But it does work for people like me :-)

Cheers,
Wol



--
www.martinrinconbotero.com 


Martín,

I'm curious: what would you say the pros/cons are for using a dynamics 
context vs. a separate dynamics variable in your input files? (which 
scenario to use which, etc) -- is it alignment concerns?





Re: Difference Between This and That in English Grammar

2020-09-03 Thread Ben

On 9/3/2020 4:12 PM, bb wrote:
https://www.differencebetween.com/difference-between-this-and-that-in-english-grammar/ 




LGBB



I don't follow...why did you send this?


Re: Orchestral strings, how to organise score and parts for divisi, solos, desks etc.

2020-06-09 Thread Ben

On 6/7/2020 3:26 AM, Rutger Hofman wrote:
Well, it turned out to keep that tutorial short. Still, I think it 
will have its use, since questions about temp staves/divisi turn up at 
regular intervals.


My first attempt is here:

https://www.rutgerhofman.nl/lilypond/divisi-doc/divisi-doc.html

Please, have a look, say what you (don't) like.

I still debate in my head what the best venue for this would be.

Rutger

On 6/2/20 11:33 AM, Lib Lists wrote:

On Mon, 1 Jun 2020 at 22:16, Rutger Hofman  wrote:


I am thinking of sharing my experiences as a user in this field by
contributing a tutorial or a practical experiences story (or whatever)
on this topic. It would make a distinction between:

1) temporary staves
2) divisi allocation over groups of staves

since these are different concepts, and they are handled differently by
the Lilypond user, although both depend on keepAliveInterfaces.

And I could contribute a bit on techniques to have >2 voices per staff,
rhythmically homophonic or rhythmically polyphonic, especially in the
context of divisi staves.

What would be the best venue for this? Lilypond docs? User list? Scores
of Beauty? If it gets into the Lilypond docs, it is there to "stay
forever" which would be nice.

One elaborate example of my experiences is found in the score and parts
of "3 Bruchstücke aus Wozzeck" by Alban Berg, see
https://imslp.org/wiki/Wozzeck%2C_Op.7_(Berg%2C_Alban) (travel to the
tab [Arrangements and Transcriptions]). One can have a look at e.g. the
Violins I part, mvt. 1, Bars 396-404; there is a 5-fold divisi which is
folded into one staff in the full score. Or practically any instrument
group, for that matter.

Rutger




Wow, this is great! Thank you for sharing this with everyone! I'm 
excited to study this more. :)





Re: Fonts for text

2020-04-25 Thread Ben

On 4/25/2020 2:47 PM, Ignacio Lois wrote:

Hello list,

I'm trying to use any font like these for my titles. I tried ITC 
Souvenir , 
which would look like this:

image.png
And Sunset-Serial , which 
would look like this:

image.png
But no matter how I set it in LilyPond, I get this:
image.png
The weirdest thing is that Frescobaldi acknowledges the existence of 
these fonts and even knows what they look like:

image.png

So here is my question: do fonts need to be of a special type to work? 
Am I doing something wrong or missing something? I don't know what to 
try anymore. Any help would be appreciated.


Thanks



Hi Ignacio,

It appears that you've installed the fonts correctly if Frescobaldi can 
pick them up like that. Can you share some of your code, maybe there is 
a conflict somewhere?





Re: ANN: OOoLilyPond 1.0.0

2020-04-09 Thread Ben

On 4/9/2020 6:37 AM, Klaus Blum wrote:

Hi all,

I'm happy to announce a new version of OOoLilyPond (OLy), an extension to
include LilyPond snippets into LibreOffice/OpenOffice documents.

There are several bugfixes and some new and hopefully cool and useful
features:
https://github.com/openlilylib/LO-ly/releases/tag/1.0.0
Here is a presentation of all new features:
https://github.com/openlilylib/LO-ly/wiki/Whats-new#v-100---whats-new

And finally, you can find a tutorial and a detailed documentation in the
project's wiki:
https://github.com/openlilylib/LO-ly/wiki#ooolilypond

I hope that there are no more bugs left. If you find some, please don't
hesitate to report them.
A big THANK YOU to all contributors and previous authors.


Happy Easter!

Cheers,
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html


Klaus,

This is really wonderful. Thank you so much for working on this - it's 
great! Essential and awesome. :)





Re: Alignment issues of Time signature above the staff

2020-04-03 Thread Ben

On 3/29/2020 2:10 AM, Chen Leo wrote:


Hi Kevin,


Thank you for your reply.


For the first problem, you will have to set break-align-symbol to ##f 
to reproduce the problem. That is because by default 
break-align-symbol is set to #'time-signature. so commenting out the 
override shouldn't help.



Secondly, using \override TimeSignature.X-extent = #'(0 . 0) causes 
collisions when texts and notes are displayed above the staff because 
lilypond is not adding vertical spacing above the staff. And it seems 
like now all the time signatures are shifted a bit to the right 
instead of aligning right after the bar line.



Thirdly, the bar numbers are raised to align vertically with the 
time-signatures, which is not something I would like to have. It will 
be nice if you can share any ideas on how that can be solved.



Leo


Here's an example:

\version "2.20.0"

\layout {
  \context {
    \type "Engraver_group"
    \consists "Time_signature_engraver"
    \consists "Axis_group_engraver"
    \name "TimeSig"
    \alias "Staff"
    % original settings from "http://lsr.di.unimi.it/LSR/Snippet?id=272;
    %{
      \override TimeSignature.font-size = #3
      \override TimeSignature.break-align-symbol = ##f
      \override TimeSignature.X-offset =
#ly:self-alignment-interface::x-aligned-on-self
      \override TimeSignature.self-alignment-X = #CENTER
      \override TimeSignature.after-line-breaking =
      #shift-right-at-line-begin
    %}
    % settings after adjustments
    {
    \override TimeSignature.font-size = #4
    \override TimeSignature.X-offset =
#ly:self-alignment-interface::x-aligned-on-self
    \override TimeSignature.self-alignment-X = #LEFT
    \override TimeSignature.X-extent = #'(0 . 0)
    }
  }
  \context {
    \Score
    \accepts TimeSig
  }
  \context {
    \Staff
    \remove "Time_signature_engraver"
  }
}

timeSignatures = { \numericTimeSignature \time 4/4 s1 \time 3/8 s4. 
\time 3/4 s2. \break \time 4/4 s1 }


\score {
  <<
    \new TimeSig \timeSignatures
    \new Staff \relative c' { c4 ^\markup \column {"a" "b" "c"} ( d4 
e4 f4 ) a''4

^\markup \column {"a" "b" "c"} ( g8 ) R2. c1 }
    \new Staff \relative c' { R1 R4. \clef bass a2. c1 }
    \new Staff \relative c' { R1 R4. R2. c1 }
  >>
}



*发件人:* Kevin Barry 
*发送时间:* 2020年3月28日 08:48
*收件人:* Chen Leo 
*抄送:* lilypond-user@gnu.org 
*主题:* Re: Alignment issues of Time signature above the staff
Hi Chen,

I was able to solve the second of your problems (the whole bar rests
being shifted by the time signatures in the TimeSig context) by
adding:
\override TimeSignature.X-extent = ##f
(You could also use the value #'(0 . 0) if the warnings are off
putting, but I noticed that that doesn't *quite* fix it fully.)

I tried to reproduce your description of the first problem (time
signatures aligning over cue clefs), but even commenting out the
break-align-symbol override didn't make it appear. I was able to
correct the alignment of the first time signature by removing the
line:
\override TimeSignature.after-line-breaking = #shift-right-at-line-begin

After both of the above modifications everything looks OK to me, but
perhaps we need a fuller example.

Kevin

On Sat, 28 Mar 2020 at 10:30, Chen Leo  wrote:
>
> Hi, I am trying to put time signatures above the staffs according to 
"http://lsr.dsi.unimi.it/LSR/Item?id=272;.

>
>
>
> I discovered an issue, that is whenever a clef change is made, the 
time signature on the next bar fails to align to the bar line, it 
aligns to the cue clef in the previous bar instead. After some 
research, I found out that this is because the TimeSignature property 
"break-align-symbol" is set to "##f". I set "break-align-symbol" back 
to "#'time-signature", and this problem is solved, however, the 
horizontal alignments of the other time signatures are messed up. 
(Using the code presented below, the 4/4 in the first bar moves to the 
right & the bar rest on the third bar stretches to the right. ) Are 
there any ways to align all the time signatures to their corresponding 
bar lines without changing the alignments of other objects? Thank you.

>
>
>
> \version "2.20.0"
>
>
>
> \layout {
>
>   \context {
>
> \type "Engraver_group"
>
> \consists "Time_signature_engraver"
>
> \consists "Axis_group_engraver"
>
> \name "TimeSig"
>
> \alias "Staff"
>
> \override TimeSignature.font-size = #4
>
> \override TimeSignature.break-align-symbol = #'time-signature
>
> \override TimeSignature.X-offset =
>
>   #ly:self-alignment-interface::x-aligned-on-self
>
> \override TimeSignature.self-alignment-X = #LEFT
>
> \override TimeSignature.after-line-breaking =
>
>   #shift-right-at-line-begin
>
>   }
>
>   \context {
>
> \Score
>
> \accepts TimeSig
>
>   }
>
>   \context {
>
> \Staff
>
> \remove "Time_signature_engraver"
>
>   }
>
> }
>
>
>
> timeSignatures = { \numericTimeSignature \time 4/4 s1 

Re: Three voices in same staff, from two variables

2020-03-18 Thread Ben Rosen
Thanks for your response!

I think I managed to get what I wanted (and no compilation errors) using
just your "\new Voice { \voiceOne \melody }" in the \score block. The
actual piece is a little different than this simplified example, and it
seems like I don't need the multiple "\new Voice" statements in the "harm"
variable, since I only need an extra voice for measure a single measure (9
of a 16-measure section), and using multiple new Voice statements would
have meant using many measures' worth of spacers, which seemed excessive to
me. But simply adding "\new Voice { \voiceOne \melody }" did the trick, and
I may use your two-voiced example for other re-harmonizations, so thanks
again!

Ben



On Wed, Mar 18, 2020 at 4:25 PM Francisco Vila 
wrote:

> El 18/3/20 a las 20:41, Ben Rosen escribió:
> > Perhaps I should use something more explicit involving "\new
> > Voice"? Is there a way to do this that preserves the variable structure
> > I've laid out or is there a better approach for this situation?
>
> Here is how I would write your music.
>
> \version "2.20.0"
> \language "english"
>
> melody = \relative c' {
>af'2. af4 |
>af c g4. f8 |
> }
>
> harm =  {
><<
>  \new Voice \relative c' { \voiceFour 1 }
>  \new Voice \relative c' { \voiceTwo bf2 af  s}
>>>
>
> }
>
> \score {
>\new Staff <<
>  \new Voice { \voiceOne \melody }
>  \harm
>>>
> }
>
> 
>
> I.e. go explicit as often as you can, so you don't lose control over
> which voice number the music is in.
>
> The part
>
>\voiceFour 1
>
> comes from the aim to be an intermediate secondary voice.
>
> https://cloud.paconet.org/index.php/s/wGaeX4CqYMHrD3Y/download
>
> --
> Francisco Vila, Ph.D. - Badajoz (Spain)
> paconet.org , lilypond.es
>


Three voices in same staff, from two variables

2020-03-18 Thread Ben Rosen
Hi all,

I'm new here, so hopefully this isn't too basic of a question...

I'm trying to write out harmonizations for standard melodies, so my initial
thought was to keep the melody in its own variable and the harmonies in
another and then combine them using the "<< \\ >>" syntax (see below). This
way, not only does it keep them conceptually separate in the file, but it
would allow for multiple reharms that could be easily swapped out under the
same melody. This seems to work fine when the harmony part is a single
voice, but occasionally I want to break out into multiple voices to allow
for moving inner parts. If I repeat the "<< \\ >>" syntax within the
harmony part itself, then everything gets confused and it tries to draw a
stem between parts that ought to be separate. Perhaps I should use
something more explicit involving "\new Voice"? Is there a way to do this
that preserves the variable structure I've laid out or is there a better
approach for this situation?

Here is a simplified example of when things get confused:

\version "2.20.0"
\language "english"

melody = {
  af'2. af4 |
  af c g4. f8 |
}

harm = {
  << { 1 } \\ { bf2 af} >> |
   s |
}

\score {
  \relative c'
  <<
\melody
\\
\harm
  >>
}

Thanks,
Ben


Re: Ties in chord mode

2020-03-01 Thread Ben Eichler
Hi Carl,

Thanks for clarifying my stream of consciousness blathering. My preference
was not to have any chord name displayed at all for tied chords.

Your workarounds are both excellent ideas, however I ultimately adopted
Thomas' solution, as it achieved what I needed with minimal entry required.

On Mon, 2 Mar 2020 at 17:34, Carl Sorensen  wrote:

>
>
>
>
> *From: *Ben Eichler 
> *Date: *Saturday, February 29, 2020 at 1:46 AM
> *To: *
> *Subject: *Ties in chord mode
>
>
>
> Hi all,
>
>
>
>
>
> I transcribe songs using a style of melody + lyrics + chords. In certain
> songs, I write the same chord twice. Sometimes I want both chords to be
> printed, for example the second chord is starting a new section. Other
> times I may want only the first chord to be printed. \set chordChanges =
> ##t is too blunt an instrument (ha!) to deal with these situations. The
> only tool I am aware of to deal with this is overflowing bar duration, but
> sometimes the duration needs to be either irregular or longer than 6 beats,
> and having a tie would become helpful.
>
>
>
> In a 4/4 time signature, if I want to make a chord last for 6 beats, I can
> luckily work around it using a dotted duration that overflows the bar:
>
> Chord notation: |C . . . |(C) . F . |
>
> Lilypond notation: {\chordMode { c1. f2 }
>
>
>
> But suppose I want that C major chord to last only for 5 beats, in a
> melody I would use a tie, but that doesn't work in chord mode, the second
> chord is printed which I don't want:
>
> Chord notation: |C . . . |(C) F . . |
>
> Lilypond notation: \chordmode { c1( c4) f2. }
>
>
>
> First, the notation you are proposing uses slurs, not ties.
>
>
>
> Second, \chordmode already supports ties:
>
>
>
> \version "2.18.0"
>
>
>
> mus = \chordmode{
>
>   c1~c1~c1
>
> }
>
>
>
> \score {
>
>   <<
>
> \new ChordNames {\mus}
>
> \new Staff {\mus}
>
>   >>
>
> }
>
>
>
> As you can see in this example, ties in \chordmode are done exactly as you
> would expect.
>
>
>
> The issue is not that ties don’t work in \chordmode, but rather that the
> ChordNames context doesn’t display the chords the way you would like to see
> them displayed.
>
>
>
> Is it your preference that the chord name for tied chords be displayed in
> parentheses?  Or would you rather have it not displayed at all?
>
>
>
> You can make a request for a new feature, but I don’t know that anybody is
> actively working on the ChordNames context.  So the feature may not be
> implemented.
>
>
>
> Another possibility for a workaround:
>
>
>
> \version "2.18.0"
>
>
>
> mus = \chordmode {
>
>   c1 |
>
>   c1 |
>
>   c1*127/128  \once \hideNotes r4*1/32 |
>
>   c1
>
> }
>
>
>
>
>
> <<
>
>   \new ChordNames \with {
>
>  noChordSymbol=" "
>
>  chordChanges = ##t
>
>   }{ \mus}
>
>   \new Staff {\mus}
>
> >>
>
>
>
> Perhaps the best workaround I can think of is to \set chordChanges = ##t,
> then any place you want to show a chord name, you can do either a \once
> \set chordChanges = ##t or a \once \unset chordChanges.
>
>
>
> \version "2.18.0"
>
>
>
> mus = \chordmode {
>
>   c1 |
>
>   c1 |
>
>   c1 |
>
>   c4 f2. |
>
>   c1 |
>
> %  \once \set chordChanges = ##f
>
>   \once \unset chordChanges
>
>   c1 |
>
>   c1 |
>
> }
>
>
>
>
>
> <<
>
>   \new ChordNames \with {
>
>  noChordSymbol=" "
>
>  chordChanges = ##t
>
>   }{ \mus}
>
>   \new Staff {\mus}
>
> >>
>
>
>
>
>
> HTH,
>
>
>
> Carl
>
>
>


RE: Ties in chord mode

2020-02-29 Thread Ben Eichler
Wow I’ve never seen that syntax before. Works perfectly for what I need, since 
I’m only printing chord letters in a ChordNames context. Thanks Thomas!

-Ben

From: Thomas Morley
Sent: 01 March 2020 07:38
To: Ben Eichler
Cc: lilypond-user
Subject: Re: Ties in chord mode

Am Sa., 29. Feb. 2020 um 11:07 Uhr schrieb Ben Eichler :
>
> Hi all,
>
>
> I transcribe songs using a style of melody + lyrics + chords. In certain 
> songs, I write the same chord twice. Sometimes I want both chords to be 
> printed, for example the second chord is starting a new section. Other times 
> I may want only the first chord to be printed. \set chordChanges = ##t is too 
> blunt an instrument (ha!) to deal with these situations. The only tool I am 
> aware of to deal with this is overflowing bar duration, but sometimes the 
> duration needs to be either irregular or longer than 6 beats, and having a 
> tie would become helpful.
>
> In a 4/4 time signature, if I want to make a chord last for 6 beats, I can 
> luckily work around it using a dotted duration that overflows the bar:
> Chord notation: |C . . . |(C) . F . |
> Lilypond notation: {\chordMode { c1. f2 }
>
> But suppose I want that C major chord to last only for 5 beats, in a melody I 
> would use a tie, but that doesn't work in chord mode, the second chord is 
> printed which I don't want:
> Chord notation: |C . . . |(C) F . . |
> Lilypond notation: \chordmode { c1( c4) f2. }
>
> Or maybe I want that C major chord to last for 3 bars. Multiple ties can be 
> used in a melody, but there's no equivalent in chord mode, the 2nd and 3rd 
> chords are printed which I don't want:
> Chord notation: |C . . . |(C) . . . |(C) . . . |
> Lilypond notation: \chordmode { c1( c c) }
>
> Unless anyone can recommend a workaround for this, I am submitting a request 
> to support ties in chord mode. The parentheses ( ) syntax used for melody 
> seems the obvious choice.
>
> Would appreciate any comments on this. If there's a more appropriate place to 
> submit requests like this I will gladly move it elsewhere.
>
> Thanks in advance,
>
>
> -Ben

Why not:

chrdI = \chordmode { c1. f2 }
chrdII = \chordmode { c1*5/4 f2. }
chrdIII = \chordmode { c1*3 }

<< \new Staff \chrdI \new ChordNames \chrdI >>
<< \new Staff \chrdII \new ChordNames \chrdII >>
<< \new Staff \chrdIII \new ChordNames \chrdIII >>

Cheers,
  Harm



Ties in chord mode

2020-02-29 Thread Ben Eichler
Hi all,


I transcribe songs using a style of melody + lyrics + chords. In certain
songs, I write the same chord twice. Sometimes I want both chords to be
printed, for example the second chord is starting a new section. Other
times I may want only the first chord to be printed. \set chordChanges =
##t is too blunt an instrument (ha!) to deal with these situations. The
only tool I am aware of to deal with this is overflowing bar duration, but
sometimes the duration needs to be either irregular or longer than 6 beats,
and having a tie would become helpful.

In a 4/4 time signature, if I want to make a chord last for 6 beats, I can
luckily work around it using a dotted duration that overflows the bar:
Chord notation: |C . . . |(C) . F . |
Lilypond notation: {\chordMode { c1. f2 }

But suppose I want that C major chord to last only for 5 beats, in a melody
I would use a tie, but that doesn't work in chord mode, the second chord is
printed which I don't want:
Chord notation: |C . . . |(C) F . . |
Lilypond notation: \chordmode { c1( c4) f2. }

Or maybe I want that C major chord to last for 3 bars. Multiple ties can be
used in a melody, but there's no equivalent in chord mode, the 2nd and 3rd
chords are printed which I don't want:
Chord notation: |C . . . |(C) . . . |(C) . . . |
Lilypond notation: \chordmode { c1( c c) }

Unless anyone can recommend a workaround for this, I am submitting a
request to support ties in chord mode. The parentheses ( ) syntax used for
melody seems the obvious choice.

Would appreciate any comments on this. If there's a more appropriate place
to submit requests like this I will gladly move it elsewhere.

Thanks in advance,


-Ben


Re: ANN: Frescobaldi 3.1 has been released!

2020-01-01 Thread Ben

On 1/1/2020 7:31 PM, Michael Rivers wrote:

The score wizard does nothing for me in Frescobaldi 3.1 (Windows version). I
uninstalled it and reinstalled the old version, whose score wizard works
fine.



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html


Correct. Same here. Score Wizard button is completely broken on Windows 
10 with version 3.1 - the button just 'clicks' but nothing happens.





Re: convert-ly problem

2019-12-19 Thread Ben

On 12/19/2019 6:55 AM, Peter Gentry wrote:


Having rediscovered the fact that Frescobaldi does not call convert-ly 
anymore. I went to the section 2.2 of the usage manual and popped the 
following into a windows 10 command prompt (with administrator privs)


C:\Program Files (x86)\LilyPond\usr\bin>forfiles /s /p 
"C:\users\peter\Lilypool\Music_Files\Bouffil" /M **.ly /c "cmd  /c 
convert-ly.py  -e @file"


The result was

'convert-ly.py' is not recognized as an internal or external command,

operable program or batch file.

'convert-ly.py' is not recognized as an internal or external command,

operable program or batch file.

'convert-ly.py' is not recognized as an internal or external command,

operable program or batch file.

'convert-ly.py' is not recognized as an internal or external command,

operable program or batch file.

'convert-ly.py' is not recognized as an internal or external command,

Etc etc for each .ly file in the folder

I have cd’d to the Lilypond usr\bin folder so I don’t think the three 
“s are needed here, but who knows


Where did I go wrong?

Regards Peter


Hi Peter,

Are you trying to run that code in a batch file or are you wanting to 
use a one-liner via CMD? Syntax is different on Windows depending on if 
the code is run within a BAT file or run via the command line direct.


I have a .bat file I run sometimes on Windows, maybe this could help you.

===

@echo off

set LY_HOME=C:\Program Files (x86)\LilyPond\usr

for %%f in (%*) do (
    echo Converting %%~nf...

    if exist %%~nf.orig (
        del %%~nf.orig
    )

    move %%f %%~nf.orig
    "%LY_HOME%\bin\python.exe" "%LY_HOME%\bin\convert-ly.py" %%~nf.orig 
> %%f

)






Harp Notation Markup

2019-12-12 Thread Ben

Good morning!

I am composing a piece that features the harp as a soloist and I had a 
question about some notation.


Please see attached.

How would you go about creating this markup so it could easily be used 
throughout a piece? Because the note range of the mute symbol will 
likely change with each instance, I was thinking it'd be easier to 
create a hybrid glissando line/vertical line/harp symbol sort of markup.


But I wasn't sure if I needed to address that in a function of some kind 
and just write out the different stemless notes as needed with each 
instance.


Thanks for any feedback and guidance!

%%%

{
  \omit Stem
  g''4 \glissando -\markup { \char ##x2A01 }
  g'4
}

%%%

Not sure if this helps too: 
(http://www.smufl.org/version/latest/range/harpTechniques/)




Re: make text span a specified musical interval?

2019-11-24 Thread Ben

On 11/24/2019 9:34 PM, Jace Toronto wrote:

Hi all,

This is the basic gist of what I'm trying to do:

\version "2.18.2"

\score { \new Staff \relative c' {
   \repeat volta 2 {
 c4^"vamp" r2 d8-"(Last time only)" e |
   }
   f g a4 r2 |
} }

However, the "last time only" instruction spills into the following measure, 
which makes it less clear what it refers to.  I would like for the first measure to be 
expanded to account for the width of this text.

This is simple to do if the text need apply to only one note:

\score { \new Staff \relative c' {
   \repeat volta 2 {
 c4^"vamp" r2 r8 \textLengthOn e8-"(Last time only)" |
   }
   f g a4 r2 |
} }

But for multiple notes, this does not work as intended:

\score { \new Staff \relative c' {
   \repeat volta 2 {
 c4^"vamp" r2 \textLengthOn d8-"(Last time only)" e |
   }
   f g a4 r2 |
} }

Ideally, I would like the eighth notes engraved as in the first example (as 
they are by default, with no extra space between them), but then the rest of 
the measure after them to be padded with space to account for the text, as in 
the second example.  Alternatively, the eighth notes could be spaced out a 
little more to account for the text, but having the second eighth note AFTER 
the end of the text. as \textLengthOn does by default, is ugly.

The closest thing to a solution I could find in the list archive was a clear 
description of the problem in Lilypond-internals terms 
(http://lists.gnu.org/archive/html/lilypond-user/2008-08/msg00527.html) but 
only a hint at a solution insufficient for me to figure it out.  Anyone willing 
to offer a bigger hint?  Thank you.


Hi,

Is this what you would like the output to look like or am I 
misunderstanding?


\score {
  \new Staff \relative c' {
    \repeat volta 2 {
  c4^"vamp" r2 d8-"(Last time only)"
  \once \override NoteHead.extra-spacing-width = #'(0 . 10)
  e |
    }
    f g a4 r2 |
  }
}




Re: Critical-edition-style footnotes

2019-11-17 Thread Ben

On 11/16/2019 2:57 PM, Stacy Fatemi wrote:

Hey all,

I’ve been wanting to add footnotes to a score that include 
miniature-sized scores like in this critical edition of Pictures at an 
Exhibition. I know \score can be contained within \markup and I know 
EPS files can be embedded, but what’s the simplest solution? How do 
you get something elegantly spaced like in the attached picture? Thank 
you!




Hi Stacy!

Just a friendly FYI about the mailing list:

Some folks here don't have the ability to see/receive inline images with 
their email client, and the massive 3000x4000 pixels/size probably takes 
up a good 1.5 - 2.0MB of space as well. (I think the size limit is ~50k 
or so.)


It's best to include attachments in situations like this.

For example, I can see your message on Nabble's website archive but not 
in certain mail clients via mailing list.


Sending an image attachment allows the most amount of people to see your 
mail properly and increases the likelihood of getting more answers too.   :)


http://lilypond.1069038.n5.nabble.com/Critical-edition-style-footnotes-td225445.html



Re: Graphic lines create

2019-11-05 Thread Ben

On 11/5/2019 11:35 AM, k...@aspodata.se wrote:

Reggie:
...

Andrew thank you for the vibrato but you say it's able to create close to my
image? How would I learn which code to change for that to happen? I probably
need to draw curves free as I move forward but I need SVG output so I guess
I'm out off luck. In Sibelius it's quite easy to draw lines and curves with
ease but not LilyPond? How would you attempt this type of graphic with SVG
possible? Do I need to use a graphic  program and create image and then
insert into measures on top of staff? Trial and error would take so long
though back and forth :(

To just do something curvy, do something like:

zz = \markup\postscript "0 1 360 5 mul { cos 0.01 mul 0.002 add .01 exch rlineto } 
for stroke"

\relative c'' {
   c4^\zz c c c |
   c c c c |
}

there is also a \markup\path command that possible could be useful
since you want svg output.

Regards,
/Karl Hammar


Hi Karl!

If you use \markup \postscript then am I correct in thinking that the 
lines won't output in SVG, right?




Re: Graphic lines create

2019-11-05 Thread Ben

On 11/5/2019 1:42 AM, Pierre Perol-Schneider wrote:

Hi Reggie,
As Andrew pointed, see: 
http://lilypond.1069038.n5.nabble.com/Off-topics-vibrato-td145006.html#a145087

Cheers,
Pierre

Le mar. 5 nov. 2019 à 03:14, Reggie > a écrit :


Hi. I cannot find how to create graphic lines anywhere in LilyPond
like this.
I find basic shapes but nothing like this modern style. How do you
provide
the angle and length to adjust for score? Please suggest code for
this.
Thanks!

752ddda41273_10157508106580761_7457284070309888000_o.jpg






--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Thanks for this Pierre :)



Re: Graphic lines create

2019-11-05 Thread Ben

On 11/5/2019 12:08 PM, Reggie wrote:

Karl Hammar wrote

Reggie:
...

Andrew thank you for the vibrato but you say it's able to create close to
my
image? How would I learn which code to change for that to happen? I
probably
need to draw curves free as I move forward but I need SVG output so I
guess
I'm out off luck. In Sibelius it's quite easy to draw lines and curves
with
ease but not LilyPond? How would you attempt this type of graphic with
SVG
possible? Do I need to use a graphic  program and create image and then
insert into measures on top of staff? Trial and error would take so long
though back and forth :(

To just do something curvy, do something like:

zz = \markup\postscript "0 1 360 5 mul { cos 0.01 mul 0.002 add .01 exch
rlineto } for stroke"

\relative c'' {
   c4^\zz c c c |
   c c c c |
}

there is also a \markup\path command that possible could be useful
since you want svg output.

Regards,
/Karl Hammar



a.pdf (51K)
http://lilypond.1069038.n5.nabble.com/attachment/225060/0/a.pdf;

Karl this looks outstanding but I don't understand how the code works. Is
there a manual page for curves postscript code? Can you tell how you arrived
at the code? I'm totally unable to see anything.

0 1 360 5 mul { cos 0.01 mul 0.002 add .01 exch rlineto }



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html


This page is very helpful, although it can be overwhelming if you're 
brand new to this sort of thing.


http://paulbourke.net/dataformats/postscript/




Re: Frescobaldi LilyPond Log

2019-11-02 Thread Ben

On 11/2/2019 10:57 PM, Freeman Gilmore wrote:



On Sat, Nov 2, 2019 at 10:51 PM Ben <mailto:soundsfromso...@gmail.com>> wrote:


On 11/2/2019 10:16 PM, Freeman Gilmore wrote:



On Sat, Nov 2, 2019 at 9:59 PM Ben mailto:soundsfromso...@gmail.com>> wrote:

On 11/2/2019 9:31 PM, Freeman Gilmore wrote:



On Sat, Nov 2, 2019 at 9:26 PM Ben
mailto:soundsfromso...@gmail.com>> wrote:

On 11/2/2019 8:16 PM, Freeman Gilmore wrote:

Is there a way to make the font larger in the
Frescobaldi, LilyPond Log?
Thank you,
ƒg


Yes, you can hover the mouse over the log and use the
mouse wheel + control key to change font size. :)

Is there a way to simulate the Wheel?     I use a touchpad.
Thank you,
ƒg



There can be yes, but it depends. What hardware are you
using? Laptop brand/model? What OS?

I have a Dell that has a Simulated Wheel, touchpad is designed
for it  but i do not use that for Frescobaldi.  The touchpad
keyboard i am using does not know how many fingers i am using on
the pad.  Just thinking there could be so way to set the keys to
simulate a wheel.   Probably not.
Thank you,
ƒg


Hi,

Right. But are you running Windows on that Dell or a Linux flavor?
I'm just going to guess and assume Windows.

If so, it's pretty easy to setup an AutoHotKey script to simulate
a mouse scroll wheel up/down so that's what I would do if you
don't have/can't get access to a mouse.

Windows but i would not have a clue.   I will try to find how.
Thanks you.
ƒg


No problem, I got you.  :)

Here's what you do:

*First, download AutoHotKey.*

https://www.autohotkey.com/download/ahk-install.exe

Install it, defaults are fine.

*Then, download this script to your desktop (it's an .AHK file) - a 
script that maps the entire NUMPAD to mouse controls.*


https://www.autohotkey.com/docs/scripts/NumpadMouse.ahk

(you only need to worry about the scroll options which is NUM add / NUM 
sub ( + -)


*Then, double click the AHK file to "run it". You should see the icon in 
your tray now.*


That's it! :)

*Now, if you hold CONTROL + the NUMPAD minus or plus, you can scroll the 
font size in Frescobaldi log files.*


Just tested it, works beautifully.

Just make sure you have SCROLL LOCK for this to work.

When you're finished and the log is the right size, you can always close 
the script from your tray and go back to whatever you had.


Hope this helps!




//* oo 
|Using Keyboard Numpad as a Mouse | 
() | By 
deguix / A Script file for AutoHotkey 1.0.22+ | | 
| | | | This script is an 
example of use of AutoHotkey. It uses | | the remapping of numpad keys 
of a keyboard to transform it | | into a mouse. Some features are the 
acceleration which | | enables you to increase the mouse movement when 
holding | | a key for a long time, and the rotation which makes the | | 
numpad mouse to "turn". I.e. NumpadDown as NumpadUp | | and vice-versa. 
See the list of keys used below: | | | 
|| | Keys | 
Description | 
|| | 
ScrollLock (toggle on)| Activates numpad mouse mode. | 
|---|| | Numpad0 
| Left mouse button click. | | Numpad5 | Middle mouse button click. | | 
NumpadDot | Right mouse button click. | | NumpadDiv/NumpadMult | X1/X2 
mouse button click. (Win 2k+)| | NumpadSub/NumpadAdd | Moves up/down the 
mouse wheel. | | | | 
|---|| | NumLock 
(toggled off) | Activates mouse movement mode. | 
|---|| | 
NumpadEnd/Down/PgDn/ | Mouse movement. | | /Left/Right/Home/Up/ | | | 
/PgUp | | | | | 
|---|| | NumLock 
(toggled on) | Activates mouse speed adj. mode. | 
|---|| | 
Numpad7/Numpad1 | Inc./dec. acceleration per | | | button press. | | 
Numpad8/Numpad2 | Inc./dec. initial speed per | | | button press. | | 
Numpad9/Numpad3 | Inc./dec. maximum speed per | | | button press. | | 
^Numpad7/^Numpad1 | Inc./dec. wheel acceleration per | | | button 
press*. | | ^Numpad8/^Numpad2 | Inc./dec. wheel initial speed per | | | 
button press*. | | ^Numpad9/^Numpad3 | Inc./dec. wheel maximum speed per 
| | | button press*. | | Numpad4/Numpad6 | Inc./dec. rotation angle to | 
| | right in degrees. (i.e. 180° = | | | = inversed controls). | 
|| | * = 
These options are affected by the mouse wheel spe

Re: Frescobaldi LilyPond Log

2019-11-02 Thread Ben

On 11/2/2019 10:16 PM, Freeman Gilmore wrote:



On Sat, Nov 2, 2019 at 9:59 PM Ben <mailto:soundsfromso...@gmail.com>> wrote:


On 11/2/2019 9:31 PM, Freeman Gilmore wrote:



On Sat, Nov 2, 2019 at 9:26 PM Ben mailto:soundsfromso...@gmail.com>> wrote:

On 11/2/2019 8:16 PM, Freeman Gilmore wrote:

Is there a way to make the font larger in the Frescobaldi,
LilyPond Log?
Thank you,
ƒg


Yes, you can hover the mouse over the log and use the mouse
wheel + control key to change font size. :)

Is there a way to simulate the Wheel?     I use a touchpad.
Thank you,
ƒg



There can be yes, but it depends. What hardware are you using?
Laptop brand/model? What OS?

I have a Dell that has a Simulated Wheel, touchpad is designed for it  
but i do not use that for Frescobaldi.  The touchpad keyboard i am 
using does not know how many fingers i am using on the pad.   Just 
thinking there could be so way to set the keys to simulate a wheel. 
 Probably not.

Thank you,
ƒg


Hi,

Right. But are you running Windows on that Dell or a Linux flavor? I'm 
just going to guess and assume Windows.


If so, it's pretty easy to setup an AutoHotKey script to simulate a 
mouse scroll wheel up/down so that's what I would do if you don't 
have/can't get access to a mouse.





Re: Frescobaldi LilyPond Log

2019-11-02 Thread Ben

On 11/2/2019 9:31 PM, Freeman Gilmore wrote:



On Sat, Nov 2, 2019 at 9:26 PM Ben <mailto:soundsfromso...@gmail.com>> wrote:


On 11/2/2019 8:16 PM, Freeman Gilmore wrote:

Is there a way to make the font larger in the Frescobaldi,
LilyPond Log?
Thank you,
ƒg


Yes, you can hover the mouse over the log and use the mouse wheel
+ control key to change font size. :)

Is there a way to simulate the Wheel?     I use a touchpad.
Thank you,
ƒg



There can be yes, but it depends. What hardware are you using? Laptop 
brand/model? What OS?




Re: Frescobaldi LilyPond Log

2019-11-02 Thread Ben

On 11/2/2019 8:16 PM, Freeman Gilmore wrote:

Is there a way to make the font larger in the Frescobaldi, LilyPond Log?
Thank you,
ƒg


Yes, you can hover the mouse over the log and use the mouse wheel + 
control key to change font size. :)




Re: Ricochet bowing articulations

2019-11-01 Thread Ben
itions = #'(0)
                \override StaffSymbol.stencil = ##f
                \override Slur.positions = #'(0 . -3)
                \override NoteHead.stencil =
#(lambda (grob)
                  (grob-interpret-markup grob #{
\markup\musicglyph #"dots.dot" #}))
              }
            }
          }
        }
      } #}))

        { d'' ^\markup  { \ric b16 16 8 } }

Good night to you, cheers,
Pierre


Le jeu. 31 oct. 2019 à 20:26, Ben
mailto:soundsfromso...@gmail.com>> a écrit :

On 10/31/2019 3:07 PM, Pierre Perol-Schneider
wrote:

Manually you could do:

{
  d''^\markup
       \override #'(baseline-skip . 1.5)
       \left-column {
         \line { \hspace #2 \teeny\bold "ric." }
         \line {
            " "
            \overtie\concat {
              " " \pattern #3 #X #1
\musicglyph #"dots.dot"
              \hspace #10
              \concat {
                " " \pattern #3 #X #1
\musicglyph #"dots.dot"
                " "
              }
            }
         }
       }
}

Automagically, no time enough tonight, sorry...
Cheers,
Pierre


Many thanks for your help and time, Pierre :)
Have a good night.



Le jeu. 31 oct. 2019 à 20:05, Ben
mailto:soundsfromso...@gmail.com>> a écrit :

On 10/31/2019 2:50 PM, Pierre
Perol-Schneider wrote:

Oops, I miss something, here it goes:

\version "2.19.83"

#(define-markup-command (ricochet layout
props nb spce) (integer? number?)
  (interpret-markup layout props
    #{ \markup
       \override #'(baseline-skip . 1.5)
       \left-column {
         \line { \hspace #2 \teeny\bold
"ric." }
         \line {
            " "
\overtie\concat {
              " " \pattern #nb #X #spce
\musicglyph #"dots.dot"
              " "
            }
         }
       } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

        Cheers,
Pierre

Le jeu. 31 oct. 2019 à 19:45, Pierre
Perol-Schneider
mailto:pierre.schneider.pa...@gmail.com>>
a écrit :

Hi Ben,
How about:

\version "2.19.83"

#(define-markup-command (ricochet
layout props nb spce) (integer? number?)
  (interpret-markup layout props
    #{ \markup {
          " "
\overtie\concat {
            " " \pattern #nb #X
#spce \musicglyph #"dots.dot"
            " "
          }
            } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

 

Re: Ricochet bowing articulations

2019-10-31 Thread Ben

On 10/31/2019 3:07 PM, Pierre Perol-Schneider wrote:

Manually you could do:

{
  d''^\markup
       \override #'(baseline-skip . 1.5)
       \left-column {
         \line { \hspace #2 \teeny\bold "ric." }
         \line {
            " "
            \overtie\concat {
              " " \pattern #3 #X #1 \musicglyph #"dots.dot"
              \hspace #10
              \concat {
                " " \pattern #3 #X #1 \musicglyph #"dots.dot"
                " "
              }
            }
         }
       }
}

Automagically, no time enough tonight, sorry...
Cheers,
Pierre


Many thanks for your help and time, Pierre :) Have a good night.


Le jeu. 31 oct. 2019 à 20:05, Ben <mailto:soundsfromso...@gmail.com>> a écrit :


On 10/31/2019 2:50 PM, Pierre Perol-Schneider wrote:

Oops, I miss something, here it goes:

\version "2.19.83"

#(define-markup-command (ricochet layout props nb spce) (integer?
number?)
  (interpret-markup layout props
    #{ \markup
       \override #'(baseline-skip . 1.5)
       \left-column {
         \line { \hspace #2 \teeny\bold "ric." }
         \line {
            " "
            \overtie\concat {
              " " \pattern #nb #X #spce \musicglyph #"dots.dot"
              " "
            }
         }
       } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

Cheers,
    Pierre

Le jeu. 31 oct. 2019 à 19:45, Pierre Perol-Schneider
mailto:pierre.schneider.pa...@gmail.com>> a écrit :

Hi Ben,
How about:

\version "2.19.83"

#(define-markup-command (ricochet layout props nb spce)
(integer? number?)
  (interpret-markup layout props
    #{ \markup {
          " "
          \overtie\concat {
            " " \pattern #nb #X #spce \musicglyph #"dots.dot"
            " "
          }
            } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

HTH, cheers,
Pierre

Le jeu. 31 oct. 2019 à 15:45, Ben mailto:soundsfromso...@gmail.com>> a écrit :

Good morning!

How would it be possible to create the attached ricochet
articulation in LilyPond?

Also, I'm looking for a way to be able to modify the dots
in two ways, for example: add/remove the number of dots
(3-6) per articulation instance, and add some space in
between several of the dots to suggest a certain 'rhythm'
to the ricochet.

Any suggestions would be appreciated. :)

Thanks!



Maybe something like this, where you can group dots and then add
space?

c''2^\markup\ricochet #2  #1 #4 s2 |

(   group 2 dots    <1 space>    group 4 dots |   )

Is this doable?




Re: Ricochet bowing articulations

2019-10-31 Thread Ben

On 10/31/2019 2:50 PM, Pierre Perol-Schneider wrote:

Oops, I miss something, here it goes:

\version "2.19.83"

#(define-markup-command (ricochet layout props nb spce) (integer? number?)
  (interpret-markup layout props
    #{ \markup
       \override #'(baseline-skip . 1.5)
       \left-column {
         \line { \hspace #2 \teeny\bold "ric." }
         \line {
            " "
            \overtie\concat {
              " " \pattern #nb #X #spce \musicglyph #"dots.dot"
              " "
            }
         }
       } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

Cheers,
Pierre

Le jeu. 31 oct. 2019 à 19:45, Pierre Perol-Schneider 
<mailto:pierre.schneider.pa...@gmail.com>> a écrit :


Hi Ben,
How about:

\version "2.19.83"

#(define-markup-command (ricochet layout props nb spce) (integer?
number?)
  (interpret-markup layout props
    #{ \markup {
          " "
          \overtie\concat {
            " " \pattern #nb #X #spce \musicglyph #"dots.dot"
            " "
          }
        } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

HTH, cheers,
Pierre

Le jeu. 31 oct. 2019 à 15:45, Ben mailto:soundsfromso...@gmail.com>> a écrit :

Good morning!

How would it be possible to create the attached ricochet
articulation in LilyPond?

Also, I'm looking for a way to be able to modify the dots in
two ways, for example: add/remove the number of dots (3-6) per
articulation instance, and add some space in between several
of the dots to suggest a certain 'rhythm' to the ricochet.

Any suggestions would be appreciated. :)

Thanks!



Maybe something like this, where you can group dots and then add space?

c''2^\markup\ricochet #2  #1 #4 s2 |

(   group 2 dots    <1 space>    group 4 dots    |   )

Is this doable?




Re: Ricochet bowing articulations

2019-10-31 Thread Ben

On 10/31/2019 2:50 PM, Pierre Perol-Schneider wrote:

Oops, I miss something, here it goes:

\version "2.19.83"

#(define-markup-command (ricochet layout props nb spce) (integer? number?)
  (interpret-markup layout props
    #{ \markup
       \override #'(baseline-skip . 1.5)
       \left-column {
         \line { \hspace #2 \teeny\bold "ric." }
         \line {
            " "
            \overtie\concat {
              " " \pattern #nb #X #spce \musicglyph #"dots.dot"
              " "
            }
         }
       } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

Cheers,
Pierre

Le jeu. 31 oct. 2019 à 19:45, Pierre Perol-Schneider 
<mailto:pierre.schneider.pa...@gmail.com>> a écrit :


Hi Ben,
How about:

\version "2.19.83"

#(define-markup-command (ricochet layout props nb spce) (integer?
number?)
  (interpret-markup layout props
    #{ \markup {
          " "
          \overtie\concat {
            " " \pattern #nb #X #spce \musicglyph #"dots.dot"
            " "
          }
        } #}))

{
  d''^\markup\ricochet #7 #1 s s s
  d''^\markup\ricochet #3 #3
}

HTH, cheers,
Pierre

Le jeu. 31 oct. 2019 à 15:45, Ben mailto:soundsfromso...@gmail.com>> a écrit :

Good morning!

How would it be possible to create the attached ricochet
articulation in LilyPond?

Also, I'm looking for a way to be able to modify the dots in
two ways, for example: add/remove the number of dots (3-6) per
articulation instance, and add some space in between several
of the dots to suggest a certain 'rhythm' to the ricochet.

Any suggestions would be appreciated. :)

Thanks!


Hi Pierre!

This looks so great, wow. Thank you!

How exactly would I be able to modify the dot spread though? I don't 
follow how to change this as needed, as with spacers, etc.?


For example, how would I create a half note with 6 dots above, grouped as:

3 dots  4 dots

or

1 dot  5 dots

I don't see how to input the appropriate number of spacers so the 
following notes are not "under" the ricochet in the same measure.


Thanks for this!



Ricochet bowing articulations

2019-10-31 Thread Ben

Good morning!

How would it be possible to create the attached ricochet articulation in 
LilyPond?


Also, I'm looking for a way to be able to modify the dots in two ways, 
for example: add/remove the number of dots (3-6) per articulation 
instance, and add some space in between several of the dots to suggest a 
certain 'rhythm' to the ricochet.


Any suggestions would be appreciated. :)

Thanks!



Re: halloween page-number silliness

2019-10-29 Thread Ben

On 10/29/2019 8:08 AM, Stanton Sanderson wrote:

Also runs for me, except the page numbers are not images but an increasing 
number of boxed
question marks. (Mac- OS 10.14) - Stan


On Oct 28, 2019, at 9:36 PM, David Nalesnik  wrote:
  
Hans,


On Mon, 28 Oct 2019, 3:21 p.m. Hans Åberg,  wrote:


On 28 Oct 2019, at 16:02, David Nalesnik  wrote:

Hi all,

Hello,


Here's something festive.  The page number is replaced by a equivalent
number of scary Unicode creatures.  (I'm sure it's adaptable for more
serious purposes!)

I get an error:

% lilypond halloween.ly
GNU LilyPond 2.19.83
Processing `halloween.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 5 or 6 pages...
Drawing systems...
Layout output to 
`/var/folders/bs/hm52_h3d5q9c4b8jl_0slxz8gp/T//lilypond-9S7ogk'...
Converting to `halloween.pdf'...
warning: `(gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite 
-dAutoRotatePages=/None -dPrinted=false -sOutputFile=halloween.pdf 
-c.setpdfwrite 
-f/var/folders/bs/hm52_h3d5q9c4b8jl_0slxz8gp/T//lilypond-9S7ogk)' failed 
(256)

fatal error: failed files: “halloween.ly

Runs fine for me.  Problem with the PDF viewer?

David


Loads fine here on my machines, fwiw. Linux and Win. SumatraPDF / Adobe 
/ KDE.


Looks awesome :) Thanks for making this!




Re: Cadenza Senza Tempo Problem

2019-10-28 Thread Ben

On 10/28/2019 8:41 PM, Reggie wrote:

Thomas Morley-2 wrote

Am Mo., 28. Okt. 2019 um 11:22 Uhr schrieb Reggie 
reegistoop@
:

Hello list. I am struggling with this. Please don't laugh I just feel
like
crying I cannot see what is right in front of me I must be. I am
attempting
to learn more deeper in lilypond and try a cadenza sort of passage. I see
two problems I am bad at. One, how do I get the trills to be side by
alongside? Two, I can't understand how to make piano empty system end at
the
same location vertical as the trill staff? What is the secret I feel so
stupid. Thank you for your kind help. Is there any details about working
with free music cadenza pieces? I've read the documentation section on
cadenza mode but not in practice I'm struggling.

\version "2.19.83"
<<
   \time 4/4

   \new Staff {
 \cadenzaOn
 \hide Score.TimeSignature
 r8 a'4\startTrillSpan^\markup {"senza tempo -" \italic "quasi
cadenza"}
b'\startTrillSpan\stopTrillSpan a'\startTrillSpan\stopTrillSpan

 b'\startTrillSpan\stopTrillSpan


 e'''\stopTrillSpan f'''\startTrillSpan
e'''\startTrillSpan\stopTrillSpan
f'''\stopTrillSpan
 \bar "" \break

 \cadenzaOff
 \time 4/4 c''' c''' c''' c'''

   }
   \new PianoStaff {
 <<
   \new Staff  { \clef treble s1*2   }
   \new Staff  { \clef bass  s1*2  }
 >>

   }
\paper {
   ragged-right = ##f
}

Chou_Wen-chungg.jpg
http://lilypond.1069038.n5.nabble.com/file/t5625/Chou_Wen-chungg.jpg;



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html


The space at first line-end is because you provide a new
4/4-TimeSignature. Mere hiding it will not affect the space reserved
for it.
Better do:
 \override Score.TimeSignature.break-visibility = ##(#f #t #t)

The trills I'd shorten a bit, maybe set staff-padding in an additional
override.


Makes for:

\paper { ragged-right = ##f }

<<
   %\time 4/4

   \new Staff {
 \cadenzaOn
 \hide Score.TimeSignature
 r8
 \override TrillSpanner.bound-details.right.padding = 1.5
 \override TrillSpanner.staff-padding = 2.5
 a'4 \startTrillSpan^\markup {"senza tempo -" \italic "quasi cadenza"}
 b'  \startTrillSpan\stopTrillSpan
 a'  \startTrillSpan\stopTrillSpan
 b'  \startTrillSpan\stopTrillSpan
 e'''\stopTrillSpan
 \override TrillSpanner.staff-padding = 6
 f'''\startTrillSpan
 e'''\startTrillSpan\stopTrillSpan
 f'''\stopTrillSpan
 \bar ""
 \revert TrillSpanner.staff-padding
 \revert TrillSpanner.bound-details.right.padding
 \cadenzaOff
 \break
 \override Score.TimeSignature.break-visibility = ##(#f #t #t)
 \time 4/4
 c''' c''' c''' c'''

   }
   \new PianoStaff {
 <<
   \new Staff  { \clef treble  s8 s4*8 \bar ""   }
   \new Staff  { \clef basss8 s4*8 \bar ""   }
 >>

   }

Hi Thomas thank you for fixing it for me I see the override now but never
would have discovered that I feel lost :[ Is there a set group of commands
you should suggest for using a piece that was entirely all no time signature
no barlines and most important you want tight space between all notes as
though it's not allowing the space for barlines and more.

I can hide barlines and meter but the spacing over pages still looks as
though it's taking into account barlines. I am hiding correctly not just
hiding. Can you make a full piece of music that is total free with tight
spacing?



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html


I think I understand what you're asking, perhaps this will help. It's my 
go-to template starting point when I'm considering a piece that is in 
free time without barlines. This is just how I do it. I'm sure there are 
other approaches.


%
\version "2.19.83"

% for line break possibilities everywhere use
% barAlways and empty bar lines:
\new Score \with {
  barAlways = ##t
  defaultBarType = ""
  \omit BarNumber
  \omit TimeSignature
} {
  \repeat unfold 120 { c' }
}
% for only manual break possibilities use
% \cadenzaOn and manual empty bars:
\new Score \with {
  \omit TimeSignature
} {
  \cadenzaOn
  \repeat unfold 20 { c' } b\bar""
  \repeat unfold 20 { c' } b\bar"" b b b b\bar"" b b\bar""
  \repeat unfold 10 { c' } \bar""
  \repeat unfold 20 { c' } b\bar""
  \repeat unfold 20 { c' }
  % etc.

}

%%



Re: Hairpin whiteout problem

2019-10-24 Thread Ben

On 10/24/2019 5:39 PM, Simon Albrecht wrote:

On 24.10.19 23:30, Ben wrote:
Is there any way to adjust that so it always takes up a full chunk of 
the hairpin regardless of the true size of the markup?


Of course. Try using markup with \with-dimensions or 
\with-dimensions-from; maybe also override whiteout-style.


HTH, Simon


Simon,

You're right! I forgot about with-dimensions. Sorry. :)

Check this out! (.png)

\relative c'
{
  c2 d e\< f g-\placeAbsolute #'(0 . -3.85)  _\markup \with-dimensions 
#'(-.5 . 1.25) #'(-.5 . 1) { "c" } f\! e d c

}



Re: Hairpin whiteout problem

2019-10-24 Thread Ben

On 10/24/2019 5:14 PM, Simon Albrecht wrote:

On 24.10.19 18:33, Ben wrote:

Is it possible to whiteout hairpins?


Of course—the real problem here is that you have to make the hairpin 
ignore the markup for its placement. Here’s a fidgety solution:


%%
\version "2.19.83"

placeAbsolute = #(define-event-function (xy ev) (pair? ly:music?)
   #{
 \tweak whiteout ##t
 \tweak outside-staff-priority ##f
 \tweak Y-offset 0
 \tweak extra-offset $xy
 $ev
   #})

\relative c'
{
  c2 d e\< f g-\placeAbsolute #'(0 . -4)  _"C" f\! e d c
}
%%%

HTH, Simon


Hi Simon,

This is very helpful yes thank you! It gives me a different way to 
approach this.


I did notice one thing however, using your code. It seems like if I 
don't use capital letters (or "anything" that is big enough to cover the 
entire hairpin, it doesn't whiteout fully. Is this correct?


Is there any way to adjust that so it always takes up a full chunk of 
the hairpin regardless of the true size of the markup?


Sorry if this is a silly question.



c2 d e\< f g-\placeAbsolute #'(0 . -3.75)  _"c" f\! e d c






Hairpin whiteout problem

2019-10-24 Thread Ben

Hello!

Is it possible to whiteout hairpins? I can't figure it out.

Code example:

%

\relative c'
{
  c2 d e\< f g_"C" f\! e d c
}

%

I'd like for the "C" in this example to be inside / on top of the 
hairpin. Is there a way to have *any* type of object whiteout a hairpin, 
whether it's a multiphonics diagram, or markup, or anything?


I've tried other solutions from the mailing list but they don't work here.

\override Hairpin.whiteout = ##t
\override Hairpin.layer = #2
\override TextScript.staff-padding
etc.

(please see attached)

Thanks so much!

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: time signature 4 / \breve ?

2019-10-16 Thread Ben

On 10/16/2019 8:59 PM, Paul Scott wrote:

Is it possible to write a time signature 4 / \breve ?

This occurs in Carmina Burana.

Thank you for any ideas,

Paul


Hi Paul,

Does this help get you close to what you're looking for?

(see attached)

%%%

\version "2.19.83"

#(use-modules (ice-9 regex))

my-format-procedure =
#(define-scheme-function (parser location args)(pair?)
   #{
 \markup
 \concat {
   \number $(car args)
   \raise #-0.9 \huge "/"
   \small
   \override #'(style . default)
   \note $(cdr args) #DOWN
 }
   #})

%% alternative:
%{
my-format-procedure =
#(define-scheme-function (parser location args)(pair?)
#{
\markup
\override #'(baseline-skip . 0.5)
\column {
\number $(car args)
\override #'(style . default)
\note $(cdr args) #DOWN
}
#})
%}
#(define ((format-time-sig-with-note frac trim?) grob)
   (let* ((num (if (pair? frac) (car frac) 4))
  (den (if (pair? frac) (cdr frac) 4))
  (args
   (cond ((string? den)
  (cons (number->string num)
    den))
 ((and (integer? (/ num 3))
   (integer? (/ den 2)))
  (cons (number->string (if trim? (/ num 3) num))
    (if trim?
    (string-append (number->string (/ den 2)) ".")
    (number->string den
 ((and (integer? (/ num 2))
   (integer? (/ den 2)))
  (cons (number->string (if trim? (/ num 2) num))
    (number->string (if trim? (/ den 2) den
 (else
  (cons (number->string num)
    (number->string den))
 (grob-interpret-markup grob #{ \my-format-procedure $args #})))

time =
#(define-music-function (parser location trm vals)((boolean? #t) pair?)

   ;; c/p from define-makups.scm
   (define log2
 (let ((divisor (log 2)))
   (lambda (z) (inexact->exact (/ (log z) divisor)

   ;; c/p from define-makups.scm
   (define (parse-simple-duration duration-string)
 "Parse the `duration-string', eg ''4..'' or ''breve.'',
and return a (log dots) list."
 (let ((match (regexp-exec (make-regexp 
"(breve|longa|maxima|[0-9]+)(\\.*)")

    duration-string)))
   (if (and match (string=? duration-string (match:substring match 0)))
   (let ((len (match:substring match 1))
 (dots (match:substring match 2)))
 (list (cond ((string=? len "breve") -1)
 ((string=? len "longa") -2)
 ((string=? len "maxima") -3)
 (else (log2 (string->number len
   (if dots (string-length dots) 0)))
   (ly:error (_ "not a valid duration string: ~a") 
duration-string


   (let* ((den (cdr vals))
  (num (car vals)))
 (if (string? den)
 (let* ((parsed (parse-simple-duration den)))
   ;; TODO lazy bump ...
   (cond ((and (= -1 (car parsed)) (zero? (cadr parsed)))
  (set! den 1)
  (set! num (* 2 num)))
 ((and (= -1 (car parsed)) (= 1 (cadr parsed)))
  (set! den 1)
  (set! num (* 3 num)))
 ((and (= -2 (car parsed)) (zero? (cadr parsed)))
  (set! den 1)
  (set! num (* 4 num)))
 ((and (= -2 (car parsed)) (= 1 (cadr parsed)))
  (set! den 1)
  (set! num (* 6 num)))
 (else (ly:error "not smart enough to handle ~a" den)

 #{
   \temporary \override Staff.TimeSignature.stencil =
   #(format-time-sig-with-note vals trm)
   $(make-music
 'TimeSignatureMusic
 'beat-structure '()
 'denominator den
 'numerator num)
 #}))

\relative c' {

  \override Staff.TimeSignature.Y-offset = 5

  \time 9/4
  \repeat unfold 9 c4

  \time 3/4
  \repeat unfold 3 c4

  \time ##f 3/4
  \repeat unfold 3 c4

  \time 7/4
  \repeat unfold 7 c4

  \time 12/2
  \repeat unfold 4 c1.

  \time #'(3 . "breve.")
  \repeat unfold 3 c\breve.


  \time #'(3 . "longa")
  \repeat unfold 3 c\longa

  \time #'(4 . "longa.")
  \repeat unfold 4 c\longa.

  \time #(cons 4 "breve")
  \clef bass
  f\breve-> c-> d-> c->

  \bar"|."
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-16 Thread Ben

On 10/16/2019 9:32 AM, Simon Albrecht wrote:

Hi Ben,

could you maybe submit an issue to 
<https://github.com/openlilylib/snippets/issues>? If not, I’ll do it 
myself, but I’m currently short on time…


Best, Simon


Oh, good idea!

I'll submit it shortly :) Have a great day!





On 16.10.19 13:15, Ben wrote:

On 10/15/2019 6:16 PM, Simon Albrecht wrote:

On 15.10.19 23:35, Ben wrote:

On 10/15/2019 4:43 PM, Simon Albrecht wrote:

On 15.10.19 14:33, Ben wrote:

What version(s) are you using Simon?



The same, basically…

Are you loading modules using the ‘new’ syntax? i.e.

\include "oll-core/package.ily"
\loadModule snippets.notation-snippets.shaping-bezier-curves.shapeII

Best, Simon


Yes, copied your code and pasted it as is.



Then I’m afraid I’m out of ideas… can you send a minimal example?

Best, Simon


Sure, no problem. The code should look familiar. :)

Here's an attachment showing how the shapeII *appears* to be working, 
however there are always warnings - even from a fresh git clone. The 
version warnings keep coming up...sorry I don't know why it's happening.


For testing, I simulated a new user to LilyPond: installed a fresh 
virtual machine, installed unstable LilyPond, cloned openlilylib, and 
added it to the path in Frescobaldi as I have done in my production 
machine.


Everything is configured correctly as far as I can tell. Maybe 
something in oll-core needs an update, just guessing from the log 
messages. I highlighted some of the log for you.


Thanks for your help Simon!

%%
\version "2.19.83"
\language "english"
\include "oll-core/package.ily"
\loadModule snippets.notation-snippets.shaping-bezier-curves.shapeII

\relative {
   \time 12/8
   \stemDown
   8  ^(  ) (
  ) ^(  )  |
 \stemDown
   8  ^(  ) (
  ) ^(  ) 
}
%%%%%%%

Log output:

Processing `C:/Users/Ben/Desktop/file.ly'

Parsing...

/openlilylib/snippets/notation-snippets/shaping-bezier-curves/shapeII/module.ily:2:10:*error: 
cannot find file: 
`ly/_internal/utilities/lilypond-version-predicates.ily'*


*\include "ly/_internal/utilities/lilypond-version-predicates.ily"*


C:/Users/Ben/Desktop/file.ly:13:5: warning:


openLilyLib. DEPRECATION:

*Using 'lilypond-less-than?' from oll-core is deprecated.*

openLilyLib explicitly does not suppport LilyPond 2.18 anymore,

so users are expected to use the development version 2.19 or a

later stable release.

Since LilyPond 2.19.57 the version predicate 'ly:version?' is

included in LilyPond, *and all uses of 'lilypond-less-than?'*

**

*should properly be replaced with that.*


Reference:

http://lilypond.org/doc/v2.19/Documentation/usage/writing-code-to-support-multiple-versions 



-

\shapeII #'((0 . -.7)(p 30 .4)(p 30 .4)(20.6 . -3.7)) _( bf>(


C:/Users/Ben/Desktop/file.ly:17:5: warning:


openLilyLib. DEPRECATION:

Using 'lilypond-less-than?' from oll-core is deprecated.

openLilyLib explicitly does not suppport LilyPond 2.18 anymore,

so users are expected to use the development version 2.19 or a

later stable release.

Since LilyPond 2.19.57 the version predicate 'ly:version?' is

included in LilyPond, and all uses of 'lilypond-less-than?'

should properly be replaced with that.


Reference:

http://lilypond.org/doc/v2.19/Documentation/usage/writing-code-to-support-multiple-versions 



-

\shapeII #'((0 . -.7)(p 30 .4)(p 30 .4)(.2 . -.7)) _( bf>(


Completed successfully in 0.8".


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-16 Thread Ben

On 10/15/2019 6:16 PM, Simon Albrecht wrote:

On 15.10.19 23:35, Ben wrote:

On 10/15/2019 4:43 PM, Simon Albrecht wrote:

On 15.10.19 14:33, Ben wrote:

What version(s) are you using Simon?



The same, basically…

Are you loading modules using the ‘new’ syntax? i.e.

\include "oll-core/package.ily"
\loadModule snippets.notation-snippets.shaping-bezier-curves.shapeII

Best, Simon


Yes, copied your code and pasted it as is.



Then I’m afraid I’m out of ideas… can you send a minimal example?

Best, Simon


Sure, no problem. The code should look familiar. :)

Here's an attachment showing how the shapeII *appears* to be working, 
however there are always warnings - even from a fresh git clone. The 
version warnings keep coming up...sorry I don't know why it's happening.


For testing, I simulated a new user to LilyPond: installed a fresh 
virtual machine, installed unstable LilyPond, cloned openlilylib, and 
added it to the path in Frescobaldi as I have done in my production machine.


Everything is configured correctly as far as I can tell. Maybe something 
in oll-core needs an update, just guessing from the log messages. I 
highlighted some of the log for you.


Thanks for your help Simon!

%%
\version "2.19.83"
\language "english"
\include "oll-core/package.ily"
\loadModule snippets.notation-snippets.shaping-bezier-curves.shapeII

\relative {
   \time 12/8
   \stemDown
   8  ^(  ) (
  ) ^(  )  |
 \stemDown
   8  ^(  ) (
  ) ^(  ) 
}
%%%%%%%

Log output:

Processing `C:/Users/Ben/Desktop/file.ly'

Parsing...

/openlilylib/snippets/notation-snippets/shaping-bezier-curves/shapeII/module.ily:2:10:*error: 
cannot find file: `ly/_internal/utilities/lilypond-version-predicates.ily'*


*\include "ly/_internal/utilities/lilypond-version-predicates.ily"*


C:/Users/Ben/Desktop/file.ly:13:5: warning:


openLilyLib. DEPRECATION:

*Using 'lilypond-less-than?' from oll-core is deprecated.*

openLilyLib explicitly does not suppport LilyPond 2.18 anymore,

so users are expected to use the development version 2.19 or a

later stable release.

Since LilyPond 2.19.57 the version predicate 'ly:version?' is

included in LilyPond, *and all uses of 'lilypond-less-than?'*

**

*should properly be replaced with that.*


Reference:

http://lilypond.org/doc/v2.19/Documentation/usage/writing-code-to-support-multiple-versions

-

\shapeII #'((0 . -.7)(p 30 .4)(p 30 .4)(20.6 . -3.7)) _( bf>(


C:/Users/Ben/Desktop/file.ly:17:5: warning:


openLilyLib. DEPRECATION:

Using 'lilypond-less-than?' from oll-core is deprecated.

openLilyLib explicitly does not suppport LilyPond 2.18 anymore,

so users are expected to use the development version 2.19 or a

later stable release.

Since LilyPond 2.19.57 the version predicate 'ly:version?' is

included in LilyPond, and all uses of 'lilypond-less-than?'

should properly be replaced with that.


Reference:

http://lilypond.org/doc/v2.19/Documentation/usage/writing-code-to-support-multiple-versions

-

\shapeII #'((0 . -.7)(p 30 .4)(p 30 .4)(.2 . -.7)) _( bf>(


Completed successfully in 0.8".


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-15 Thread Ben

On 10/15/2019 4:43 PM, Simon Albrecht wrote:

On 15.10.19 14:33, Ben wrote:

What version(s) are you using Simon?



The same, basically…

Are you loading modules using the ‘new’ syntax? i.e.

\include "oll-core/package.ily"
\loadModule snippets.notation-snippets.shaping-bezier-curves.shapeII

Best, Simon


Yes, copied your code and pasted it as is.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-15 Thread Ben

On 10/14/2019 7:31 PM, Simon Albrecht wrote:

On 15.10.19 00:39, Ben wrote:
When I try your code, I see warnings in the log. Are these 
unavoidable when using \shapeII in this way?



I don’t know—I get no such warning. Is your OLL and LilyPond up to date?

Best, Simon


What version(s) are you using Simon?

Because I've tried several times now with all newest versions. A fresh 
github clone OLL with LilyPond 2.19.83 is impossible to get shapeII 
working at all, on Linux or Windows. It keeps saying the same message. 
Sorry I can't be of more help. Figured this must impact shapeII users 
somehow though.



openLilyLib. DEPRECATION:

Using 'lilypond-less-than?' from oll-core is deprecated.

openLilyLib explicitly does not suppport LilyPond 2.18 anymore,

so users are expected to use the development version 2.19 or a

later stable release.

Since LilyPond 2.19.57 the version predicate 'ly:version?' is

included in LilyPond, and all uses of 'lilypond-less-than?'

should properly be replaced with that.



shapeII/module.ily:2:10: error: cannot find file: 
`ly/_internal/utilities/lilypond-version-predicates.ily'



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-15 Thread Ben

On 10/14/2019 7:31 PM, Simon Albrecht wrote:

On 15.10.19 00:39, Ben wrote:
When I try your code, I see warnings in the log. Are these 
unavoidable when using \shapeII in this way?



I don’t know—I get no such warning. Is your OLL and LilyPond up to date?

Best, Simon


Hi Simon,

Here's some more information from my log. I confirmed that I have a 
fresh cloned OLL install and 2.19.83 here :) Not sure what else I could 
try on my end...?


There seems to be a problem with 
\openlilylib\snippets\notation-snippets\shaping-bezier-curves\shapeII\module.ily, 
below:


module.ily has this code at the top of it:

\version "2.17.26"
\include "ly/_internal/utilities/lilypond-version-predicates.ily"

and the error in the log shows this as well:

/openlilylib/snippets/notation-snippets/shaping-bezier-curves/shapeII/module.ily:2:10: 
error: cannot find file: 
`ly/_internal/utilities/lilypond-version-predicates.ily'




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-15 Thread Ben

On 10/14/2019 7:31 PM, Simon Albrecht wrote:

On 15.10.19 00:39, Ben wrote:
When I try your code, I see warnings in the log. Are these 
unavoidable when using \shapeII in this way?



I don’t know—I get no such warning. Is your OLL and LilyPond up to date?

Best, Simon



Hmm, I think so. I'm using the most recent unstable 2.19 version and I 
just downloaded a fresh current github version of OLL, etc.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurring into another voice without breaking a beam

2019-10-14 Thread Ben

On 10/14/2019 10:07 AM, Simon Albrecht wrote:

On 14.10.19 15:40, Knute Snortum wrote:
I don't like the slur shape of the lower slur.  I would usually 
override the Slur.positions or use \shape but I don't know how to 
apply either of these to an inter-chord slur.  Any suggestions?


Hi Knute,

overriding Slur.positions isn’t always effective, since it only helps 
choose from the candidates Lily was considering anyway. First, if you 
do want to use it on an inside-chord slur, you need a tweak like -\tweak positions #'(-2 . -2) (>. Second, I’d suggest using \shapeII 
from openLilyLib:


%%
\version "2.19.83"
\language "english"
\include "oll-core/package.ily"
\loadModule snippets.notation-snippets.shaping-bezier-curves.shapeII

\relative {
  \time 12/8
  \stemDown
  8  ^(  ) -.7)(p 30 .4)(p 30 .4)(.2 . -.7)) _( bf>(

     ) ^(  )  |
}
%%%

Note the new syntax for language selection.

Best, Simon 



Hi Simon,

When I try your code, I see warnings in the log. Are these unavoidable 
when using \shapeII in this way?


openLilyLib. DEPRECATION:

Using 'lilypond-less-than?' from oll-core is deprecated.

openLilyLib explicitly does not suppport LilyPond 2.18 anymore,

so users are expected to use the development version 2.19 or a

later stable release.

Since LilyPond 2.19.57 the version predicate 'ly:version?' is

included in LilyPond, and all uses of 'lilypond-less-than?'

should properly be replaced with that.


Reference:

http://lilypond.org/doc/v2.19/Documentation/usage/writing-code-to-support-multiple-versions

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to search all Lilypond Archives in same search

2019-10-10 Thread Ben

On 10/10/2019 8:28 AM, Michael Abrams wrote:

Hi, no wish to be a burden to any Lilypond user, but I am a new to Lilypond, 
and would like to find out if there is a way to search 'the Archives' at the 
same time rather than each entry in the [All List]?

Michael

.


Hi Michael,

Here is the GNU LilyPond User archive, with a search option as well.

https://lists.gnu.org/archive/html/lilypond-user/

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Open multiple files on frecoaldi

2019-10-09 Thread Ben

On 10/9/2019 9:13 AM, MING TSANG wrote:

Hi, lily ponders,

Previously, I was able to open multiple files in frecobaldi with each 
file in a separate tab. Then, a couple of days ago, I found that this 
function was no longer working as expected. I have no idea what why 
the function might have become disabled; I don't recall making any 
major changes to my settings. Is there something in the settings 
that, if changed, will restore the function to its former usefulness?


I run windows 10 and lilypond 2.19.83 and frecobaldi 3.02


Thanks,
Ming


Hi Ming,

Frescobaldi should open files as tabs, it does on my end...unless you 
want them in new windows.


Does this setting appear checked or unchecked on your machine?

(see attached)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: remove a staff

2019-10-09 Thread Ben

On 10/8/2019 9:22 PM, MING TSANG wrote:

Hi, lilyponders,

Is it possible to remove a staff ( everything)?

Thanks for the help,
Ming



Ming,

An empty staff?

Or do you mean staves with music on them?

If the latter, maybe try this approach:


hideMusic = { \set Staff.keepAliveInterfaces = #'() }
showMusic =   \unset Staff.keepAliveInterfaces

or

showStaff = \set Staff.keepAliveInterfaces = #'(bar-line-interface)
hideStaff = \set Staff.keepAliveInterfaces = #'()
resetStaff = \unset Staff.keepAliveInterfaces



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with String Orchestra Template Please

2019-10-06 Thread Ben

On 10/5/2019 7:54 PM, Simon Albrecht wrote:

Hi Ben,

On 05.10.19 14:24, Ben wrote:


Does your approach allow for clean part-printing? I put together a 
quick test and it looks like they all get included for violin 1. I 
don't know a straightforward way to accomplish one divisi per violin 
1 part in this special situation.


It wouldn't be the end of the world if you had to include all 6 parts 
on every file but the players may have some frustrations about having 
to highlight their part or something (assuming this 6-part divisi 
goes on for several pages of the full score).




as far as I know usually all subdivisions of the first violins would 
be contained in one part, though of course at some point that stops 
making sense. Printing individual parts for each subdivision is easy 
with the approach I demonstrated in demo-string-divisi.ly (see my 
previous post in this thread). Either set it up so that 
\RemoveAllEmptyStaves is effective only for the score in the first 
place, or use something like


\score {
  \vlIB
  \layout {
    \context {
  \Staff
  \override VerticalAxisGroup.remove-empty = ##f
    }
  }
}

for the part.

Best, Simon


Simon,

Thank you for your help. I've never had to use quotes before and I must 
admit, I am very confused about the syntax. I just consulted the manual 
and tried to copy and paste some code so I can learn it and tweak it, 
but I am getting warnings directly from the documentation.


Any chance you know what is going on? I'm finding the whole quote system 
difficult to wrap my head around. I don't see why (or how?) it works in 
your divisi code, and I'd like to be able to grasp it.


(copied and pasted from: 
http://lilypond.org/doc/v2.19/Documentation/notation/writing-parts#quoting-other-voices)


\version "2.19.83"

fluteNotes = \relative {
  a'4 gis g gis | b4^"quoted" r8 ais\p a4( f)
}

oboeNotes = \relative {
  c''4 cis c b \quoteDuring #"flute" { e4 r8 ais b4 a }
}

\addQuote "flute" { \fluteNotes }

\score {
  <<
    \new Staff \with { instrumentName = "Flute" } \fluteNotes
    \new Staff \with { instrumentName = "Oboe" } \oboeNotes
  >>
}


*warning: Two simultaneous rest events, junking this one
**warning: Previous rest event here*


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with String Orchestra Template Please

2019-10-05 Thread Ben

On 10/5/2019 4:53 AM, Simon Albrecht wrote:

Hi Ben,

your approach does work. It can be simplified quite a bit, mainly by 
using shortInstrumentName and \RemoveAllEmptyStaves, and not using 
keepAliveInterfaces, which you don’t even need. See ben-divisi.ly.


On 05.10.19 03:08, Ben wrote:
I didn't know if I should create the divisi staffgroups at the start 
of the piece and then hide it until it's needed, or just use it on 
the fly as needed (which is what I did here).



I think it’s more ‘messy’ and complicated creating them on the fly. 
I’d much rather keep one of them filled with music throughout, have 
the others quote that, and make full use of the keepAliveInterfaces 
approach. In all but the most complicated cases one won’t really need 
meddling with instrumentNames, which also removes the need to meddle 
with manual breaks. But of course that’s also possible—see 
demo-string-divisi.ly.


Best, Simon


Simon,

Wow this is so helpful thank you for that code. My brain never even 
registered doing that as a possibility! Oops.


This looks great, much better. I do have one follow up question though...

Does your approach allow for clean part-printing? I put together a quick 
test and it looks like they all get included for violin 1. I don't know 
a straightforward way to accomplish one divisi per violin 1 part in this 
special situation.


It wouldn't be the end of the world if you had to include all 6 parts on 
every file but the players may have some frustrations about having to 
highlight their part or something (assuming this 6-part divisi goes on 
for several pages of the full score).


I figured I'd ask if there was a way. :)

Thanks!

*attached png*

% from ben.divisi.ly %%

\score {
 \new Staff \violinIPart
  \layout {
    \context {
  \Staff
  \RemoveAllEmptyStaves
    }
  }

}

\version "2.19.83"

global = {
  \key c \major
  \time 4/4
}

violinI = \relative c'' {
  \global

  c1 e g e d c g e d c c
  \break
  <<
{ s1*12 }
\new StaffGroup \with {
  alignAboveContext = "main"
  systemStartDelimiter = #'SystemStartBrace
  \override InstrumentName.self-alignment-X = -1
  shortInstrumentName = \markup { \left-column { "Vl. I" "(div.)" } }
}

<<
  \new Staff \with { shortInstrumentName = "1" }
  { c2 2 2 2 }
  \new Staff \with { shortInstrumentName = "2" }
  { c1 1  }
  \new Staff \with { shortInstrumentName = "3" }
  { c1 1  }
  \new Staff \with { shortInstrumentName = "4" }
  { c1 1  }
  \new Staff \with { shortInstrumentName = "5" }
  { c1 1  }
  \new Staff \with { shortInstrumentName = "6" }
  { c1 1  }
>>
  >>
  \break
  \repeat unfold 7 { c1 } \break
}

violinII = \relative c'' {
  \global

  \repeat unfold 30 { c1 }
}

viola = \relative c' {
  \global

  \repeat unfold 30 { d1 }
}

cello = \relative c' {
  \global

  \repeat unfold 30 { e,1 }
}

violinIPart = \new Staff = "main" \with {
  instrumentName = "Violin I"
  midiInstrument = "violin"
  shortInstrumentName = "v1"
} \violinI

violinIIPart = \new Staff \with {
  instrumentName = "Violin II"
  midiInstrument = "violin"
  shortInstrumentName = "v2"
} \violinII

violaPart = \new Staff \with {
  instrumentName = "Viola"
  midiInstrument = "viola"
  shortInstrumentName = "vla"
} { \clef alto \viola }

celloPart = \new Staff \with {
  instrumentName = "Cello"
  midiInstrument = "cello"
  shortInstrumentName = "cl"
} { \clef bass \cello }

\score {
  \new StaffGroup \with {
systemStartDelimiter = #'SystemStartSquare
  } <<
\violinIPart
\violinIIPart
\violaPart
\celloPart
  >>
  \layout {
\context {
  \Staff
  \RemoveAllEmptyStaves
}
  }
}

\paper {

  left-margin = 35\mm
  right-margin = 15\mm

}

\pageBreak


\score {
 \new Staff \violinIPart 
  \layout {
\context {
  \Staff
  \RemoveAllEmptyStaves
}
  }
  
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help with String Orchestra Template Please

2019-10-04 Thread Ben

On 10/4/2019 6:08 PM, Simon Albrecht wrote:

Hi Reggie,

there’s a really neat way of setting this up so that Lily will even be 
free to choose line breaks, but extra staves are only shown where 
necessary:



\version "2.19.83"

\paper { #(set-paper-size "a7") indent = 0 }

\layout {
  \context {
    \Staff
    \RemoveAllEmptyStaves
  }
}

vlIA = \repeat unfold 24 g4

\addQuote vlICommon \vlIA

vlIB = {
  \set Staff.keepAliveInterfaces = #'()
  \quoteDuring vlICommon s1*3
  \unset Staff.keepAliveInterfaces
  \repeat unfold 4 gis4
  \set Staff.keepAliveInterfaces = #'()
  \quoteDuring vlICommon s1*2
}

\score {
  <<
    \new Staff \vlIA
    \new Staff \vlIB
  >>
}
%%%

I hope this gives you enough to go on. If you need specific 
instrumentNames for the divisi staves, however, you need to specify 
break points and use \set Staff.instrumentName at those moments.


Please ask again if you need more hints.

Best, Simon

On 04.10.19 14:58, Reggie wrote:

Good afternoon.

I would really appreciate if some help could come from someone who 
knows how

to begin engraving a score that I need to do for a job. It is a string
orchestra piece but the divisi is confusing me I have no idea where to
start. Is there any template for this please?

The piece begins in a standard Violin I, Violin II, Viola, Cello, Bass
arrangement from page 1 however as the piece continues the violin I
"instrument" gets divided into 6 for long periods. As this, each 
Violin I

divisi get it's own staff. Very clean. I have fear when I go to make my
"parts" that I will have to have a messy 6-stave part for Violin I if I
engrave from the beginning, and simply "add ossia staff" as I go, and 
this

is not ideal.

Please look at my attached photos that show a few of what I am talking
about. I would be so appreciate if someone could show me how to begin 
this
engraving so the full score has 6-divided staffs correctly, and the 
parts
files can be separated and not a 6-staff mess per player for all 
violin 1

parts.  Is this possible in LilyPond? Thank you so kindly.

I'd like to use the template for other instruments later, like viola and
violin 2. Copy and paste I assume.

I am lost as to how to even begin to setup my score for full score and
parts. Thanks for any guidance. I really do not want to need to go 
back to

Finale.

PS the attached score is not my work it's a sample of what I mean with
divisi.

measure_1.png

measure_50.png

measure_100.png




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
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


Hi Simon,

Perhaps you can help me with something...

I was putting together a mockup to try and help Reggie but I hit a wall 
and don't understand if I'm doing something wrong.


I'm curious, how does my code look? Is it problematic from what you can 
tell? I *think* it accomplishes the correct result but I have some 
doubts on the parts.


I didn't know if I should create the divisi staffgroups at the start of 
the piece and then hide it until it's needed, or just use it on the fly 
as needed (which is what I did here). Reggie's photos show several 
violin 1s but I'm unsure if these will result in correct part separation 
when the time comes.


Thanks for any feedback! :)

%

\version "2.19.83"

hideMusic = { \set Staff.keepAliveInterfaces = #'() }
showMusic =   \unset Staff.keepAliveInterfaces

addOssiaName =
#(define-scheme-function (name padding) (markup? number?)
   (let ((adapted (make-vcenter-markup name)))
 #{
   \override Staff.StaffSymbol.stencil = #(lambda (grob)
(ly:stencil-combine-at-edge (ly:staff-symbol::print grob)
  X LEFT 
(grob-interpret-markup grob adapted) padding))

 #}))

global = {
  \key c \major
  \time 4/4
}

violinI = \relative c'' {
  \global

  c1 e g e d c g e d c c
  \break
  <<
    { \hideMusic g dis' gis, f g ais gis e d g d e }
    \new StaffGroup \with {
  alignAboveContext = "main"
  systemStartDelimiter = #'SystemStartBrace
  instrumentName = \markup { \center-column { "Vln. 1" "(div.)" } }
    }

    <<
  \new Staff \with { instrumentName = "1" }
  { \addOssiaName "Violin I-1" 3 c'2 2 2 2 }
  \new Staff \with { instrumentName = "2" }
  { \addOssiaName "Violin I-2" 3 c1 1  }
    >>
  >>
  \break
  \showMusic
  \repeat unfold 7 { c1 } \break
}

violinII = \relative c'' {
  \global

  \repeat unfold 30 { c1 }
}

viola = \relative c' {
  \global

  \repeat unfold 30 { d1 }
}

Re: partcombine - upper voice rests not printed

2019-10-04 Thread Ben

On 10/4/2019 12:37 PM, Eby Mani via lilypond-user wrote:

Note: Seems the mail sent yesterday somehow did not appear in the mailing list 
or a delivery failed message was not generated.

**
Apologies if this been asked earlier. When using \partcombine, rests on upper 
voice is not printed, but rests on the lower voice is printed.

How do i get to print the quaver rest(critical) in the first measure ?. somehow 
it prints the critical rests in the lower voice.

Thanks,
eby

\version "2.18.2"

pA = \relative c' {
   %%% partcombine rest is not printed.
   f4 e8 fis r8^\markup "rest" d'8 d d

   d4 r r c~
c8 bes bes c16 g r8 d d'4
}

pB = \relative c' {

   f4 e8 fis g4. fis8
   %%% partcombine rest is printed.
   f8 ees16 d ees4 d r8_\markup "rest" ees8
r4 r8 c16 bes c8 a a' f
}

pCom = <<
   \mergeDifferentlyHeadedOn
 \mergeDifferentlyDottedOn
 \partcombine \pA \pB >>

\score {
   <<
   \new Staff = "no-part-combine" \with { instrumentName = "default" }
   <<\pA \\ \pB>>
   >>
}

\score {
   <<
 \new Staff = "part-combine" \with { printPartCombineTexts = ##f instrumentName =  
"partcombine"}
 \pCom
   >>
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


I believe this should work:

f4 e8 fis \partcombineApart r8^\markup "rest" d'8 d d

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: percussion notation standard in Lilypond

2019-10-04 Thread Ben

On 10/4/2019 8:23 AM, list_lilyp...@infopower.nl wrote:

Hello all,

(very) long time not been here.

I'm engraving some drum scores for kids and it seems their teacher is 
using another notation standard than Lilypond, zo I looked it up on 
wikipedia ( https://en.wikipedia.org/wiki/Percussion_notation ) and it 
seems indeed that there are two 'standards' for percussion notation.


One apparently less used from Peckman, Jonathan (2007) (Picture 
Yourself Drumming, p.46. ISBN 1-59863-330-9), and one based on the 
recommendations of the Percussive Arts Society found in Norman 
Weinberg’s Guide To Standardized Drumset Notation (2002, ISBN 
0-9664928-1-1).


(I'm just copying here from wikipedia.)

It seems Lilypond uses neither one, as shown by the hi-hat which it 
positions between the 4th and 5th staff line, whereas both wikipedia 
examples, *and* the kids' teacher, position the hi-hat a half line 
higher (on the 5th line).


My question is now which standard Lilypond is using and why, and is it 
authoritative enough to try to bugger the teacher into switching to 
it? (I don't really mean to bugger him, rather some kind of trying to 
convince him that it's better for the kids to learn a notation 'that 
everyone is using'.)


If those 3 standards are all acceptable, wouldn't it be better if a 
Lilipond engraver were able to choose which standard to use in his piece?


Thanks for your thoughts!



Hello,

I don't know much about the history of LilyPond's percussion "standard" 
but could you do something like this to configure it how you wish? Make 
this as "modern" as you'd like? :) I've never had to do this but I 
remember saving it from a while back...



#(define moderndrums '(
      (acousticbassdrum () #f -3)
      (bassdrum () #f -3)
      (sidestick cross #f 1)
      (acousticsnare () #f 1)
      (snare () #f 1)
      (handclap triangle #f 1)
      (electricsnare () #f 1)
      (lowfloortom () #f -4)
      (closedhihat cross "stopped" 5)
      (hihat cross #f 5)
      (highfloortom () #f -1)
      (pedalhihat cross #f -5)
      (lowtom () #f 2)
      (openhihat cross "open" 5)
      (halfopenhihat xcircle #f 5)
      (lowmidtom () #f 2)
      (himidtom () #f 3)
      (crashcymbala cross #f 7)
      (crashcymbal cross #f 7)
      (hightom () #f 3)
      (ridecymbala cross #f 4)
      (ridecymbal cross #f 6)
      (chinesecymbal xcircle #f 6)
      (ridebell () #f 6)
      (splashcymbal cross #f 9)
      (cowbell triangle #f 5)
      (crashcymbalb cross #f 8)
      (vibraslap diamond #f 4)
      (ridecymbalb cross #f 5)
))

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Partcombine swallows rest at start of measure

2019-08-31 Thread Ben

On 8/31/2019 6:30 PM, Carl Sorensen wrote:

Consider the following code:

\version "2.19.83"

% Partcombine swallows a rest if it is the first musical content in a measure 
and erroneously claims the measure is Solo II

\score{
{\clef bass \time 3/4
   \partcombine { c'8 r8 c'2 | r8 c'8 c'2 }
{ a2.   | a2. }
}
}


The rest at the beginning of the second measure is swallowed by partcombine, 
and partcombine thinks the measure
Is Solo II.  Is there any workaround?

Thanks,

Carl



Hi Carl,

Do you mean like this?

\score{
{\clef bass \time 3/4
  \partcombine { c'8 r8 c'2 | \partcombineApart r8 c'8 c'2 }
   { a2.   | a2. }
}
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hairpins collide with markup

2019-08-14 Thread Ben

On 8/14/2019 6:04 PM, Rachel Knight via lilypond-user wrote:

Hi,
In a piece I am working on, the markups are colliding with crescendo 
and decrescendo markings. I finished a different piece that had both 
hairpins and markups where the markups were perfectly placed below the 
crescendo. Any idea what is wrong with this score?


Best,
Rachel

\version "2.19.81"

\language "english"

pedaldn = \markup \concat \vcenter \center-align {D \natural}
pedalan = \markup \concat \vcenter \center-align {A \natural}
pedaldf = \markup \concat \vcenter \center-align {D \flat}
pedalgf = \markup \concat \vcenter \center-align {G \flat}


up = {\change Staff = "treble"}
down = {\change Staff = "bass"}

Treble = { s2.*2}

Bass = \relative c {
  \clef bass
  \time 6/8
\down gf16\<-\pedalgf -\markup {C \natural} ef' gf \up bf ef ef \down 
gf,, ef' bf' \up c ef ef |
\down f,,-\pedalan-\pedaldn c' a' \up c f a \down bf,,-\pedaldf f' bf 
\up df f bf\! |

}

\score {
  {

  \new GrandStaff
  <<
  \new Staff = treble { \Treble }
\new Staff = bass { \Bass }
  >>

  }

}


Hi Rachel,

If you inspect the log, you'll see the following error/warning:

warning: Change_iterator::process (): Staff = `bass':
document.ly:12:9: warning: cannot change `Staff' to `bass': not changing 
to same context type: Staff

down = {
    \change Staff = "bass"}



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bar in a Symphony by Beethoven

2019-08-12 Thread Ben

On 8/12/2019 9:23 AM, Phil Holmes wrote:


RHS = Right Hand Side (when not Royal Horticultural Society).

--
Phil Holmes

Ah, thank you Phil. My brain was thinking in "syntax/command" mode, not 
math equation/sides. :)


Much appreciated!

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bar in a Symphony by Beethoven

2019-08-12 Thread Ben

On 8/12/2019 4:39 AM, Andrew Bernard wrote:

Hi Victor,

Now that Ben has given the game away :-) here's the code to make all 
beams flat:


\override Beam.damping = #+inf.0

So now I can transform your exercise: use the NR to find out exactly 
what the RHS means, and also how to use overrides.


The composer I engrave for uses flat beams throughout, so this is a 
great little function. Certainly not a normal style, but lilypond can 
do anything, pretty much.


All the best!


Andrew



Andrew,

Interestingly, I just tried searching my entire 885 page, LilyPond 
2.19.81 Notation Reference PDF for any hit including the term "#+inf.0" 
and it came up with zero results. I did search through the mailing list 
and did find a post of yours from back on Nov 20, 2015 where you mention 
the use of \override Beam.damping = #+inf.0 though. Do you know where 
that syntax is in the manual? Where did you find it? :)


Also, what's RHS?

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bar in a Symphony by Beethoven

2019-08-11 Thread Ben

On 8/11/2019 3:55 PM, Víctor Manuel Ares Piñeiro via lilypond-user wrote:

Thank you all very much for your answers and comments.

First of all, the code that Andrew Bernard very kindly gave me:

{
\clef bass
\stemUp
b,8
\stemDown
b8 b b b
}

This code was one of my first attempts to make that fragment. However, in my 
version of LilyPond, which is 2.19.82, the compiler shows me this warning:

"warning: no viable initial configuration found: may not find good beam slope

Although the score is compiled correctly, in each fragment of the score in 
which I use it, the compiler shows me the corresponding warning, and the 
Frescobaldi program marks the lines in red.

Maybe it's just a simple warning, no more complications, but I'd like to know if there's 
any other way to make that fragment without the LilyPond compiler "protesting".

On the other hand, Pierre Perol-Schneider, thank you very much for your 
warning. I am aware that this mode of writing is obsolete and not currently 
used. My intention is to copy Beethoven's Symphonies to review my musical 
knowledge and learn complex and unusual LilyPond techniques to improve my 
knowledge of the program.

Many thanks again to all of you for your answers.


Víctor Manuel Ares Piñeiro
victormanue...@protonmail.com

‐‐‐ Original Message ‐‐‐
El sábado, 10 de agosto de 2019 14:38, Andrew Bernard 
 escribió:


Use stem up and stem down.

{
   \clef bass
   \stemUp
   b,8
   \stemDown
   b8 b b
}

I leave it as an exercise for you to check the NR (Notation Reference)
for how to make the beam flat.

Andrew

lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Hi Victor,

It seems like you're having problems understanding the next step and how 
to discover the answer. Here is one way of looking at solving your problem.


{
  \clef bass
  \once \override Beam.positions = #'(1 . 1)
  \stemUp
  b,8
  \stemDown
  b8 b b
  \override Beam.damping = #2
  b b g g
}

Quick summary: by using the override and setting both to the same value, 
you essentially create a flat beam. And since your attached photo shows 
the beam going across the F line, the pair 1 . 1 seems to work fine in 
this case. (see attached)


Do you follow? :)

In several different sections of the comprehensive documentation you'll 
find code that concerns beams, slopes, and overrides. Check out the 
sections that talk about "manually controlling beam positions etc." or 
something similar.


Hope that helps you narrow it down, and by reverse engineering code to 
see how we arrive at solutions you learn to look at things from a 
different angle. Everyone learns differently. Forwards or backwards, 
it's all the same.


LilyPond has a lot of power, and you'll find what works for you!

Good luck!

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: customizing the Frescobaldi score wizard

2019-08-09 Thread Ben

On 8/9/2019 11:24 AM, Kevin Cole wrote:

First, I'm also on a Linux box. (Arch Linux, to be precise.)

If I understand the question (which I am perhaps naive in assuming I
do), one thing you might do to help yourself out is,

FIRST either:

(a) use the wizard but then, when it finishes, don't add anything, or
(b) use "New from template, and again, don't add anything.

THEN, modify what it gives you to suit your basic needs, and save it
as a new template.

Repeat the above two steps as needed to create multiple templates.

Finally, in the future, use "New from template" with one of your
customized templates instead of the wizard as the starting point


Kevin,

I believe they were asking about Ming's thread, but on Linux - which is 
where the screenshot came from. I had posted some days ago.


http://lilypond.1069038.n5.nabble.com/drop-down-list-td223139.html#a223213

Adding new fields, not just saving templates.

But that's what I got out of the question, it wasn't completely clear to 
me either. I could be wrong.




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: customizing the Frescobaldi score wizard

2019-08-09 Thread Ben

On 8/8/2019 5:41 PM, Bill via lilypond-user wrote:
Thanks for your post on the scorewizard.  What I learned will be 
helpful if I incorporate it in future work.  I am on Linux Mint and I 
can not find the sub directories you have on windows.

These are the only directory and file I find searching for 'fresco*'

./.config/frescobaldi
./.config/frescobaldi/frescobaldi.conf

Is it possible to modify the wizard in Linux?

Your windows path screenshot is attached.

Thank you so very much for any insights you can provide.

Bill


Hi Bill,

That's my screenshot you've attached so I assume you're asking about the 
same "feature" in Linux? I've never attempted this but I would suggest 
checking out the scorewiz directory as well, just like the scorewiz and 
the registry key in Windows.


/frescobaldi_app/scorewiz/

Like, settings or score properties maybe? Not sure. Hope this helps.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: drop down list

2019-08-03 Thread Ben

On 7/30/2019 1:01 PM, MING TSANG wrote:

dear lily ponders,

On score setup wizard - frecobaldi a few entry such as "subsubtitle", 
"tempo indication" have drop down list, is it possible to edit the 
list - ie to delete or modify  entries?


Thanks for the help,
Ming


Hi Ming,

Are you on Windows? On my Windows 10 machine, I can go to the registry 
via RegEdit and modify or add new values.


(see attached)

Location:

Computer\HKEY_CURRENT_USER\Software\frescobaldi\frescobaldi\scorewiz\completion\header

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Installing v2.19.83

2019-07-26 Thread Ben

On 7/26/2019 9:55 AM, Ralph Palmer wrote:

Greetings -

I'm running ly v2.19.81 under Linux/Ubuntu.

I've downloaded >.


Do I need to move it to a particular directory before installing 
LilyPond 2.19.83?


What command(s) do I need to run to install 2.19.83? Are the commands 
run on the .sh file?


I appreciate your time and help,

Ralph

--
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com 


Ralph,

If you want to choose the directory to install manually, it's easy - 
just input this command:


sh lilypond-2.19.83-1.linux-64.sh --prefix 
/home/ralph/MyLilyPond/[wherever you want or wherever the previous 
Lily is]


(see attached)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Installing v2.19.83

2019-07-26 Thread Ben

On 7/26/2019 9:55 AM, Ralph Palmer wrote:

Greetings -

I'm running ly v2.19.81 under Linux/Ubuntu.

I've downloaded >.


Do I need to move it to a particular directory before installing 
LilyPond 2.19.83?


What command(s) do I need to run to install 2.19.83? Are the commands 
run on the .sh file?


I appreciate your time and help,

Ralph

--
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com 


Hi Ralph,

How did you install the 2.19.81 before? Did you use the sh file and 
PREFIX, or did you install from a sudo apt / repo?


I've never had an issue upgrading / installing over LilyPond, but I have 
always used the sh files.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Alternating text and music

2019-07-25 Thread Ben

On 7/25/2019 2:14 PM, Peter Toye wrote:

Re: Alternating text and music Hi Muzhic,

Something like this but with the tie between the staves.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com 

-
Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:


Hello Peter,

Can you post a picture of what you’re after?

JM

Envoyé de mon iPhone

Le 25 juil. 2019 à 16:45, Peter Toye > a écrit :



	Alternating text and music I want to engrave a piano piece, and have 
lines of text between the staff groups. I know I can do this with 
several \score blocks, but unfortunately there are a lot of tied notes 
at the ends of some of the lines, which need to be engraved, at both 
the end and the start of each line.


Is there any easy way of doing this? I'm not very good at the \markup 
command :(



Thanks in advance,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.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


Peter,

You could just use a simple markup for that, would this help?

\version "2.19.82"

{

  c''1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1
  _\markup \lower #3 " text here"
  ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  _\markup \lower #3 " text here"
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~


}



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fresobaldi landscape printing

2019-07-24 Thread Ben

On 7/24/2019 12:01 PM, Peter Toye wrote:
Fresobaldi landscape printing I have a score with the paper set to A4 
landscape. But when I print it directly from Frescobaldi it's printed 
in portrait format, and the edges (with quite a lot of music) disappear.


Is there any way of getting Fresco to print in landscape format?

The workaround is to load the PDF file into a PDF reader and print 
from that, but it's a bit of a pain.



Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com <http://www.ptoye.com>


Hi Peter,

I just tried Frescobaldi and it does print landscape correctly, both to 
paper and PDF output. Which version / OS are you using? Is there 
anything maybe in your code that could be causing a conflict or 
something? Are you on version 2.x or 3.x?


\version "2.19.82"

\header {
  title = "Composition"
  composer = "Ben"
  tagline = ##f
}

\relative c'
{

  \repeat unfold 100 { c2 d e f g g }
  \bar "|."
}

\paper {
  top-margin = 0.5\in
  left-margin = 0.75\in
  right-margin = 0.75\in
  bottom-margin = 0.5\in
  ragged-last-bottom = ##f
  #(set-paper-size "a4" 'landscape)
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Grace note beams won't hide correctly

2019-07-04 Thread Ben

On 7/4/2019 5:50 PM, Aaron Hill wrote:

On 2019-07-04 2:02 pm, Ben wrote:

This is the first time I've encountered the need to hide /grace note/
beams and/or stems. Can someone show me what I am doing wrong?


Here's my attempt, though it may not be the most ideal:


\version "2.19.82"
\language "english"

overlaySlash = #(define-music-function
    (thickness length angle offset)
    (number? number? number? number-pair?)
  #{ \once \override Beam.stencil =
    #(grob-transformer 'stencil (lambda (grob orig)
  (let ((th (* (ly:staff-symbol-line-thickness grob) thickness))
    (x (interval-start (ly:stencil-extent orig X)))
    (y (interval-start (ly:stencil-extent orig Y)))
    (hl (/ length 2)))
    (ly:stencil-add orig
  (ly:stencil-translate
    (ly:stencil-rotate
  (make-line-stencil th (- hl) 0 hl 0)
  angle 0 0)
    (cons (+ x (car offset)) (+ y (cdr offset #})

noStem = \omit Stem

\relative c' {
  \overlaySlash 1.2 7 35 #'(2 . -1)
  \appoggiatura {
    e!8^[ \noStem g! c! fs bf ef
    bf fs c! \undo \noStem e,!]
  }
  \noStem df4
}



-- Aaron Hill


Aaron,

This code works perfectly. Why do you say it's not ideal? It looks spot 
on. Thank you!



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Grace note beams won't hide correctly

2019-07-04 Thread Ben

On 7/4/2019 5:45 PM, Shane Brandes wrote:

\undo \omit Stem
  That turns it back on.
regards,
Shane

On Thu, Jul 4, 2019 at 5:07 PM Ben  wrote:

Hi all,

This is the first time I've encountered the need to hide grace note beams 
and/or stems. Can someone show me what I am doing wrong?

I'm attaching an image of what I am after.

Thank you!

Here is my code so far:



\version "2.19.82"
\language "english"


\relative c'

%% This hide the beams and stems, but I only want to hide the middle notes.
{
   \omit Beam
   \omit Stem
   \appoggiatura  {
 e!8(^[

 g! c! fs bf ef bf fs c! e,!]
 df4)
   }
}


%% This hide the stems, and it's 99% there, but I can't figure out how to 
finish this with the correct beaming and slash.

\relative c'
{
   \appoggiatura  {
 e!8(^[

 \omit Beam
 \omit Stem
 g! c! fs bf ef bf fs c! e,!]

 df4)
   }

}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-use


Hi Shane,

When I try your code suggestion, it does look correct but I have errors 
in my log?


Drawing systems...

programming error: bounds of this piece aren't breakable.

continuing, cross fingers

% code

\relative c'
{
  \appoggiatura  {
    e!8(^[

    \omit Beam
    \omit Stem
    g! c! fs bf ef bf fs c!
    \undo \omit Stem  e,!]

    df4)
  }

}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Grace note beams won't hide correctly

2019-07-04 Thread Ben

Hi all,

This is the first time I've encountered the need to hide /grace note/ 
beams and/or stems. Can someone show me what I am doing wrong?


I'm attaching an image of what I am after.

Thank you!

Here is my code so far:



\version "2.19.82"
\language "english"


\relative c'

%% This hide the beams and stems, but I only want to hide the middle notes.
{
  \omit Beam
  \omit Stem
  \appoggiatura  {
    e!8(^[

    g! c! fs bf ef bf fs c! e,!]
    df4)
  }
}


%% This hide the stems, and it's 99% there, but I can't figure out how 
to finish this with the correct beaming and slash.


\relative c'
{
  \appoggiatura  {
    e!8(^[

    \omit Beam
    \omit Stem
    g! c! fs bf ef bf fs c! e,!]

    df4)
  }

}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 1:57 PM, Aaron Hill wrote:

On 2019-07-04 10:01 am, Pierre Perol-Schneider wrote:

Hi Ben,
How about:


Here are some modifications I made to Pierre's code:

- Removed \overriding InstrumentName.padding and opted instead for 
self-alignment-X of RIGHT.
- Kept the stencil for SystemStartSquare but applied an extra-offset 
to slide it underneath the instrument name for the StaffGroup.
- To prevent the other brackets from being shifted, I also had to 
adjust SystemStartSquare's direction to RIGHT.

- Changed InstrumentName's layer to be top-most.
- Used the OrchestraGroup's instrumentName with \markup \whiteout...



\version "2.19.82"

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
    \override InstrumentName.self-alignment-X = #RIGHT
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override SystemStartSquare.thickness = #2
    \override SystemStartSquare.direction = #RIGHT
    \override SystemStartSquare.extra-offset = #'(-15.5 . 0)
    \override InstrumentName.layer = #1000
  }
  \context {
    \GrandStaff
    \remove "System_start_delimiter_engraver"
    \accepts OrchestraGroup
    \accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
    \new OrchestraGroup \with {
    instrumentName = \markup \whiteout
  \override #'(circle-padding . 1)
  \circle "I"
  } <<
  \new WindGroup <<
    \new Staff \with {
  instrumentName = "Oboe"
    } \someMusic
  >>
  \new StringGroup <<
    \new ViolinGroup <<
  \new Staff \with {
    instrumentName = "Violino I"
  } \someMusic
  \new Staff \with {
    instrumentName = "Violino II"
  } \someMusic
    >>
    \new Staff \with {
    instrumentName = "Viola"
  } { \clef C \someMusic }
  >>
    >>
    \new StaffGroup <<
  \new Staff \with {
  instrumentName = "Soprano"
  } \someMusic
  \new Staff \with {
  instrumentName = "Alto"
  } { \clef C \someMusic }
    >>
  >>
}





Hi Aaron,

Wow. This is so awesome. I think I see how you arrived at this code, I 
really appreciate your help.


I'd like to save this code and re-use it, here is what I came up with I 
think it'll work just perfectly. :) I don't think I made any 
mistakes...? hehe



%


\version "2.19.82"

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
    \override InstrumentName.self-alignment-X = #RIGHT
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override SystemStartSquare.thickness = #2
    \override SystemStartSquare.direction = #RIGHT
    \override SystemStartSquare.extra-offset = #'(-15.5 . 0)
    \override InstrumentName.layer = #1000
  }
  \context {
    \GrandStaff
    \remove "System_start_delimiter_engraver"
    \accepts OrchestraGroup
    \accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
    \new OrchestraGroup \with {
  instrumentName = \markup \whiteout
  \override #'(circle-padding . 1)
  \circle "I"
    } <<
  \new WindGroup <<
    \new Staff \with {
  instrumentName = "Oboe"
    } \someMusic
  >>
  \new StringGroup <<
    \new ViolinGroup <<
  \new Staff \with {
    instrumentName = "Violino I"
  } \someMusic
  \new Staff \with {
    instrumentName = "Violino II"
  

Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 1:01 PM, Pierre Perol-Schneider wrote:

Hi Ben,
How about:

\version "2.19.83"

half-brace = \markup\concat {
  \hspace #.5
  \path #0.2 #'((moveto .5 0) (lineto 0 0)
                 (lineto 0 -15)) % <= to be set
}

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinGroup
    systemStartDelimiter = #'SystemStartBracket
  }
  \context {
    \StaffGroup
    \name OrchestraGroup
    \accepts WindGroup
    \accepts StringGroup
    systemStartDelimiter = #'SystemStartSquare
    \override SystemStartSquare.stencil = ##f
    \override InstrumentName.extra-offset = #'(-2 . 0)
    instrumentName = \markup {
      \override #'(baseline-skip . 0)
      \override #'(thickness . 2)
      \center-column {
        \half-brace \vspace #-.05 \circle "xxx" \vspace #-.05 \scale 
#'(1 . -1) \half-brace

      }
    }
  }
  \context {
    \GrandStaff
    \remove "System_start_delimiter_engraver"
    \accepts OrchestraGroup
    \accepts StaffGroup
  }
}

\score {
  \new GrandStaff <<
    \new OrchestraGroup <<
      \new WindGroup <<
        \new Staff \with {
          instrumentName = "Oboe"
          \override InstrumentName.padding = #-11
        } \someMusic
      >>
      \new StringGroup <<
        \new ViolinGroup <<
          \new Staff \with {
            instrumentName = "Violino I"
            \override InstrumentName.padding = #-8
          } \someMusic
          \new Staff \with {
            instrumentName = "Violino II"
            \override InstrumentName.padding = #-8
          } \someMusic
        >>
        \new Staff \with {
            instrumentName = "Viola"
            \override InstrumentName.padding = #-11
          } { \clef C \someMusic }
      >>
    >>
    \new StaffGroup <<
      \new Staff \with {
      instrumentName = "Soprano"
      \override InstrumentName.padding = #-8
      } \someMusic
      \new Staff \with {
      instrumentName = "Alto"
      \override InstrumentName.padding = #-10
      } { \clef C \someMusic }
    >>
  >>
}

HTH, Cheers,
Pierre

Le jeu. 4 juil. 2019 à 17:52, Ben <mailto:soundsfromso...@gmail.com>> a écrit :


On 7/4/2019 10:30 AM, Kieren MacMillan wrote:

Hi Ben,


How would you suggest I go about creating the bracket markings that 
separate big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.


ideally I'd prefer the circle symbol in the bracket to always be centered 
alongside the staff group

The InstrumentName is center-able — override it.  =)

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website:www.kierenmacmillan.info  <http://www.kierenmacmillan.info>
‣ email:i...@kierenmacmillan.info  <mailto:i...@kierenmacmillan.info>


Kieren,

I just came across this link!

It helps me visually see how to approach this better. But I'm
confused how to create a custom 'bracket' rather...

I'll keep at it. If you have any hints, I welcome them. :) Thank you!

https://leighverlag.blogspot.com/2015/01/advanced-staff-grouping.html





Pierre,

Wow this is incredibly helpful. I see now how the overrides work 
beautifully with your custom group! How do you recommend I go about 
creating a second bracket though, for the other orchestra? (1 and 2, 
instead of 1 and 1 - see attached). I don't understand the best way to 
duplicate the context in this case.


% Here is my code based on your template %

\version "2.19.83"

half-brace = \markup\concat {
  \hspace #.5
  \path #0.2 #'((moveto .5 0) (lineto 0 0)
 (lineto 0 -15)) % <= to be set
}

% Example:
someMusic = {
  \tempo "Andante."
  \time 3/4
  \key c \minor
  c'2. r8
}

\paper { indent = 40 }

\layout {
  \context {
    \Staff
    \override InstrumentName.font-size = #-1
  }
  \context {
    \StaffGroup
    \name ViolinGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBrace
  }
  \context {
    \StaffGroup
    \name WindGroup
    \alias StaffGroup
    systemStartDelimiter = #'SystemStartBracket
    \override SystemStartBracket.collapse-height = #1
  }
  \context {
    \StaffGroup
    \name StringGroup
    \alias StaffGroup
    \accepts ViolinG

Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 10:30 AM, Kieren MacMillan wrote:

Hi Ben,


How would you suggest I go about creating the bracket markings that separate 
big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.


ideally I'd prefer the circle symbol in the bracket to always be centered 
alongside the staff group

The InstrumentName is center-able — override it.  =)

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


Kieren,

I just came across this link!

It helps me visually see how to approach this better. But I'm confused 
how to create a custom 'bracket' rather...


I'll keep at it. If you have any hints, I welcome them. :) Thank you!

https://leighverlag.blogspot.com/2015/01/advanced-staff-grouping.html


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

On 7/4/2019 10:30 AM, Kieren MacMillan wrote:

Hi Ben,


How would you suggest I go about creating the bracket markings that separate 
big sections, like in a piece with two orchestras or similar?

Create a custom StaffGroup context.


ideally I'd prefer the circle symbol in the bracket to always be centered 
alongside the staff group

The InstrumentName is center-able — override it.  =)

Hope that helps!
Kieren.


Hey Kieren!

Thanks for getting me started. I did consider going the path of custom 
StaffGroup context but didn't understand how to get a circle symbol to 
actually /intersect/ the bracket as in the attached image, centered.


Are you suggesting that I make the "instrument name" a circle symbol? :) 
Hmm, that sounds like magic to me...hehe.


At the moment I'm still trying to see how I can create the bracket 
itself, then I'll tackle the middle symbol I guess.


http://lilypond.org/doc/v2.19/Documentation/internals/staffgroup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Are these brackets alongside a staff group possible?

2019-07-04 Thread Ben

Hi all,

How would you suggest I go about creating the bracket markings that 
separate big sections, like in a piece with two orchestras or similar?


Please see attached.

One problem I see maybe is that the number of staves /visible/ for each 
orchestra group may change from page to page...so ideally I'd prefer the 
circle symbol in the bracket to always be centered alongside the staff 
group, but if not I could always just accept a static height and include 
empty staves throughout the score if need be to keep things uniform. It 
wouldn't be the end of the world for the score I am working on.


Thank you!


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: A spacing problem

2019-07-04 Thread Ben

On 7/4/2019 7:45 AM, Robert Blackstone wrote:

Dear all,

Presently I’m vainly struggling with a nasty spacing problem: an empty 
fragment of a new bar sticking out of the last bar of a system.

Dear all,

Presently I’m vainly struggling with a nasty spacing problem: an empty 
fragment of a new bar sticking out of the last bar of a system.

In the piece I’ve been working on it happens 4 times. (See screenshots)
I have carefully checked the note durations in each bar and there 
seems to be nothing wrong with any of them.


What can I do to avoid or remedy this?

I’ll be very grateful for any advice.

Best regards,
Robert Blackstone


NB in the third screenshot with the text “ohi-me v’apri”, the  b-flat 
in the bass belongs to a separate voice. (<< {\stemDown as,2 des2 } 
 \\ {s2. \stemUp bes4  } >> |%P2V1-30}




Hi Robert,

I noticed you included some inline images in your email. Would it be 
possible for you to share some of your code so we can see what you have 
going on? Maybe a tiny example?


It's not easy to tell from just the images.

Thanks!

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


MIDI file creation - or not?

2019-07-01 Thread Ben Potter
I am very new to Lilypond but hope to use it to develop my composition 
skills, initially by writing Anglican chants. I have no keyboard skills 
and, at 71, am too old to learn them. I hope, therefore, to use Lilypond 
to create MIDI files to play so I can hear the results of my efforts.


I took the example chant and engraved it as a test - fine. I then added 
a \midi{} command in, I believe, the correct place but still get no MIDI 
file to play. I am stuck - please can someone help this beginner?


I append the file I've been using.

Many thanks,

Ben

--

We have been broadcasting our presence to the Universe for 100 years now. If 
there is a detachment of Galactic
Pest Control within 100 light years, they are already on the way.
-- Anon.

\version "2.18.2"
#(ly:set-option 'midi-extension "mid")

SopranoMusic = \relative {
  g'1 | c2 b | a1 | \bar "||"
  a1 | d2 c | c b | c1 | \bar "||"
}

AltoMusic = \relative {
  e'1 | g2 g | f1 |
  f1 | f2 e | d d | e1 |
}

TenorMusic = \relative {
  c'1 | c2 c | c1 |
  d1 | g,2 g | g g | g1 |
}

BassMusic =  \relative {
  c1 | e2 e | f1 |
  d1 | b2 c | g' g | c,1 |
}

global = {
  \time 2/2
}

#(ly:set-option 'midi-extension "mid")

% Use markup to center the chant on the page
\markup {
  \fill-line {
\score {  % centered
  <<
\new ChoirStaff <<
  \new Staff <<
\global
\clef "treble"
\new Voice = "Soprano" <<
  \voiceOne
  \SopranoMusic
>>
\new Voice = "Alto" <<
  \voiceTwo
  \AltoMusic
>>
  >>
  \new Staff <<
\clef "bass"
\global
\new Voice = "Tenor" <<
  \voiceOne
  \TenorMusic
>>
\new Voice = "Bass" <<
  \voiceTwo
  \BassMusic
>>
  >>
>>
  >>
  \layout {
\context {
  \Score
  \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 
1/2)
}
\context {
  \Staff
  \remove "Time_signature_engraver"
}
  }
 \midi { }
}  % End score
  }
}  % End markup



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Multiple issues

2019-06-30 Thread Ben

On 6/29/2019 7:42 PM, Craig Dabelstein wrote:

Hi everyone,

In the attached screenshot of the last bars of my score you can see a 
couple of problems:


[1] The tempi are not horizontally aligned
[2] The last two bars aren't wide enough to accommodate the tempi

I'm using markLengthOn

What's the consensus on the best way to fix these?

All the best,

Craig
Screen Shot 2019-06-30 at 9.38.13 am.png



If you want to widen the measures, you could always do something like this:

{
  c4 d e f \tempo "Lento" \newSpacingSection
  \once \override Score.SpacingSpanner.shortest-duration-space = #6
  R1
  \newSpacingSection \tempo "Subito Allegro"
  c8 d e f c d e f


}


(see attached)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ERROR: In procedure ly:trampoline: ERROR: Wrong type argument in position 3 (expecting Translator): #

2019-06-03 Thread Ben

On 6/3/2019 8:02 PM, Joseph Srednicki wrote:

Hello:

I read some messages about this issue in the mail archive, but I have 
not been able to get Lilypond to compile the attached file.


I know that the attached example is not tiny, but I could not 
reproduce this issue in a tiny example.


The file compiled without errors until I reached line 266.

Then I received the following error message:

]ERROR: In procedure ly:trampoline:
ERROR: Wrong type argument in position 3 (expecting Translator): 
#

Exited with return code 1.

My environment is as follows:

OS NameMicrosoft Windows 10 Home
Version10.0.17134 Build 17134
64 bit
Lilypond 2.19.82
Frescobaldi 3.0.1

Thanks to anyone who can suggest how to resolve this issue.

Joe Srednicki



Hi Joe,

I downloaded your attachment and it compiles without error on Windows 10 
x64 Pro.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: all my lilypond fonts are huge!

2019-05-30 Thread Ben

On 5/30/2019 2:09 PM, Peter Jaques wrote:

hello all,

i'm running lilypond 2.19.83 (and also 2.18.2) on ubuntu 19.04. all 
the text fonts are coming out giant, while the notation is fine. this 
is happening even with old files (which used to print fine). old pdfs 
of those same old files are fine. i tried just this, alone in a new file:


\relative c' { c-\markup "ab" }

and the "ab" are huge, like 60 point type. additionally, the letters 
are almost completely on top of each other, as if they're spaced for a 
small font.


I've tried resetting the fonts with set-global-font, to no avail. can 
anyone help me debug this?


thanks in advance
~peter in athens

~ Peter Jaques :: www.huzzam.com ~

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Hi Peter,

I think I've seen that before here on the mailing list. I remember the 
fix being font-package related...


*edit* yes I've found one thread here, maybe this could help?

http://lilypond.1069038.n5.nabble.com/Problem-with-Fonts-too-big-td196510.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: programming error: mis-predicted force, 108.120472 ~= 108.191480 continuing, cross fingers

2019-05-19 Thread Ben

On 5/19/2019 1:51 PM, MING TSANG wrote:

Hi Simon,

Thank you for the info.  I finally find the first time the programming 
error appears.

I now have a minimal lily code demonstrate the error.

Ming
%%%
\version "2.19.83"
\language "english"
global = {
  \key a \major
  \numericTimeSignature
  \time 3/4
  \partial 4

  % Draw a circle round the following bar number(s)
  \override Score.BarNumber.stencil
  = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
}

right = \fixed c' {
  \global
 cs''8 b' |
 2  8 a' |
 2 cs''8 a' |
 4 a'' 8 fs'' |\break
 e''4 r4 a' |
 2 4 |
 \grace b'8 2 d''4 |
}

\new Staff \right

%%%

log output:

Starting lilypond-windows.exe 2.19.83 [test_2.ly]...

Processing `C:/Users/yming 
tsang/Documents/S_team/2019-06-02/Speechless-Praise/test_2.ly'


Parsing...

Interpreting music...[8][8]

Preprocessing graphical objects...

programming error: mis-predicted force, 108.120472 ~= 108.262836

continuing, cross fingers

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `./tmp-lilypond-y6dGQn'...

Converting to `test_2.pdf'...

Deleting `./tmp-lilypond-y6dGQn'...

Success: compilation successfully completed

Completed successfully in 1.4".







On Sunday, May 19, 2019, 9:28:01 a.m. EDT, Simon Albrecht 
 wrote:



Hi Ming,

it’s very likely impossible to say without seeing your source file, and
as always: try to narrow it down yourself. What changes did you make to
the document before the error first appeared? Just go through the usual
‘minimal example’ process (tedious as it may be), and if that doesn’t
show you the problem already, then send the example to the list.

Best, Simon

http://lilypond.org/tiny-examples.html

On 17.05.19 16:22, MING TSANG wrote:
> Hi, lilyponders:
>
> What is it mean "...miss-predicted..."?
> How to resolve the following error?
>
> Thank you for the help.
> Ming
>
>
> error log after compile:
>
> Starting lilypond-windows.exe 2.19.83 [speechless-praise.ly]...
>
> Processing `C:/Users/yming
> 
tsang/Documents/S_team/2019-06-02/Speechless-Praise/speechless-praise.ly'

>
> Parsing...
>
> Interpreting music...[8][16][24][32][40][48][56][64][72][80]
>
> Preprocessing graphical objects...
>
> Interpreting music...
>
> MIDI output to `speechless-praise.mid'...
>
> programming error: mis-predicted force, 108.120472 ~= 108.191480
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.961819
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.957163
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 108.191480
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.961819
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.957163
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 106.800315
>
> continuing, cross fingers
>
> Finding the ideal number of pages...
>
> Fitting music on 2 or 3 pages...
>
> Drawing systems...
>
> Layout output to `./tmp-lilypond-spwyxH'...
>
> Converting to `speechless-praise.pdf'...
>
> Deleting `./tmp-lilypond-spwyxH'...
>
> Success: compilation successfully completed
>
> Completed successfully in 5.7".

>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user




Ming,

If I remove your "\grace b'8" the error goes away...

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The "let vibrate" tie

2019-05-14 Thread Ben

On 5/14/2019 6:22 AM, Andrew Bernard wrote:

Hello Vincente,

You can use LSR 715 by Robin Bannister to extend LV's.

Thomas Morley wrote the following to help me do more extensive things 
with LV ties. If you need help in this or to see some examples, just 
ask. This may be more powerful than you require.


Andrew

%

% adjust laissezVibrer ties
% From Thomas Morley


affect-LaissezVibrerTies =
#(define-music-function (x-start amount)
   ((list? (circular-list #f)) number?)
   "
 Extends @code{LaissezVibrerTie}s by @var{amount}.
 Example:

  @verbatim
    {
 \\affect-LaissezVibrerTies #2
 2\\laissezVibrer
    }
  @end verbatim

 If @var{x-start} is specified, the start of a single 
@code{LaissezVibrerTie}
 may be tweaked. The numeric value of this element of @var{x-start} 
determines

 the amount of the offset.
 @code{LaissezVibrerTie}s which should not be tweaked are to be 
specified with

 @code{#f}
 Example:

  @verbatim
    {
 \\affect-LaissezVibrerTies #'(#f 1 #f) #2
 2\\laissezVibrer
    }
  @end verbatim
"
   #{
 \once
 \override LaissezVibrerTieColumn #'before-line-breaking =
 #(lambda (grob)
    (let* ((ties (ly:grob-array->list (ly:grob-object grob 'ties)))
   (c-ps
    (map
 (lambda (tie) (ly:grob-property tie 'control-points))
 ties))
   (directions
    (map
 (lambda (tie) (ly:grob-property tie 'direction))
 ties))
   (first-cps
    (map
 (lambda (c-p) (first c-p))
 c-ps))
   (second-cps
    (map
 (lambda (c-p) (second c-p))
 c-ps))
   (third-cps
    (map
 (lambda (c-p) (third c-p))
 c-ps))
   (fourth-cps
    (map
 (lambda (c-p) (fourth c-p))
 c-ps))
   (new-first-cps
    (for-each
 (lambda (first-cp x)
   (if (number? x)
   (set-car! first-cp (+ (car first-cp) x
 first-cps x-start))
   ;; TODO:
   ;; Several hardcoded values following here.
   ;; Find better dependencies!!
   (new-second-cps
    (for-each
 (lambda (second-cp x dir)
   (let ((val (if (number? x) x 0.4)))
 (set-car!
  second-cp
  (+ (car second-cp) (* val 1.2)))
 (set-cdr!
  second-cp
  (+ (cdr second-cp) (min (* dir (/ amount 10)) 
0.3)

 second-cps x-start directions))
   (new-third-cps
    (for-each
 (lambda (third-cp x dir)
   (let ((val (if (number? x) 0.2 0.4)))
 (set-car!
  third-cp
  (+ (car third-cp) (- amount val)))
 (set-cdr!
  third-cp
  (+ (cdr third-cp) (min (* dir (/ amount 10)) 
0.3)

 third-cps x-start directions))
   (new-fourth-cps
    (for-each
 (lambda (fourth-cp)
   (set-car! fourth-cp (+ (car fourth-cp) amount)))
 fourth-cps)))

  (for-each
   (lambda (tie first-cp second-cp third-cp fourth-cp)
 (ly:grob-set-property! tie 'control-points
   (list first-cp second-cp third-cp fourth-cp)))
   ties first-cps second-cps third-cps fourth-cps)))
   #})



%


On Tue, 14 May 2019 at 18:23, Vicente Sanches 
mailto:vicente.sanches...@gmail.com>> 
wrote:


How can I input that l.v. ("let vibrate") tie used generally with
timpani and mallets such as vibraphone em marimba?

Tried to use open and closed parentheses without notes inside, but
it didn't work.

Example in the link bellow just in the 1st seconds of the video,
in the 4th and 5th measures:

https://www.youtube.com/watch?v=VEMyj-8I3pw




I use Harm's function all the time, it works very well.

Robin's snippet #715 is also handy on-the-fly for sure, but for certain 
applications it needs a little more tweaking.


For example, the l.v. ties are touching noteheads on a lot of chords, so 
you'd need to simply adjust the LaissezVibrerTie.details.note-head-gap 
each time - which may get to be a hassle if this happens a lot across 
your score in different settings. :)


\version "2.19.83"


extendLV =
#(define-music-function (parser location further) (number?)
#{
  \once \override LaissezVibrerTie.X-extent = #'(0 . 0)
  \once \override LaissezVibrerTie.details.note-head-gap = #(/ further -2)
  \once \override LaissezVibrerTie.extra-offset = #(cons (/ further 2) 0)
#})

\relative c' {
  \extendLV #2.5
  e8 \laissezVibrer r16 r8
  

Re: Frescobaldi question

2019-05-08 Thread Ben

On 5/8/2019 2:42 PM, Guy Stalnaker wrote:

AH!

I have never, in 10 years, clicked on that control and saw it was a 
dropdown menu!


Much thanks!

Guy Stalnaker
jimmyg...@gmail.com 


On Wed, May 8, 2019 at 1:38 PM Urs Liska > wrote:



Am 08.05.19 um 20:31 schrieb Guy Stalnaker:

GRRR - why does the Enter key sometimes send emails in GMail??
Sorry about that.

Urs,

I can indeed access the files through the Lilypond menu. But they
open in Acrobat and not in the Frescobaldi Music View module.



Ah, I mixed things up. In addition to the LilyPond menu there is a
document chooser in the Music View's toolbar (I assume it has
already been there in v.2). With this you can select what is shown
in the Music View ...



Hi Guy,

Yes that menu is handy but also FYI you can dock it to a nice sidebar if 
you want. I find that to be very fast - any score is just one click away 
and it instantly loads in the view for editing and viewing :) Same menu, 
just docked pane vs. go up to the menu item.


(see attached)


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Frescobaldi: Snippet Question

2019-05-08 Thread Ben

Hello all,

I was wondering something this morning as I was working in Frescobaldi. 
My snippets menu has gotten quite long over the years and I use it all 
the time for large projects, but is there a way to create sub-folders or 
sub-menus in the snippet menu? For example, if you hover the mouse over 
a snippet name (if setup to be a "folder" section) it would auto-expand 
a side-menu with other snippets vs. having a master list of scroll-able 
off-the-screen snippets? (see attached for mockup)


I've already organized the list as best I could with things like 
sections and -*- menu: Quick; selection: strip; options etc, but I was 
curious if there was a way to further organize snippets so the list 
never goes off screen in need of much scrolling. I find the snippets 
menu up top far easier to access than the snippets pane when I'm in a 
good engraving groove. I have already maxxed out keyboard shortcuts I 
think...


;)

Thanks!

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: warning message - missing slur

2019-04-14 Thread Ben

On 4/14/2019 4:33 AM, Lukas-Fabian Moser wrote:


I've done two things. First, I've rewritten your code in a way that's 
easier for me to read.
Second, and more to the point, I've changed the "outside" set of 
slurs to phrasing slurs. AFAIK, you can't nest regular slurs. Please 
take a look at 
 .


That's not true anymore: In recent versions (starting at some point in 
the 2.19.xx series), slurs can be assigned a "name" allowing them to 
be referenced, and in particular, nested (cf. 
http://lilypond.org/doc/v2.19/Documentation/changes/index.html):



\version "2.19.83"
\language "english"

\fixed c'
{ <<
  {
    f4 e8 c8~( c4 e8\=inner( f8\inner) ) | % the \( and \) are 
phrasing slurs.

  }
  \\
  {
    f4 e8 c~ 4~ 4 ||
  }
  >>
  }

Though I admit that the layout engine handles the phrasing slur better 
in this specific situation.


By the way, it's even possible to do

\version "2.19.82"

\fixed c' {
  c\=1( d e^\=2( f\=1) g a\=2)
}

IMHO this feature alone is worth the (negligible) trouble of switching 
to recent development versions.


Best
Lukas


Absolutely agree. The whole name/ID slur config is a huge game changer. 
So happy that we have it! :)



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: moving tuplet number nearer to beam

2019-04-01 Thread Ben

On 4/1/2019 4:16 PM, Werner LEMBERG wrote:

Folks,


if I use `\magnifyStaff', the tuplet number is too far away from the
beam.  How can I move it nearer to the beam?  Looking into
`tuplet-number.cc' I see a `padding' property with a default value of
0.5 (and which is apparently completely undocumented).  However, doing
something like

   \override TupletNumber.padding = #4

has zero effect...


 Werner


Hi Werner,

There's a few ways to pad out the tuplet number depending on how you 
want to approach the padding. Does this help?


<<
  \new Staff \with {
    \magnifyStaff #(magstep -5)
  } {
    % \tweak padding #1
    \override TupletNumber.Y-offset = #2.3
    \tuplet 3/2 { f'8[ g' a'] }
  }

  \new Staff {
    \tuplet 3/2 { f'8[ g' a'] }
  }
>>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \acciaccatura collision

2019-03-18 Thread Ben

On 3/18/2019 4:38 AM, Martin Tarenskeen wrote:



On Mon, 18 Mar 2019, foxfanfare wrote:

I personally don't see that as a bug, since avoiding the collision 
would make

the slur too tiny...


I am copying a score from different sources. Neither of them have 
colliding slurs. The following variant of my example shows Lilypond 
when a collision starts to occur:


%%%

\version "2.19.82"

\score {
  \new Staff {
    \time 2/4
    \repeat unfold 2 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 3 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 4 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 5 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 6 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 7 { a'8 b' \acciaccatura c'' d'' e'' }
  }
  \layout {
    indent=0
  }
}

%%%

Is the collision not related to the layout? For example, what if you 
just adjusted the system or measure layout for the section in question, i.e.


(see attached)

%%%

\version "2.19.82"

\score {
  \new Staff {
    \time 2/4
    \repeat unfold 2 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 3 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 4 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 5 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 6 { a'8 b' \acciaccatura c'' d'' e'' } \break
    \repeat unfold 7 { a'8 b' \acciaccatura c'' d'' e'' }
  }
  \layout {
    indent=0
    system-count = 8
  }
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   3   4   5   6   7   >