Kieren MacMillan | 28 Mar 22:40 2015
Picon

staff switching in custom contexts not working

Hello all,

In the attached snippet, I’ve defined some custom contexts (nested/hierarchical) for piano work.
I can’t seem to get staff switching to work correctly: I get “ cannot change […] none of these in my
family” errors.
Any hints would be appreciated.

Thanks!
Kieren.

%%%%   BEGIN SNIPPET 

\version "2.19.17"

\layout {
  \context {
    \Staff
    \name PianoSingleStaff
    \alias Staff
  }
  \context {
    \PianoSingleStaff
    \name PianoSingleStaffUpper
    \alias PianoSingleStaff
    \alias Staff
    \override DynamicLineSpanner #'direction = #UP
    \override TextScript #'direction = #UP
  }
  \context {
    \PianoSingleStaff
(Continue reading)

Timmy Burch | 28 Mar 21:01 2015
Picon

Defining substitution functions

I think is probably a painfully simple question, but I am really struggling 
to get started with Lilypond, so please take pity! I often have many measures 
with the same rhythm but different pitches, and I want to write a function 
that takes as arguments the pitches, and returns the formatted measure. An 
example of how I want things to work is given below. The two commented lines 
are how I want to invoke the function, and I want the output to be the two 
lines before the commented lines. This seems like it should be really easy to 
do, but I cannot make it happen. Thanks in advance for any help you can 
provide.

\version "2.16.2"

\score
{
    \context Staff
    {
        a4 c8 a8 c2 |
        b4 b8 b8 b2 |
        % \mymeasure a c
        % \mymeasure b b
    }
}
Trevor Bača | 28 Mar 19:13 2015
Picon

Variables in instrumentName markup?

Hi,

Is there a way to do ...

   foo = #12
   \new Staff \with {
      instrumentName = \markup { \hcenter-in \foo Percussion }
   } { ... }
   \new Staff \with {
      instrumentName = \markup { \hcenter-in \foo Violin }
   } { ... }

... or equivalent?

(The motivation being to use the same amount of horizontal space in a couple of dozen different instrument names.)

Trevor.

--
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Phil Holmes | 28 Mar 11:46 2015
Picon

Re: Automatic breaks not working?

----- Original Message ----- 
From: "Brian Barker" <b.m.barker <at> btinternet.com>
To: <lilypond-user <at> gnu.org>
Cc: "A. Sentman" <asentman.s6 <at> gmail.com>
Sent: Saturday, March 28, 2015 1:22 AM
Subject: Re: Automatic breaks not working?

> At 22:47 27/03/2015 +0000, A. Sentman wrote:
>>I have a couple of files where Lilypond fails to wrap the score across 
>>multiple lines, and instead cuts it off at the edge of the page. Most of 
>>these are fairly large files, and it seems to happen consistently if there 
>>are more staves than can fit vertically on the page. What I did: I used 
>>lilypond to render the example at the bottom of this post. What I 
>>expected: The score wraps to the next line after the sixth measure. What 
>>happened: The score does not wrap, instead running off of the edge of the 
>>page.
>
> This is because your score makes no sense, I'm afraid. With a time 
> signature of C, your second occurrence of "r4.." in the top staff spans 
> the line between the first and second bars. If I comment out the initial 
> "r4" and "r16", in the top staff, the score breaks after bar 5 and again 
> after bar 9. This may not be the music that you mean, but it illustrates 
> the cause of the problem. The third staff then throws a similar problem in 
> bar 13, where the "d4." again spans the line between bars 13 and 14.
>
> Once you have a score that properly respects bar lines, the automatic line 
> breaks will behave themselves.
>
> I trust this helps.
>
> Brian Barker

This problem is shown up if bar checks are used.  I suggest the original 
poster should read the sections on bar checks in the Learning Manual and 
Notation Reference.

--
Phil Holmes 
bobroff@centrum.is | 28 Mar 10:25 2015
Picon
Picon

cadenza_and_accidentals

I ran into some seemingly odd output when using \cadenzaOn and \cadenzaOff.

According to this:

http://www.lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#unmetered-music

...it is clear that using \bar "|" will not reset accidental display rules.  What it doesn't say is that even
placing \cadenzaOff *before* the \bar "|" doesn't do so, either.  Here is the example from the manual with
an added key signature and a slight rearrangement of the input for illustration.

%%%%%
\version "2.18.2"

\score {
  \relative c'' {
    \key a \major
    c4 d e d
    \cadenzaOn
    cis4 d cis d
    \bar "|"
    % First cis is printed without alteration even if it's after a \bar
    %% ** Even after \cadenzaOff **
    \cadenzaOff
    \bar "|"
    cis4 d cis! d
  }
}
%%%%%

I understand that simply placing \bar "|" won't reset the accidental behavior but it is curious that a \bar
"|" after \cadenzaOff also doesn't do so immediately.  That is not clear from the documentation.  Also, in
this example it is necessary to suppress not only the first cis in the last measure but the second one as
well.  In the printed output the cadenza is finished  and a bar line has been crossed.  The key signature is now
in full force.

So, two things:

1) The documentation seems somewhat wanting in this case.

2) How do I suppress a single accidental?

-David
Urs Liska | 28 Mar 02:47 2015

Download link to "current devel" version

