Re: Can't seem to merge note groups

2016-01-11 Thread Michiel Sikma
Thanks so much Pierre and Abraham!

I'm just a beginner but intuitively, it would seem that in my example both
notes should merge. It might be a bug.
In Pierre's case there's also a need to temporarily silence the "too many
clashing notes" warning. Abraham's doesn't need the second voice at all, so
it's perhaps the most simple example.

Michiel

On Tue, Jan 12, 2016 at 3:33 PM, Abraham Lee 
wrote:

> Here's another alternative that shows how you can change the displayed
> notehead by changing its duration-log property:
>
> http://lilybin.com/64zsk1/5
>
> On the other hand, it seems that there is a bug here that should be fixed
> because the top notehead is merging like it should, but not the bottom one.
>
> Best,
> Abraham
>
>
> On Monday, January 11, 2016, Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com> wrote:
>
>> Hi Michiel,
>>
>> How about :
>>
>> 
>>
>>   <<
>> {
>> \once\override NoteHead.stencil = ##f
>> 8_[ d e d] }
>> \new Voice {
>>   \voiceTwo
>>   2
>> }
>>   >>
>>
>> ...
>>
>> Cheers,
>> Pierre
>>
>> 2016-01-12 5:05 GMT+01:00 Michiel Sikma :
>>
>>> Hi all,
>>>
>>> I've been trying to solve a markup problem from a section of Chopin's
>>> Ballade No.1, which I'm typesetting to teach myself Lilypond. It's going
>>> pretty well but I'm having a problem with note merging. Here's an example
>>> of what I want - http://i.imgur.com/c2ZzfUm.png - and here's a
>>> simplified version of what I have so far - http://lilybin.com/64zsk1/3
>>>
>>> I just can't seem to find out how to make this work, although it works
>>> just fine when not using a note group (e.g. just c8 and c2 instead of >> c'>). For example, the main theme also has a half note merged into eighth
>>> notes, and I was able to get that working with this method.
>>>
>>> Any pointers would be greatly appreciated. If the method is
>>> significantly different from merging single notes, it might be good to have
>>> an example up in the manual. I'd be willing to write up an example using
>>> the real music as subject, if I can understand how this works.
>>>
>>> Michiel Sikma
>>>
>>> ___
>>> 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: Can't seem to merge note groups

2016-01-11 Thread Pierre Perol-Schneider
Hi Michiel,

How about :



  <<
{
\once\override NoteHead.stencil = ##f
8_[ d e d] }
\new Voice {
  \voiceTwo
  2
}
  >>

...

Cheers,
Pierre

2016-01-12 5:05 GMT+01:00 Michiel Sikma :

> Hi all,
>
> I've been trying to solve a markup problem from a section of Chopin's
> Ballade No.1, which I'm typesetting to teach myself Lilypond. It's going
> pretty well but I'm having a problem with note merging. Here's an example
> of what I want - http://i.imgur.com/c2ZzfUm.png - and here's a simplified
> version of what I have so far - http://lilybin.com/64zsk1/3
>
> I just can't seem to find out how to make this work, although it works
> just fine when not using a note group (e.g. just c8 and c2 instead of  c'>). For example, the main theme also has a half note merged into eighth
> notes, and I was able to get that working with this method.
>
> Any pointers would be greatly appreciated. If the method is significantly
> different from merging single notes, it might be good to have an example up
> in the manual. I'd be willing to write up an example using the real music
> as subject, if I can understand how this works.
>
> Michiel Sikma
>
> ___
> 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


Can't seem to merge note groups

2016-01-11 Thread Michiel Sikma
Hi all,

I've been trying to solve a markup problem from a section of Chopin's
Ballade No.1, which I'm typesetting to teach myself Lilypond. It's going
pretty well but I'm having a problem with note merging. Here's an example
of what I want - http://i.imgur.com/c2ZzfUm.png - and here's a simplified
version of what I have so far - http://lilybin.com/64zsk1/3

I just can't seem to find out how to make this work, although it works just
fine when not using a note group (e.g. just c8 and c2 instead of ).
For example, the main theme also has a half note merged into eighth notes,
and I was able to get that working with this method.

Any pointers would be greatly appreciated. If the method is significantly
different from merging single notes, it might be good to have an example up
in the manual. I'd be willing to write up an example using the real music
as subject, if I can understand how this works.

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


Re: Can't seem to merge note groups

2016-01-11 Thread Abraham Lee
Here's another alternative that shows how you can change the displayed
notehead by changing its duration-log property:

http://lilybin.com/64zsk1/5

On the other hand, it seems that there is a bug here that should be fixed
because the top notehead is merging like it should, but not the bottom one.

Best,
Abraham

On Monday, January 11, 2016, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:

> Hi Michiel,
>
> How about :
>
> 
>
>   <<
> {
> \once\override NoteHead.stencil = ##f
> 8_[ d e d] }
> \new Voice {
>   \voiceTwo
>   2
> }
>   >>
>
> ...
>
> Cheers,
> Pierre
>
> 2016-01-12 5:05 GMT+01:00 Michiel Sikma  >:
>
>> Hi all,
>>
>> I've been trying to solve a markup problem from a section of Chopin's
>> Ballade No.1, which I'm typesetting to teach myself Lilypond. It's going
>> pretty well but I'm having a problem with note merging. Here's an example
>> of what I want - http://i.imgur.com/c2ZzfUm.png - and here's a
>> simplified version of what I have so far - http://lilybin.com/64zsk1/3
>>
>> I just can't seem to find out how to make this work, although it works
>> just fine when not using a note group (e.g. just c8 and c2 instead of > c'>). For example, the main theme also has a half note merged into eighth
>> notes, and I was able to get that working with this method.
>>
>> Any pointers would be greatly appreciated. If the method is significantly
>> different from merging single notes, it might be good to have an example up
>> in the manual. I'd be willing to write up an example using the real music
>> as subject, if I can understand how this works.
>>
>> Michiel Sikma
>>
>> ___
>> 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: Repeat 8va

2016-01-11 Thread Malte Meyn


Am 11.01.2016 um 21:02 schrieb John Gourlay:
> The pdf output contained the music I hoped for but the midi output does not 
> contain the second measure of this three-measure opus.

You should use \unfoldRepeats (or \articulate):

\version "2.18.2"

foo = \relative {
  \repeat volta 2 {
c'4 d e f
\transposition c''
  }
  \transposition c'
  c e d f
}

\score {
  \foo
  \layout { }
}

\score {
  \unfoldRepeats \foo
  \midi { }
}

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


Re: best solution for book making with multiple scores and multiple titles but w/o page breaks between pieces

2016-01-11 Thread Abraham Lee
Just override the scoreTitleMarkup variable to look like bookTitleMarkup
and then you can put everything in the score's \header.

Best,
Abraham

On Monday, January 11, 2016, Mike Solomon  wrote:

> Hey all!
>
> \bookpart forces a page break between pieces in a suite, which I don’t
> want, but otherwise I like how it prints robust titles for each work.
> Is there a way to do everything that \bookpart does minus the page
> breaks?  I can create top-level markups instead of using the \header, but
> it’d be less work to just use the \header.
>
> Cheers,
> MS
> ___
> 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


best solution for book making with multiple scores and multiple titles but w/o page breaks between pieces

2016-01-11 Thread Mike Solomon
Hey all!

\bookpart forces a page break between pieces in a suite, which I don’t want, 
but otherwise I like how it prints robust titles for each work.
Is there a way to do everything that \bookpart does minus the page breaks?  I 
can create top-level markups instead of using the \header, but it’d be less 
work to just use the \header.

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


Re: best solution for book making with multiple scores and multiple titles but w/o page breaks between pieces

2016-01-11 Thread Abraham Lee
Here's an explanation how to modify the score's header:

http://lilypond.org/doc/v2.19/Documentation/notation/custom-titles-headers-and-footers

You should probably also leave the book-level header block empty because it
will put in its variable values when you don't set one of the same name in
the score-level header block.

Best,
Abraham

On Monday, January 11, 2016, Abraham Lee  wrote:

> Just override the scoreTitleMarkup variable to look like bookTitleMarkup
> and then you can put everything in the score's \header.
>
> Best,
> Abraham
>
> On Monday, January 11, 2016, Mike Solomon  > wrote:
>
>> Hey all!
>>
>> \bookpart forces a page break between pieces in a suite, which I don’t
>> want, but otherwise I like how it prints robust titles for each work.
>> Is there a way to do everything that \bookpart does minus the page
>> breaks?  I can create top-level markups instead of using the \header, but
>> it’d be less work to just use the \header.
>>
>> Cheers,
>> MS
>> ___
>> 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: Microtonal notation - arrows up and down

2016-01-11 Thread Luca Danieli
Thank you Graham.
It works perfectly! I understand that I need to rename ALL pitches, otherwise 
the building fails.The only problem now is that I have lost the default 
microtonal symbols.
So for example, how do I re-write the default symbol ceh (to have the symbol 
"d")?
In your example it is: (ceh . ,(ly:make-pitch -1 0 (/ FLAT 2))), but this 
doesn't show any accidental.
(I can't find information on internet)
Kind regards,Luca 

> Subject: RE: Microtonal notation - arrows up and down
> To: lilypond-user@gnu.org
> From: gbr...@gmail.com
> Date: Sat, 9 Jan 2016 22:45:03 +
> 
> > Date: Sat, 9 Jan 2016 20:39:15 +0100
> > From: Luca Danieli
> 
> > Yes, it works perfectly.
> > But I am only able to replace for example the standard symbol for fih 
> > (quarter-tone) with an arrow-up symbol.
> > I was wondering if it was possible to use both symbols instead of replacing 
> > one type with the other.
> > I would like to use arrows to indicate tone-colour and standard notation to 
> > indicate quarter-tones.
> 
> You choose some new names for the arrowed pitches, and add them to the 
> list, along with the original quartertones.  Something like
> 
> 
> 
> arrowedPitchNames = #`(
> (ceses . ,(ly:make-pitch -1 0 DOUBLE-FLAT))
> (ceseh . ,(ly:make-pitch -1 0 (* FLAT 3/2)))
> (cesel . ,(ly:make-pitch -1 0 FLAT-LOWER))
> (ces   . ,(ly:make-pitch -1 0 FLAT))
> (cesir . ,(ly:make-pitch -1 0 FLAT-RAISE))
> (cesih . ,(ly:make-pitch -1 0 (/ FLAT 2)))
> (ceh . ,(ly:make-pitch -1 0 (/ FLAT 2)))
> (cel   . ,(ly:make-pitch -1 0 NATURAL-LOWER))
> (c . ,(ly:make-pitch -1 0 NATURAL))
> (cir   . ,(ly:make-pitch -1 0 NATURAL-RAISE))
> (cih . ,(ly:make-pitch -1 0 (/ SHARP 2)))
> (ciseh . ,(ly:make-pitch -1 0 (/ SHARP 2)))
> (cisel . ,(ly:make-pitch -1 0 SHARP-LOWER))
> (cis   . ,(ly:make-pitch -1 0 SHARP))
> (cisir . ,(ly:make-pitch -1 0 SHARP-RAISE))
> (cisih . ,(ly:make-pitch -1 0 (* SHARP 3/2)))
> (cisis . ,(ly:make-pitch -1 0 DOUBLE-SHARP))
> ...
> 
> 
>   Graham
> 
> 
> ___
> 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: ly:one-line-breaking

2016-01-11 Thread Paul Morris
> On Jan 9, 2016, at 1:30 PM, Richard Shann  wrote:
> 
> I was wondering if it would be possible to develop a variant of "all on
> one line", namely "all on one page", where the page height would be
> automatically adjusted to fit the music, leaving the width as set.


Well, I made a couple of partially successful attempts.  See two patches 
attached.  I basically followed the examples of minimum line breaking and one 
line breaking, while trying to understand page-breaking.cc.  The challenge is 
calculating the exact page height needed to fit the music.


INITIAL ATTEMPT

Here I access the vertical extent of each system and add them together, along 
with top and bottom margins, to calculate the page height that would allow all 
systems fit on one page.  But this doesn't take into account the spacing 
between systems so the page height is underestimated.  

So next I access system-system-spacing.basic-distance, and add that in.  But 
system-system-spacing is measured from the center of the staff (see [1]), so 
the page height is overestimated.  There doesn’t seem to be any way to use 
these spacing settings to calculate the height.  (I should have seen this 
coming…)

[1] 
http://lilypond.1069038.n5.nabble.com/attachment/164161/0/vertical-spacing-paper-variables.pdf

Maybe (presumably?) somewhere in the vertical spacing code there is a reliable 
way to get an exact height value based on an actual layout of music on the page 
(without any compression), but I haven’t found it.  

(Also top level markups, titles, etc. cause a crash with this code…)


ANOTHER ATTEMPT

Here the idea was to simply take the default layout on N pages and then 
calculate a page height that would be equal to the total of all of the heights 
of those N pages – effectively merging the N pages into one page.  For some 
reason the resulting paper height often seems to be short (despite using an 
existing routine to get the default paper height), and I’m not sure what’s 
going wrong.  LilyPond does seem to fit all the systems onto one page in those 
cases, but with some compression, and ideally there shouldn’t be any need for 
compression.  

(Top level markups, titles, etc. work fine, but there are some programming 
errors reported in the log about trying to fit music... crossing fingers… etc. 
but the results seem to come out ok.)


(I also tried some code that progressively increased or decreased the page 
height, attempting new page breaking at each size, to locate the threshold 
between one and two pages, which would be the height needed.  But this didn’t 
work.  No matter the page height the number of pages stayed the same, I suspect 
because of caching of values for a given page breaking configuration.)

There's a staggeringly sophisticated system for fitting music onto pages that 
have a constant size, but keeping the music constant and changing the page size 
to fit it is another story.

Anyway, it's a start.  I’m putting this on the shelf for now, but wanted to 
share what I’d done to prevent duplication of effort if anyone else feels 
inclined to take this on.

(I’m mostly interested in how this would allow for creating SVG images where 
the size of the image is automatically cropped to fit the music (with user 
customizable margins) rather than having to do this manually with Inkscape.)

-Paul


%%% TEST SNIPPET %%%

\version "2.19.36"

\paper {
  % system-system-spacing.basic-distance = #0
  page-breaking = #ly:one-page-breaking
  % ragged-bottom = ##t
  % top-margin = 0
  % bottom-margin = 0
  % system-system-spacing.minimum-distance = #0
  % system-system-spacing.padding = #0
}

\header {
  % title = "a title"
  tagline = ""
}

% \markup \large "top level markup"

\repeat unfold 200 {
  c' d' e' f'
}

%




0001-initial-attempt-at-one-page-breaking.patch
Description: Binary data


0001-initial-attempt-at-one-page-breaking.patch
Description: Binary data


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


Re: Repeat 8va

2016-01-11 Thread John Gourlay
David, et al.,

The \transposition command would seem do what I want, except that I’ve 
discovered belatedly that LilyPond’s midi output doesn’t seem to respect 
repeats at all. Is this true?

I compiled the following little file using \transposition as I think you 
intended:

music = {c'4 d' e' f' \transposition c''}

\score {
  {
\repeat volta 2 \music
\transposition c' c' e' d' f'
  }
  \layout {}
  \midi {}
}

The pdf output contained the music I hoped for but the midi output does not 
contain the second measure of this three-measure opus.

Incidentally, I don’t see where the \transposition command is documented. I do 
see documentation for \transpose, which is similar but not useful in this 
situation.

John Gourlay


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