Re: Re; Pdf of Manuals

2014-04-06 Thread Nick Payne

On 07/04/14 10:16, i...@soundand.com wrote:
I was interested in this too but when i go to download it I get an 
image in my browser that i needed to download Adobe Reader 9x while I 
have 10x already and I got nowhere so How does one get around this 
problem?


Sounds like your browser is trying to open it in the browser rather than 
download it...


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


Re: Re; Pdf of Manuals

2014-04-06 Thread brentboylan
When you try to open it in Adobe Reader (at least in XI) it will tell you to
download a Flash plugin to properly view the documents. Do this (it doesn't
take long) and then open the file again. You'll see all the documents in a
row across the page. Search in all the docs at once from the search box at
the top. Works great.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-Pdf-of-Manuals-tp161323p161324.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; Pdf of Manuals

2014-04-06 Thread info
I was interested in this too but when i go to download it I get an image 
in my browser that i needed to download Adobe Reader 9x while I have 10x 
already and I got nowhere so How does one get around this problem?

Thanks Jay

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


Re: MetronomeMark aligned to accidentals

2014-04-06 Thread David Nalesnik
Hi all,

On Sun, Apr 6, 2014 at 11:10 AM, Trevor Daniels wrote:


> Maybe someone else will have a better solution.
>

Well, here's something rough which appears to do the trick.

The basic idea is that the function locates a PaperColumn that is related
to both our MetronomeMark grob and an AccidentalPlacement grob.  If it
finds it, it calculates the extent of all the accidentals and sets X-offset
based on this.

Hope this helps.  Let me know if you run into problems with it.

--David
\version "2.19.3"

