Re: Header

2017-09-27 Thread Jan-Peter Voigt

Hi Mario,

Am 27.09.2017 um 22:43 schrieb Mario Moles:

Thanks for the answers!
Unfortunately, that's not what I'm looking for! What a pity! Can I hope 
for the future?




so, what are you looking for?
I use a markup for odd/evenFoorterMarkup that displays the current 
title. If there are other (non title) tocItems in between, it might be 
disturbed. But I only use that for collections of music so this is not 
the case in my use cases.


Jan-Peter


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


lilypond templates

2017-09-27 Thread Jan-Peter Voigt

Hi list,

today I want to show you a template engine for lilypond:
https://github.com/jpvoigt/lalily-templates

It is implemented as an openLilyLib package and can be loaded by the 
current oll-core implementation. I extracted it from my lalily project 
so that it is usable independent from the other lalily features. Right 
now it still has a dependency on the edition-engraver, but I will make 
the integration optional, so that it is usable without the EE.


Currently it lacks documentation, but I think the core set should be 
easy to understand.  On the GitHub-page is as simple example and with 
the project comes a more elaborate file to test different use cases.
I will create more documentation and example files soon, but I wished to 
make it public now.


Any questions or comments regarding this package are welcome.

Jan-Peter


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


Re: Header

2017-09-27 Thread Mario Moles

Thanks for the answers!
Unfortunately, that's not what I'm looking for! What a pity! Can I hope 
for the future?


mario

Il 26/09/2017 22:29, Simon Albrecht ha scritto:

On 25.09.2017 20:37, Mario Moles wrote:


Hi lilyponders!

How to make like in tha jpg?



Hi Mario,

using the index to the Notation Reference I could find 
. 
This shows that LilyPond allows for quite advanced use of automatic 
tables of content.


As mentioned, redefining evenHeaderMarkup and oddHeaderMarkup is 
another requirement for your use case.


However, in order to automatically produce a header like the LaTeX 
book classes do by default, one would need a way to insert markup 
corresponding to
– the last \tocItem that occurred in the \book “before” (or “above”) 
the respective HeaderMarkup in print
– disregarding \tocItems that don’t refer to “chapters” (whatever that 
may be)
– and not print it if there is a \tocItem of the “chapter” type on 
that same page.

It doesn’t seem like there is such a mechanism in LilyPond – yet.

Best, Simon



--

oiram/bin/selom

Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.

MIB-kernellinux-tester

Linux 

MIB Lilypond 
Frescobaldi 
Rosegarden 


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


Re: Creating a table in Lilypond?

2017-09-27 Thread David Kastrup
David Nalesnik  writes:

> Hi Ryan,
>
> On Wed, Sep 27, 2017 at 8:38 AM, Ryan McClure
>  wrote:
>> Hi everyone,
>>
>> It's been years since I've last used the mailing list...too long!
>>
>> I'm in the process of organizing my folk song collection for teaching, and I
>> want to use Lilypond to do it digitally. I need to create a table at the
>> bottom of my pages...like, an actual text table. I don't want to cut and
>> paste my Lilypond score into a document... Is there a way to create a text
>> table look-alike using \markup?
>>
>
>
> Yes, this great feature was introduced sometime in the 2.19 cycle.
> See 
> http://lilypond.org/doc/v2.19/Documentation/notation/text-markup-list-commands
>
> As far as I know, you can't use it in an actual \header block if
> that's what you're meaning to do (\header blocks don't seem to allow
> \markuplist commands, but I did manage to hack a way to do it.
> Perhaps someone will chime in with something I'm overlooking!)

Uh, \header blocks should allow \markuplist commands just fine, just not
for variables taking markups.  But you can always write

author = \column \table ...

to convert a markup list back into a single markup.

-- 
David Kastrup

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


Re: Click and Point Issue

2017-09-27 Thread David Kastrup
"Stephan Zitzmann"  writes:

> I have asked this question at the frescobaldi list, but Urs Liska gave me
> the advice to ask here and to forward my question and his answer.
>
> My question:
>
> This is a excerpt of a greater score:

removed since the answer is basically a repetition with instances of
\remote peppered in.

> If I am clicking on a note or  syllable in the note viewer I am landning not
> at the place, where I  am using the predefinied
> variable, I am landing where I definied the variables. So I have to scroll
> and I am lost a little bit in the code. This is not helpfull.

Well, LilyPond has no way to guess how complex your variables are and
whether you are going to use them just once or multiple times and where
to look for errors.  So it assumes you are interested in the actual
source location.

> Urs Liska answer:
>
> This is an issue with LilyPond, not with Frescobaldi. The point is
> that the "origin" which is saved in the graphical symbol points to the
> *definition* of it and not to where you use it.
>
> The only way I can see to overcome this is to change your variables
> like \ch or \dak to Scheme functions that massage that origin. This is
> somewhat more involved, and I don't see right now *how* complicated it
> would be and therefore whether it would be worth the trouble.

Well, it's not very complicated and might help with debugging.  Try
this.  You might want to try thinking of a better name, though.

\version "2.19.65"

remote =
#(define-scheme-function (mus) (ly:music?)
  (define-music-function () ()
   (music-map ly:set-origin! (ly:music-deep-copy mus

cha = \remote \lyricmode {
  cha -- ka -- ti -- ki

}

dak = \remote \lyricmode {
  da -- ka -- la

}

ch = \remote {a16 a a a}
da = \remote {\times 2/3 {a16 a a }}


TRB = {
  \set subdivideBeams = ##t

  \set baseMoment = #(ly:make-moment 1/8)
  \set beatStructure = #'(2 2 2 2)
}

TRA = {

  \unset subdivideBeams

  \unset baseMoment
  \unset beatStructure

}

\new DrumStaff {
  \override Staff.StaffSymbol.line-positions = #'(0 )

  \ch a16 a a a32 a
  \ch \ch
  \ch \ch
  \ch \ch
  \ch a16 a a a32 a
  a16 a a32 a a16 \ch
  \ch a16 a a a32 a
  \ch a16 a a a32 a
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \ch a16 a a a32 a
  a16 a a32 a a16 \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \ch \ch
  a16 a a a32 a \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch  a16 a a a32 a
  \ch  a16 a a a32 a
  \ch  a16 a a a32 a
  \ch  a16 a a a32 a
   \ch  a16 a a a16
   a16 a a32 a a16 a a32 a a16 a32 a
   a16 a a32 a a16 \ch
   a16 a a32 a a16 \ch
   \ch a32 a a16 a a
   a16 a a a32 a a32 a a16 a a
   
   \ch \ch
   \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \ch \ch
   \TRB
  \da \da \da \da
  \TRA
  a16 a a a32 a\ch
}




\addlyrics {
  \override LyricHyphen.minimum-distance = 1.5
  \revert LyricText.color \cha \cha  ba --
  \cha  \cha
  \cha \cha
  \cha \cha
  weg -- ta  -- ti -- ki \cha  ba --
  cha -- ka  -- ti -- ba -- da \cha
  weg -- ta  -- ti -- ki \cha  ba --
  \cha \cha  ba --
  \dak \dak \dak \dak
  \cha \cha
  \dak \dak da -- ba -- la ba -- la -- da
  \cha \cha
  \dak ba -- la -- da \dak \dak

  \cha \cha
  \dak \dak \dak \dak
  \cha \cha
  weg -- ta  -- ti -- ki \cha  ba --
  cha -- ka  -- ti -- ba -- da \cha
  \dak \dak \dak \dak
  \cha \cha
  \cha \cha
  weg -- ka -- ti -- ki  ba -- \cha
  weg -- ka -- ti -- ki \cha
  \cha \cha
  \cha \cha
  \cha \cha
  \cha \cha
  \cha \cha
  \cha \cha ba --
  \cha \cha ba --
  \cha \cha ba --
  \cha \cha ba --
   \cha \cha
   cha -- ka -- ti  bi -- ki
   cha -- ka  ba -- ti -- ki ba --
   cha -- ka -- ti  bi -- ki \cha
   cha -- ka -- ti  bi -- ki \cha
   \cha  cha -- ba --  ka -- ti -- ki
   weg -- ka -- ti -- ki  ba -- cha -- ba --  ka -- ti -- ki
   \cha \cha
\dak \dak \dak \dak
  \cha \cha
   \cha \cha
\dak \dak \dak \dak
  \cha ba -- \cha
   
}


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


Re: Creating a table in Lilypond?

2017-09-27 Thread David Nalesnik
Hi Ryan,

On Wed, Sep 27, 2017 at 8:38 AM, Ryan McClure
 wrote:
> Hi everyone,
>
> It's been years since I've last used the mailing list...too long!
>
> I'm in the process of organizing my folk song collection for teaching, and I
> want to use Lilypond to do it digitally. I need to create a table at the
> bottom of my pages...like, an actual text table. I don't want to cut and
> paste my Lilypond score into a document... Is there a way to create a text
> table look-alike using \markup?
>


Yes, this great feature was introduced sometime in the 2.19 cycle.
See 
http://lilypond.org/doc/v2.19/Documentation/notation/text-markup-list-commands

As far as I know, you can't use it in an actual \header block if
that's what you're meaning to do (\header blocks don't seem to allow
\markuplist commands, but I did manage to hack a way to do it.
Perhaps someone will chime in with something I'm overlooking!)

David

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


Re: Click and Point Issue

2017-09-27 Thread Kieren MacMillan
Hi Stephan,

> I think it is a kind of bug.
> Because of the resulting big unusibality.

As someone who reuses material all the time, I have also run into this issue.
I don't consider it a "bug", but rather just the current implementation (which 
is often useful).
If you search the list, you'll find a discussion where I suggest an improvement 
that I believe would solve your problem.

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Click and Point Issue

2017-09-27 Thread Stephan Zitzmann
I have asked this question at the frescobaldi list, but Urs Liska gave me
the advice to ask here and to forward my question and his answer.

My question:

This is a excerpt of a greater score:

\version "2.19.65"

cha = \lyricmode {
  cha -- ka -- ti -- ki

}

dak = \lyricmode {
  da -- ka -- la

}

ch = {a16 a a a}
da = {\times 2/3 {a16 a a }}


TRB = {
  \set subdivideBeams = ##t

  \set baseMoment = #(ly:make-moment 1/8)
  \set beatStructure = #'(2 2 2 2)
}

TRA = {

  \unset subdivideBeams

  \unset baseMoment
  \unset beatStructure

}

\new DrumStaff {
  \override Staff.StaffSymbol.line-positions = #'(0 )

  \ch a16 a a a32 a
  \ch \ch
  \ch \ch
  \ch \ch
  \ch a16 a a a32 a
  a16 a a32 a a16 \ch
  \ch a16 a a a32 a
  \ch a16 a a a32 a
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \ch a16 a a a32 a
  a16 a a32 a a16 \ch
  \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \ch \ch
  a16 a a a32 a \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch \ch
  \ch  a16 a a a32 a
  \ch  a16 a a a32 a
  \ch  a16 a a a32 a
  \ch  a16 a a a32 a
   \ch  a16 a a a16
   a16 a a32 a a16 a a32 a a16 a32 a
   a16 a a32 a a16 \ch
   a16 a a32 a a16 \ch
   \ch a32 a a16 a a
   a16 a a a32 a a32 a a16 a a
   
   \ch \ch
   \TRB
  \da \da \da \da
  \TRA
  \ch \ch
  \ch \ch
   \TRB
  \da \da \da \da
  \TRA
  a16 a a a32 a\ch
}




\addlyrics {
  \override LyricHyphen.minimum-distance = 1.5
  \revert LyricText.color \cha \cha  ba --
  \cha  \cha
  \cha \cha
  \cha \cha
  weg -- ta  -- ti -- ki \cha  ba --
  cha -- ka  -- ti -- ba -- da \cha
  weg -- ta  -- ti -- ki \cha  ba --
  \cha \cha  ba --
  \dak \dak \dak \dak
  \cha \cha
  \dak \dak da -- ba -- la ba -- la -- da
  \cha \cha
  \dak ba -- la -- da \dak \dak

  \cha \cha
  \dak \dak \dak \dak
  \cha \cha
  weg -- ta  -- ti -- ki \cha  ba --
  cha -- ka  -- ti -- ba -- da \cha
  \dak \dak \dak \dak
  \cha \cha
  \cha \cha
  weg -- ka -- ti -- ki  ba -- \cha
  weg -- ka -- ti -- ki \cha
  \cha \cha
  \cha \cha
  \cha \cha
  \cha \cha
  \cha \cha
  \cha \cha ba --
  \cha \cha ba --
  \cha \cha ba --
  \cha \cha ba --
   \cha \cha
   cha -- ka -- ti  bi -- ki
   cha -- ka  ba -- ti -- ki ba --
   cha -- ka -- ti  bi -- ki \cha
   cha -- ka -- ti  bi -- ki \cha
   \cha  cha -- ba --  ka -- ti -- ki
   weg -- ka -- ti -- ki  ba -- cha -- ba --  ka -- ti -- ki
   \cha \cha
\dak \dak \dak \dak
  \cha \cha
   \cha \cha
\dak \dak \dak \dak
  \cha ba -- \cha
   
}

If I am clicking on a note or  syllable in the note viewer I am landning not
at the place, where I  am using the predefinied
variable, I am landing where I definied the variables. So I have to scroll
and I am lost a little bit in the code. This is not helpfull.

Urs Liska answer:

This is an issue with LilyPond, not with Frescobaldi. The point is that the
"origin" which is saved in the graphical symbol points to the *definition*
of it and not to where you use it.

The only way I can see to overcome this is to change your variables like \ch
or \dak to Scheme functions that massage that origin. This is somewhat more
involved, and I don't see right now *how* complicated it would be and
therefore whether it would be worth the trouble.

But I suggest you repost your question (incorporating my comments) on the
lilypond-user mailing list because there are many more people who may be
able to help you.

Good luck
Urs

My personal opinion is, I do not need help. But I think it is a kind of bug.
Because of the resulting big unusibality.

Regards
Stephan


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


Creating a table in Lilypond?

2017-09-27 Thread Ryan McClure
Hi everyone,

It's been years since I've last used the mailing list...too long!

I'm in the process of organizing my folk song collection for teaching, and I
want to use Lilypond to do it digitally. I need to create a table at the
bottom of my pages...like, an actual text table. I don't want to cut and
paste my Lilypond score into a document... Is there a way to create a text
table look-alike using \markup?

Thanks!
-Ryan



-
Ryan McClure

Music Education Major, Shepherd University
Luna Music Engraving
www.lunamusicengraving.com 
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: automatic partwriter

2017-09-27 Thread Kieren MacMillan
Hi David,

> I wanted to share something which I think illustrates the power that
> Lily has over other popular notation software.

o_O

Amazing.

1. You are a force of nature.

2. The timing on this share couldn't have been better: in the next few months, 
I'll be giving presentations/lectures at several universities and colleges, and 
will be featuring Lilypond prominently in parts of those presentations. I want 
to include truly "mindset-altering" applications, and this definitely counts as 
such.

Thanks for all you do!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: automatic partwriter

2017-09-27 Thread Ben
On 9/26/2017 10:59 PM, David Nalesnik wrote:
> Hi all,
>
> I wanted to share something which I think illustrates the power that
> Lily has over other popular notation software.
>
> I spend a lot of time teaching partwriting to undergraduate music
> majors, and recently, suddenly, it occurred to me that anything as
> rule-bound as correct partwriting (I stress "correct" as opposed to
> "artistic" or even "interesting") would naturally be the province of
> computers.  A computer should be able to instantly provide all
> possible solutions to a problem with so many constraints.
>
> (1) a rather constrained range for the voice parts (a central octave
> for upper parts, slightly more for the bass--perhaps suitable to a
> beginning or an ending);
> (2) all parallel perfect intervals are disallowed;
> (3) consecutive fifths/octaves by contrary motion are disallowed;
> (3) approach to perfect fifths and octaves in outer voices by similar
> motion is disallowed unless the soprano moves by step ("direct fifths
> and octaves");  I'm aware that other practices may be more
> severe--easy to incorporate stricter requirements.  (See how I deal
> with parallels.)
> (4) voice parts may not cross or overlap.
> (5) adjacent upper voices may never be more than an octave apart;
> (6) certain intervals are disallowed (I do allow the diminished 5th
> for the sake of the lovely fa-ti-do in the example progression);
> (7) the bass is prevented from leaping over an octave (never thought
> of this until I saw preliminary output);
> (8) all chords are complete;
> (9) the root is doubled.
> (10) the leading tone must resolve to tonic unless it is in an inner
> voice, when it may drop to the dominant pitch.
>
>
> Anyway, sorry to go on so long.  FWIW...
>
> Comments welcome!
>
> Best,
>
> David
>

David,

This looks awesome...LilyPond is so powerful and capable for many
applications!

Thank you for sharing this with us!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user