Re: Why doesn't \once \override NoteColumn.force-hshift work on more than one note in a measure

2017-07-31 Thread Guy Stalnaker

Thanks Dominic. I'll give that a try.

Guy

On 7/31/2017 9:09 PM, Dominic wrote:

I believe it's because the second note does not naturally collide with any
other, and has no cause to be 'forced' out of the way. Instead use /\once
\override NoteColumn.X-offset/ for those notes. I'm sure another user will
explain the technical reasons!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Why-doesn-t-once-override-NoteColumn-force-hshift-work-on-more-than-one-note-in-a-measure-tp204756p204758.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


--
“Happiness is the meaning and the purpose of life, the whole aim and end of 
human existence.”
― Aristotle


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


Re: Why doesn't \once \override NoteColumn.force-hshift work on more than one note in a measure

2017-07-31 Thread Dominic
I believe it's because the second note does not naturally collide with any
other, and has no cause to be 'forced' out of the way. Instead use /\once
\override NoteColumn.X-offset/ for those notes. I'm sure another user will
explain the technical reasons!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Why-doesn-t-once-override-NoteColumn-force-hshift-work-on-more-than-one-note-in-a-measure-tp204756p204758.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: Syntax for multiple slurs per Voice?

2017-07-31 Thread Trevor Bača
Hi David,

On Thu, Jul 27, 2017 at 8:11 PM, David Nalesnik 
wrote:

