Stemless notes - entire score?

2013-03-19 Thread SoundsFromSound
Hi there,

I have a situation here with a few pieces in which I need to 'convert' every
note of these scores into a stemless note.  What's the most
efficiently-coded and straight approach for wrapping the entire score with
some sort of stem off command?  Is this possible? I hope I don't have to
manually do measure by measure, piece by piece.

Durations and whatnot are irrelevant, I simply need to remove all stems from
these scores - that's it.  Thank you all, much appreciated!

Score 1 is a piano solo and scores 2  3 are string quartets, if that helps.

Ben



-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Stemless-notes-entire-score-tp143010.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Stemless notes - entire score?

2013-03-19 Thread Robert Schmaus
Hi Ben,

just add

 \context {
  \Staff
  \override Stem #'transparent = ##t
  \override Flag #'transparent = ##t
}

to the layout block. If there's anything else you'd like to hide, just
set the respective property transparent as well ...

Best,
Robert


On Tue, Mar 19, 2013, at 07:39 AM, SoundsFromSound wrote:
 Hi there,
 
 I have a situation here with a few pieces in which I need to 'convert'
 every
 note of these scores into a stemless note.  What's the most
 efficiently-coded and straight approach for wrapping the entire score
 with
 some sort of stem off command?  Is this possible? I hope I don't have
 to
 manually do measure by measure, piece by piece.
 
 Durations and whatnot are irrelevant, I simply need to remove all stems
 from
 these scores - that's it.  Thank you all, much appreciated!
 
 Score 1 is a piano solo and scores 2  3 are string quartets, if that
 helps.
 
 Ben
 
 
 
 -
 composer | sound designer
 --
 View this message in context:
 http://lilypond.1069038.n5.nabble.com/Stemless-notes-entire-score-tp143010.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: Stemless notes - entire score?

2013-03-19 Thread David Kastrup
Robert Schmaus robert.schm...@web.de writes:

 Hi Ben,

 just add

  \context {
   \Staff
   \override Stem #'transparent = ##t
   \override Flag #'transparent = ##t
 }

 to the layout block. If there's anything else you'd like to hide, just
 set the respective property transparent as well ...

This will still reserve space for them.  I'd rather use

\context {
  \Staff
  \omit Stem
  \omit Flag
}

Note that \omit is only defined after 2.17.5 or so, with earlier
versions you'll need