Is there a way to point links to the "current development version" 
download, i.e. a way to have a link in a program that automatically 
downloads the current version, without having to manually supply the 
version?
asentman | 27 Mar 23:47 2015
Picon

Automatic breaks not working?

I have a couple of files where Lilypond fails to wrap the score across
multiple lines, and instead cuts it off at the edge of the page. Most of
these are fairly large files, and it seems to happen consistently if there
are more staves than can fit vertically on the page.

What I did: I used lilypond to render the example at the bottom of this post.

What I expected: The score wraps to the next line after the sixth measure.

What happened: The score does not wrap, instead running off of the edge of
the page.

Sorry for the long example. Removing any more makes the issue less clear in
the output.

Example:

\version "2.16.2"
\language "english"
\score {
	\new Score <<
		\new Staff {
			r4
			r16
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
			r4..
			c'16
		}
		\new Staff {
			r1
			r1
			r1
			r1
			r16
			a'8.
			a'8.
			a'8.
			a'8.
			a'8
			d'16
			d'16
			d'8.
			d'8.
			f'8.
			f'8.
			f'8.
			f'16
			a'8.
			a'8.
			a'8.
			a'8.
			a'8.
		}
		\new Staff {
			r1
			r1
			r1
			r1
			r1
			r1
			r1
			r1
			r1
			r1
			r1
			r1
			r16
			d8
			e8
			a8
			a,4.
			d4.
			c4.
			f2
		}
	>>
}
Daniel Contreras | 27 Mar 23:38 2015
Picon

Upgrading

Hello everyone,
I'm installing Lily Pond on my Windows machine now. Well trying to. I have an old version 2.12 installed
here, I uninstalled it and try to install the latest stable release. However when I finish installation
and run the example file, diversion statement says 2.12. Is there something wrong here? Am I doing
something wrong? Thank you for any help

Daniel Contreras 
Brian Guo | 27 Mar 20:28 2015
Picon

Proposal for change to arabic.ly

In the manual, for the section on Arabic music, I read that

"The symbol for semi-flat does not match the symbol which is used in Arabic 
notation... The appearance of the semi-flat symbol in the key signature 
cannot be altered by using this [the \dwn command] method."

However, I have found a way without using the \dwn command, which changes 
all the semiflat symbols to the "flat with slash" symbol, while retaining 
the correct pitches (unlike \dwn) and changing the key signature symbol as 
well.

Therefore, I would like to propose the following change (add the following 
code to the beginning of the file):

arabicGlyphs = #`((1 . "accidentals.doublesharp")
       (3/4 . "accidentals.sharp.slashslash.stemstemstem")
       (1/2 . "accidentals.sharp")
       (1/4 . "accidentals.sharp.slashslash.stem")
       (0 . "accidentals.natural")
       (-1/4 . "accidentals.flat.slash")
       (-1/2 . "accidentals.flat")
       (-3/4 . "accidentals.flatflat.slash") %unattested but this symbol is 
used for compatibility
       (-1 . "accidentals.flatflat"))

\layout {
  \context {
    \Score
    \override KeySignature.glyph-name-alist = \arabicGlyphs
    \override Accidental.glyph-name-alist = \arabicGlyphs
    \override AccidentalCautionary.glyph-name-alist = \arabicGlyphs
    \override TrillPitchAccidental.glyph-name-alist = \arabicGlyphs
    \override AmbitusAccidental.glyph-name-alist = \arabicGlyphs
  }
}

An overview of how it looks can be seen here:
http://s722.photobucket.com/user/Brian_Xuan-
Tong_Guo/media/flat_zpscmkfwvz6.png.html?sort=3&o=0
(The top staff shows how it currently looks, while the bottom staff shows 
how it will look if this proposal is accepted. The first note of each pair 
shows an artificially-created semiflat by synthesizing a normal flat with a 
\dwn stroke, while the second note shows how a normal semiflat would look.)

Thanks for your consideration.

Regards,
Brian
Stephen MacNeil | 27 Mar 19:03 2015
Picon

accent diminuendo

when composers wanted to create an accent (before the notated accent symbol) they used diminuendo over just one note. this however in Performing practice leaves the question did they mean an accented note or a note that quickly diminishes, or perhaps both. as performance practice becomes more standard in score it seams common not to apply your own interpretation but render the score as it was and add performance notes.

This is my preference.

a great book on the topic is "Classical and Romantic Performing Practice 1750-1900"

anyway a discussion on shortening the hairpin (March 19th) led me to thinking maybe there is a better solution then i currently use.

my current workaround is


<<

\new Dynamics {

\once \override Hairpin.X-offset = #.5

\once \override Hairpin.Y-offset = #5.35

s4*45/100\>s\! s s s4

}

\relative c'' {<<{<cis ais>4 <d b>8 \slurDown fis16 (e)}\\{\stemDown g,,8\rest e [e] g8\rest}>>

}

>>


they where often notated center to center or center to end of note head.

The advantage of this way is I can adjust the hairpin length and position to my liking.


any one have a better approach.


Thanks

Stephen


Oh my last posting "rendering on linux vs windows" was a \paper {} mistake -- we both had different ones... oops.
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Urs Liska | 27 Mar 18:14 2015

Reading a directory

Hi,

I think this should be easy, but I don't find it in the Guile reference.

I want a list of filenames in a given directory, what os.listdir(dirname) would give me in Python.

What should I use?

TIA
Urs
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Gmane