> Hi Trevor,
>
> On Thu, Jul 27, 2017 at 8:38 AM, Trevor Bača  wrote:
> > Hi David (Nalesnik),
> >
> > On Tue, Oct 20, 2015 at 11:49 AM, David Nalesnik <
> david.nales...@gmail.com>
> > wrote:
> >>
> >> Hi Trevor,
> >>
> >> On Tue, Oct 20, 2015 at 11:31 AM, Trevor Bača 
> >> wrote:
> >>>
> >>> Hi,
> >>>
> >>> I'm coming late to this discussion, but potentially *very* excited
> about
> >>> what this might mean. Will the available of spanner IDs mean that a
> single
> >>> voice will (eventually) be able to carry multiple *text spanners*???
> >>>
> >>> This would be incredibly useful in my own scores (and probably also in
> >>> the scores of very many other composers who work with simultaneous
> >>> continuous transitions). I've attached a PNG of an example from a
> recent
> >>> cello piece. The score is in LilyPond, but the engraving required
> multiple
> >>> (redundant) invisible markup voices. Would be so elegant to be need
> only a
> >>> single voice.
> >>>
> >>>
> >>
> >> I recently rewrote Text_spanner_engraver, incorporating 'spanner-id to
> >> allow an unlimited number of TextSpanners per voice.  The entry method
> isn't
> >> particularly pretty (basically it's equivalent to what you had to do
> with
> >> slurs before David Kastrup came up with the current solution).
> >>
> >> I'd like to get this into the codebase, but I'm unsure if I need to port
> >> it to C++.  Also, there's a chance another engraver to bind the
> simultaneous
> >> spanners might be needed (as piano pedal lines are bound by an alignment
> >> engraver).
> >>
> >> Attached is a more recent version than the one found here:
> >> http://www.mail-archive.com/lilypond-user%40gnu.org/msg105470.html
> >>
> >> Hope this helps!
> >
> >
> >
> > I'm (finally!) working at integrating your alternateTextSpannerEngraver.
> My
> > testing so far shows that it allows for very much of what I'm looking for
> > (ie, multiple text spanners overlapping each other in a single voice).
> >
> > Two questions:
> >
> > 1. Is the version you attached as "text-spanner-id.ly" (way back in
> October
> > 2015!) still the most recent version of your work?
>
> Ugh -- I was going to say that a (perhaps) more current version is on
> GitHub, but I seem to have never created a repository for it...  Old
> age.
>
> So I guess your version is the newest :(
>
> Let me know if you run into any difficulties, and I'll be happy to
> create that newer version.
>

Ok, great. Thanks very much; that was the confirm I was looking for. I'll
let you know how integration goes.

Thanks!

Trevor.


-- 
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Why doesn't \once \override NoteColumn.force-hshift work on more than one note in a measure

2017-07-31 Thread Guy Stalnaker
Hello all,

Curious about why \once \override NoteColumn.force-hshift only seems to
affect the first note of a measure. This snippet shows 3 staves, the first
unmodified, the second with the chord shifted left and the e'' shifted
right, and the third attempting to shift both e'' and c'' right. But the
c'' is not affected by the NoteColumn.force-hshift directive.

This simplified snippet is from a working score where I'd very much like to
shift that second note to the right.

%% SNIPPET %%
\score {
  <<
\new Staff = "One" %No modification
<< { 1 }
   \\
   {
 \tuplet 3/2 { e''8 c''4 } f'4\rest e'2\rest |
} >>
\new Staff = "Two" %Shift chord left and e'' right
<< { \once \override NoteColumn.force-hshift = -0.5 1 }
   \\
   {
 \tuplet 3/2 { \once \override NoteColumn.force-hshift = 1.5 e''8
c''4 } f'4\rest e'2\rest |
} >>
\new Staff = "Three" %Shift chord left and shift both e'' and c'' right
<< { \once \override NoteColumn.force-hshift = -0.5 1 }
   \\
   {
 \tuplet 3/2 { \once \override NoteColumn.force-hshift = 1.5 e''8
\once \override NoteColumn.force-hshift = 1.5 c''4 } f'4\rest e'2\rest |
} >>
  >>
  \layout { }
}
%% SNIPPET %%

Guy Stalnaker
jimmyg...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: trouble adding space between systems

2017-07-31 Thread Reilly Farrell
Great points.  Your answers cleared up a few big misconceptions for me.

Indeed, LaTeX and lilypond-book will have the final say on integrating and
spacing musical systems, so the \newcommand trick was just the right
ingredient.

Thank you both!

On Mon, Jul 31, 2017 at 12:06 PM, Lukas-Fabian Moser  wrote:

> That would be because (as far as I understand) lilypond-book inserts your
> scores as single images, each containing one system. Hence, the space
> between systems that Lilypond would use plays no role here; instead, the
> spacing has to be defined in LaTeX.
>
> In my last large document,
>
> \newcommand{\betweenLilyPondSystem}[1]{\vspace{4mm}\linebreak}
>
> in the preamble of the LaTeX file did the trick.
>
> Best
> Lukas
>
> 2017-07-31 18:29 GMT+02:00 Reilly Farrell :
>
>> Thanks!  Your second solution:
>>
>> \paper {
>>   system-system-spacing.basic-distance = #20
>> }
>>
>> is just what I needed.  One thing I'm noticing, though, is that when I
>> compile melodies into a chapter using lilypond-book and pdfLaTeX, my
>> specifications for vertical spacing get ignored.  In other words, the
>> changes are reflected when I compile .ly files individually, but not when I
>> compile a chapter.
>>
>> (For reference, I've set system-system-spacing.basic-distance =
>> \globalOptions in each .ly file; globalOptions is a variable I've put into
>> a .ily file that affects formatting for all individual files.  The goal is
>> to be able to adjust the formatting for vertical spacing between systems
>> for all melodies by adjusting one variable rather than a line in each .ly
>> file, of which there are several.)
>>
>> Any feedback you have for why LaTeX might be ignoring the new solution
>> and how to overcome this problem are deeply appreciated.
>>
>> Thank you.
>>
>> On Sun, Jul 30, 2017 at 12:43 PM, Thomas Morley > > wrote:
>>
>>> Hi Reilly,
>>>
>>> please keep the list cc-ed until conservation turns real private
>>>
>>> 2017-07-30 19:35 GMT+02:00 Reilly Farrell :
>>> > Based on this feedback, I've been trying out the \paper block method
>>> listed
>>> > in the first link, which seems closest to what I would need.  I've been
>>> > having trouble getting this block to have an impact on the score,
>>> however.
>>> > Here's a sample of how I've been trying to use the \paper block
>>> solution:
>>> >
>>> > \paper {
>>> >   system-system-spacing.basic-distance = #3
>>> >   score-system-spacing =
>>> > #'((basic-distance . 12)
>>> >(minimum-distance . 6)
>>> >(padding . 1)
>>> >(stretchability . 12))
>>> > }
>>> >
>>> > \relative {
>>> > c'4 c'4 c4 c4 |
>>> > \break
>>> > e4 e4 e4 e4 |
>>> > \break
>>> > g4 g4 g4 g4 |
>>> > }
>>> >
>>> > Is there a step I've missed in the process of integrating \paper?
>>> >
>>> > Thank you for your support,
>>> > Reilly
>>>
>>> (1)
>>> The spacing machine _is_ complicated, no doubt. It can do a lot of
>>> stuff, though!
>>>
>>> First you need to make clear to yourself what kind of music you have
>>> and what _exactly_ you want to do.
>>>
>>> In the case of your example you have a score with a single Staff.
>>>
>>> You may want to distribute it's systems over the whole page. That would
>>> lead to
>>> \paper {
>>>   ragged-last-bottom = ##f
>>> }
>>>
>>> Or simply insert a little more space between them. That would lead to,
>>> p.e.
>>> \paper {
>>>   system-system-spacing.basic-distance = #30
>>> }
>>> I usually insert a high value first to see, whether it has an effect
>>> at all and to be sure that I've chosen the correct variable!!
>>>
>>> You may want more space before score starts. That would lead to, p.e.
>>> \paper {
>>>   system-system-spacing.basic-distance = #30
>>>   top-system-spacing.padding = 10
>>> }
>>>
>>> Though, if a markup is between top and score this variable doesn't
>>> apply anymore (\header will cause a markup!). You'd need to set
>>> spacing for top-markup and probably markup-system. That would lead to,
>>> p.e.
>>> \paper {
>>>   system-system-spacing.basic-distance = #30
>>>   top-system-spacing.padding = 10
>>>   top-markup-spacing.padding = 10
>>>   markup-system-spacing.basic-distance = 10
>>> }
>>> \header { title = "TITLE" }
>>> I'd let the now not more applying variables in \paper, because
>>> subsequent pages may need them (probably no header anymore or the
>>> like)
>>>
>>> Several more possibilities ...
>>>
>>> (2)
>>> Note the difference in syntax:
>>>   system-system-spacing.basic-distance = #30
>>>   as opposed to:
>>>   system-system-spacing =
>>> #'((basic-distance . 30)
>>>(minimum-distance . 6)
>>>(padding . 1)
>>>(stretchability . 12))
>>>
>>>
>>> Every of the spacing-variables has four possible entries:
>>> basic-distance, minimum-distance, padding, stretchability.
>>> The first syntax updates one single entry (basic-distance) with a value
>>> (30)
>>> The latter (re-)defines the whole list.

