custom markup for \tempo

2014-04-04 Thread Simon Bailey
hello, the list!

i have constructed the following:

%%% SNIP %%%
#(define-markup-command
  (nbTempo layout props expression beat tempo)
  (markup? string? markup?)
  (interpret-markup layout props
#{
  \markup {
\override #'(baseline-skip . 2)
\column {
  \concat { \teeny { \raise #0.5 { \note #beat #UP } } \normal-text
{ " = " #tempo } }
  \normal-text #expression
}
  }
#}
)
  )

\relative c' {
  \tempo \markup \nbTempo "a tempo" #"4" "90"
  c1 c1
}
%%% SNAP %%%

however, I would like to replace the convoluted call "\tempo \markup
\nbTempo" with just "\nbTempo".

How would I go about this? As an added bonus, the midi tempo could also be
set in this function.

Thanks, regards,
sb

-- 
Do not meddle in the affairs of trombonists, for they are subtle and quick
to anger.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: custom markup for \tempo

2014-04-04 Thread Wilbert Berendsen
Op Fri, 4 Apr 2014 10:19:40 +0200
Simon Bailey  schreef:

> hello, the list!
> 
> i have constructed the following:
> 
> %%% SNIP %%%
> #(define-markup-command
>   (nbTempo layout props expression beat tempo)
>   (markup? string? markup?)
>   (interpret-markup layout props
> #{
>   \markup {
> \override #'(baseline-skip . 2)
> \column {
>   \concat { \teeny { \raise #0.5 { \note #beat #UP } }
> \normal-text { " = " #tempo } }
>   \normal-text #expression
> }
>   }
> #}
> )
>   )
> 
> \relative c' {
>   \tempo \markup \nbTempo "a tempo" #"4" "90"
>   c1 c1
> }
> %%% SNAP %%%
> 
> however, I would like to replace the convoluted call "\tempo \markup
> \nbTempo" with just "\nbTempo".
> 
> How would I go about this? As an added bonus, the midi tempo could
> also be set in this function.

Make nbTempo a music function that accepts the arguments and calls the
markup command (which I renamed to nbTempomkup). Like this:


%%% SNIP %%%
#(define-markup-command
  (nbTempomkup layout props expression beat tempo)
  (markup? string? markup?)
  (interpret-markup layout props
#{
  \markup {
\override #'(baseline-skip . 2)
\column {
  \concat {
\teeny { \raise #0.5 { \note #beat #UP } } \normal-text
{ " = " #tempo }
  }
  \normal-text #expression
}
  }
#}))

nbTempo = #
(define-music-function
 (parser location expression beat tempo)
 (markup? string? markup?)
 #{
   \tempo \markup \nbTempomkup #expression #beat #tempo
 #})

\relative c' {
  \nbTempo "a tempo" #"4" "90"
  c1 c1
}
%%% SNAP %%%

Best!
Wilbert

-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)


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


Shorten ledger lines

2014-04-04 Thread Urs Liska

Hi,

a question that has been asked by several people recently: Can ledger 
lines be shortened explicitly?
I have only found info about automatic shortening together with 
accidentals. But there are cases where one wants to shorten them 
manually, particularly for very dense spacing.


Is that possible with LilyPond?

Urs

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


Re: Shorten ledger lines

2014-04-04 Thread Fredrik Wallberg
Hi Urs,
you could try:

\override Staff.LedgerLineSpanner.length-fraction = 0.5

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


Re: custom markup for \tempo

2014-04-04 Thread Simon Bailey
hi,


On Fri, Apr 4, 2014 at 11:13 AM, Wilbert Berendsen  wrote:

>
> Make nbTempo a music function that accepts the arguments and calls the
> markup command (which I renamed to nbTempomkup). Like this:
>

d'oh. well that was sufficiently simple that i'm ashamed i asked. i will
never try programming before coffee again... :)

regards,
sb


-- 
Do not meddle in the affairs of trombonists, for they are subtle and quick
to anger.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Shorten ledger lines

2014-04-04 Thread Urs Liska

Am 04.04.2014 12:35, schrieb Fredrik Wallberg:

Hi Urs,
you could try:

\override Staff.LedgerLineSpanner.length-fraction = 0.5

/ Fredrik



Thanks, that's exactly what I needed :-)

Somehow I thought this must be possible with a property override but 
wasn't bold enough to simply pretend I knew when asked ;-)


Best
Urs

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


Re: Getting rid of initial brace on piano score

2014-04-04 Thread Pierre Perol-Schneider
> On Thu, Apr 3, 2014 at 2:26 PM, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:
>> Hi David,
>> I like that one.
>> I've put it in the LSR (see : http://lsr.di.unimi.it/LSR/Item?id=909)
>> I'll delete it if any problem.
>> Cheers,
>> ~Pierre

See modified snippet here : http://lsr.di.unimi.it/LSR/Item?id=910
If anyone has a good idea for the description don't hestitate to tell.
Cheers,
~Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Getting rid of initial brace on piano score

2014-04-04 Thread Peter Toye
David,

Thanks - but it's now complaining about the dot!

I may try upgrading over the weekend - but really must get down to the piano 
practice!

Best regards,

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

-
Thursday, April 3, 2014, 9:52:06 PM, you wrote:


Hi Peter,


On Thu, Apr 3, 2014 at 3:35 PM, Peter Toye  wrote:
David,

Thanks again. Comments below.


You're very welcome!

 

That didn't work - LP complains about an unwanted comma. Replacing by a space 
or adding spaces don't work either. I'm still trying to work my head around the 
meta-syntax (which doesn't seem to be documented) in the Notation manual's 
appendix A which is the only place that \alterBroken appears.

Oh, oops.  That comma should be a dot.  Sometimes I can't see the difference!

So Score.SystemStartBrace ...

The documention in "Available music functions" that you're reading is all there 
is for 2.16.  Full documentation wasn't written for the function until syntax 
changes had happened to it.  There is complete documentation for 2.18 at 
http://www.lilypond.org/doc/v2.18/Documentation/notation/modifying-broken-spanners

You can use the examples there in 2.16 by swapping arguments, but you can't use 
\alterBroken as a tweak (which is the chief advantage gained by the reordering 
of arguments).

You might consider upgrading, as there have been quite a few improvements to 
LilyPond besides this!

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


command line option that prevents generation of midi?

2014-04-04 Thread Paul Morris
Is there a command line option that will prevent the generation of midi?  I
couldn't find one in the docs.[1]  

[1] http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage

-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/command-line-option-that-prevents-generation-of-midi-tp161205.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: command line option that prevents generation of midi?

2014-04-04 Thread SoundsFromSound
Paul Morris wrote
> Is there a command line option that will prevent the generation of midi? 
> I couldn't find one in the docs.[1]  
> 
> [1]
> http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage
> 
> -Paul

Hi Paul,

I'm not sure if I'm able to answer your question 100% but, fwiw, I use this:

$lilypond -dpoint-and-click -ddelete-intermediate-files $include --pdf
$filename

as an example, and if I want MIDI, I include something like this:

lilypond … -dmidi-extension=midi testfile.ly

So perhaps there is a way to reverse that? Sorry, that's all I can think
of...

Ben



-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/command-line-option-that-prevents-generation-of-midi-tp161205p161206.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: command line option that prevents generation of midi?

2014-04-04 Thread SoundsFromSound
Paul Morris wrote
> Is there a command line option that will prevent the generation of midi? 
> I couldn't find one in the docs.[1]  
> 
> [1]
> http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage
> 
> -Paul

Are you using  \midi blocks then, I assume? but you want to suppress them?



-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/command-line-option-that-prevents-generation-of-midi-tp161205p161207.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


the next step?

2014-04-04 Thread b...@wolfcomposer.com
Dear All,

A friend of mine asked a few questions about a pipe-organ piece i'd written that
was performed recently.  i ended up making two sheets of examples for him, one
with a table of canons in two voices
 ,
the other in four
 .

When i started making these, i thought of arranging them in two columns on a
single page.  To keep the numbers readable, i decided against this.  However, i
remain curious.  Is it possible to divide a page into columns?  i know that text
can be arranged into columns, and the Internals mention a PaperColumn and its
appropriate engravers and contexts.  Having read the sections on page and score
layout, i couldn't find anything that explicitly addressed this problem.  i am
working (still?!) in 2.14.2, so the next step just might be an update.

If anybody wants to listen
 , i'd be
honored.  The organist is Amelia Javorina.  i apologize for the audience noise,
but it's the best that could be done given the circumstances.

Thanks, All, and please take care.
bill___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: command line option that prevents generation of midi?

2014-04-04 Thread Paul Morris
SoundsFromSound wrote
> Are you using  \midi blocks then, I assume? but you want to suppress them?

Hi Ben,  Yes, that's it.  Given a file with a \midi block, looking for a way
to suppress midi output from the command line.  It doesn't seem like it
doesn't exist.  (I tried your command and the midi was still produced...) 

-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/command-line-option-that-prevents-generation-of-midi-tp161205p161208.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: command line option that prevents generation of midi?

2014-04-04 Thread SoundsFromSound
Paul Morris wrote
> 
> SoundsFromSound wrote
>> Are you using  \midi blocks then, I assume? but you want to suppress
>> them?
> Hi Ben,  Yes, that's it.  Given a file with a \midi block, looking for a
> way to suppress midi output from the command line.  It doesn't seem like
> it doesn't exist.  (I tried your command and the midi was still
> produced...) 
> 
> -Paul

I'm 99.999% sure that it's not possible to do what you're after, /unless
/you comment out/delete the MIDI block. I think?

Are you able to comment it out or does that interfere somehow?

Sorry I couldn't help more!



-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/command-line-option-that-prevents-generation-of-midi-tp161205p161210.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: command line option that prevents generation of midi?

2014-04-04 Thread Paul Morris
SoundsFromSound wrote
> I'm 99.999% sure that it's not possible to do what you're after, 
/
> unless 
/
> you comment out/delete the MIDI block. I think?
> 
> Are you able to comment it out or does that interfere somehow?

Yes, I can just comment it out, or delete the midi file afterwards, so it's
no problem.  I just thought there might be a command line option that would
work instead.

Thanks,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/command-line-option-that-prevents-generation-of-midi-tp161205p161211.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: command line option that prevents generation of midi?

2014-04-04 Thread Martin Tarenskeen



On Fri, 4 Apr 2014, Paul Morris wrote:


Is there a command line option that will prevent the generation of midi?  I
couldn't find one in the docs.[1]


Not really a lilypond commandline option, but on my linux commandline I 
could do a one line command like


lilypond my_example.ly && rm -f my_example.midi

--

MT

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


Re: Whiteout Sextuplet

2014-04-04 Thread Simon Albrecht


Am 03.04.2014 00:45, schrieb Graeme Lee:


On 3-Apr 8:59, Joshua Nichols wrote:

Hello all,

I'm having trouble with this:

global = { \override TupletNumber.whiteout = ##t }



Use
\omit TupletNumber

If you want it back:

\undo \omit TupletNumber
Whiteout is a different thing: it doesn't turn the stencil off, but 
prints a white background to the grob.


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


Re: LilyPond-Book on Windows

2014-04-04 Thread Jan Nieuwenhuizen
David Kastrup writes:

> So my first impulse would be to throw out the workaround for 2.4.2 that

Let's do that.
Jan

-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

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


Re: LilyPond-Book on Windows

2014-04-04 Thread David Kastrup
Jan Nieuwenhuizen  writes:

> David Kastrup writes:
>
>> So my first impulse would be to throw out the workaround for 2.4.2 that
>
> Let's do that.

Well, issue 1933
http://code.google.com/p/lilypond/issues/detail?id=1933> would
suggest that this is a bad idea.  Nothing substantially has changed
since then.  I'm currently trying to get the TEXINPUTS stuff integrated
into the Mingw fix to arrive back at a working lilypond-book, but of
course it is to be hoped that moving Python forward to 2.6 might make
that problem go away.  But it will take longer to figure that out.

Our current 2.4.5 Python aborts with an error traceback even when doing

exit(0)

which is sort of ridiculous.

-- 
David Kastrup

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