Re: include all files in a folder

2016-08-28 Thread Joseph Chrestien
Hi,

I'm not sure at all, but you might want to try to create a scheme function 
calling the #scandir scheme function.

Otherwise, a rather unLilyPondic solution: call a Python or bash line from 
within lilypond using scheme function syscall :
That would include something like this :

#(define mycall '"\include $(ls *.ly)" > allIncludes.ly')
pyMx=#(define-music-function (parser location)()(system mycall);; or: (system* 
mycall ) #{ #})

Then \include allIncludes in your lily file.

Good luck,
Jo



On Mon, Aug 29, 2016 at 6:27 AM +0200, "Craig Dabelstein" 
> wrote:

Hi Lilyponders,

Is there some form of code for including all files in a folder?

Instead of entering every file on a separate line like this:

\include "../Notes/movtI/fluteI.ily"
\include "../Notes/movtI/fluteII.ily"
etc

Is there something like this that will work?

\include "../Notes/movtI/*.ily"

Any ideas?

All the best.

Craig


Craig Dabelstein
e:craig.dabelst...@gmail.com
[https://s3.amazonaws.com/images.wisestamp.com/icons_32/facebook.png]
 [https://s3.amazonaws.com/images.wisestamp.com/icons_32/linkedin.png] 


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


include all files in a folder

2016-08-28 Thread Craig Dabelstein
Hi Lilyponders,

Is there some form of code for including all files in a folder?

Instead of entering every file on a separate line like this:

\include "../Notes/movtI/fluteI.ily"
\include "../Notes/movtI/fluteII.ily"
etc

Is there something like this that will work?

\include "../Notes/movtI/*.ily"

Any ideas?

All the best.

Craig


*Craig Dabelstein*
e:craig.dabelst...@gmail.com


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


Re: Potential improvements to the homepage?

2016-08-28 Thread David Kastrup
David Pirotte  writes:

> Hello David,
>
>> > I was talking about the source code of these web sites,  
>
>> The "source code of these web sites" is also written in Texinfo.
>
> Nope, Guile, Guix and the other examples I gave all have their
> web-site source code
> written in scheme.
>
>> That's because Guile does not have its web site written in Texinfo.
>> LilyPond does.
>
> Guile's web-pages were not using sxml before the rewrite either, and
> it is in the perspective of a redesign/rewrite that I suggested to
> consider scheme/sxml, and in that respect, it does not matter actual
> pages are written in texinfo.
>
> But I understand you and most people who answered my suggestion
> believe it is not a good approach for Lilypond web pages, especially
> in regards of the translation in multiple languages.
>
> David
>
> ps:   for info, guile has a  'Texinfo Processing' module and manual entry

Sigh.  The web pages of LilyPond are written and translated by humans,
not some program.  They are written in Texinfo format, and an automated
process generates HTML (and other formats) from them.

Whatever language/system the web pages are supposed to be written in in
future, it will need to be managed by authors and translators of the
content.

A proposal where the questions of "who is going to do or manage the
ongoing work required to be done by various different people in future"
have no answer or a plan how to arrive at such answers is going to be
problematic.

This does not as much mean "$x is not a good approach for LilyPond web
pages" as it does that the current approach for LilyPond web pages
solves a number of problems that will still be pertinent when trying
other approaches.  If a proposal does not even try to address how that
could be done, that does not exactly provide promising prospects for
actually solving all of those problems once the project/web page is in
flight.

-- 
David Kastrup

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


Re: Potential improvements to the homepage?

2016-08-28 Thread David Pirotte
Hello David,

> > I was talking about the source code of these web sites,  

> The "source code of these web sites" is also written in Texinfo.

Nope,  Guile, Guix and the other examples I gave all have their web-site source 
code
written in scheme.

> That's because Guile does not have its web site written in Texinfo.
> LilyPond does.

Guile's web-pages were not using sxml before the rewrite either, and it is in 
the
perspective of a redesign/rewrite that I suggested to consider scheme/sxml, and
in that respect, it does not matter actual pages are written in texinfo.

But I understand you and most people who answered my suggestion believe
it is not a good approach for Lilypond web pages, especially in regards of the
translation in multiple languages.

David

ps: for info, guile has a  'Texinfo Processing' module and manual entry



pgpxkohFtwLjV.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: question about minor + fourth

2016-08-28 Thread David Kastrup
Thomas Morley  writes:

> 2016-08-28 15:56 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>>
>>> 2016-08-28 15:13 GMT+02:00 David Kastrup :
 Thomas Morley  writes:
>>>
> ;; Question
> ;; why this mapping? Obviously `text' selects from this list, but why? 
> --harm
>(texts
>  (map
>(lambda (x) (ly:music-property x 'text))
>(extract-typed-music m 'text-script-event)))
>(text (if (null? texts) #f (if omit-root (car texts) texts
>   (cons (if omit-root (cdr normalized) normalized) text)))

 Hm?  This looks for text scripts and takes the first one (if any) if
 omit-root is set (because of available rest arguments) or otherwise all
 scripts.
>>>
>>> Well, I used some "newer" features like `extract-typed-music' to
>>> rewrite the code from chord-name.scm, keeping all the original's
>>> functionality.
>>> But why is this functionality there at all?
>>
>> Which functionality?
>>
>>> In other words: I can't imagine a use-case where it matters.
>>
>> Where what matters?  What exactly in the code and/or the arguments it
>> interprets seems strange or (currently?) unused to you?
>
> Sorry, not being exact enough.

Well, at least not for getting additional input where one could work out
the problem in a manner where you feel confident about what to do.  And
that seems like the most likely course leading to changes.  At the
current point of time, I can pretty much follow what the code does but
without much of a clue how that fits into what needs to be done (or
might need to be done).  So if you have a problem with what the code
does, I'm pretty sure I can fill in any blanks as long as I know what
the blanks are.  But with regard to what we would _want_ it to do, I'd
need quite a bit more work.

And if it is I who invests that work, this is likely to end up in a bit
of "not invented here" syndrome where I form an opinion what to do that
is not particularly compatible with anybody else's.

>> Particularly if we want to replace this interface with a scheme function
>> (in LilyPond syntax) we need to figure out which parts of it are not
>> likely to see use anyway.
>
>
> Agreed.
>
> I'll do some more research and try to clear my thoughts, before coming
> back to this topic.

That would be great.

-- 
David Kastrup

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


Re: question about minor + fourth

2016-08-28 Thread Thomas Morley
2016-08-28 15:56 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> 2016-08-28 15:13 GMT+02:00 David Kastrup :
>>> Thomas Morley  writes:
>>
 ;; Question
 ;; why this mapping? Obviously `text' selects from this list, but why? 
 --harm
(texts
  (map
(lambda (x) (ly:music-property x 'text))
(extract-typed-music m 'text-script-event)))
(text (if (null? texts) #f (if omit-root (car texts) texts
   (cons (if omit-root (cdr normalized) normalized) text)))
>>>
>>> Hm?  This looks for text scripts and takes the first one (if any) if
>>> omit-root is set (because of available rest arguments) or otherwise all
>>> scripts.
>>
>> Well, I used some "newer" features like `extract-typed-music' to
>> rewrite the code from chord-name.scm, keeping all the original's
>> functionality.
>> But why is this functionality there at all?
>
> Which functionality?
>
>> In other words: I can't imagine a use-case where it matters.
>
> Where what matters?  What exactly in the code and/or the arguments it
> interprets seems strange or (currently?) unused to you?

Sorry, not being exact enough.

> Particularly if we want to replace this interface with a scheme function
> (in LilyPond syntax) we need to figure out which parts of it are not
> likely to see use anyway.


Agreed.

I'll do some more research and try to clear my thoughts, before coming
back to this topic.

Cheers,
  Harm

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


Re: Dynamics & simultaneous notes yield "programming error"

2016-08-28 Thread Anders Eriksson

On 2016-08-28 17:52, Joel C. Salomon wrote:

Compiling the attached file yields errors of the sort


programming error: asked to compute volume at +1.00 for dynamic span of 
duration 1.00 starting at 1
continuing, cross fingers



Don't know why but the error occurs when the midi is created!

MIDI output to `programming_error.mid'...Track...

[0]

[1

programming error: asked to compute volume at +1.00 for dynamic span 
of duration 1.00 starting at 1


continuing, cross fingers

programming error: asked to compute volume at +1.00 for dynamic span 
of duration 1.00 starting at 1


continuing, cross fingers

]


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


Re: Dynamics & simultaneous notes yield "programming error"

2016-08-28 Thread Joel C. Salomon
On Aug 28, 2016 12:07 PM, "Phil Holmes"  wrote:
> Which version of Lilypond, which operating system?

2.19.46 on Windows 10.

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


Re: Dynamics & simultaneous notes yield "programming error"

2016-08-28 Thread Phil Holmes

Which version of Lilypond, which operating system?

--
Phil Holmes


- Original Message - 
From: "Joel C. Salomon" 

To: "LilyPond Users" 
Sent: Sunday, August 28, 2016 4:52 PM
Subject: Dynamics & simultaneous notes yield "programming error"


Compiling the attached file yields errors of the sort

programming error: asked to compute volume at +1.00 for dynamic span 
of duration 1.00 starting at 1

continuing, cross fingers


If I replace the construct

   << { \voiceOne
   a1 |
   } \new Voice { \voiceTwo
   a,1 |
   } >> \oneVoice |

with

   << {a1} \\ {a,1} >>

this error goes away.

Can someone please explain what I’m doing wrong here?

—Joel C. Salomon







___
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


Dynamics & simultaneous notes yield "programming error"

2016-08-28 Thread Joel C. Salomon
Compiling the attached file yields errors of the sort

> programming error: asked to compute volume at +1.00 for dynamic span of 
> duration 1.00 starting at 1
> continuing, cross fingers

If I replace the construct

<< { \voiceOne
a1 |
} \new Voice { \voiceTwo
a,1 |
} >> \oneVoice |

with

<< {a1} \\ {a,1} >>

this error goes away.

Can someone please explain what I’m doing wrong here?

—Joel C. Salomon
\version "2.19"
\language "english"

dynamics = {
	s8\p	s8*7	|
	s1*2
	\bar "|."
}

lower = \relative c {
	\clef bass

	b'1	|

<< { \voiceOne
	a1			|
} \new Voice { \voiceTwo
	a,1			|
} >> \oneVoice			|

	d1	|
}

\score {
	\new PianoStaff
	<<
% 		\new Staff = "upper" \upper
		\new Dynamics = "dynamics" \dynamics
		\new Staff = "lower" \lower
	>>
	\layout {}
}

\score {
	\new PianoStaff
	<<
% 		\new Staff = "upper" << \upper \dynamics >>
		\new Staff = "lower" << \lower \dynamics >>
	>>
	\midi {}
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Dynamic marks and vertical space

2016-08-28 Thread Timofey Misarenkov
On Sat, 27 Aug 2016 02:29:15 +0200
Malte Meyn  wrote:


> Instead of extra-offset, use X-offset and Y-offset (in this case, 
> X-offset is sufficient). Are you sure it’s a "ff" and a "p" (separated) 
> and not a "ffp" (combined)? Because there is no \ffp command in 
> LilyPond, you can create one:
>ffp = #(make-dynamic-script "ffp")
> Or use make-dynamic-script directly (see below).

Thank you! X-offset do great.


-- 
Timofey Misarenkov 

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


Re: Song layout for overhead projection

2016-08-28 Thread Hans Aikema


> Begin forwarded message:
> 
> From: Hans Aikema 
> Subject: Re: Song layout for overhead projection
> Date: 28 August 2016 at 15:01:06 GMT+2
> To: Urs Liska 
> 
Accidentily hit reply instead of reply-to-all (to also include the list)

>> Op 28 aug. 2016 om 12:47 heeft Urs Liska  het volgende 
>> geschreven:
>> 
>> 
>> 
>> Am 28. August 2016 10:34:13 MESZ, schrieb Hans Aikema 
>> :
>>> What I use for songs for beamer projection is a combination of
>>> enlarging the fonts and music staffs and customizing paper-size and
>>> resolution to the effect of generating 1024x768 pixel PNGs with
>>> lilypond with large systems and lyrics so that they are suitable for
>>> projection <...>
>> Well, you can simply use PDF with a page size set to some 3/2 aspect ratio 
>> and increase the staff size until you have one system fit comfortably on one 
>> line. No need to create large pixel images.

True, but in our case we're embedding the slides in powerpoint presentations 
and powerpoint is in my experience very bad in image-handling, so we chose to 
optimize lilypond output for embedding in powerpoint (and thus match the 
physical display dimensions of the projector in the generated slide images)



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


Re: question about minor + fourth

2016-08-28 Thread David Kastrup
Thomas Morley  writes:

> 2016-08-28 15:13 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>
>>> ;; Question
>>> ;; why this mapping? Obviously `text' selects from this list, but why? 
>>> --harm
>>>(texts
>>>  (map
>>>(lambda (x) (ly:music-property x 'text))
>>>(extract-typed-music m 'text-script-event)))
>>>(text (if (null? texts) #f (if omit-root (car texts) texts
>>>   (cons (if omit-root (cdr normalized) normalized) text)))
>>
>> Hm?  This looks for text scripts and takes the first one (if any) if
>> omit-root is set (because of available rest arguments) or otherwise all
>> scripts.
>
> Well, I used some "newer" features like `extract-typed-music' to
> rewrite the code from chord-name.scm, keeping all the original's
> functionality.
> But why is this functionality there at all?

Which functionality?

> In other words: I can't imagine a use-case where it matters.

Where what matters?  What exactly in the code and/or the arguments it
interprets seems strange or (currently?) unused to you?

Particularly if we want to replace this interface with a scheme function
(in LilyPond syntax) we need to figure out which parts of it are not
likely to see use anyway.

-- 
David Kastrup

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


Re: question about minor + fourth

2016-08-28 Thread Thomas Morley
2016-08-28 15:13 GMT+02:00 David Kastrup :
> Thomas Morley  writes:

>> ;; Question
>> ;; why this mapping? Obviously `text' selects from this list, but why? --harm
>>(texts
>>  (map
>>(lambda (x) (ly:music-property x 'text))
>>(extract-typed-music m 'text-script-event)))
>>(text (if (null? texts) #f (if omit-root (car texts) texts
>>   (cons (if omit-root (cdr normalized) normalized) text)))
>
> Hm?  This looks for text scripts and takes the first one (if any) if
> omit-root is set (because of available rest arguments) or otherwise all
> scripts.

Well, I used some "newer" features like `extract-typed-music' to
rewrite the code from chord-name.scm, keeping all the original's
functionality.
But why is this functionality there at all?
In other words: I can't imagine a use-case where it matters.

Cheers,
  Harm

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


Re: question about minor + fourth

2016-08-28 Thread David Kastrup
Thomas Morley  writes:

> Here a more elaborate code, which could probably replace current
> state. Works with default note-mode and chordmode, even mixed.
> Though, questions in-line, anyone with some hints?
>
> \version "2.18.2"
>
> %%;; fixme we should standardize on omit-root (or the other one.)
> %%;; perhaps the default should also be reversed --hwn
> #(define (my-sequential-music-to-chord-exceptions seq . rest)

Like with \beamExceptions , this should probably be available as a
scheme function.

>   ;; TODO change doc-string
>   "Transform sequential music SEQ of type <>-\\markup{ foobar }
> to (cons CDE-PITCHES FOOBAR-MARKUP), or to (cons DE-PITCHES
> FOOBAR-MARKUP) if OMIT-ROOT is given and non-false.
> "
>
>   (define (chord-to-exception-entry m)
> (let* ((omit-root (and (pair? rest) (car rest)))
>(pitches (event-chord-pitches m))
>(sorted (sort pitches ly:pitch(root (car sorted))
>
>;; ugh?
>;;(diff (ly:pitch-diff root (ly:make-pitch -1 0 0)))
>;; FIXME.  This results in # ...,
>;; but that is what we need because default octave for
>;; \chords has changed to c' too?
>(diff (ly:pitch-diff root (ly:make-pitch 0 0 0)))
>(normalized (map (lambda (x) (ly:pitch-diff x diff)) sorted))
> ;; Question
> ;; why this mapping? Obviously `text' selects from this list, but why? --harm
>(texts
>  (map
>(lambda (x) (ly:music-property x 'text))
>(extract-typed-music m 'text-script-event)))
>(text (if (null? texts) #f (if omit-root (car texts) texts
>   (cons (if omit-root (cdr normalized) normalized) text)))

Hm?  This looks for text scripts and takes the first one (if any) if
omit-root is set (because of available rest arguments) or otherwise all
scripts.

-- 
David Kastrup

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


Re: custom guitar tuning

2016-08-28 Thread Pierre Perol-Schneider
Hi Benjamin,

See:
http://lilypond.org/doc/v2.18/Documentation/snippets/fretted-strings#fretted-strings-customizing-fretboard-fret-diagrams

BTW how about:

\version "2.18.2"
\include "predefined-guitar-fretboards.ly"

my-tuning = \stringTuning  %% => for example

\layout {
  \context {
\FretBoards
stringTunings = #my-tuning
  }
}


<<
  \chords {
c1
  }
  \new FretBoards {
\chordmode {
  c1
}
  }
  \new Voice {
c'1
  }
>>

Cheers,
Pierre


2016-08-28 14:54 GMT+02:00 Benjamin Poly :

> Hi,
>
> On the top of my sheet, I want to display the diagrams and the names of
> the chords used in the song.
> The problem is I use a different guitar tuning than the standard one (the
> first string is one step lower).
> Is it possible to customize chords diagrams and if so how ? I didn't find
> anything about it in the documentation or in forums.
>
> --
> *Benjamin Poly*
>
> ___
> 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


custom guitar tuning

2016-08-28 Thread Benjamin Poly
Hi,

On the top of my sheet, I want to display the diagrams and the names of
the chords used in the song.
The problem is I use a different guitar tuning than the standard one
(the first string is one step lower).
Is it possible to customize chords diagrams and if so how ? I didn't
find anything about it in the documentation or in forums.

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


Re: Advice on building flash drive for Spanish speaker

2016-08-28 Thread Ralph Palmer
On Sat, Aug 27, 2016 at 3:01 PM, Karlin High  wrote:

> On 8/24/2016 1:03 PM, Ralph Palmer wrote:
> > Greetings -
> >
> > I'm trying to build a flash drive for a Spanish speaker. I'd like to
> > include the stable Spanish versions of LilyPond (probably 2.18.2) and
> > Frescobaldi. The friend lives in Cuba, so I'll probably not be able to
> > use the 64-bit version. They are running Windows 7.
>
>
> Recently, I had a similar request. Someone without Internet access
> wanted more LilyPond documentation, the Snippet Repository in
> particular. I ended up sending them a CD that included the LilyPond
> 2.18.2 Doc tarball:
>
> http://lilypond.org/all.html
> http://lilypond.org/downloads/binaries/documentation/lilypond-2.18.2-1.
> documentation.tar.bz2
>
> Near as I can tell, that includes all available LilyPond documentation
> and translations.
>
> I also included LilyPond 2.18.2:
> http://download.linuxaudio.org/lilypond/binaries/mingw/
> lilypond-2.18.2-1.mingw.exe
>
> And Frescobaldi 2.19.0:
> https://github.com/wbsoft/frescobaldi/releases/download/
> v2.19.0/Frescobaldi.Setup.2.19.0.exe
>
> Apparently translations are included in those setup files.
>

Thank you, Karlin High.

I was not aware of the documentation tarball, and I'm not sure they would
know how to deal with it. I'm hoping my solution works. I included all (I
hope) of the LilyPond Spanish html doc files. If it didn't work, I'll try
again with your suggestions.

All the best,

Ralph


-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: makam.ly and Staff.keySignature

2016-08-28 Thread Hans Åberg

> On 28 Aug 2016, at 13:11, bb  wrote:
> 
> Thank you for your help and example some days ago! Sorry, I was busy and 
> therefore my delayed thanks.

You are welcome. If you want some source code, drop me a note-I updated 
Graham’s regular.ly to LilyPond 2.19.45.



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


Re: Song layout for overhead projection

2016-08-28 Thread Klaus Blum
Am 27.08.2016 um 23:26 schrieb lilypond-user-requ...@gnu.org:
> I have a song transcribed in lilypond notation. It prints very nicely on
> one page, like you might see in a hymnal. How do I print that same song so
> that it could be projected on a screen? E.g. printed in landscape, broken
> up over multiple pages and song verses printed separately and in sequence
> instead of all together.


Hi David and David,

here is another way that I'm using at the moment. It's still work in
progress and hence far from perfect.  ;-)

I have two different include files (for projection resp. printing) with some
layout settings and things like:
% --
% (for projection: Beamer-Def.ily)
VersionIndicator = 1   %  will be used in score definitions
brBeam = {\break}
brPrint = {}
neueFolie = \pageBreak
neueSeite = {}
% --
% (for printing: Print-Def.ily)
VersionIndicator = 2
brBeam = {}
brPrint = {\break}
neueFolie = {}
neueSeite = \pageBreak
% --

Depending on what definition file is included, one of these commands will
result in a (page) break or simply nothing.
By that, you can manually optimize the layout both for printing and
projection.

For every song I create a ly file. If I want to create a document containing
multiple songs, I just copy the contents subsequently into one file. I just
have to take care that there's only one include statement at the top.

I'll try to attach an example (
http://lilypond.1069038.n5.nabble.com/User-f3.html seems to be somewhat out
of date, so I don't know where this will end up).
Most comments are in German, but I can add English explanations if anybody
is interested.

Hope to help,
Klaus

Projector.pdf
  
Print.pdf   
Print_(condensed).pdf
  
---_Beamer-Def.ily
  
---_Print-Def.ily
  
Example.ly   



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-Song-layout-for-overhead-projection-tp193975.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: question about minor + fourth

2016-08-28 Thread Thomas Morley
2016-08-28 10:33 GMT+02:00 Thomas Morley :
> 2016-08-28 8:19 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>>
>>> 2016-08-28 0:19 GMT+02:00 Benjamin Poly :
 Thanks for the code you sent me in private Jacques, it's full of useful
 examples but I still can't make this particular chord work.

 I want to display a minor chord with a fourth like this: "Am (add4)". 
 That's
 all I want to do.
 First I'm surprised that I have to specify the chord (in the variable
 chExceptionMusic) in a note to note format (in this case ). Is it
 not possible to specify it in a chord name format ?
>>>
>>> You would need to do it in \chordmode but there the "-"-sign has a
>>> different meaning,
>>
>> One can use _ here I guess.  Unpretty, yes.
>
>
> An in-ly-file proof of concept:
[...]

Here a more elaborate code, which could probably replace current
state. Works with default note-mode and chordmode, even mixed.
Though, questions in-line, anyone with some hints?

\version "2.18.2"

%%;; fixme we should standardize on omit-root (or the other one.)
%%;; perhaps the default should also be reversed --hwn
#(define (my-sequential-music-to-chord-exceptions seq . rest)
  ;; TODO change doc-string
  "Transform sequential music SEQ of type <>-\\markup{ foobar }
to (cons CDE-PITCHES FOOBAR-MARKUP), or to (cons DE-PITCHES
FOOBAR-MARKUP) if OMIT-ROOT is given and non-false.
"

  (define (chord-to-exception-entry m)
(let* ((omit-root (and (pair? rest) (car rest)))
   (pitches (event-chord-pitches m))
   (sorted (sort pitches ly:pitch ...,
   ;; but that is what we need because default octave for
   ;; \chords has changed to c' too?
   (diff (ly:pitch-diff root (ly:make-pitch 0 0 0)))
   (normalized (map (lambda (x) (ly:pitch-diff x diff)) sorted))
;; Question
;; why this mapping? Obviously `text' selects from this list, but why? --harm
   (texts
 (map
   (lambda (x) (ly:music-property x 'text))
   (extract-typed-music m 'text-script-event)))
   (text (if (null? texts) #f (if omit-root (car texts) texts
  (cons (if omit-root (cdr normalized) normalized) text)))

;; Question
;; is it really needed to check for ZERO-MOMENT? --harm
  (define (is-sane-ev-chrd? m)
 (not (equal? ZERO-MOMENT (ly:music-length m

  (let* ((elts (filter is-sane-ev-chrd? (extract-typed-music seq 'event-chord)))
 (alist (map chord-to-exception-entry elts)))

;; Question
;; why this filtering? Looks strange, and I see no difference --harm
;(filter (lambda (x) (cdr x)) alist)
alist))


%% EXAMPLE


%% define the new behaviour
chExceptionMusic = {
  1-\markup { \super "7<" }
  \chordmode {
a1:m4.5_\markup { m (add 4) }
c1:6_\markup { \super "major plus 6" }
  }
  1-\markup { \super "major9" }
}

%% add it to other exceptional settings
chExceptions =
#(append
  (my-sequential-music-to-chord-exceptions
chExceptionMusic
  #t)
  ignatzekExceptions)

m = \chordmode { c:7+ a:m4.5 c:6 c:7+.9 }

<<
  \new ChordNames
%% use the new appearance in this context
\with { chordNameExceptions = #chExceptions }
\m
  \new Staff \m
>>

Cheers,
  Harm

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


Re: question about minor + fourth

2016-08-28 Thread Benjamin Poly
Awesome it's working perfectly !

Thank you very much for your help :)

Le 28/08/2016 10:33, Thomas Morley a écrit :
> 2016-08-28 8:19 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>>
>>> 2016-08-28 0:19 GMT+02:00 Benjamin Poly :
 Thanks for the code you sent me in private Jacques, it's full of useful
 examples but I still can't make this particular chord work.

 I want to display a minor chord with a fourth like this: "Am (add4)". 
 That's
 all I want to do.
 First I'm surprised that I have to specify the chord (in the variable
 chExceptionMusic) in a note to note format (in this case ). Is it
 not possible to specify it in a chord name format ?
>>> You would need to do it in \chordmode but there the "-"-sign has a
>>> different meaning,
>> One can use _ here I guess.  Unpretty, yes.
>
> An in-ly-file proof of concept:
>
> \version "2.18.2"
>
> %% define the new behaviour
> chExceptionMusic = {
>   \chordmode {
> a1:m4.5_\markup { m (add 4) }
> c1:6_\markup { \super "major plus 6" }
>   }
> }
>
> %% add it to other exceptional settings
> chExceptions =
> #(append
>   (sequential-music-to-chord-exceptions
> (make-sequential-music
>   (extract-named-music chExceptionMusic 'EventChord))
>   #t)
>   ignatzekExceptions)
>
> m = \chordmode { a:m4.5 c:6 }
>
> <<
>   \new ChordNames
> %% use the new namings in this context
> \with { chordNameExceptions = #chExceptions }
> \m
>   \new Staff \m
>
> Didn't look in the source-code for now, though.
>
> Should I go for it?
> What do people think?
>
> Cheers,
>   Harm

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


Re: makam.ly and Staff.keySignature

2016-08-28 Thread bb
Thank you for your help and example some days ago! Sorry, I was busy and 
therefore my delayed thanks.


Regards

Am 24.08.2016 um 18:39 schrieb Hans Åberg:

On 23 Aug 2016, at 21:45, Blöchl Bernhard  
wrote:
I use Farahfaza ( http://www.maqamworld.com/maqamat/nahawand.html#farahfaza ), 
that is a Nahawand transposed to g and compares to our g minor.

I posted all the Arabic maqam on this site in Helmholtz-Ellis notation here 
[1]. For traditional Arabic notation, merely use a different set of glyphs, 
though this notation lacks two accidentals, those on the site with up arrows.

1. https://lists.gnu.org/archive/html/lilypond-user/2016-02/msg00607.html





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


Re: Song layout for overhead projection

2016-08-28 Thread Urs Liska


Am 28. August 2016 10:34:13 MESZ, schrieb Hans Aikema :
>What I use for songs for beamer projection is a combination of
>enlarging the fonts and music staffs and customizing paper-size and
>resolution to the effect of generating 1024x768 pixel PNGs with
>lilypond with large systems and lyrics so that they are suitable for
>projection. I also use a custom font for the lyrics and a transparant
>background.
>Attached is the lilypond source that I use for customizing font and
>pagesizing.
>
>The parts I used (with trial and error incrementally until I got to the
>desired result of PNGs of size 1024x768 px with lilypond command-line
>switch fpng) are:
>
>#(ly:set-option 'resolution 102.4) 
>
>and within the \paper section:
>paper-width = 10\in
>paper-height = 7.5\in
>resolution = 300
>

Well, you can simply use PDF with a page size set to some 3/2 aspect ratio and 
increase the staff size until you have one system fit comfortably on one line. 
No need to create large pixel images.

>
>The songs I create using a “ \repeat unfold” for the music part that
>ends in a \pageBreak to force page-break in between verses and a lyrics
>that is a concatenation of all verses.

+1

>
>
>
>
>
>
>regards,
>Hans
>
>
>> On 28 Aug 2016, at 06:32, David Wright 
>wrote:
>> 
>> On Sat 27 Aug 2016 at 14:18:06 (-0600), David F. wrote:
>>> 
>>> I have a song transcribed in lilypond notation.  It prints very
>nicely on one page, like you might see in a hymnal.  How do I print
>that same song so that it could be projected on a screen?  E.g. printed
>in landscape, broken up over multiple pages and song verses printed
>separately and in sequence instead of all together.
>>> 
>>> I’m pretty sure I could manually reconstruct the lilypond song file
>to achieve this, but I wondering if there are any built in capabilities
>that could achieve most or all of what I want.
>> 
>> Not to my knowledge, but that only shows its limits. I can only
>> recommend careful use of stereotyped \include files. So for
>landscape,
>> $ cat LilyLib/Letter-landscape.ily
>> \version "2.18.2"
>> \paper {
>>  #(set-paper-size "letter" 'landscape)
>>  top-margin = ...
>>  left-margin = ...
>>  right-margin = ...
>>  bottom-margin = ...
>> }
>> where the margins are slightly complicated by the fact that the
>> printer is symmetrical wrt portrait but not wrt landscape.
>> My "typical" hymn (most are not, which is why I typeset them)
>> file ends with something like
>> 
>> \include "Midi-satb.ily"
>> \score {
>>  \transpose f f
>>  \new GrandStaff <<
>>\new Staff <<
>>  \clef treble \global
>>  \new NullVoice = valign { \voiceOne \align }
>>  \new Lyrics \lyricsto valign { \texti }
>>  \new Lyrics \lyricsto valign { \textii }
>>  \new Lyrics \lyricsto valign { \textiii }
>>  \new Lyrics \lyricsto valign { \textiv }
>>  \new Lyrics \lyricsto valign { \textv }
>>  \new Voice { \voiceOne \soprano }
>>  \new Voice { \voiceTwo \alto }
 
>>\new Staff <<
>>  \clef bass \global
>>  \new Voice { \voiceOne \tenor }
>>  \new Voice { \voiceTwo \bass }
 
 
>>  \layout { }
>> }
>> 
>> so the obvious way would be to put that in a hymn-verse.ily
>> file with the lyrics lines replaced by just
>>  \new Lyrics \lyricsto valign { \text }
>> and a \pagebreak at the end, then finish the hymn source with
>> text = \texti
>> \include "hymn-verse.ily"
>> text = \textii
>> \include "hymn-verse.ily"
>> text = \textiii
>> \include "hymn-verse.ily"
>> text = \textiv
>> \include "hymn-verse.ily"
>> text = \textv
>> \include "hymn-verse.ily"
>> 
>> Sorry not to be more sophisticated.
>> 
>> Cheers,
>> David.
>> 
>> ___
>> 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

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

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


Re: Song layout for overhead projection

2016-08-28 Thread Hans Aikema
What I use for songs for beamer projection is a combination of enlarging the 
fonts and music staffs and customizing paper-size and resolution to the effect 
of generating 1024x768 pixel PNGs with lilypond with large systems and lyrics 
so that they are suitable for projection. I also use a custom font for the 
lyrics and a transparant background.
Attached is the lilypond source that I use for customizing font and pagesizing.

The parts I used (with trial and error incrementally until I got to the desired 
result of PNGs of size 1024x768 px with lilypond command-line switch fpng) are:

#(ly:set-option 'resolution 102.4) 

and within the \paper section:
paper-width = 10\in
paper-height = 7.5\in
resolution = 300


The songs I create using a “ \repeat unfold” for the music part that ends in a 
\pageBreak to force page-break in between verses and a lyrics that is a 
concatenation of all verses.


BeamerFontAndPage.ly
Description: Binary data


regards,
Hans


> On 28 Aug 2016, at 06:32, David Wright  wrote:
> 
> On Sat 27 Aug 2016 at 14:18:06 (-0600), David F. wrote:
>> 
>> I have a song transcribed in lilypond notation.  It prints very nicely on 
>> one page, like you might see in a hymnal.  How do I print that same song so 
>> that it could be projected on a screen?  E.g. printed in landscape, broken 
>> up over multiple pages and song verses printed separately and in sequence 
>> instead of all together.
>> 
>> I’m pretty sure I could manually reconstruct the lilypond song file to 
>> achieve this, but I wondering if there are any built in capabilities that 
>> could achieve most or all of what I want.
> 
> Not to my knowledge, but that only shows its limits. I can only
> recommend careful use of stereotyped \include files. So for landscape,
> $ cat LilyLib/Letter-landscape.ily
> \version "2.18.2"
> \paper {
>  #(set-paper-size "letter" 'landscape)
>  top-margin = ...
>  left-margin = ...
>  right-margin = ...
>  bottom-margin = ...
> }
> where the margins are slightly complicated by the fact that the
> printer is symmetrical wrt portrait but not wrt landscape.
> My "typical" hymn (most are not, which is why I typeset them)
> file ends with something like
> 
> \include "Midi-satb.ily"
> \score {
>  \transpose f f
>  \new GrandStaff <<
>\new Staff <<
>  \clef treble \global
>  \new NullVoice = valign { \voiceOne \align }
>  \new Lyrics \lyricsto valign { \texti }
>  \new Lyrics \lyricsto valign { \textii }
>  \new Lyrics \lyricsto valign { \textiii }
>  \new Lyrics \lyricsto valign { \textiv }
>  \new Lyrics \lyricsto valign { \textv }
>  \new Voice { \voiceOne \soprano }
>  \new Voice { \voiceTwo \alto }
>>> 
>\new Staff <<
>  \clef bass \global
>  \new Voice { \voiceOne \tenor }
>  \new Voice { \voiceTwo \bass }
>>> 
>>> 
>  \layout { }
> }
> 
> so the obvious way would be to put that in a hymn-verse.ily
> file with the lyrics lines replaced by just
>  \new Lyrics \lyricsto valign { \text }
> and a \pagebreak at the end, then finish the hymn source with
> text = \texti
> \include "hymn-verse.ily"
> text = \textii
> \include "hymn-verse.ily"
> text = \textiii
> \include "hymn-verse.ily"
> text = \textiv
> \include "hymn-verse.ily"
> text = \textv
> \include "hymn-verse.ily"
> 
> Sorry not to be more sophisticated.
> 
> Cheers,
> David.
> 
> ___
> 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: question about minor + fourth

2016-08-28 Thread Thomas Morley
2016-08-28 8:19 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> 2016-08-28 0:19 GMT+02:00 Benjamin Poly :
>>> Thanks for the code you sent me in private Jacques, it's full of useful
>>> examples but I still can't make this particular chord work.
>>>
>>> I want to display a minor chord with a fourth like this: "Am (add4)". That's
>>> all I want to do.
>>> First I'm surprised that I have to specify the chord (in the variable
>>> chExceptionMusic) in a note to note format (in this case ). Is it
>>> not possible to specify it in a chord name format ?
>>
>> You would need to do it in \chordmode but there the "-"-sign has a
>> different meaning,
>
> One can use _ here I guess.  Unpretty, yes.


An in-ly-file proof of concept:

\version "2.18.2"

%% define the new behaviour
chExceptionMusic = {
  \chordmode {
a1:m4.5_\markup { m (add 4) }
c1:6_\markup { \super "major plus 6" }
  }
}

%% add it to other exceptional settings
chExceptions =
#(append
  (sequential-music-to-chord-exceptions
(make-sequential-music
  (extract-named-music chExceptionMusic 'EventChord))
  #t)
  ignatzekExceptions)

m = \chordmode { a:m4.5 c:6 }

<<
  \new ChordNames
%% use the new namings in this context
\with { chordNameExceptions = #chExceptions }
\m
  \new Staff \m
>>


Didn't look in the source-code for now, though.

Should I go for it?
What do people think?

Cheers,
  Harm

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


Re: question about minor + fourth

2016-08-28 Thread David Kastrup
David Kastrup  writes:

> Thomas Morley  writes:
>
>> 2016-08-28 0:19 GMT+02:00 Benjamin Poly :
>>> Thanks for the code you sent me in private Jacques, it's full of useful
>>> examples but I still can't make this particular chord work.
>>>
>>> I want to display a minor chord with a fourth like this: "Am (add4)". That's
>>> all I want to do.
>>> First I'm surprised that I have to specify the chord (in the variable
>>> chExceptionMusic) in a note to note format (in this case ). Is it
>>> not possible to specify it in a chord name format ?
>>
>> You would need to do it in \chordmode but there the "-"-sign has a
>> different meaning,
>
> One can use _ here I guess.  Unpretty, yes.
>
>> not to mention that TextScript is not allowed in ChordNames for this
>> (and probably other) reason(s).
>
> \chords \with { \consists "Script_engraver" }
> {
>   c_\markup {C it is}
> }
>
> does not complain but does nothing I can see with the script.  Probably
> just missing some crucial incantation...

Sigh.  Text_engraver rather than Script_engraver , of course.  At any
rate, \chordmode is not just for ChordNames anyway.  You can use it fine
in a normal Staff (which would make more sense here anyway).  Or a
FretBoards context.

-- 
David Kastrup

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


Re: Decrescendo on last note.

2016-08-28 Thread David Kastrup
"Evan O'Dorney"  writes:

> Hi everyone,
>
> For a change, I'm not posting a question or feature request. Instead, I've
> noticed that quite a few Lilypond users have asked how to typeset a hairpin
> (typically a decrescendo) on the last note of a piece, extending all the
> way to the final barline. Various solutions have been posted, but none as
> simple as this one I have found: add the zero-length spacer rest
>
> s1*0\!
>
> to the end of the piece. For instance:
>
> \relative c' {
>   e1 d c\> \bar "|." s1*0\!
> }

Better add <> instead.  Compare


\relative c' {
  e1 d c\> \bar "|." s1*0\!
} \addlyrics { What is this? }

\relative c' {
  e1 d c\> \bar "|." <>\!
} \addlyrics { What is this? }


Since most users are not able to figure out the reason behind that
problem, recommending the use of s1*0 _particularly_ at the end of the
piece is asking for trouble.

-- 
David Kastrup

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


Re: question about minor + fourth

2016-08-28 Thread David Kastrup
Thomas Morley  writes:

> 2016-08-28 0:19 GMT+02:00 Benjamin Poly :
>> Thanks for the code you sent me in private Jacques, it's full of useful
>> examples but I still can't make this particular chord work.
>>
>> I want to display a minor chord with a fourth like this: "Am (add4)". That's
>> all I want to do.
>> First I'm surprised that I have to specify the chord (in the variable
>> chExceptionMusic) in a note to note format (in this case ). Is it
>> not possible to specify it in a chord name format ?
>
> You would need to do it in \chordmode but there the "-"-sign has a
> different meaning,

One can use _ here I guess.  Unpretty, yes.

> not to mention that TextScript is not allowed in ChordNames for this
> (and probably other) reason(s).

\chords \with { \consists "Script_engraver" }
{
  c_\markup {C it is}
}

does not complain but does nothing I can see with the script.  Probably
just missing some crucial incantation...

-- 
David Kastrup

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


Re: Potential improvements to the homepage?

2016-08-28 Thread David Kastrup
David Pirotte  writes:

> Hello Urs,
>
>> So that explains something.
>> You think LilyPond's website and docs are maintained as HTML files?
>> Not at all!
>
> Nope, I never said the doc was written and maintained in 'html' :). You can 
> follow
> the doc link on Guile's web-site, for example, which, as Guix, Guile-Gnome...,
> also has its doc written in texinfo:
>
>   Guile -> Learn -> Reference Manuals -> Guile-2.0
>
>   and choose what ever format you prefer, for example
>
>   https://www.gnu.org/software/guile/manual/guile.html
>
> I was talking about the source code of these web sites,

The "source code of these web sites" is also written in Texinfo.

> and why, imo, this approach is a good candidate for a new lily web
> site.  There would be no 'interference' with the lily doc and its
> translations.  Guile's doc hasn't change, not even a single modif,
> because of it's new web-site :)

That's because Guile does not have its web site written in Texinfo.
LilyPond does.  Below is its home page copied and pasted from within
Emacs' Info reader (well, one should eventually address the image
inclusion problem but it would not make it into Email anyway).

The Info rendition of the web page is available as
.  Of course, there is also a PDF version.

Please bring yourself up to speed before suggesting changes in
infrastructure.  Experience tells us that people bringing large-scale
changes about tend not to stick around for all of the tedious ongoing
aftermath: everything ends up being maintained by "the same suspects" in
the long run, as a rough but comparatively accurate approximation.  We
are somewhat lucky here to be offering our web page in a number of
different languages: in that way, we basically find out from the start
whether continued maintenance even of the English web page content by
others than its original programmer could turn out problematic.

Guile's web page, in contrast, is English-only and fairly static.

LilyPond... music notation for everyone
***

LilyPond


...  music notation for everyone

[image src="lilypond/pictures/double-lily-modified3.png" alt="LilyPond logo"]

   LilyPond is a music engraving program, devoted to producing the
highest-quality sheet music possible.  It brings the aesthetics of
traditionally engraved music to computer printouts.  LilyPond is free
software and part of the GNU Project (http://gnu.org).

   Read more in our *note Introduction::!

LilyPond 2.19.43 released _June 8, 2016_


We are happy to announce the release of LilyPond 2.19.43.  This release
includes a number of enhancements, and contains some work in progress.
You will have access to the very latest features, but some may be
incomplete, and you may encounter bugs and crashes.  If you require a
stable version of Lilypond, we recommend using the 2.18 version.

Lilypond 2.18.2 released! _March 23, 2014_
--

We are proud to announce the release of GNU LilyPond 2.18.2.  LilyPond
is a music engraving program devoted to producing the highest-quality
sheet music possible.  It brings the aesthetics of traditionally
engraved music to computer printouts.

   This version provides a number of updates to 2.18.0, including
updated manuals.  We recommend all users to upgrade to this version.

Two LilyPond projects in Google Summer of Code 2016 _April 23, 2016_


We are happy to see two students, Nathan Chou and Jeffery Shivers,
working on LilyPond as participants in the Google Summer of Code this
year.  We hope they produce great results and stay in the developer
community afterwards.

   Nathan will tackle an annoying limitation, namely the unability of
spanners to cross voices.  His work will make a class of ugly
workarounds obsolete.  Jeffery will bring the ScholarLY package[1] to
production quality and add a LaTeX package to it, making it possible to
create beautiful critical reports from data encoded directly in the
LilyPond score.

   [1] 

[...]

-- 
David Kastrup

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