running midi2ly in frecobaldi 3.0

2017-07-31 Thread MING TSANG
hi lilyponders,
I did the following steps in frecobaldi - trying to import midi so as to 
produce lily text file
1. file - import - import midi2. selection box appeard : select midi file 
(created by lily ) - hit "open" button3. another box appeared - check "pitches 
in absolute mode" box - hit "run midi2ly" button4. nothing happened - no log 
entry and no lily code generated - just return before step 1.
What must I do to have the "un midi2ly" work?
Thank you,Ming___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: trouble adding space between systems

2017-07-31 Thread Lukas-Fabian Moser
That would be because (as far as I understand) lilypond-book inserts your
scores as single images, each containing one system. Hence, the space
between systems that Lilypond would use plays no role here; instead, the
spacing has to be defined in LaTeX.

In my last large document,

\newcommand{\betweenLilyPondSystem}[1]{\vspace{4mm}\linebreak}

in the preamble of the LaTeX file did the trick.

Best
Lukas

2017-07-31 18:29 GMT+02:00 Reilly Farrell :

> Thanks!  Your second solution:
>
> \paper {
>   system-system-spacing.basic-distance = #20
> }
>
> is just what I needed.  One thing I'm noticing, though, is that when I
> compile melodies into a chapter using lilypond-book and pdfLaTeX, my
> specifications for vertical spacing get ignored.  In other words, the
> changes are reflected when I compile .ly files individually, but not when I
> compile a chapter.
>
> (For reference, I've set system-system-spacing.basic-distance =
> \globalOptions in each .ly file; globalOptions is a variable I've put into
> a .ily file that affects formatting for all individual files.  The goal is
> to be able to adjust the formatting for vertical spacing between systems
> for all melodies by adjusting one variable rather than a line in each .ly
> file, of which there are several.)
>
> Any feedback you have for why LaTeX might be ignoring the new solution and
> how to overcome this problem are deeply appreciated.
>
> Thank you.
>
> On Sun, Jul 30, 2017 at 12:43 PM, Thomas Morley 
> wrote:
>
>> Hi Reilly,
>>
>> please keep the list cc-ed until conservation turns real private
>>
>> 2017-07-30 19:35 GMT+02:00 Reilly Farrell :
>> > Based on this feedback, I've been trying out the \paper block method
>> listed
>> > in the first link, which seems closest to what I would need.  I've been
>> > having trouble getting this block to have an impact on the score,
>> however.
>> > Here's a sample of how I've been trying to use the \paper block
>> solution:
>> >
>> > \paper {
>> >   system-system-spacing.basic-distance = #3
>> >   score-system-spacing =
>> > #'((basic-distance . 12)
>> >(minimum-distance . 6)
>> >(padding . 1)
>> >(stretchability . 12))
>> > }
>> >
>> > \relative {
>> > c'4 c'4 c4 c4 |
>> > \break
>> > e4 e4 e4 e4 |
>> > \break
>> > g4 g4 g4 g4 |
>> > }
>> >
>> > Is there a step I've missed in the process of integrating \paper?
>> >
>> > Thank you for your support,
>> > Reilly
>>
>> (1)
>> The spacing machine _is_ complicated, no doubt. It can do a lot of
>> stuff, though!
>>
>> First you need to make clear to yourself what kind of music you have
>> and what _exactly_ you want to do.
>>
>> In the case of your example you have a score with a single Staff.
>>
>> You may want to distribute it's systems over the whole page. That would
>> lead to
>> \paper {
>>   ragged-last-bottom = ##f
>> }
>>
>> Or simply insert a little more space between them. That would lead to,
>> p.e.
>> \paper {
>>   system-system-spacing.basic-distance = #30
>> }
>> I usually insert a high value first to see, whether it has an effect
>> at all and to be sure that I've chosen the correct variable!!
>>
>> You may want more space before score starts. That would lead to, p.e.
>> \paper {
>>   system-system-spacing.basic-distance = #30
>>   top-system-spacing.padding = 10
>> }
>>
>> Though, if a markup is between top and score this variable doesn't
>> apply anymore (\header will cause a markup!). You'd need to set
>> spacing for top-markup and probably markup-system. That would lead to,
>> p.e.
>> \paper {
>>   system-system-spacing.basic-distance = #30
>>   top-system-spacing.padding = 10
>>   top-markup-spacing.padding = 10
>>   markup-system-spacing.basic-distance = 10
>> }
>> \header { title = "TITLE" }
>> I'd let the now not more applying variables in \paper, because
>> subsequent pages may need them (probably no header anymore or the
>> like)
>>
>> Several more possibilities ...
>>
>> (2)
>> Note the difference in syntax:
>>   system-system-spacing.basic-distance = #30
>>   as opposed to:
>>   system-system-spacing =
>> #'((basic-distance . 30)
>>(minimum-distance . 6)
>>(padding . 1)
>>(stretchability . 12))
>>
>>
>> Every of the spacing-variables has four possible entries:
>> basic-distance, minimum-distance, padding, stretchability.
>> The first syntax updates one single entry (basic-distance) with a value
>> (30)
>> The latter (re-)defines the whole list.
>> Also see, http://lilypond.org/doc/v2.19/Documentation/notation/modifyi
>> ng-alists
>>
>> (3)
>> The four possible entries (basic-distance, minimum-distance, padding,
>> stretchability) have different meaning. See:
>> http://lilypond.org/doc/v2.19/Documentation/notation/flexibl
>> e-vertical-spacing-paper-variables#structure-of-flexibl
>> e-vertical-spacing-alists
>>
>> (4)
>> If you want to space the simultaneous happening contexts of a system, like
>> <<
>>   \new 