\context {
  \Staff
  \override Stem #'stencil = ##f
...

If it cranks out programming errors (I seem to remember that this
was a problem at some point of time), you can use

  \override Stem #'stencil = \point-stencil

instead.

-- 
David Kastrup


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


Stemless notes - entire score?

2013-03-19 Thread wjm

Greetings,
You wrote:-
+++
I have a situation here with a few pieces in which I need to 'convert' every
note of these scores into a stemless note.  What's the most
efficiently-coded and straight approach for wrapping the entire score with
some sort of stem off command?  Is this possible? I hope I don't have to
manually do measure by measure, piece by piece.

Durations and whatnot are irrelevant, I simply need to remove all stems from
these scores - that's it.  Thank you all, much appreciated!
+++
If you put the following in the \layout block of each piece you should 
get the desired result


\context {
  \Staff
\override Stem.transparent = ##t
  \override Flag.transparent = ##t
}

Hope this helps
Cheers
Bill

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


Re: Stemless notes - entire score?

2013-03-19 Thread Nick Payne

On 19/03/13 18:59, David Kastrup wrote:

Robert Schmaus robert.schm...@web.de writes:


Hi Ben,

just add

  \context {
   \Staff
   \override Stem #'transparent = ##t
   \override Flag #'transparent = ##t
 }

to the layout block. If there's anything else you'd like to hide, just
set the respective property transparent as well ...

This will still reserve space for them.  I'd rather use

\context {
   \Staff
   \omit Stem
   \omit Flag
}

Note that \omit is only defined after 2.17.5 or so, with earlier
versions you'll need

\context {
   \Staff
   \override Stem #'stencil = ##f
...

If it cranks out programming errors (I seem to remember that this
was a problem at some point of time), you can use

   \override Stem #'stencil = \point-stencil

instead.


Probably need \omit Beam as well, or beams will still appear.

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


Re: Align whole-note chord over whole-measure rest

2013-03-19 Thread David Kastrup
Jim Long lilyp...@umpquanet.com writes:

 On Mon, Mar 11, 2013 at 10:20:39AM +0100, David Kastrup wrote:
 
 It might also make sense to replace the multimeasure rest with a normal
 rest depending on the musical aim.

 I'll keep that in my bag of tricks for the future.  The example
 is exaggerated, since this problem gets less noticeable as the
 width of the bar in question gets smaller.

 It also seems weird to have a fermata on the multimeasure/fullbar rest
 while not on the whole note.

 This made me curious.  I tried engraving a fermata in the ChordNames
 staff, but I couldn't get it to appear.  How would one attach a fermata
 to the chord symbol?

 Thank you,

 Jim


 This gives no errors, but no joy:

 \version 2.16.1

 \paper { ragged-last = ##f }

 \score {
   
 \new ChordNames \chordmode { fis1:m9\fermata }
 \new Staff { R1\fermataMarkup }
   
 } % score

\version 2.16.1

\paper { ragged-last = ##f }

\score {
  
\new ChordNames \chordmode { fis1:m9\fermata }
\new Staff { R1\fermataMarkup }
  
} % score

\layout {
  \context {
\ChordNames
\consists Script_engraver
\override Script.extra-offset = #'(0 . 3)
  }
}

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


Re: Custom footers

2013-03-19 Thread Jérôme Plût
Decimo quinto Kalendas Apriles MMXIII scripsit james :
 they come from the header.

That's what I figured from the documentation about footer markup. But
this does not answer my question: is there a way to put in there, for
example, a counter that gets incremented at each page and reset at
each bookpart (or some more complicated stuff such as total page count
for the book or bookpart)? This is possible for example in TeX as the footer
markup is actually evaluated on each page. Is there a way to do it in
Lilypond?

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


Re: Stemless notes - entire score?

2013-03-19 Thread SoundsFromSound
Just a follow up:

David's idea of adding -- 

\context { 
  \Staff 
  \omit Stem 
  \omit Flag 
} 

worked perfectly from what I can tell.  Hope this helps others!

Thank you all for your input and suggestions, much appreciated.
LilyPond is so powerful...

Ben


David Kastrup wrote
 Robert Schmaus lt;

 robert.schmaus@

 gt; writes:
 
 Hi Ben,

 just add

  \context {
   \Staff
   \override Stem #'transparent = ##t
   \override Flag #'transparent = ##t
 }

 to the layout block. If there's anything else you'd like to hide, just
 set the respective property transparent as well ...
 
 This will still reserve space for them.  I'd rather use
 
 \context {
   \Staff
   \omit Stem
   \omit Flag
 }
 
 Note that \omit is only defined after 2.17.5 or so, with earlier
 versions you'll need
 
 \context {
   \Staff
   \override Stem #'stencil = ##f
 ...
 
 If it cranks out programming errors (I seem to remember that this
 was a problem at some point of time), you can use
 
   \override Stem #'stencil = \point-stencil
 
 instead.
 
 -- 
 David Kastrup
 
 
 ___
 lilypond-user mailing list

 lilypond-user@

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





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Stemless-notes-entire-score-tp143010p143031.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Stemless notes - entire score?

2013-03-19 Thread SoundsFromSound
Yes, you are correct; beams do remain however in my situation, that actually
worked even better than I originally thought it would! :) The score has new
life now! Thank you!

Ben


Nick Payne-3 wrote
 On 19/03/13 18:59, David Kastrup wrote:
 Robert Schmaus lt;

 robert.schmaus@

 gt; writes:

 Hi Ben,

 just add

   \context {
\Staff
\override Stem #'transparent = ##t
\override Flag #'transparent = ##t
  }

 to the layout block. If there's anything else you'd like to hide, just
 set the respective property transparent as well ...
 This will still reserve space for them.  I'd rather use

 \context {
\Staff
\omit Stem
\omit Flag
 }

 Note that \omit is only defined after 2.17.5 or so, with earlier
 versions you'll need

 \context {
\Staff
\override Stem #'stencil = ##f
 ...

 If it cranks out programming errors (I seem to remember that this
 was a problem at some point of time), you can use

\override Stem #'stencil = \point-stencil

 instead.

 Probably need \omit Beam as well, or beams will still appear.
 
 ___
 lilypond-user mailing list

 lilypond-user@

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





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Stemless-notes-entire-score-tp143010p143032.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Pseudo-handwritten font

2013-03-19 Thread Denis Bitouzé
Le jeudi 14/03/13 à 11h36,
Torsten Hämmerle torsten.haemme...@web.de a écrit :

 here it is again in a second attempt:In the first place: I've
 attached a zip file containing the current (albeit unfinished)
 versions of the LilyJAZZ music and LilyJAZZ Text font plus the
 corresponding LilyJAZZ.ily include.As an example to demonstrate
 what's already there

Very impressive! Very appreciated! Thanks a lot...

 (well, I missed grace notes/acciaccaturas/appoggiaturas)

(Maybe you're already aware but, just in case...) As pointed out by the
following MCE, also are missing notes in tempo indication.

%%
\version 2.16.2

\include LilyJAZZ.ily

global = {
  \jazzOn
  \tempo 4=100
}

music = \relative c' {
  \global
  c1
}

\score {
  \new Staff \music
  \layout { }
}
%%

Once again, many thanks!

All the best.
-- 
Denis

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


Re: Pseudo-handwritten font

2013-03-19 Thread Tim McNamara
There are a couple of peculiar side effects.  I find that using this turns off 
the bar count engraver and it also defeats \improvisationOn resulting in 
regular notes instead of parallelogram note heads.  The easy workaround is to 
use \jazzOff before \improvisationOn.  The appearance of the stems and such is 
different but it's not a huge deal.

I find this to be a very nice addition to the visual palette of LilyPond and 
very friendly for jazz players who are used to Real Book style charts.  I 
find the chord names a touch small but that is easily remedied; for someone not 
as old as me and not using an iPad to display charts on the bandstand, the size 
of the chord name font is probably fine.

Thanks for this, Torsten, it is much appreciated.  The music font is very 
readable.

There is a really messy and inelegant way to use the font in the \header block 
using \markup, I have found, but it's pretty ugly coding.  I suppose a Scheme 
function could be created to make the code less ugly but I haven't put any time 
into it.

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


Re: Frescobaldi install (was: final score)

2013-03-19 Thread Jean-Alexis Montignies
Hi, 

I'm a little late. There is a bug in PyQt4 last version that prevents 
frescobaldi to run smoothy. There is a work around but you would need 
frescobaldi development version.

That's why I didn't answer right away.

I would recommend to install qt4-mac (aqua) instead of the X11 version. This 
requires less dependencies and the resulting application is closer to a mac app.

Good luck!

Jean-Alexis



On 10 mars 2013, at 00:38, Tim McNamara tim...@bitstream.net wrote:

 On Mar 9, 2013, at 5:16 PM, Francisco Vila wrote:
 
 El 04/03/2013 13:18, Francisco Vila paconet@gmail.com escribió:
 
 In GNU/Linux it is a small nightmare to install. In Windows it is a
 matter of next-next-next-done.
 
 I must say it's not so hard in Ubuntu 12.10, all needed libraries (esp. 
 Python poppler qt4) are now in packages available in standard repositories. 
 After installing those, two Python commands in console are enough to have it 
 installed.
 
 My last attempt to install it on my Mac to run in an X11 window resulted in 
 literally hundreds of things being downloaded by MacPorts- dependencies for 
 the dependencies for the dependencies in what seemed to be nearly infinite 
 recursion- before it could be installed.  I gave up as it became just 
 ridiculous.  Another list member pointed me to a Mac .app version but that 
 was broken and unusable.  Oh well... I'll keep using TextWrangler as my text 
 editor and Preview as my PDF reader, which works fine.
 ___
 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


full measure rest with odd time counter

2013-03-19 Thread Helge Kruse

Hello,

I typeset a song in (4+5)/8 time signature. One staff starts with full 
measure rests:


\version 2.16.0

\relative c'' {
  \compoundMeter #'((4 5 8))
  R1 R8 |
  R1 R8 |
  r1 c8 |

}


The Lilypond output looks good. But why does I get a barcheck failed 
at: 1 for the first measure? Can I suppress the warning by improvement 
of my input?


Regards
Helge


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


Re: full measure rest with odd time counter

2013-03-19 Thread Kieren MacMillan
Hi Helge,

 why does I get a barcheck failed at: 1 for the first measure? Can I 
 suppress the warning by improvement of my input?

Yes: Use R8*5 instead of R1 R8.

Hope this helps!
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi install (was: final score)

2013-03-19 Thread SoundsFromSound
What is the bug in PyQt4?  I haven't come across one in my own trials here.


Jean-Alexis Montignies-2 wrote
 There is a bug in PyQt4 last version that prevents frescobaldi to run
 smoothy. There is a work around but you would need frescobaldi development
 version.
 
 Jean-Alexis
 
 
 
 On 10 mars 2013, at 00:38, Tim McNamara lt;

 timmcn@

 gt; wrote:
 
 On Mar 9, 2013, at 5:16 PM, Francisco Vila wrote:
 
 El 04/03/2013 13:18, Francisco Vila lt;

 paconet.org@

 gt; escribió:
 
 In GNU/Linux it is a small nightmare to install. In Windows it is a
 matter of next-next-next-done.
 
 I must say it's not so hard in Ubuntu 12.10, all needed libraries (esp.
 Python poppler qt4) are now in packages available in standard
 repositories. After installing those, two Python commands in console are
 enough to have it installed.
 
 My last attempt to install it on my Mac to run in an X11 window resulted
 in literally hundreds of things being downloaded by MacPorts-
 dependencies for the dependencies for the dependencies in what seemed to
 be nearly infinite recursion- before it could be installed.  I gave up as
 it became just ridiculous.  Another list member pointed me to a Mac .app
 version but that was broken and unusable.  Oh well... I'll keep using
 TextWrangler as my text editor and Preview as my PDF reader, which works
 fine.
 ___
 lilypond-user mailing list
 

 lilypond-user@

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

 lilypond-user@

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





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Frescobaldi-install-was-final-score-tp142376p143039.html
Sent from the User mailing list archive at Nabble.com.

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


Re: full measure rest with odd time counter

2013-03-19 Thread Helge Kruse

Am 19.03.2013 19:58, schrieb Kieren MacMillan:

Yes: Use R8*5 instead of R1 R8.


I think you reckon R8*9. Of course, this helps. Silly me.

Thanks
Helge


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


R shorthand

2013-03-19 Thread Kieren MacMillan
Hello all,

While answering Helge's post about multi-measure rests, I had a couple of 
R-elated observations/thoughts:

1. We shouldn't be encouraging code like R4*3 in a 4/4 measure, right? So the 
duration ultimately makes no sense anyway.
2. The most elegant solution would be to use R (i.e., with no duration) to 
represent a multimeasure rest, and it would adapt in duration to whatever 
time signature was in force at that moment.
3. Then R14 (e.g.) would represent 14 *measures*, not beats/counts — again, 
simpler, more elegant, and certainly more intuitive than the current situation.

Would it be difficult to implement such a scheme (play-on-words intended)?

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


Re: R shorthand

2013-03-19 Thread Shane Brandes
Kieren,

  What happens when we need an awkward length R like R1*12/8*14?

Shane

On Tue, Mar 19, 2013 at 3:05 PM, Kieren MacMillan
kieren_macmil...@sympatico.ca wrote:
 Hello all,

 While answering Helge's post about multi-measure rests, I had a couple of 
 R-elated observations/thoughts:

 1. We shouldn't be encouraging code like R4*3 in a 4/4 measure, right? So the 
 duration ultimately makes no sense anyway.
 2. The most elegant solution would be to use R (i.e., with no duration) to 
 represent a multimeasure rest, and it would adapt in duration to whatever 
 time signature was in force at that moment.
 3. Then R14 (e.g.) would represent 14 *measures*, not beats/counts — again, 
 simpler, more elegant, and certainly more intuitive than the current 
 situation.

 Would it be difficult to implement such a scheme (play-on-words intended)?

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

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


Re: R shorthand

2013-03-19 Thread Kieren MacMillan
Hi Shane,

  What happens when we need an awkward length R like R1*12/8*14?

I'm not sure what you mean by awkward length…

I'm suggesting that R (with no duration given) should give you a one-measure 
multi-measure rest, regardless of what the measure duration is.
And that Rx (where x is an integer) will give you an x-measure multi-measure 
rest, regardless of the duration(s) of each measure.

Let's say you have the following passage: 7 measure of 4/4, 1 measure of 5/8, 2 
measures of 7/16, and 3 measures of 3/4.
R13 would give you a multi-measure rest which is as long as the whole section.

So what would constitute an awkward length, if R simply gives you the 
duration of the measure, whatever it is?
Are you not asking for a multi-measure rest which has the same duration as the 
measure it fills?
If so, how does that make any sense? What are you doing in the rest of that 
measure (that can't be better done another way)?

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


Re: R shorthand

2013-03-19 Thread Joram Berger
Even while I am a bit sceptical whether the syntax for R should differ
from r, I see your point.

Rather than R14 for a 14 measure rest, I would suggest to keep the
syntax close to the one before: R*14 (This way I would almost be
convinced ;) )

Could the duration be optional this way, keeping the current behaviour
if given? I mean could this change request be implemented without
affecting the recommended way at present? Probably not, because of
ambiguities, and because the following notes would take the same duration.

Cheers,
Joram

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


Re: R shorthand

2013-03-19 Thread Shane Brandes
I see now, but one would think that might cause more difficult
programming necessitating the keeping tracking of various R values
through out the piece as defined by a time signature as opposed to us
setting the value, which probably would also slow down lilypond having
to parse and hang on to that extra undeclared information. Of course
maybe i am wrong on that. But I do believe making sure the user is
forced to think out the value of R duration is probably more useful
than any minimal convenience, especially as Joram points out that
would make r and R functionality divergent.

Shane

On Tue, Mar 19, 2013 at 4:52 PM, Joram Berger joram.no...@gmx.de wrote:
 Even while I am a bit sceptical whether the syntax for R should differ
 from r, I see your point.

 Rather than R14 for a 14 measure rest, I would suggest to keep the
 syntax close to the one before: R*14 (This way I would almost be
 convinced ;) )

 Could the duration be optional this way, keeping the current behaviour
 if given? I mean could this change request be implemented without
 affecting the recommended way at present? Probably not, because of
 ambiguities, and because the following notes would take the same duration.

 Cheers,
 Joram

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

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


Fermata default padding too tight?

2013-03-19 Thread Garrett Fitzgerald
I just used a \fermata marking on a top-line f2., and it struck me as
much too tight - the dot by the half note almost ran into the bottom
of the fermata. When coming up with an example, I noticed that this
happened for all the notes sitting on ledger lines.

\version 2.16.2

\relative c'' {
  \time 3/4
%  \override Script #'padding = #1

  c2.\fermata d\fermata e\fermata f\fermata
  g\fermata a\fermata b\fermata c\fermata
}

Adding a bit of padding makes it look better, so I'm wondering if the
default needs to be tweaked for the general case, or if that's too
much.

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


Column of music and a column of graphics... or creating invisible measures...

2013-03-19 Thread rem-d
http://lilypond.1069038.n5.nabble.com/file/n143065/cadences.png 

Hi, first post on this forum.

I wish to have something similar to the image attached. At the moment my
code is rather simple:

/upper = {
  \override Score.KeyCancellation #'stencil = ##f
  \set Score.explicitKeySignatureVisibility = #'#(#f #f #t)
  \override Score.BarNumber #'stencil = ##f
  \override Score.TimeSignature #'stencil = ##f
  \time 2/4
  \relative c''{
   \key a \major
 e b
 a, cis,
 \break
 \key bes \major
 f c a'
 ees  g bes
 \break 
 / . etc for the upper part. Similar for the lower /
}

\score{
   \new PianoStaff
 \new Staff  = upper \upper
 \new Staff = lower \lower
   /
   

I've experimented with using columns in markup but this just didn't seem to
do the trick. A slightly unsatisfying way to solve this would be to make the
measures completely invisible so only the notes (or graphics: i.e the lines)
would be visible.

Hope this makes sense. Apologies if this is something people have answered
thousands of times!

Andy



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Column-of-music-and-a-column-of-graphics-or-creating-invisible-measures-tp143065.html
Sent from the User mailing list archive at Nabble.com.

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


Re: R shorthand

2013-03-19 Thread Kieren MacMillan
Hi Shane,

 one would think that might cause more difficult
 programming necessitating the keeping tracking of various R values
 through out the piece as defined by a time signature as opposed to us
 setting the value, which probably would also slow down lilypond having
 to parse and hang on to that extra undeclared information.

Possibly — that's exactly why I posted the question.

 But I do believe making sure the user is
 forced to think out the value of R duration is probably more useful
 than any minimal convenience, especially as Joram points out that
 would make r and R functionality divergent.

r and R functionality is already divergent (e.g., placement) — so that's hardly 
an additional concern at this point.

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


Re: Column of music and a column of graphics... or creating invisible measures...

2013-03-19 Thread Eluze
rem-d wrote
 Hi, first post on this forum.
 
 I wish to have something similar to the image attached. At the moment my
 code is rather simple:

welcome to the list, Andy

please try to reduce your code to be tiny and compiling!

I think looking at http://lsr.dsi.unimi.it/LSR/Item?id=250 could be helpful
(note that the alignment of the score(s) and text has been improved with
version 2.17.14 (see
https://code.google.com/p/lilypond/issues/detail?id=3187#c6 )

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Column-of-music-and-a-column-of-graphics-or-creating-invisible-measures-tp143065p143073.html
Sent from the User mailing list archive at Nabble.com.

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


Re: R shorthand

2013-03-19 Thread Urs Liska
On Tue, 19 Mar 2013 19:38:10 -0400
Kieren MacMillan kieren_macmil...@sympatico.ca wrote:

 Hi Shane,
 
  one would think that might cause more difficult
  programming necessitating the keeping tracking of various R values
  through out the piece as defined by a time signature as opposed to us
  setting the value, which probably would also slow down lilypond having
  to parse and hang on to that extra undeclared information.
 
 Possibly — that's exactly why I posted the question.
 
  But I do believe making sure the user is
  forced to think out the value of R duration is probably more useful
  than any minimal convenience, especially as Joram points out that
  would make r and R functionality divergent.
 
 r and R functionality is already divergent (e.g., placement) — so that's 
 hardly an additional concern at this point.
Actually Kieren's suggestion would cause this divergence to reflect more the 
traditional engraving practice.
Actually a full (multi) measure rest is just a symbol representing _one 
measure_, regardless of its actual length.

Urs

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

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


Re: Custom footers

2013-03-19 Thread Thomas Morley
2013/3/19 Jérôme Plût jerome.p...@normalesup.org:
 Decimo quinto Kalendas Apriles MMXIII scripsit james :
 they come from the header.

 That's what I figured from the documentation about footer markup. But
 this does not answer my question: is there a way to put in there, for
 example, a counter that gets incremented at each page and reset at
 each bookpart (or some more complicated stuff such as total page count
 for the book or bookpart)? This is possible for example in TeX as the footer
 markup is actually evaluated on each page. Is there a way to do it in
 Lilypond?

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

Hi Jérôme,

in the code below you'll see increasing page-numbers throughout the
book as usual.
Additionally every bookpart has increasing page-numbers starting with page 1
Though, I didn't manage to code (1/3) for consecutive bookparts,
because I didn't understand how to get or calculate the
bookpart-last-page-number.

It's quite easy to get the bookpart-first-page-number via
(ly:output-def-lookup layout 'first-page-number).
And there is a testing about bookpart-last-page-number:
(chain-assoc-get 'page:is-bookpart-last-page props #f)
If there is a test, the values to compare must be somewhere, but I
couldn't find them.

Nevertheless here's the code:

\version 2.16.2

#(define (looking-up layout props symbol)
   (define (ancestor layout)
 Return the topmost layout ancestor
 (let ((parent (ly:output-def-parent layout)))
   (if (not (ly:output-def? parent))
   layout
   (ancestor parent
   (ly:output-def-lookup (ancestor layout) symbol))

#(define (book-second-page? layout props)
   Return #t iff the current page number, got from @code{props}, is the
book second one.
   (= (chain-assoc-get 'page:page-number props -1)
  (+ (looking-up layout props 'first-page-number) 1)))

#(define (not-second-page layout props arg)
   (if (not (book-second-page? layout props))
   (interpret-markup layout props arg)
   empty-stencil))

#(define (print-bookpart-numbers layout props arg)
   (let* ((book-page-number
(chain-assoc-get 'page:page-number props -1))
  (bookpart-first-page-number
(ly:output-def-lookup layout 'first-page-number))
  (book-part-numbers
(number-string (- book-page-number bookpart-first-page-number -1)))
  (book-part-number-markup
(markup book-part-numbers)))
  (interpret-markup layout props book-part-number-markup)))


\paper {
  %% works with different settings of `first-page-number´
  %% currently the default is set
  first-page-number = 1

  %% For now page-header are set #f
  oddHeaderMarkup = ##f
  evenHeaderMarkup = ##f

  oddFooterMarkup = \markup {
%% Don't print on first and second book-page
\on-the-fly #not-first-page
\on-the-fly #not-second-page
\column {
  \fill-line {
\fromproperty #'header:title
\fontsize #2 \italic \fromproperty #'header:instrument
%% \parenthesize or \bracket. Choose one.
\parenthesize
%\bracket
\concat {
\fromproperty #'header:instrument
-part, page 
%%  needs to be here! because
%% \on-the-fly expects _two_ arguments.
\on-the-fly #print-bookpart-numbers 
}
  }
  \fill-line {
  \concat {
  - page 
  \fromproperty #'page:page-number-string
   -
  }
  }
}
  }
}

\book {
  \bookpart {
  \markup \column {
\vspace #8
   \fill-line { \fontsize #12 Music }
   \vspace #30
   \fill-line { \override #'(span-factor . 1/3) \draw-hline }
   \vspace #4
   \fill-line {
   \fontsize #1
   \center-column {
   edited
   by
   me
   }
   }
  }
  }
  \bookpart {
  \markuplist \table-of-contents
  }
  \bookpart {
  \tocItem \markup First Piece
  %% header on bookpart-top-level.
  %% Otherwise instrument-setting isn't recognized
  %% by page-headers/footers
  \header {
  title = First Piece
  instrument = Trombone
  }
  \score {
\new Staff {
  \repeat unfold 3 { c''1 \pageBreak }
}
  }
  }
  \bookpart {
  \tocItem \markup Second Piece
  \header {
  title = Second Piece
  instrument = Saxophone
  }
  \score {
\new Staff {
  \repeat unfold 3 { cis''1 \pageBreak }
}
  }
  }
}



HTH,
  Harm


Re: Custom footers

2013-03-19 Thread Thomas Morley
2013/3/20 Thomas Morley thomasmorle...@googlemail.com:

 Nevertheless here's the code:

 \version 2.16.2

Hi again,

forgot you asked for 2.12.3
Will see tomorrow if it's possible to downgrade.

Though, please consider upgrading. Current stable is 2.16.2


Cheers,
  Harm

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


Re: Re: R shorthand

2013-03-19 Thread Evan Driscoll

On 03/19/2013 04:21 PM, Shane Brandes wrote:

I see now, but one would think that might cause more difficult
programming necessitating the keeping tracking of various R values
through out the piece as defined by a time signature as opposed to us
setting the value, which probably would also slow down lilypond having
to parse and hang on to that extra undeclared information. Of course
maybe i am wrong on that. But I do believe making sure the user is
forced to think out the value of R duration is probably more useful
than any minimal convenience, especially as Joram points out that
would make r and R functionality divergent.
FWIW the multimeasure rest syntax has been a bit of an annoyance with 
what I've been working on recently (Mars). Not only do I have to type 
something like R1*5/4*8 instead of just R*8 (the syntax someone else 
proposed and which I too thought of), but because I've forgotten about a 
time change when typing the duration. And thus entered, e.g. R1*5/4*8 
instead of R1*5/2*8. The *really* annoying part of that particular 
mistake is that R1*5/4*8 is actually valid: it gives a 4-measure rest in 
5/2. It took a fair bit of head scratching to figure out why Lilypond 
was getting the duration of the rest wrong the first time I made that 
mistake. And I *still* make that mistake with some frequency -- I'm just 
faster at spotting the cause of the bad output now.


To me it's quite counter-intuitive that a full measure rest can mark 
any durations other than a multiple of a full measure, even if it does 
sometimes produce a warning if you do something wrong, and the proposed 
suggestion is a significant local improvement.


Evan


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