#(define align-tempo-with-accidental
   (lambda (grob)
 (let* ((p-col (ly:grob-parent grob X))
(sys (ly:grob-parent p-col X))
(all (ly:grob-object sys 'all-elements))
(grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name)))
(pl (filter
   (lambda (x) (eq? 'AccidentalPlacement (grob-name x)))
   (ly:grob-array->list all)))
(pl-p-col (filter
(lambda (x) (eq? p-col (ly:grob-parent x X)))
pl)))
   (if (pair? pl-p-col)
   (let* ((accs (map cadr (ly:grob-object (car pl-p-col) 'accidental-grobs)))
  (X-exts (map (lambda (x) (ly:grob-extent x sys X)) accs))
  (un (reduce interval-union '() X-exts)))
 (car un))
 ; Return the default.
 (ly:make-simple-closure
  `(,+
,(ly:make-simple-closure
  (list ly:break-alignable-interface::self-align-callback))
,(ly:make-simple-closure
  (list ly:self-alignment-interface::x-aligned-on-self

{
  R1 |
  \override Score.MetronomeMark.X-offset = #align-tempo-with-accidental
  \tempo "Tempo"
  
  \tempo "Tempo II"
  
  \tempo "Tempo III"
  
}<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Understanding Lilypond language

2014-04-06 Thread Paul Morris
Harald Christiansen wrote
> For example you say
> "Because \layout { ... } is not a music expression but rather an output
> definition. Different type. "
> 
> and then later on:
> 
> "There are no typed variables."
> 
> In my mind these two do not work together ... for me there is some
> understanding missing.

There are different types of expressions (music expressions, output
definition expressions, etc.), but not different types of variables.  You
don't have to declare/define a variable's type, they are dynamically typed.

Put another way, output definitions like \layout {...} or \midi {...} are
not the same thing as music expressions like { c4 d e f }.  None of these
are variables, they are expressions, but they can be assigned to a variable.  

You may find it easier to learn to fish by just doing some fishing, if you
know what I mean?  

-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Understanding-Lilypond-language-tp161270p161321.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: Import, edit and export a Lilypond file using Python

2014-04-06 Thread Joachim Jablon

Le 06/04/2014 20:33, brentboylan a écrit :

If I understand what you are after, you want to produce an audio file for
each part (SATB) that individuals can use to practice at home with.

I have been preparing a lilypond file to do the same thing for the choir I
direct.


Wow, thanks a lot for that... I'm going to watch that closely. I feel 
like it's probably the proper way to go, adding more information instead 
of deleting it... It probably gives more flexibility to the operation.


Another thing people in my choir ask a lot is midi (actually mp3) file 
with their voice louder so they can hear their voice easily, but still 
hear other voices to keep in sync... I wonder if your solution may help 
that case too...


Well thanks a lot !

--
Joachim

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


Re: Extra naturals in accidental-style teaching?

2014-04-06 Thread Paul Morris
Ariel Barton wrote
> I think that what I want is not the forget style, but to have Lilypond
> typeset everything in C major/A minor. I'd still sort of like to print
> the true key signature; do you know if there's a way to print the D major
> keysignature while it's in C? 

See the following which does what you describe.  The \omit line inserts but
does not display a grace note between the two key signatures, and the
\override line prevents the key cancellation from being shown.  

\version "2.18.0"

\relative f' {
  \key g \major
  \omit \grace s8
  \override Staff.KeyCancellation.stencil = ##f
  \key c \major
  c8 cis d dis e f fis g gis a ais b c
}

One problem is that if you want the g key signature to be shown at the
beginning of each line, as is customary, then you would need to do something
like this at the beginning of each line (ugh).  So it's not really a good
solution.  Another possibility might be to replace the c major stencil, but
that will not really be any better I don't think...

-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Extra-naturals-in-accidental-style-teaching-tp161142p161319.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: Whiteout box function by Thomas Morley / need help

2014-04-06 Thread Thomas Morley
2014-04-06 11:39 GMT+02:00 Karol Majewski :
> Thanks Harm.
>
> In SpanBar-Dynamics conflict I still prefer whiteout over 
> DynamicText.extra-spacing-width = ##f. The only problem is that sometimes 
> whiteout box does not cover the whole barline width. Function I'm asking for 
> would allow to control the width of whiteout box.

Hi Karol,

below the revised function.
'moreWhiteout' takes one optional and two normal arguments:
Specifying whether the stencil should be boxed (boolean), which grob
(string) and the values to extent the stencil. These values can be
given as simple pair, affecting only X-axis-extension or as list of
pairs, affecting X- and Y-axis-extent.
The boolean may be of some use for debugging, though it will affect
spacing! Perhaps I should delete it ...

Otherwise I did some clean up and made the function more robust.
Please test.

\version "2.19.3"

moreWhiteout =
#(define-music-function (parser location better-viewing? grob-name adds)
  ((boolean? #f) string? pair?)

  (define (interval-add iv-1 iv-2)
(cons (+ (car iv-1)(car iv-2))
  (+ (cdr iv-1)(cdr iv-2

  (define more-stencil-whiteout
(lambda (grob)
  (let* ((function (assoc-get 'stencil
(reverse (ly:grob-basic-properties grob
 (stil ;; Ugh, is there no better way to test that a grob has no
   ;; 'stencil and that no other previous procedure assigned
   ;; a stencil-value to said grob?
   (if (and (procedure? function)
(not (eq? (procedure-name function)
  'more-stencil-whiteout)))
   (function grob)
   (begin
 (ly:warning "~a has no stencil. Ignoring" grob)
 #f
(if stil
(let*((x-ext (ly:stencil-extent stil X))
  (y-ext (ly:stencil-extent stil Y))
  (add-to-x-ext (if (pair? (car adds)) (car adds) adds))
  (add-to-y-ext (if (pair? (cdr adds)) (cadr adds) '(0 . 0)))
  (new-stil (ly:make-stencil
   (ly:stencil-expr stil)
   (interval-add x-ext add-to-x-ext)
   (interval-add y-ext add-to-y-ext


   ;; please note: setting better-viewing #t, will add a little
   ;; padding around the new stil and it will affect spacing in most
   ;; other cases, too.
   ;; We let it in, perhaps it may be of some help in certain cases.
   (if better-viewing?
   (box-stencil new-stil 0.1 0.01)
   new-stil))
#f

  #{
%% Seems no longer needed:
%\once \override $grob-name . vertical-skylines = #'()
%% Better to add next two lines:
\once \override $grob-name . layer = #10
\once \override $grob-name . whiteout = ##t
\once \override $grob-name . stencil = #more-stencil-whiteout
  #})

%%%
%% EXAMPLE
%%%

musicI = { \time 2/4 \repeat unfold 16 b8 }

musicII = {
  r2
  %% apply to X- and Y-axis
  \moreWhiteout TextScript #'((-2 . 0.5)(0 . 2))
  b4^"XX" b
  r2
  %% apply to X-axis only
  \moreWhiteout ##t TextScript #'(-2 . 0.5)
  b4^"XX" b
}


\new StaffGroup <<
  \new Staff \relative c'' \musicI
  \new Staff \relative c'' \musicII
>>

Ofcourse the extension happens as a rectangle.
No idea to do it different.

> BTW, In documentation for 2.19 it's written that default value for 
> DynamicText.extra-spacing-width is '(+inf.0 . -inf.0), which is not true 
> anymore.

I think you're wrong.
The following returns '(+inf.0 . -inf.0) !

{
  \override DynamicText.after-line-breaking =
#(lambda (grob) (write (ly:grob-property grob 'extra-spacing-width)))
  c1\f
}

HTH,
  Harm

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


Re: Understanding Lilypond language

2014-04-06 Thread Harald Christiansen
Hello David,

Many thanks for your reply.  :-)

I was giving the variable example as a kind of difficulty I have. I
appreciate the "fish" you are giving to me but I want to learn "how to
fish" :-)

For example you say
"Because \layout { ... } is not a music expression but rather an output
definition. Different type. "

and then later on:

"There are no typed variables."

In my mind these two do not work together ... for me there is some
understanding missing.

And yes I found the Lilypond Extending manual but that still doesn't
explain properly the Lilypond language itself.

Regards.



On 04/06/2014 06:18 PM, David Kastrup wrote:
> Harald Christiansen  writes:
>
>> Hello,
>>
>> Is there a manual for the lilypond language itself ?
>>
>> I don't get it ... is it a programming language ... a macro expander ...
>> all of the above ?
> It is a dynamically typed language.  Not much programming in the
> language itself, but a Scheme layer caters for that and provides all the
> types.
>
> The command line processes an input file, and certain things like
> top-level music or scores cause actions.
>
>> I cannot build a mental model of how it works.
>>
>> For example, let's take variables. I take the notation reference, I look
>> at the index and I see several entries.
>>
>> One entry specifies:
>>
>> 3.1.5 File structure
>> [...]
>>
>> A variable, such as
>>
>> foo = { c4 d e d }
>>
>> So far so good.
>>
>> Another entry:
>>
>> 3.3.2 Different editions from one source
>> [...]
>> Using variables
>>
>> allLyrics = \lyricmode {King of glo -- ry }
>>
>> Is this just a macro substitution ?
> No.  Neither is the above.  Both place a sequential music structure into
> the respective variables.  Use
>
> \void \displayMusic \allLyrics
> \void \displayMusic \foo
>
> to see what's in there.
>
>> But then in one of my own I have to declare
>>
>> myLayout = \layout { >
>> even if \myLayout is used inside of a \layout section
> Because \layout { ... } is not a music expression but rather an output
> definition.  Different type.
>
>> So it seems that there is more going on but what ? Are the variables
>> typed ? (i.e. myLayout is of type \layout and I have to cast it or
>> declare it ? I don't get it)
> There are no typed variables.  Types are associated with expressions
> rather than variables: that's what using a dynamically typed language
> like Scheme is about.  So there is no point in declaring a variable.
> Its type is determined by what you place in there.
>
>> I understand that at some level underneath lilypond uses Scheme
>> (Guile) but how specifically ?
>>
>> e.g. 
>> \set Staff.printPartCombineTexts = ##f
>>
>> The way I guess this is: '#f' is the false atom, the first # switches
>> to Guile interpretation ... but beyond this all is completely foggy.
> Check out the red manual.
>
> http://lilypond.org/doc/v2.19/Documentation/extending/scheme-in-lilypond>
>


-- 
Nihil verus. Omnia possibilia.


___
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-06 Thread Harald Christiansen
This is what I used to disable it entirely, maybe it gives you an idea:

\set PianoStaff.systemStartDelimiter = #'SystemStartBar


On 4/04/2014 02:26, Peter Toye wrote:
> Getting rid of initial brace on piano score I want to get rid of the
> brace on the first line of a piano score, but keep it for the rest of
> the score.
>
>

-- 
Nihil verus. Omnia possibilia.

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


Re: Issue with downloaded manuals

2014-04-06 Thread brentboylan
Thanks for providing this document. In many ways the results are better than
searching on the lilypond website as I can find the things that interest me
faster.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Issue-with-downloaded-manuals-tp161245p161312.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: Issue with downloaded manuals

2014-04-06 Thread Nick Payne

On 07/04/14 07:10, Jim Long wrote:

If it's of any use to you, I've created fully indexed and searchable PDF
portfolios of the complete documentation sets

I've often wondered, what are some of the things one can do with
these doc sets that one can't do with the bare PDF files?  I
suspect I never do those things, whatever they are, but perhaps
if I knew what they were, I might investigate whether they would
be useful to me.
Open the portfolio into Adobe Reader, enter a search term into the 
search box at upper right, and press enter or click the binocular icon 
at the end of the search box. Reader will open a separate small window 
containing all the search hits and the documents within the portfolio in 
which they appear. Click on any of the hits to be taken to the relevant 
part of the document in which it appears.


Nick

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


Re: Issue with downloaded manuals

2014-04-06 Thread Jim Long
> If it's of any use to you, I've created fully indexed and searchable PDF 
> portfolios of the complete documentation sets

Nick:

I've often wondered, what are some of the things one can do with
these doc sets that one can't do with the bare PDF files?  I
suspect I never do those things, whatever they are, but perhaps
if I knew what they were, I might investigate whether they would
be useful to me.

Thanks!

Jim

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


Re: transposing cues

2014-04-06 Thread Paul Scott
On Sun, Apr 06, 2014 at 08:49:50AM +0200, David Kastrup wrote:
> Paul Scott  writes:
> 
> > Now how can I write a clarinet part that goes back and forth 
> > between Bb and A and get the cues transposed correcly?
> 
> http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#index-transposition_002c-instrument>
> 
> Second example.

My apologies for poor statement of the question!  The above I am quite 
familiar with.

I think your answer to my previous question about transposing cues 
will solve my problem with some work on my part.  The following 
modification of the documented example may or may not illustrate my 
need.  I actually now have an untransposed (concert pitch) 
clarinet part with cues that I want to make into a clarinet part where 
each section can be played on the clarinet that is easiest.

\version "2.19.3"

flute = \relative c'' {
  \key f \major
  \cueDuring #"clarinet" #DOWN {
R1 _\markup\tiny "clarinet"
c4 f e d
R1 _\markup\tiny "clarinet"
c4 f e d 
  }
}
\addQuote flute \flute 
clarinetA = \relative c'' {
  \key aes \major
  \transposition a
  aes4 bes c des
%  <>^\markup { muta in B\flat }
  \cueDuring flute #up R1 
}
clarinetB = \relative c'' {
  \key g \major
  \transposition bes
  d2 g,
  \cueDuring flute #up R1 
}
clarinet = { \clarinetA \transpose a bes \clarinetB } 
\addQuote "clarinet" \clarinet
<<
  \new Staff \with { instrumentName = #"Flute" }
\flute
  \new Staff \with { instrumentName = #"Cl (A)" }
\clarinet
>>

The last flute cue is not transposed correctly which I guess 
is answered by your previous answer.

Paul

> 
> -- 
> David Kastrup
> 


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


ly2video on Ubuntu

2014-04-06 Thread David B. Stocker

Hi all,

Has anyone had success getting ly2video to work on recent versions of 
Ubuntu or Debian?


I'm using ly2video 0.4.1 on UbuntuStudio 13.10 and seem to be running 
into issue #32:


https://github.com/aspiers/ly2video/issues/32

I'm messing around with changing the ly2video.py script according to the 
proposed workaround, but haven't had any luck.


Has anyone gotten it to work? If so, do you remember the procedure you used?

Thanks,

David

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread brentboylan
If I understand what you are after, you want to produce an audio file for
each part (SATB) that individuals can use to practice at home with.

I have been preparing a lilypond file to do the same thing for the choir I
direct. It is evolving even now, but one of the key components came from
using  Frescobaldi    and the score wizard included:

 

In the 'Parts' tab of the score wizard, if you insert a 'Choir' instrument,
one of the settings on the right is 'Rehearsal MIDI files'. Checking that
box adds the following code to create a separate MIDI file for each part:

% Rehearsal MIDI files:
\book {
  \bookOutputSuffix "soprano"
  \score {
\rehearsalMidi "soprano" "soprano sax" \sopranoVerse
\midi { }
  }
}

\book {
  \bookOutputSuffix "alto"
  \score {
\rehearsalMidi "alto" "soprano sax" \altoVerse
\midi { }
  }
}

\book {
  \bookOutputSuffix "tenor"
  \score {
\rehearsalMidi "tenor" "tenor sax" \tenorVerse
\midi { }
  }
}

\book {
  \bookOutputSuffix "bass"
  \score {
\rehearsalMidi "bass" "tenor sax" \bassVerse
\midi { }
  }
}

This creates MIDI files with filenames that tag on whatever is in the
\bookOutputSuffix field (myChoirPiece-bass.mid for example.) While this is
just the individual parts, you could easily add in the accompaniment or
other parts for reference to be included in the MIDI output.

The way I am using this is by adding it to a template that I use whenever I
create a new SATB arrangement. I like to keep 'content' separate from
'presentation' as is popular in many styles of programming, so my
'presentation' file has the extra MIDI generating lines and my content.ly
file holds everything unique to the piece I am working on. I have an
explanation of what I'm doing on my  blog    but
it is a work in progress. I will post a new item in the forum here when I am
ready to share it, including the .ly template files.

Of course, my method does not involve importing MusicXML information but I
believe it could be done relatively easily, using the content.ly as the
target.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Import-edit-and-export-a-Lilypond-file-using-Python-tp161289p161307.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: Hyphen in a lyrics word

2014-04-06 Thread Noeck
> The problem is you can't please all the people all the time.  Some want
> disappearing hyphens.

Hi Phil,

I don’t want to make this thread much longer as I got the answer I
needed, but here I have to disagree. It might depend on the language,
but I am not speaking of hyphens due to hyphenation but hyphens
separating words in non-broken text.

In German, I would say it’s not a matter of taste. You can not write
SBahn instead of S-Bahn or iPunkt instead of i-Punkt.

Concerning English, I am not so sure, but can you really write:
maneating shark instead of man-eating shark or
twentiethcentury painting instead of twentieth-century painting?

That’s the use-case I was talking about, not hyphenation to split syllables.

Cheers,
Joram

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


Re: MetronomeMark aligned to accidentals

2014-04-06 Thread Trevor Daniels

Daniel, you wrote April 06, 2014 3:21 PM

> I've tried this based on the page you linked me to above, but it's not 
> working. What am I missing here? 
> 
> \version "2.19.3"
> {
>  R1 |
>  \override Score.MetronomeMark.break-align-symbols = #'(key-signature)
>  \tempo "Tempo"
>  
> }

I'm afraid I've misled you here.  Although MetronomeMark layout object 
supposedly supports the break-alignable-interface, according to the IR, it 
seems not to behave in the same way as RehearsalMark and BarNumber layout 
objects.  Sorry about that; I should have checked more carefully before making 
the suggestion.

However, you may be able to obtain a satisfactory placing by overriding 
self-alignment-X, eg

\version "2.19.3"
{
  R1 |
  \override Score.MetronomeMark.self-alignment-X = -0.3
  \tempo "Tempo"
  
}

This offsets the metronome mark from its default position of 0 - centered on 
the left-most notehead.  Unfortunately the required value will depend on the 
string length provided to \tempo and the number of accidentals, so this is 
strictly a poor work-around.

Maybe someone else will have a better solution.

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread Urs Liska

Am 06.04.2014 17:19, schrieb Joachim Jablon:

Le 06/04/2014 15:56, Urs Liska a écrit :

It's not fully clear what you mean yet, but it sounds that you might be
_much_ better off when you simply create different .ly files with
"scores" just displaying the voices you want.

Urs



Yes, that's where I'm headed for, but it must be in a completely
automated way, from a MusicXML file...

The question is (probably better worded as) *how* would you create a .ly
file with a single voice from a file (MusicXML or .ly) containing
multiple voices, using a (Python) script...


I can't check right now, but I _assume_ that musicxml2ly will produce a 
file with a number of variables containing the music and a \score block.


Furthermore I assume your variables will always be the same (e.g. 
"sopranoMusic" or whatever).


Then you could
- run musicxml2ly on your xml file
- purge the \score block from it
  (check if that always comes last in the file,
   then it should be very easy)
- write different .ily ("include ly") files containing (only) different
  \score structures, one for each kind of output you want to have.
  (this should be done beforehand and only once)
- create different .ly files, one for each type of output.
  This should first include the generated and stripped conversion file
  and then the desired score block.
  creating these .ly files could be done programmatically by using a
  template file.

Doing all this with a Python script seems quite straightforward.
And I'm not sure whether you need to mangle the XML files first.

HTH
Urs

PS: Please always reply to the list or to all, so that everyone can 
share the discussion (I have already done this for the current message).




So for now, I' following David Kastrup's advice and working with the
MusicXML file directly...

--
Joachim Jablon



--
Urs Liska
www.openlilylib.org

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread David Kastrup
Joachim Jablon  writes:

> Le 06/04/2014 15:56, Urs Liska a écrit :
>> It's not fully clear what you mean yet, but it sounds that you might be
>> _much_ better off when you simply create different .ly files with
>> "scores" just displaying the voices you want.
>>
>> Urs
>>
>
> Yes, that's where I'm headed for, but it must be in a completely
> automated way, from a MusicXML file...
>
> The question is (probably better worded as) *how* would you create a
> .ly file with a single voice from a file (MusicXML or .ly) containing
> multiple voices, using a (Python) script...

Well, the point of MusicXML is doing manipulations as XML rather than
with regexps or similar.

Uh, XSLT scripts or something?

> So for now, I' following David Kastrup's advice and working with the
> MusicXML file directly...

One can certainly also work well with LilyPond code itself, but when the
source of that LilyPond code is converted automatically from MusicXML
using musicxml2ly, it's likely somewhat clunky and unreliable to delve
in there as it will be missing distinctive marks and names and whatever.

-- 
David Kastrup

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread Joachim Jablon

Le 06/04/2014 15:56, Urs Liska a écrit :

It's not fully clear what you mean yet, but it sounds that you might be
_much_ better off when you simply create different .ly files with
"scores" just displaying the voices you want.

Urs



Yes, that's where I'm headed for, but it must be in a completely 
automated way, from a MusicXML file...


The question is (probably better worded as) *how* would you create a .ly 
file with a single voice from a file (MusicXML or .ly) containing 
multiple voices, using a (Python) script...


So for now, I' following David Kastrup's advice and working with the 
MusicXML file directly...


--
Joachim Jablon

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


Re: Whiteout box function by Thomas Morley / need help

2014-04-06 Thread Simon Albrecht


Am 06.04.2014 16:38, schrieb Kieren MacMillan:

Hi all,


Function I'm asking for would allow to control the width of whiteout box.

Just to note [again] that I would much prefer a whiteout function that followed 
the glyph outline (with a padding or margin parameter), rather than a rectangle.

+1
This is important, for example because the dynamic f reaches far beyond 
the whiteout box.


All the best,
Simon

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


Re: Whiteout box function by Thomas Morley / need help

2014-04-06 Thread Kieren MacMillan
Hi all,

> Function I'm asking for would allow to control the width of whiteout box.

Just to note [again] that I would much prefer a whiteout function that followed 
the glyph outline (with a padding or margin parameter), rather than a rectangle.
And, of course, I’m happy to chip in bounty money for it…

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


RE: MetronomeMark aligned to accidentals

2014-04-06 Thread Daniel Rosen
> -Original Message-
> From: Trevor Daniels [mailto:t.dani...@treda.co.uk]
> Sent: Saturday, April 05, 2014 6:24 PM
> To: Daniel Rosen; lilypond-user@gnu.org
> Subject: Re: MetronomeMark aligned to accidentals
> 
> 
> Daniel, you wrote Saturday, April 05, 2014 1:44 PM
> 
> > I would like the MetronomeMark to be aligned with the left edge of the
> leftmost Accidental (almost with the BarLine, but not quite). I've been trying
> to manipulate the Score.MetronomeMark.non-break-align-symbols
> property, but to no avail (I'm not sure I quite understand how that property
> works; it's a little unclear to me in the IR). Can anyone steer me in the 
> right
> direction?
> 
> I think you'll find all you need to know in the following section.  You can't 
> align
> to an accidental using this, but by using an offset from an alignment to the
> bar line anchor you may be able to achieve the positioning you want.
> 
> http://www.lilypond.org/doc/v2.17/Documentation/notation/aligning-
> objects#using-the-break_002dalignable_002dinterface
> 
> Trevor

I've tried this based on the page you linked me to above, but it's not working. 
What am I missing here? 

\version "2.19.3"
{
  R1 |
  \override Score.MetronomeMark.break-align-symbols = #'(key-signature)
  \tempo "Tempo"
  
}

DR

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread Urs Liska
It's not fully clear what you mean yet, but it sounds that you might be _much_ 
better off when you simply create different .ly files with "scores" just 
displaying the voices you want.

Urs

Joachim Jablon  schrieb am 06.04.2014:
>Le 06/04/2014 14:44, David Kastrup a écrit :
>>
>> Manipulating LilyPond files is not trivial, and your description is
>not
>> at all useful for figuring out what "remove some parts" is even
>remotely
>> supposed to mean.
>>
>> You might want to do your removal operation while still in MusicXML
>> using some standard XML manipulation tool, and only then convert to
>> LilyPond.
>>
>
>I'm sing in a choir, and I'd like to offer members the opportunity to 
>download pdfs and mp3s of both the whole song we're working on, or only
>
>one (or more) voice. Each voice is a staff, so I'd like to be able to 
>list the names of the staffs, and remove all but one.
>
>So, yes, as you suggested, I should be able to :
>1) Edit the XML using standard xml tools
>2) make it a .ly file using the lilypond script
>3) make it a beautiful partition using lilypond :)
>
>I thought I would use a python lib that would manage the MusicXML part 
>for me, but in the end, MusicXML is just XML, so I'll be able to do it 
>myself.
>
>Thank you !

-- 
Diese Nachricht wurde mit https://play.google.com/store/apps/details?id=com.onegravity.k10.pro2";>K-@
 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Import, edit and export a Lilypond file using Python

2014-04-06 Thread Joachim Jablon

Hello everyone,

I've asked a question on StackOverflow about Lilypond files and Python, 
and someone suggested that I ask the lilypond community directly.


For the long version, you can see the question here :
http://stackoverflow.com/questions/22883594/generating-pdf-midi-from-musicxml-using-python

For the short version :
I would like to import an existing Lilypond .ly file, remove some parts 
and export the resulting file as .ly/pdf/midi/mp3, using Python.
(in fact my input is a musicxml file but now I've discovered the 
musicxml2ly script so that's not a problem)
What would you suggest as the most appropriate tools (probably python 
libs) to do so ?


Thanks a lot,
--
Joachim jablon

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread Joachim Jablon

Le 06/04/2014 14:44, David Kastrup a écrit :


Manipulating LilyPond files is not trivial, and your description is not
at all useful for figuring out what "remove some parts" is even remotely
supposed to mean.

You might want to do your removal operation while still in MusicXML
using some standard XML manipulation tool, and only then convert to
LilyPond.



I'm sing in a choir, and I'd like to offer members the opportunity to 
download pdfs and mp3s of both the whole song we're working on, or only 
one (or more) voice. Each voice is a staff, so I'd like to be able to 
list the names of the staffs, and remove all but one.


So, yes, as you suggested, I should be able to :
1) Edit the XML using standard xml tools
2) make it a .ly file using the lilypond script
3) make it a beautiful partition using lilypond :)

I thought I would use a python lib that would manage the MusicXML part 
for me, but in the end, MusicXML is just XML, so I'll be able to do it 
myself.


Thank you !
--
Joachim Jablon

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


RE: MetronomeMark aligned to accidentals

2014-04-06 Thread Daniel Rosen
> -Original Message-
> From: Trevor Daniels [mailto:t.dani...@treda.co.uk]
> Sent: Saturday, April 05, 2014 6:24 PM
> To: Daniel Rosen; lilypond-user@gnu.org
> Subject: Re: MetronomeMark aligned to accidentals
> 
> 
> Daniel, you wrote Saturday, April 05, 2014 1:44 PM
> 
> > I would like the MetronomeMark to be aligned with the left edge of the
> leftmost Accidental (almost with the BarLine, but not quite). I've been trying
> to manipulate the Score.MetronomeMark.non-break-align-symbols
> property, but to no avail (I'm not sure I quite understand how that property
> works; it's a little unclear to me in the IR). Can anyone steer me in the 
> right
> direction?
> 
> I think you'll find all you need to know in the following section.  You can't 
> align
> to an accidental using this, but by using an offset from an alignment to the
> bar line anchor you may be able to achieve the positioning you want.
> 
> http://www.lilypond.org/doc/v2.17/Documentation/notation/aligning-
> objects#using-the-break_002dalignable_002dinterface
> 
> Trevor

Thanks, that should do fine as a workaround.

Does anyone else agree that the behavior I'm suggesting should be the default? 
We've heard from Elaine Gould thanks to Brian, but she's not the end-all 
be-all, so I don't want to ask that this be added as a bug without some kind of 
consensus.

DR

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


Re: Import, edit and export a Lilypond file using Python

2014-04-06 Thread David Kastrup
Joachim Jablon  writes:

> Hello everyone,
>
> I've asked a question on StackOverflow about Lilypond files and
> Python, and someone suggested that I ask the lilypond community
> directly.
>
> For the long version, you can see the question here :
> http://stackoverflow.com/questions/22883594/generating-pdf-midi-from-musicxml-using-python
>
> For the short version :
> I would like to import an existing Lilypond .ly file, remove some
> parts and export the resulting file as .ly/pdf/midi/mp3, using Python.
> (in fact my input is a musicxml file but now I've discovered the
> musicxml2ly script so that's not a problem)
> What would you suggest as the most appropriate tools (probably python
> libs) to do so ?

Manipulating LilyPond files is not trivial, and your description is not
at all useful for figuring out what "remove some parts" is even remotely
supposed to mean.

You might want to do your removal operation while still in MusicXML
using some standard XML manipulation tool, and only then convert to
LilyPond.

-- 
David Kastrup

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


Import, edit and export a Lilypond file using Python

2014-04-06 Thread Joachim Jablon

Hello everyone,

I've asked a question on StackOverflow about Lilypond files and Python, 
and someone suggested that I ask the lilypond community directly.


For the long version, you can see the question here :
http://stackoverflow.com/questions/22883594/generating-pdf-midi-from-musicxml-using-python

For the short version :
I would like to import an existing Lilypond .ly file, remove some parts 
and export the resulting file as .ly/pdf/midi/mp3, using Python.
(in fact my input is a musicxml file but now I've discovered the 
musicxml2ly script so that's not a problem)
What would you suggest as the most appropriate tools (probably python 
libs) to do so ?


Thanks a lot,
--
Joachim jablon

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


Re: Extra naturals in accidental-style teaching?

2014-04-06 Thread Ariel Barton
Thank you!

I think that what I want is not the forget style, but to have Lilypond
typeset everything in C major/A minor. I'd still sort of like to print
the true key signature; do you know if there's a way to print the D major
keysignature while it's in C? (\key d \major \key c \major produces an
error message unless I put something between the two key changes, \key d
\major s1 \key c \major makes my measure count off and also prints a
bunch of courtesy accidentals at the "key change" to C major; there
might be something I can do involving the "sharp=postitions" setting for
the "key-signature-interface" but I can't really figure out how Lilypond
wants me to phrase that.)

Thanks,
Ariel

Paul Morris wrote

> Hi Ariel,  It seems that these cautionary natural signs appear any time a
> given note occurs again, if it is not immediately following the same
note.
>
> \version "2.18.2"
> \new Staff {
>   \accidentalStyle teaching
>   \key c \major
>   \relative f' {
>   c8 d c d e e f e f e e d c c d e
>   }
> }
>
> This may be a bug. The docs say "cautionary accidentals are added for all
> sharp or flat tones specified by the key signature, except if the note is
> immediately repeated."[1]  So I think these cautionary _natural_ signs
> shouldn't be shown at all?
>
> [1]
>
http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#automatic-accidentals
>
> As a work-around you would have to manually hide each of these unwanted
> accidentals, but it would probably be easier at that point to use "modern"
> style and manually force the natural signs to appear, by adding a ! after
> the note like this: c!  Or maybe a different style (like forget ?) would
be
> close enough to what you want?
>
> HTH,
> -Paul
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-06 Thread Urs Liska
There _is_ a "lilypond" "organization" on github already, created and owned by 
Janek.

We can easily fork the necessary repositories there and give all persons the 
necessary push access.

As to the merge question:
As Graham sais you shouldn't merge the request.
Rather add the respective fork as a remote to your local clone and pull the 
interesting branches there.
Then test and merge manually.

Urs

Graham Percival  schrieb am 06.04.2014:
>On Sun, Apr 06, 2014 at 10:44:19AM +0100, Phil Holmes wrote:
>> >Doesn't Julien have GUB with python 2.6 ready for testing?
>> 
>> I should be able to test GUB with Julien's Python 2.6 later this
>> week.  I'd just like to check the process.  I click the "Merge pull
>> request" at https://github.com/gperciva/gub/pull/6 and this pushes
>> Julien's changes into the GUB repo?
>
>I do not recommend this -- his changes are untested, so we don't
>want that to become master on the (I think?) official GUB used for
>lilypond.
>
>(incidently, I second the calls to have a shared "lilypond"
>account on github.  I understand David's concerns about github,
>and realize that moving to savannah might be better in the long
>term.  But in the short term, going from github:gperciva to
>github:lilypond does not lose anything.  And it's been months and
>months (maybe over a year?) since I left lilypond development)
>
>> I then pull the GUB repo on my GUB VM and this will get the
>> changes into my version of GUB?
>
>There's a way to get Julien's changes onto your local computer to
>test them, but I can't speak with any certainty as to how this is
>done.
>
>> I then make lilypond as usual.  What if it doesn't work?  We
>> then need to test the built binaries: should I put them on my
>> own website for people to grab and test, or do a normal upload?
>
>Please put them on your own website for people to grab and test.
>
>Cheers,
>- Graham
>
>___
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Diese Nachricht wurde mit https://play.google.com/store/apps/details?id=com.onegravity.k10.pro2";>K-@
 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-06 Thread Graham Percival
On Sun, Apr 06, 2014 at 10:44:19AM +0100, Phil Holmes wrote:
> >Doesn't Julien have GUB with python 2.6 ready for testing?
> 
> I should be able to test GUB with Julien's Python 2.6 later this
> week.  I'd just like to check the process.  I click the "Merge pull
> request" at https://github.com/gperciva/gub/pull/6 and this pushes
> Julien's changes into the GUB repo?

I do not recommend this -- his changes are untested, so we don't
want that to become master on the (I think?) official GUB used for
lilypond.

(incidently, I second the calls to have a shared "lilypond"
account on github.  I understand David's concerns about github,
and realize that moving to savannah might be better in the long
term.  But in the short term, going from github:gperciva to
github:lilypond does not lose anything.  And it's been months and
months (maybe over a year?) since I left lilypond development)

> I then pull the GUB repo on my GUB VM and this will get the
> changes into my version of GUB?

There's a way to get Julien's changes onto your local computer to
test them, but I can't speak with any certainty as to how this is
done.

> I then make lilypond as usual.  What if it doesn't work?  We
> then need to test the built binaries: should I put them on my
> own website for people to grab and test, or do a normal upload?

Please put them on your own website for people to grab and test.

Cheers,
- Graham

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


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-06 Thread Martin Tarenskeen




 Doesn't Julien have GUB with python 2.6 ready for testing?  I



If I install lilypond on my Fedora 20 system using the version from the 
official Fedora repo (2.18.2) it will use the Python2 version that is 
shipped with Fedora (Python 2.7.5) and I never experienced problems with 
that.


The installers from the Lilypond website are shipped with an older Python 
version. Are there any known issues that I - as a normal user - might 
encounter (but haven't encountered yet) when using the Fedora distributed 
Lilypond and Python versions?


--

MT


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


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-06 Thread Phil Holmes
- Original Message - 
From: "Graham Percival" 

To: "David Kastrup" 
Cc: "Jan Nieuwenhuizen" ; "Phil Holmes" 
; "Br. Samuel Springuel" ; 
; "Julien Rioux" 

Sent: Sunday, April 06, 2014 2:42 AM
Subject: python 2.6 in GUB Re: LilyPond-Book on Windows



On Sat, Apr 05, 2014 at 08:53:04AM +0200, David Kastrup wrote:

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.


Doesn't Julien have GUB with python 2.6 ready for testing?  I
would move forward on that before diving into the dark waters of
os.popen in python 2.4.  I remember bug 1933; it was really
annoying.

Cheers,
- Graham



I should be able to test GUB with Julien's Python 2.6 later this week.  I'd 
just like to check the process.  I click the "Merge pull request" at 
https://github.com/gperciva/gub/pull/6 and this pushes Julien's changes into 
the GUB repo?  I then pull the GUB repo on my GUB VM and this will get the 
changes into my version of GUB?  I then make lilypond as usual.  What if it 
doesn't work?  We then need to test the built binaries: should I put them on 
my own website for people to grab and test, or do a normal upload?


--
Phil Holmes 



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


Re: Whiteout box function by Thomas Morley / need help

2014-04-06 Thread Karol Majewski
Thanks Harm.

In SpanBar-Dynamics conflict I still prefer whiteout over 
DynamicText.extra-spacing-width = ##f. The only problem is that sometimes 
whiteout box does not cover the whole barline width. Function I'm asking for 
would allow to control the width of whiteout box.

BTW, In documentation for 2.19 it's written that default value for 
DynamicText.extra-spacing-width is '(+inf.0 . -inf.0), which is not true 
anymore.


> Hi Karol,
> 
> will have a look at it tomorrow, right now I'm overtired ...
> 
> Cheers,
>   Harm




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


Re: Question about FretBoards context

2014-04-06 Thread Pierre Perol-Schneider
2014-04-06 11:00 GMT+02:00 David Kastrup :

>
> Should you consider _what_ a bug?
>

At least it'd I awoken you ;)


> There is a context called FretBoards that tends to work with grobs
> called FretBoard.  Apparently this confuses you more than a context
> called Voice that tends to work with grobs called NoteHead, Stem,
> Accidental and so on.
>

That's clear, now I get it !
Thanks for your detailed answer,
~Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: transposing cues

2014-04-06 Thread David Kastrup
Paul Scott  writes:

> Now how can I write a clarinet part that goes back and forth 
> between Bb and A and get the cues transposed correcly?

http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#index-transposition_002c-instrument>

Second example.

-- 
David Kastrup

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


Re: Question about FretBoards context

2014-04-06 Thread David Kastrup
Pierre Perol-Schneider  writes:

> Thanks Fedrico, but still I don't get it.
> The FretBoards reference page says (
> http://www.lilypond.org/doc/v2.18/Documentation/internals/fretboards) :
> "This context creates the following layout object(s): FretBoard, etc."
> So ?
> Should I consider this as a bug ?

Should you consider _what_ a bug?

There is a context called FretBoards that tends to work with grobs
called FretBoard.  Apparently this confuses you more than a context
called Voice that tends to work with grobs called NoteHead, Stem,
Accidental and so on.

There is not really a bug, but there might be a less than helpful naming
scheme.  Replace FretBoards with FretBoardStaff or FredBoardHolder in
your head and FretBoard with FretBoardItem and try reading the
documentation again with that distinction in mind.

Note that

\new FretBoards { \override FretBoard.whatever ... }

is equivalent to

\new FretBoards { \override Bottom.FretBoard.whatever ... }

and thus to

\new FretBoards { \override FretBoards.FretBoard.whatever ... }

The 2.16 syntax is probably more helpful in this case: there we have

\new FretBoards { \override FretBoard #'whatever ... }

equivalent to

\new FretBoards { \override Bottom.FretBoard #'whatever ... }

and

\new FretBoards { \override FretBoards.FretBoard #'whatever ... }


My original pitch at the new syntax was to have

\new FretBoards { \override FretBoard whatever ... }
\new FretBoards { \override Bottom.FretBoard whatever ... }
\new FretBoards { \override FretBoards.FretBoard whatever ... }

but people hated that.  And it's somewhat uglier for function arguments.

You can actually at the current moment write this alternatively (since
it is a part of backward compatibility with the old syntax), but it does
not transfer to functions like \overrideProperty and so on.

-- 
David Kastrup

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


Re: Understanding Lilypond language

2014-04-06 Thread David Kastrup
Harald Christiansen  writes:

> Hello,
>
> Is there a manual for the lilypond language itself ?
>
> I don't get it ... is it a programming language ... a macro expander ...
> all of the above ?

It is a dynamically typed language.  Not much programming in the
language itself, but a Scheme layer caters for that and provides all the
types.

The command line processes an input file, and certain things like
top-level music or scores cause actions.

> I cannot build a mental model of how it works.
>
> For example, let's take variables. I take the notation reference, I look
> at the index and I see several entries.
>
> One entry specifies:
>
> 3.1.5 File structure
> [...]
>
> A variable, such as
>
> foo = { c4 d e d }
>
> So far so good.
>
> Another entry:
>
> 3.3.2 Different editions from one source
> [...]
> Using variables
>
> allLyrics = \lyricmode {King of glo -- ry }
>
> Is this just a macro substitution ?

No.  Neither is the above.  Both place a sequential music structure into
the respective variables.  Use

\void \displayMusic \allLyrics
\void \displayMusic \foo

to see what's in there.

> But then in one of my own I have to declare
>
> myLayout = \layout { 
> even if \myLayout is used inside of a \layout section

Because \layout { ... } is not a music expression but rather an output
definition.  Different type.

> So it seems that there is more going on but what ? Are the variables
> typed ? (i.e. myLayout is of type \layout and I have to cast it or
> declare it ? I don't get it)

There are no typed variables.  Types are associated with expressions
rather than variables: that's what using a dynamically typed language
like Scheme is about.  So there is no point in declaring a variable.
Its type is determined by what you place in there.

> I understand that at some level underneath lilypond uses Scheme
> (Guile) but how specifically ?
>
> e.g. 
> \set Staff.printPartCombineTexts = ##f
>
> The way I guess this is: '#f' is the false atom, the first # switches
> to Guile interpretation ... but beyond this all is completely foggy.

Check out the red manual.

http://lilypond.org/doc/v2.19/Documentation/extending/scheme-in-lilypond>

-- 
David Kastrup

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


Re: Question about FretBoards context

2014-04-06 Thread Pierre Perol-Schneider
Thanks Fedrico, but still I don't get it.
The FretBoards reference page says (
http://www.lilypond.org/doc/v2.18/Documentation/internals/fretboards) :
"This context creates the following layout object(s): FretBoard, etc."
So ?
Should I consider this as a bug ?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Understanding Lilypond language

2014-04-06 Thread Harald Christiansen
Hello,

Is there a manual for the lilypond language itself ?

I don't get it ... is it a programming language ... a macro expander ...
all of the above ?

I cannot build a mental model of how it works.

For example, let's take variables. I take the notation reference, I look
at the index and I see several entries.

One entry specifies:

3.1.5 File structure
[...]

A variable, such as

foo = { c4 d e d }

So far so good.

Another entry:

3.3.2 Different editions from one source
[...]
Using variables

allLyrics = \lyricmode {King of glo -- ry }

Is this just a macro substitution ?

But then in one of my own I have to declare

myLayout = \layout { ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user