Re: trouble adding space between systems

2017-07-31 Thread David Wright
On Mon 31 Jul 2017 at 09:29:14 (-0700), Reilly Farrell wrote:
> Thanks!  Your second solution:
> 
> \paper {
>   system-system-spacing.basic-distance = #20
> }
> 
> is just what I needed.  One thing I'm noticing, though, is that when I
> compile melodies into a chapter using lilypond-book and pdfLaTeX, my
> specifications for vertical spacing get ignored.  In other words, the
> changes are reflected when I compile .ly files individually, but not when I
> compile a chapter.
[…]
> Any feedback you have for why LaTeX might be ignoring the new solution and
> how to overcome this problem are deeply appreciated.

As I see it, you have a higher level decision to make about which
system you want to have control over the final document. At the
moment, your earlier questions and their replies have been aimed at
path (1) where LilyPond is in control, and you add text to the music
using \markup.

Your last question would indicate a choice of path (2) where you hand
control to LaTeX through lilypond-book. The latter tears up your LP
music into separate systems and then reassembles them together with
any text, using LaTeX's methodology. That's why your vertical spacing
is ignored.

An alternative path (3, the one I happen to use) is to set the musical
(multisystem) sections into separate PDF files, automatically crop
them, then insert them into the LaTeX document with \includegraphics.
The LilyPond intra-score spacings are preserved within the PDFs, and
the inter-score/text spacings are controlled with the battery of
TeX/LaTeX glue commands.

Which approach you choose depends on the proportion of text/music,
your familiarity with the two systems, and how much flexibility and
control you really need to set your final document.

Cheers,
David.

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


Re: trouble adding space between systems

2017-07-31 Thread Reilly Farrell
Thanks!  Your second solution:

\paper {
  system-system-spacing.basic-distance = #20
}

is just what I needed.  One thing I'm noticing, though, is that when I
compile melodies into a chapter using lilypond-book and pdfLaTeX, my
specifications for vertical spacing get ignored.  In other words, the
changes are reflected when I compile .ly files individually, but not when I
compile a chapter.

(For reference, I've set system-system-spacing.basic-distance =
\globalOptions in each .ly file; globalOptions is a variable I've put into
a .ily file that affects formatting for all individual files.  The goal is
to be able to adjust the formatting for vertical spacing between systems
for all melodies by adjusting one variable rather than a line in each .ly
file, of which there are several.)

Any feedback you have for why LaTeX might be ignoring the new solution and
how to overcome this problem are deeply appreciated.

Thank you.

On Sun, Jul 30, 2017 at 12:43 PM, Thomas Morley 
wrote:

> Hi Reilly,
>
> please keep the list cc-ed until conservation turns real private
>
> 2017-07-30 19:35 GMT+02:00 Reilly Farrell :
> > Based on this feedback, I've been trying out the \paper block method
> listed
> > in the first link, which seems closest to what I would need.  I've been
> > having trouble getting this block to have an impact on the score,
> however.
> > Here's a sample of how I've been trying to use the \paper block solution:
> >
> > \paper {
> >   system-system-spacing.basic-distance = #3
> >   score-system-spacing =
> > #'((basic-distance . 12)
> >(minimum-distance . 6)
> >(padding . 1)
> >(stretchability . 12))
> > }
> >
> > \relative {
> > c'4 c'4 c4 c4 |
> > \break
> > e4 e4 e4 e4 |
> > \break
> > g4 g4 g4 g4 |
> > }
> >
> > Is there a step I've missed in the process of integrating \paper?
> >
> > Thank you for your support,
> > Reilly
>
> (1)
> The spacing machine _is_ complicated, no doubt. It can do a lot of
> stuff, though!
>
> First you need to make clear to yourself what kind of music you have
> and what _exactly_ you want to do.
>
> In the case of your example you have a score with a single Staff.
>
> You may want to distribute it's systems over the whole page. That would
> lead to
> \paper {
>   ragged-last-bottom = ##f
> }
>
> Or simply insert a little more space between them. That would lead to, p.e.
> \paper {
>   system-system-spacing.basic-distance = #30
> }
> I usually insert a high value first to see, whether it has an effect
> at all and to be sure that I've chosen the correct variable!!
>
> You may want more space before score starts. That would lead to, p.e.
> \paper {
>   system-system-spacing.basic-distance = #30
>   top-system-spacing.padding = 10
> }
>
> Though, if a markup is between top and score this variable doesn't
> apply anymore (\header will cause a markup!). You'd need to set
> spacing for top-markup and probably markup-system. That would lead to,
> p.e.
> \paper {
>   system-system-spacing.basic-distance = #30
>   top-system-spacing.padding = 10
>   top-markup-spacing.padding = 10
>   markup-system-spacing.basic-distance = 10
> }
> \header { title = "TITLE" }
> I'd let the now not more applying variables in \paper, because
> subsequent pages may need them (probably no header anymore or the
> like)
>
> Several more possibilities ...
>
> (2)
> Note the difference in syntax:
>   system-system-spacing.basic-distance = #30
>   as opposed to:
>   system-system-spacing =
> #'((basic-distance . 30)
>(minimum-distance . 6)
>(padding . 1)
>(stretchability . 12))
>
>
> Every of the spacing-variables has four possible entries:
> basic-distance, minimum-distance, padding, stretchability.
> The first syntax updates one single entry (basic-distance) with a value
> (30)
> The latter (re-)defines the whole list.
> Also see, http://lilypond.org/doc/v2.19/Documentation/notation/
> modifying-alists
>
> (3)
> The four possible entries (basic-distance, minimum-distance, padding,
> stretchability) have different meaning. See:
> http://lilypond.org/doc/v2.19/Documentation/notation/
> flexible-vertical-spacing-paper-variables#structure-of-
> flexible-vertical-spacing-alists
>
> (4)
> If you want to space the simultaneous happening contexts of a system, like
> <<
>   \new ChordNames ...
>   \new StaffGroup
> <<
>   \new Staff ...
>   \new Staff ...
> >>
>   \new Lyrics ...
> >>
>
> the paper-variables don't apply, rather study
> http://lilypond.org/doc/v2.19/Documentation/notation/
> flexible-vertical-spacing-within-systems
>
>
> Cheers,
>   Harm
>



-- 
Reilly Farrell
reillycfarr...@gmail.com
(650) 787-2751
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adding an introductory note(s)

2017-07-31 Thread Stephen Nesbitt
I transcribe a lot of fiddle tune music and I struggled with the anacrusis
element. I thought I'd share my experience and how I resolved them. There
may be a more elegant way, but my solution is working for me.

 The anacrusis limitations/quirks that I struggled with included the
following.
1) Placement of a NC (no chord) element above the pickup bar if no chord is
provided - which it typically isn't

2)  The inability to have more than one instance of partial. Fiddle tunes
are often notated with pickups for the A & B sections.

3) Lack of awareness that the final measure will be a "short" measure
missing the beats provided by the anacrusis. That is, if there is a 1 beat
anacrusis, then the final measure in the piece will only contain 3 beats.
If using bar validation, this will generate an error.

I worked around items 1 and 3 by adding a space (s) the length of the
anacrusis. In 4/4 time with a one beat pickup my first chord will be s4 and
my last note in the piece will also be an s4.

I get around item 2 by using repeats with two alternatives. In the A
section the final notes of the first alternative are the same notes as in
the pickup bar, while the final notes in the second alternative are the
pickup notes to the B section.

In the B section, the final notes in the first alternative are the pickup
notes of the B second, while the second alternative is my short measure.

Hope this makes sense.

-steve




>
>
> ___
> 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


Weird tremolo beams in whole-note tremolo.

2017-07-31 Thread Darek Cidlinský
Hello everybody,
I encountered some weird behavior of tremolo beams on whole
notes, as in this MWE:

\version "2.19.62"
{ \repeat tremolo 8 { c'16 c'' } }

This generates tremolo beams which are always horizontal and
placed right next to the higher of both notes. What I would
expect is a centered beam, sloped to roughly copy the difference
between the pitches.

I'd like to ask if it's a bug or a feature, and if there's any
way to work around it (other than push the individual beams
around using overrides or stop using whole-note tremolos :--)).

I use a hand-compiled v2.19.62.

Thanks,
D.

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


Re: Lilypond to read xml piano sheet music and output it with a number added to each note relative to middle c

2017-07-31 Thread David Kastrup
Petri Moilanen  writes:

> Can Lilypond be used to import xml piano sheet music

XML import quality is so-so.  Expect to hand-edit afterwards.

> and then run a snippet which will calculate a relative position for
> each note against middle c and output the same back as pdf having the
> number added below each note on the right and left staff ? The middle
> c would start from 1 and then b would be -1.
>
> I would like to automate the process so that I could run a command
> from the command line to process several xml files in a batch.
>
> If this cannot be done using a snippet, what other alternatives one
> could have ?

This is a basic engraver application:

\version "2.18.0"

scale-nos =
#(lambda (c)
  (let ((notes '()))
   (make-engraver
(listeners ((note-event this note)
		(let ((p (ly:event-property note 'pitch)))
		 (if (ly:pitch? p)
		  (set! notes (cons (ly:pitch-steps p) notes))
((process-acknowledged this)
 (if (pair? notes)
  (let ((grob (ly:engraver-make-grob this 'TextScript '(
   (set! (ly:grob-property grob 'text)
	#{ \markup \center-align \override #'(baseline-skip . 1.5)
	   \right-column
	   \finger #(map number->string (sort notes >)) #})
   (set! (ly:grob-property grob 'parent-alignment-X) CENTER)
   (set! notes '(

\new Staff \with { \consists \scale-nos }
{
  \partial 8 c'8 | 2. r8
  c'8 |  2. r8
  c'8 | 1 | \bar "|."
}
-- 
David Kastrup
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adding an introductory note(s)

2017-07-31 Thread Andrew Bernard
Hi Jacobe,

Lilypond is a rich and complex application. The manuals and learning
material are extensive. There's a vast amount of deep information. It often
happens that one can miss a section that may be obvious to other people.
It's not fair of anybody on this list to blame you for not being able to
find a section of the manual.

This list is precisely for supporting people with questions such as yours.
There is no such thing as a trivial issue. Please continue to participate
in the list. The only thing that people ask is that when faced with
difficulties, always provide a minimum working example, or MWE as they are
known, so that it is easier for people to assist.

Andrew



On 31 July 2017 at 17:02, Jacobe  wrote:

>
> I won't bother you guys with trivial issues again.
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adding an introductory note(s)

2017-07-31 Thread Thomas Morley
Hi Jacob,

2017-07-31 9:02 GMT+02:00 Jacobe :
> I'll admit I'm new to useing this program and computer
> codeing syntax in general.

Welcome to the pond.

> I won't bother you guys with trivial issues again.

Please always provide minimal code-examples.
http://lilypond.org/website/tiny-examples.html

I've read your initial mail right after you sent it, but had no clue
what you wanted. I'm still astonished how Simon could guess the
problem.
Images may illustrate your coding-problem, but we need to know a
minimal working example of your code to help without guessing.

Cheers,
  Harm

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


Re: Lilypond to read xml piano sheet music and output it with a number added to each note relative to middle c

2017-07-31 Thread Jacques Menu Muzhic
And how about chords?

JM

> Le 31 juil. 2017 à 09:40, Jacques Menu Muzhic  a écrit 
> :
> 
> Hello Petri,
> 
> Can you supply a drawing showing how you want the numbers placed? That’s not 
> clear to me.
> 
> JM
> 
>> Le 31 juil. 2017 à 08:34, Petri Moilanen  a 
>> écrit :
>> 
>> Can Lilypond be used to import xml piano sheet music and then run a snippet 
>> which will calculate a
>> relative position for each note against middle c and output the same back as 
>> pdf having the number
>> added below each note on the right and left staff ? The middle c would start 
>> from 1 and then b would
>> be -1.
>> 
>> I would like to automate the process so that I could run a command from the 
>> command line to process
>> several xml files in a batch.
>> 
>> If this cannot be done using a snippet, what other alternatives one could 
>> have ?
>> 
>> Best regards
>> 
>> Petri
>> ___
>> 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: Lilypond to read xml piano sheet music and output it with a number added to each note relative to middle c

2017-07-31 Thread Jacques Menu Muzhic
Hello Petri,

Can you supply a drawing showing how you want the numbers placed? That’s not 
clear to me.

JM

> Le 31 juil. 2017 à 08:34, Petri Moilanen  a 
> écrit :
> 
> Can Lilypond be used to import xml piano sheet music and then run a snippet 
> which will calculate a
> relative position for each note against middle c and output the same back as 
> pdf having the number
> added below each note on the right and left staff ? The middle c would start 
> from 1 and then b would
> be -1.
> 
> I would like to automate the process so that I could run a command from the 
> command line to process
> several xml files in a batch.
> 
> If this cannot be done using a snippet, what other alternatives one could 
> have ?
> 
> Best regards
> 
> Petri
> ___
> 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: Adding an introductory note(s)

2017-07-31 Thread Jacobe
Thanks for helping me. I'll admit I'm new to useing this program and computer
codeing syntax in general. I read the entire manual already and continue to
study it. Usualy I can find my own solutions. This one had me stumped and I
became frustrated after several hours of not getting anywhere. I couldn't
remember the term "anacrusis" for the life of me and found nothing on the
internet to tell me what it was called to find it in the manual. The thing
is that I can keep reading the manual but, nothing sticks in head until I
actualy apply it to a project. There is a lot of stuff that I don't
necessarily have a use for yet. So, I just don't remember reading it. I've
been transcibeing various basic 15th century pieces as a way to learn and
practice. I actualy assumed that it would be in the first chapter with
clefs, tempo marks, and time signatures being that it's a common thing that
goes next to these things. Not gunna lie, every time I try to do a new
function of some sort, I have issues. By working them out is how I
internalize the information of just automatically knowing how to do things.
I won't bother you guys with trivial issues again.
Thanks again, Jacob Turnbaugh



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Adding-an-introductory-note-s-tp204728p204733.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 to read xml piano sheet music and output it with a number added to each note relative to middle c

2017-07-31 Thread Petri Moilanen
Can Lilypond be used to import xml piano sheet music and then run a snippet
which will calculate a
relative position for each note against middle c and output the same back
as pdf having the number
added below each note on the right and left staff ? The middle c would
start from 1 and then b would
be -1.

I would like to automate the process so that I could run a command from the
command line to process
several xml files in a batch.

If this cannot be done using a snippet, what other alternatives one could
have ?

Best regards

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