Re: helper function that should take a list argument doesn't do anything

2012-11-11 Thread Marc Hohl

Am 10.11.2012 14:49, schrieb David Kastrup:

[...]
-i isn't an option of touch. It is an option of rm. The touch places 
a file -i in the directory. At least with POSIX sort order, this is 
bound to come rather early in a directory listing, so if you have 
files a, b, c in the directory, rm * .o expands into rm -i a b c .o 
It does not help much if you have a sort order where - gets ignored, 
obviously. 

Hey, that's clever!

Marc


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


Re: quoteDuring for lyrics?

2012-11-11 Thread Jan-Peter Voigt

Hello Mogens,

AFAIK quoted lyrics has to be done manually right now.
In those cases, I usually create a CueVoice=mycue and quote the needed 
music in there. Then I can create Lyrics (with a smaller font) that is 
assigned to that voice with \lyricsto mycue.
Those cases are not too often, so I can live with rewriting the needed 
quoted lyrics.
The problem is, that you can get the corresponding notes from the lyrics 
quite easy, but I don't know of a way in the other direction: getting 
corresponding syllables from a voice-context.
Well, one could probably search a Lyrics context for syllables assigned 
to notes to be quoted ...


I am sorry to say, that I think, you have to copyandpaste the needed 
lyrics right now.

Cheers, Jan-Peter

On 09.11.2012 21:03, Mogens Lemvig Hansen wrote:

Hi,

Is there a mechanism for lyrics similar to \quoteDuring?  I naively tried

\version 2.16.0
soprano = \relative c'' { a2 b4 c d e f g  }
alto= \relative c'  { e4 f2 g4 a b c d  }
sopranoText = \lyricmode { one two three four five six seven eight }
altoText= \lyricmode { en to tre fire fem seks syv otte }
\addQuote qsoprano { \soprano }
\addQuote qalto { \alto }
mixture = {
 \quoteDuring qsoprano { s1 }
 \quoteDuring qalto{ s1 }
}
\addQuote tsoprano { \sopranoText }
\addQuote talto { \altoText }
mixText = {
 \quoteDuring tsoprano { s1 }
 \quoteDuring talto{ s1 }
}
\score { 
 \new Staff {
   \new Voice = soprano { \soprano }
 }
 \new Lyrics \lyricsto soprano { \sopranoText }
 \new Staff {
   \new Voice = alto { \alto }
 }
 \new Lyrics \lyricsto alto { \altoText }
 \new Staff {
   \new Voice = mix { \mixture }
 }
 \new Lyrics \lyricsto mix { \mixText }

}



If the magic had gone my way, the bottom lyrics had read
one two three fire fem seks syv

I attach a scan of what I got instead.

My motivation is that I have a piece for six (human) voices all typed 
and ready but now need to rearrange it for five voices.  I have 
successfully made extensive use of \quoteDuring for the notes.  The 
lyrics consist of fa -- la -- lah's and ting -- e -- lings rather than 
real words, so they need to follow the part they came from, so a 
\quoteDuring mechanism would save me a lot of error prone copy-and-paste.


Regards,
Mogens



___
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: Custom key signature stencils, differentiating major and minor keys

2012-11-11 Thread MING TSANG
Hi, Paul:

Thank you for the custom key signature.  I have been dreaming this for 
sometime, but hesitate to ask lilypond user community.  I have been using 
circle of fifths to identify the key signature.

You mention this custom key signature can be adapted to print above the clef 
sign.  I am not a programmer, so not able to change (adapt).

Questions:  
1. Print the custom key signature above the clef sign
2. Is it possible to retain the traditional key signature then print the custom 
key signature above

3. Can this custom key signature use with \include english.ly or \language 
english?
4. Can ais (as in english) print as A# Major  f# Minor; same for flat as well?


Thank you such useful custom key signature.  I definitely will use it.

 
Blessing in+,
Ming.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: unwanted barnumber

2012-11-11 Thread shutterfreak
While incorporating this code in another score I came across a layouting
problem: if the tempo name is sufficiently long, then the first measure
number will be rendered _above_ the tempo indicator.

This problem only occurs when \omitParenthesizedBarNumbers is invoked in the
layout block.

Probably it's a problem of prioritizing markup scripts, but I have no clue
yet on how to fix this.

Here's a snippet illustrating this issue:

%%% BEGIN snippet
\version 2.16.0

omitParenthesizedBarNumbers =
\override Score.BarNumber #'after-line-breaking =
#(lambda (grob)
   (let* ((text (ly:grob-property grob 'text))
  (text-arg (caadr text))
  (nmbr? (string-number text-arg)))
 (if (not nmbr?)
 (ly:grob-suicide! grob)
 #f)))

\score {
  \new Staff {
\relative c' {
  \key g \major
  \time 3/4
  \tempo Allegretto
  \clef bass

  \compressFullBarRests
  \override MultiMeasureRest #'expand-limit = #3
  \override Score.BarNumber #'break-visibility = #end-of-line-invisible
  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
  \set Score.alternativeNumberingStyle = #'numbers-with-letters

  \partial 4
  g8.-\upbow-\pp-1 (a16_\markup{\italic con grazia})
  b8.--3 ( ais16 ) b8.- ( ais16 ) b8.- ( ais16 )
  \break
}
  }

  \layout {
\context {
  \Score
  \omitParenthesizedBarNumbers
}
  }
}
%%% END snippet



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/unwanted-barnumber-tp134059p136183.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: lilyglyphs 0.2 - First 'official' release

2012-11-11 Thread Janek Warchoł
On Sat, Nov 10, 2012 at 7:53 PM, Urs Liska li...@ursliska.de wrote:
 I'm happy (and also proud) to be able to announce a new release of my
 lilyglyphs LaTeX package.
 While I label it version 0.2 I am convinced that it is the first release
 that is really useable, so I consider this the initial 'public' release.

Congratulations - this is really great work!  I wish i had some LaTeX
documents with musical symbols to typeset so that i could play with it
:)

thanks,
Janek

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


aftergrace with pitchedtrill

2012-11-11 Thread Stefan Thomas
Dear community,
I have the same problem like Trevor Bača, years ago.
See at http://lists.gnu.org/archive/html/lilypond-user/2006-11/msg00265.html
Is there a solution available?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilyglyphs 0.2 - First 'official' release

2012-11-11 Thread Urs Liska
Well, nobody stops you from beautifying the revision report as well ;-)

But seriously, if you are looking for something to play with, you can take that 
document too - with credits to Git ...

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



Janek Warchoł janek.lilyp...@gmail.com schrieb:

On Sat, Nov 10, 2012 at 7:53 PM, Urs Liska li...@ursliska.de wrote:
 I'm happy (and also proud) to be able to announce a new release of my
 lilyglyphs LaTeX package.
 While I label it version 0.2 I am convinced that it is the first release
 that is really useable, so I consider this the initial 'public' release.

Congratulations - this is really great work! I wish i had some LaTeX
documents with musical symbols to typeset so that i could play with it
:)

thanks,
Janek

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


Re: aftergrace with pitchedtrill

2012-11-11 Thread Eluze
Stefan Thomas-5 wrote
 Dear community,
 I have the same problem like Trevor Bača, years ago.
 See at
 http://lists.gnu.org/archive/html/lilypond-user/2006-11/msg00265.html
 Is there a solution available?

sure - what version are you using?

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/aftergrace-with-pitchedtrill-tp136190p136192.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


TupletNumber direction

2012-11-11 Thread Daniel Rosen
\version 2.16.0 \times 2/3 { c'8 c' c' }

Is there a way to get the TupletNumber to show up on the note head side instead 
of the beam side? Seems to me that this would be a pretty common tweak, and I 
can't find it in the manuals or the LSR or anywhere in the list archives.

DR


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


Re: Version Control and Public Repository

2012-11-11 Thread Stjepan Horvat
hi..i have the same question..?!
I reed somewhere that git isn't intended for binary packages..
and i transcribed (by ear) many scores i don't have rights for..

how do you handle this kind of staff..
What are the laws related to such situations?!

this is what my brother and i are working on
https://github.com/schef/duhovni-projekt/


On Sat, Nov 10, 2012 at 12:21 PM, Mike Blackstock blackstock.m...@gmail.com
 wrote:


 Thanks Francisco. It's fixed.

 -M.

 On Sat, Nov 10, 2012 at 5:16 AM, Francisco Vila paconet@gmail.comwrote:

 2012/11/10 Mike Blackstock blackstock.m...@gmail.com:
  You can generate your own lilypond scores page at www.omet.ca. Just
 upload
  your sources, compile them, and you'll get a page like this:
 
  http://www.omet.ca/scores/Mike_Blackstock_2/

 I hadn't noticed before: source view in omet.ca does not escape  and
  for chords, see image at
 http://paconet.org/lilypond/problem-omet-ca.png
 --
 Francisco Vila. Badajoz (Spain)
 www.paconet.org , www.csmbadajoz.com



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




-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: TupletNumber direction

2012-11-11 Thread David Kastrup
Daniel Rosen drose...@gmail.com writes:

 \version 2.16.0 \times 2/3 { c'8 c' c' }

 Is there a way to get the TupletNumber to show up on the note head
 side instead of the beam side? Seems to me that this would be a pretty
 common tweak, and I can't find it in the manuals or the LSR or
 anywhere in the list archives.

\tweak #'direction #DOWN \times 2/3 { c'8 c' c' }



-- 
David Kastrup


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


Re: aftergrace with pitchedtrill

2012-11-11 Thread Stefan Thomas
Dear community,
I'm using version 2.16.0
Subject: Re: aftergrace with pitchedtrill
Message-ID: 1352647402382-136192.p...@n5.nabble.com
Content-Type: text/plain; charset=UTF-8

Stefan Thomas-5 wrote
 Dear community,
 I have the same problem like Trevor Ba?a, years ago.
 See at
 http://lists.gnu.org/archive/html/lilypond-user/2006-11/msg00265.html
 Is there a solution available?

sure - what version are you using?

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


Re: Version Control and Public Repository

2012-11-11 Thread Francisco Vila
2012/11/11 Stjepan Horvat zvanste...@gmail.com:
 I reed somewhere that git isn't intended for binary packages..

Humans are not intended for tracking per-line changes on binary files,
either. Git can do it, for example people adds videos to git repos,
but it is not of great help except that you can mix binaries with all
else and git is agnostic to the difference.

 and i transcribed (by ear) many scores i don't have rights for..

 how do you handle this kind of staff..
 What are the laws related to such situations?!

I think copyright laws are clear, regardless of whether you
transcribed it by ear or photocopied it, you can not publish material
you don't own the rights of.


-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: Version Control and Public Repository

2012-11-11 Thread Stjepan Horvat
And is puting it on the web for example github (public) illegal..?!


On Sun, Nov 11, 2012 at 6:39 PM, Francisco Vila paconet@gmail.comwrote:

 2012/11/11 Stjepan Horvat zvanste...@gmail.com:
  I reed somewhere that git isn't intended for binary packages..

 Humans are not intended for tracking per-line changes on binary files,
 either. Git can do it, for example people adds videos to git repos,
 but it is not of great help except that you can mix binaries with all
 else and git is agnostic to the difference.

  and i transcribed (by ear) many scores i don't have rights for..
 
  how do you handle this kind of staff..
  What are the laws related to such situations?!

 I think copyright laws are clear, regardless of whether you
 transcribed it by ear or photocopied it, you can not publish material
 you don't own the rights of.


 --
 Francisco Vila. Badajoz (Spain)
 www.paconet.org , www.csmbadajoz.com




-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Version Control and Public Repository

2012-11-11 Thread Federico Bruni

Il 11/11/2012 18:54, Stjepan Horvat ha scritto:

And is puting it on the web for example github (public) illegal..?!


Sure it's illegal, if material is copyrighted and you don't have the rights.
If you use a private repository I think it's ok.


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


Re: Version Control and Public Repository

2012-11-11 Thread Urs Liska

Am 11.11.2012 19:02, schrieb Federico Bruni:

Il 11/11/2012 18:54, Stjepan Horvat ha scritto:

And is puting it on the web for example github (public) illegal..?!


Sure it's illegal, if material is copyrighted and you don't have the 
rights.

If you use a private repository I think it's ok.
Of course you can typeset anything you want and put it in a private 
repository on Github.

But you can't if it's a public repository.



___
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: Version Control and Public Repository

2012-11-11 Thread Stjepan Horvat
Thanks guys..this was unclear to me..
..so Copyright is the key word..


On Sun, Nov 11, 2012 at 7:00 PM, Urs Liska li...@ursliska.de wrote:

 Am 11.11.2012 19:02, schrieb Federico Bruni:

  Il 11/11/2012 18:54, Stjepan Horvat ha scritto:

 And is puting it on the web for example github (public) illegal..?!


 Sure it's illegal, if material is copyrighted and you don't have the
 rights.
 If you use a private repository I think it's ok.

 Of course you can typeset anything you want and put it in a private
 repository on Github.
 But you can't if it's a public repository.



 __**_
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/**listinfo/lilypond-userhttps://lists.gnu.org/mailman/listinfo/lilypond-user



 __**_
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/**listinfo/lilypond-userhttps://lists.gnu.org/mailman/listinfo/lilypond-user




-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Version Control and Public Repository

2012-11-11 Thread Urs Liska

Am 11.11.2012 17:43, schrieb Stjepan Horvat:

hi..i have the same question..?!
I reed somewhere that git isn'tintended for binary packages..
What Git does is comparing files line by line, which essentially works 
only for text files.
It stores the differences between the files which can be a single line 
between two versions of a file.
If it has to compare two versions of a binary file (e.g. a PDF) it has 
to store the complete files of each version.

This isn't efficient, but it works.
I think the general approach is to ignore (i.e. exclude them from the 
git repository) files that are

a) unnecessary (like backup or intermediate files) or
b) can easily be recreated from the textual source files.

 * So I would generally put *.pdf in the .gitignore file because they
   can be easily recreated with LilyPond.
 * If you want to have them as public downloads for people who don't
   have LilyPond, you can include them in the repository, but I would
   suggest to exclude them by default and only add them (with 'git add
   -f filename.pdf) when you consider them finished, so they probably
   won't change anymore)
 * Or even better, if you want to provide them as downloads, don't
   include them in the git repository but present them explicitely on
   the download page of your Github repository

I hope this makes it somewhat clearer.


and i transcribed (by ear) many scores i don't have rights for..

how do you handle this kind of staff..
What are the laws related to such situations?!

Or course that depends on who actually has rights for the music.
I have opened a few randomly selectdes scores of your github-project. 
Some of them seem to be 'pop?'-songs with an author, but some might 
equally be 'traditionals'?

Of course that makes a big difference.
It does _not_ make a difference how you got the music (by ear or score).

HTH

Urs


this is what my brother and i are working on 
https://github.com/schef/duhovni-projekt/



On Sat, Nov 10, 2012 at 12:21 PM, Mike Blackstock 
blackstock.m...@gmail.com mailto:blackstock.m...@gmail.com wrote:



Thanks Francisco. It's fixed.

-M.

On Sat, Nov 10, 2012 at 5:16 AM, Francisco Vila
paconet@gmail.com mailto:paconet@gmail.com wrote:

2012/11/10 Mike Blackstock blackstock.m...@gmail.com
mailto:blackstock.m...@gmail.com:
 You can generate your own lilypond scores page at
www.omet.ca http://www.omet.ca. Just upload
 your sources, compile them, and you'll get a page like this:

 http://www.omet.ca/scores/Mike_Blackstock_2/

I hadn't noticed before: source view in omet.ca
http://omet.ca does not escape  and
 for chords, see image at
http://paconet.org/lilypond/problem-omet-ca.png
--
Francisco Vila. Badajoz (Spain)
www.paconet.org http://www.paconet.org , www.csmbadajoz.com
http://www.csmbadajoz.com



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




--
/Nesmotren govori kao da mac(em probada, a jezik je mudrih 
iscjeljenje. Izreke 12:18/




___
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: Version Control and Public Repository

2012-11-11 Thread martinwguy
On 11 November 2012 18:39, Francisco Vila paconet@gmail.com wrote:
 and i transcribed (by ear) many scores i don't have rights for..

 how do you handle this kind of staff..
 What are the laws related to such situations?!

 I think copyright laws are clear, regardless of whether you
 transcribed it by ear or photocopied it, you can not publish material
 you don't own the rights of.

That's a simplistic play-it-safe position, but in reality copyright
laws are different in every country and cover different situations in
different ways.

The term for derivative works of music that do not directly reuse
another person's performance, which includes cover versions and new
typesettings of sheet music, is Mechanical license and in the US you
have the right to do this, whether or not the owner of the copyright
of the original score or of a particular performance want you to or
not, on payment of a small fee that is calculateda according to some
tables ($15 per song + a cut of the profits, if any), managed through
a central agency.

In other legal giurisdictions, different laws apply.

See http://en.wikipedia.org/wiki/Mechanical_license for further details.

M

No, I'm not a lawyer either.

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


Re: Custom key signature stencils, differentiating major and minor keys

2012-11-11 Thread Paul Morris
On Nov 11, 2012, at 7:38 AM, MING TSANG tsan...@rogers.com wrote:

 Hi, Paul:  Thank you for the custom key signature.  I have been dreaming this 
 for sometime, but hesitate to ask lilypond user community.  I have been using 
 circle of fifths to identify the key signature.

Hi Ming,  I'm glad you find it useful.


 You mention this custom key signature can be adapted to print above the clef 
 sign.  I am not a programmer, so not able to change (adapt).
 
 Questions:  
 1. Print the custom key signature above the clef sign
 2. Is it possible to retain the traditional key signature then print the 
 custom key signature above
 3. Can this custom key signature use with \include english.ly or \language 
 english?
 4. Can ais (as in english) print as A# Major  f# Minor; same for flat as 
 well?

The new code below will print the name of the key above the standard key 
signature.  It now uses actual sharp and flat signs in the key names (Fb 
rather than Fes), and the text is smaller.  

It should work fine with \include english.ly or \language english, but I have 
not tried it.  You can edit the names of the keys by changing the relevant text 
in the following parts of the code.  For example change:

  #{ \markup \magnify #0.7 {B Major} #

  #{ \markup \magnify #0.7 {G\raise #.6 {\sharp} Minor} #

to
 
  #{ \markup \magnify #0.7 {B M} #

  #{ \markup \magnify #0.7 {G\raise #.6 {\sharp} m} #

for an abbreviated text (B M  and G# m instead of B Major and G Minor).


I think this has reached the potentially useful stage, for anyone who is 
still learning the key signatures or wants to know explicitly whether keys are 
major or minor.

(Ideally it would be better if it did not print the name of the key signature 
above a key cancellation, as with the transition from A# Minor to F Major in 
the code below.  I would have to figure out how to somehow access whether it 
was engraving a key-cancellation or a key-signature.)

Any suggestions for improvement are welcome.  I am an amateur hack at this and 
stand on the shoulders of giant snippets.  :-)

(Like this one http://lsr.dsi.unimi.it/LSR/Item?id=233 for this most recent 
version).

Cheers,
-Paul


%%  Begin snippet

\version 2.16.0

#(define Custom_key_sig_engraver
   (make-engraver
(acknowledgers
 ((key-signature-interface engraver grob source-engraver)
  (let* (
  (context (ly:translator-context engraver))
  (tonic-pitch (ly:context-property context 'tonic))
  (tonic-semi (modulo (ly:pitch-semitones tonic-pitch) 
12))
  (acclist  (ly:grob-property grob 'alteration-alist))
  (accsign  (if (null? acclist) 0 (cdr (list-ref 
acclist 0
  (psn  (if (null? acclist) 0 (car (list-ref 
acclist 0
  (sig-stencil  (ly:key-signature-interface::print 
grob))
)
(cond 
((= accsign 0) 
(if (= tonic-semi 0) 
(ly:grob-set-property! grob 
'stencil 

(ly:stencil-combine-at-edge sig-stencil  1 1 

(grob-interpret-markup grob #{ \markup \raise #2.3 \magnify #0.7 {C Major} #}) 
.5 ))
(ly:grob-set-property! grob 
'stencil 

(ly:stencil-combine-at-edge sig-stencil 1 1 

(grob-interpret-markup grob #{ \markup \raise #2.3 \magnify #0.7 {A Minor} #}) 
.5 ))
))
((= accsign 1/2);; SHARP KEYS
  (cond 
((= psn 3) 
(if (= tonic-semi 7) 
(ly:grob-set-property! grob 
'stencil 

(ly:stencil-combine-at-edge sig-stencil 1 1 

(grob-interpret-markup grob #{ \markup \magnify #0.7 {G Major} #}) .5 ))
(ly:grob-set-property! grob 
'stencil 

(ly:stencil-combine-at-edge sig-stencil 1 1 

(grob-interpret-markup grob #{ \markup \magnify #0.7 {E Minor} #}) .5 ))
))
((= psn 0) 
(if (= tonic-semi 2) 
(ly:grob-set-property! grob 
'stencil 

(ly:stencil-combine-at-edge sig-stencil 1 1 
   

Re:Re: helper function that should take a list argument doesn't do anything

2012-11-11 Thread Patrick or Cynthia Karl

On Nov 11, 2012, at 9:10 AM, Marc Hohl wrote:

 Message: 1
 Date: Sun, 11 Nov 2012 09:10:44 +0100
 From: Marc Hohl m...@hohlart.de
 To: lilypond-user@gnu.org
 Subject: Re: helper function that should take a list argument doesn't
   do  anything
 Message-ID: 509f5d84.7050...@hohlart.de
 Content-Type: text/plain; charset=UTF-8; format=flowed
 
 Am 10.11.2012 14:49, schrieb David Kastrup:
 [...]
 -i isn't an option of touch. It is an option of rm. The touch places 
 a file -i in the directory. At least with POSIX sort order, this is 
 bound to come rather early in a directory listing, so if you have 
 files a, b, c in the directory, rm * .o expands into rm -i a b c .o 
 It does not help much if you have a sort order where - gets ignored, 
 obviously. 
 Hey, that's clever!
 
 Marc

Indeed, it is clever.  However, it doesn't seem to work on a mac running OSX 
10.7.5.  I find that the command touch .\-i creates a file called .-i, 
which doesn't look like the -i option to the rm command.

I can get it to work with any of these commands:

touch -i

touch -- -i

echo  -i

Pat

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


Re: helper function that should take a list argument doesn't do anything

2012-11-11 Thread David Kastrup
Patrick or Cynthia Karl pck...@mac.com writes:

 On Nov 11, 2012, at 9:10 AM, Marc Hohl wrote:

 Message: 1
 Date: Sun, 11 Nov 2012 09:10:44 +0100
 From: Marc Hohl m...@hohlart.de
 To: lilypond-user@gnu.org
 Subject: Re: helper function that should take a list argument doesn't
  do  anything
 Message-ID: 509f5d84.7050...@hohlart.de
 Content-Type: text/plain; charset=UTF-8; format=flowed
 
 Am 10.11.2012 14:49, schrieb David Kastrup:
 [...]
 -i isn't an option of touch. It is an option of rm. The touch places 
 a file -i in the directory. At least with POSIX sort order, this is 
 bound to come rather early in a directory listing, so if you have 
 files a, b, c in the directory, rm * .o expands into rm -i a b c .o 
 It does not help much if you have a sort order where - gets ignored, 
 obviously. 
 Hey, that's clever!
 
 Marc

 Indeed, it is clever.  However, it doesn't seem to work on a mac
 running OSX 10.7.5.  I find that the command touch .\-i creates a
 file called .-i, which doesn't look like the -i option to the rm
 command.

Sure it would.  But I wrote

touch ./-i

which is quite different.

 I can get it to work with any of these commands:

   touch -i

No idea about OSX, but on GNU/Linux this will give you

dak@lola:/usr/local/tmp/lilypond$ touch -i
touch: invalid option -- 'i'
Try `touch --help' for more information.

You could try

touch -- -i

instead, but ./-i is simpler.

-- 
David Kastrup


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


RE: TupletNumber direction

2012-11-11 Thread Daniel Rosen
I guess I should have been more clear, but I was in a rush. What I'm actually 
looking for is a function to have tuplet numbers ALWAYS appear on the note head 
side, regardless of stem direction.

DR


-Original Message-
From: David Kastrup [mailto:d...@gnu.org] 
Sent: Sunday, November 11, 2012 11:52 AM
To: lilypond-user@gnu.org
Subject: Re: TupletNumber direction

Daniel Rosen drose...@gmail.com writes:

 \version 2.16.0 \times 2/3 { c'8 c' c' }

 Is there a way to get the TupletNumber to show up on the note head 
 side instead of the beam side? Seems to me that this would be a pretty 
 common tweak, and I can't find it in the manuals or the LSR or 
 anywhere in the list archives.

\tweak #'direction #DOWN \times 2/3 { c'8 c' c' }



--
David Kastrup




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


RE: TupletNumber direction

2012-11-11 Thread Daniel Rosen
Also, I'm a little confused as to why \override TupletNumber #'direction = #-1 
isn't working just as well in the meantime.

DR


-Original Message-
From: David Kastrup [mailto:d...@gnu.org] 
Sent: Sunday, November 11, 2012 11:52 AM
To: lilypond-user@gnu.org
Subject: Re: TupletNumber direction

Daniel Rosen drose...@gmail.com writes:

 \version 2.16.0 \times 2/3 { c'8 c' c' }

 Is there a way to get the TupletNumber to show up on the note head 
 side instead of the beam side? Seems to me that this would be a pretty 
 common tweak, and I can't find it in the manuals or the LSR or 
 anywhere in the list archives.

\tweak #'direction #DOWN \times 2/3 { c'8 c' c' }



--
David Kastrup




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


Re: TupletNumber direction

2012-11-11 Thread David Kastrup
Daniel Rosen drose...@gmail.com writes:

 Also, I'm a little confused as to why \override TupletNumber
 #'direction = #-1 isn't working just as well in the meantime.

Because it is not consulted?

\version 2.16.0
\new Voice {
  \times 2/3 { c'8 c' c' }
  \override TupletBracket #'direction = #DOWN
  \times 2/3 { c'8 c' c' }
}

-- 
David Kastrup


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


Creating charts, not scores: horizontally lining up

2012-11-11 Thread ivan . k . kuznetsov

I need to make a number of charts that demonstrate various kinds of
non-traditional scales.  Appended is a lilypond example towards
something I would like to do.   The first issue I would
like to deal with is as follows:


I need the rests and notes to line up precisely.  D natural on
the lower stave needs to fall exactly below D natural on the upper
stave.

Likewise, an eighth rest in front of a Csharp on the lower
stave needs to fall exactly below a a C natural on the upper stave.

---

Once this is solved, I would like to replace the
eighth rests with eight spaces (I know, use s8 instead of r8)
and then make the stems disappear.


Any pointers would be appreciated.  Thank you.






\version 2.16.0
\include english.ly


#(set-default-paper-size letter 'landscape)
#(set-global-staff-size 18)


\bookpart { % BOOKPART BEGIN

\score {

  \new Staff
  {
\clef bass
\time 3/4
e,8 r8 r8 g,8 gs,8 r8 as,8 b,8 r8 cs8 r8 ds8 r8 r8 fs8 g8 r8 a8 as8 r8
\clef treble
c'8 r8 d'8 r8 r8 f'8 fs'8 r8 gs'8 a'8 r8 b'8 r8 cs''8 r8 r8 e''8 f''8 r8 
g''8 gs''8 r8 as''8 r8 c'''8 r8 r8 ds'''8 e'''8 r8 fs'''8 g'''8 r8 a'''8 r8 
b'''8

  }
  \layout {

\context {
   \Score
   \override SpacingSpanner
   #'base-shortest-duration = #(ly:make-moment 1 8)
   \override TimeSignature #'transparent = ##t 
}
  }
}


\score {

  \new Staff
  {
  
 \clef bass
 \time 3/4
 e,8 r8 r8 g,8 r8 a,8 r8 b,8 c8 r8 d8 ds8 r8 r8 fs8 r8 gs8 r8 as8 b8
 \clef treble
 r8 cs'8 d'8 r8 r8 f'8 r8 g'8 r8 a'8 as'8 r8 c''8 cs''8 r8 r8 e''8 r8 fs''8 
r8 gs''8 a''8 r8 b''8 c'''8 r8 r8 ds'''8 r8 f'''8 r8 g'''8 gs'''8 r8 as'''8 
b'''8
 

  }
  \layout {

\context {
   \Score
   \override SpacingSpanner
   #'base-shortest-duration = #(ly:make-moment 1 8)
   \override TimeSignature #'transparent = ##t 
}
  }
}

} % BOOKPART END





attachment: test_test_03-simp01.png\version 2.16.0
\include english.ly


#(set-default-paper-size letter 'landscape)
#(set-global-staff-size 18)


\bookpart { % BOOKPART BEGIN

\score {

  \new Staff
  {
\clef bass
\time 3/4
e,8 r8 r8 g,8 gs,8 r8 as,8 b,8 r8 cs8 r8 ds8 r8 r8 fs8 g8 r8 a8 as8 r8
\clef treble
c'8 r8 d'8 r8 r8 f'8 fs'8 r8 gs'8 a'8 r8 b'8 r8 cs''8 r8 r8 e''8 f''8 r8 
g''8 gs''8 r8 as''8 r8 c'''8 r8 r8 ds'''8 e'''8 r8 fs'''8 g'''8 r8 a'''8 r8 
b'''8

  }
  \layout {

\context {
   \Score
   \override SpacingSpanner
   #'base-shortest-duration = #(ly:make-moment 1 8)
   \override TimeSignature #'transparent = ##t 
}
  }
}


\score {

  \new Staff
  {
  
 \clef bass
 \time 3/4
 e,8 r8 r8 g,8 r8 a,8 r8 b,8 c8 r8 d8 ds8 r8 r8 fs8 r8 gs8 r8 as8 b8
 \clef treble
 r8 cs'8 d'8 r8 r8 f'8 r8 g'8 r8 a'8 as'8 r8 c''8 cs''8 r8 r8 e''8 r8 fs''8 
r8 gs''8 a''8 r8 b''8 c'''8 r8 r8 ds'''8 r8 f'''8 r8 g'''8 gs'''8 r8 as'''8 
b'''8
 

  }
  \layout {

\context {
   \Score
   \override SpacingSpanner
   #'base-shortest-duration = #(ly:make-moment 1 8)
   \override TimeSignature #'transparent = ##t 
}
  }
}

} % BOOKPART END







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


Re: TupletNumber direction

2012-11-11 Thread David Nalesnik
On Sun, Nov 11, 2012 at 2:13 PM, Daniel Rosen drose...@gmail.com wrote:
 I guess I should have been more clear, but I was in a rush. What I'm actually 
 looking for is a function to have tuplet numbers ALWAYS appear on the note 
 head side, regardless of stem direction.

You could do something like this, which looks at the direction of the
first stem in the tuplet to determine where the note head is:

\relative c'' {
  \override TupletBracket #'direction =
  #(lambda (grob)
(let* ((note-column (ly:grob-parent grob X))
   (stem (ly:grob-object note-column 'stem))
   (stem-direction (ly:grob-property stem 'direction)))
  (if (= UP stem-direction)
  DOWN
  UP)))

  \times 2/3 { c8 c c }
  \times 2/3 { c,8 c c }
  \times 2/3 { c'8 c c }
  \times 2/3 { c,8 c c }
}

This doesn't address the issue of the stem direction changing during
the course of the tuplet (i.e., for a kneed beam).

On Sun, Nov 11, 2012 at 2:44 PM, David Kastrup d...@gnu.org wrote:
 Daniel Rosen drose...@gmail.com writes:

 Also, I'm a little confused as to why \override TupletNumber
 #'direction = #-1 isn't working just as well in the meantime.

 Because it is not consulted?

 \version 2.16.0
 \new Voice {
   \times 2/3 { c'8 c' c' }
   \override TupletBracket #'direction = #DOWN
   \times 2/3 { c'8 c' c' }
 }


Yes--the tuplet number is pulled along by the bracket, even though
there is none visible here.

HTH,
David

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


RE: lilypond-user Digest, Vol 120, Issue 54

2012-11-11 Thread Daniel Rosen
Aha! That would explain it.

DR


-Original Message-
From: lilypond-user-bounces+drosen27=gmail@gnu.org 
[mailto:lilypond-user-bounces+drosen27=gmail@gnu.org] On Behalf Of 
lilypond-user-requ...@gnu.org
Sent: Sunday, November 11, 2012 3:47 PM
To: lilypond-user@gnu.org
Subject: lilypond-user Digest, Vol 120, Issue 54

Send lilypond-user mailing list submissions to
lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
lilypond-user-requ...@gnu.org

You can reach the person managing the list at
lilypond-user-ow...@gnu.org

When replying, please edit your Subject line so it is more specific than Re: 
Contents of lilypond-user digest...

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


Re: helper function that should take a list argument doesn't do anything

2012-11-11 Thread Janek Warchoł
On Sat, Nov 10, 2012 at 2:56 PM, David Kastrup d...@gnu.org wrote:
 Janek Warchoł janek.lilyp...@gmail.com writes:

 On Fri, Nov 9, 2012 at 10:31 PM, David Kastrup d...@gnu.org wrote:

 You did not copy and paste valid LilyPond code into #{ #}.  You replaced
 a constant in a constant list by a symbol.  That was not valid outside
 of #{ #}, and it did not became valid inside of it.

 Hmm.  Indeed.  Too bad that to make the code valid one has to make it
 significantly different.

 That's what backquoting is for: that way you don't have to make it
 significantly different, you just swap the ' for ` and put a , before
 the expression parts which you _do_ want to have evaluated after all.

ok, you are right.  My complaint was unjustified.
Nevertheless, the solution available with 2.17.6 is million times
better than using ` and , (from a user's point of view).

 So, maybe it's a defect in convert-ly?

 Uh, no?  That conversion is perfectly correct.  In fact, the last
 argument, which is the _value_ argument for \overrideProperty, has not
 been changed at all.  It is just the same as before.

ok

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


Re: helper function that should take a list argument doesn't do anything

2012-11-11 Thread Janek Warchoł
On Sat, Nov 10, 2012 at 2:49 PM, David Kastrup d...@gnu.org wrote:
 Janek Warchoł janek.lilyp...@gmail.com writes:
 What really annoys me is the fact that rm has no reasonable safeguard.
 [...] i'd like to see a safeguard against deleting too many files

 rm is not a file manager.  I do larger renaming/removal workloads using
 Emacs (hardly surprising), but there are also other file managers.

indeed, rm is not a file manager.  However, rm has this:

-I prompt once before removing  more  than  three  files,

so it makes sense to me to have an option for prompting before
removing more than n files, too.

As for Emacs, i think it wouldn't make sense to write shell scripts
depending on Emacs.

 I was thinking about having all my files in a git repository, but
 that's ~10 GB of data, and lots of it is in a binary (i mean,
 non-diffable) form.  Do you think it would make sense to use git for
 that?

 It's pretty efficient for storing even binary blobs.

i'll try then.

 -i isn't an option of touch.  It is an option of rm.  The touch places a
 file -i in the directory.  At least with POSIX sort order, this is bound
 to come rather early in a directory listing, so if you have files a, b,
 c in the directory,

 rm * .o

 expands into

 rm -i a b c .o

 It does not help much if you have a sort order where - gets ignored,
 obviously.

ah, that's really nice!  thanks for explanation.


On Sat, Nov 10, 2012 at 5:47 PM, Werner LEMBERG w...@gnu.org wrote:
 On my GNU/Linux box, I'm using the libtrash library which intercepts
 `rm' and friends to store data to be deleted in a trash directory.  A
 cron script then really deletes the collected data once a day.

   http://pages.stern.nyu.edu/~marriaga/software/libtrash/

 I'm very satisfied with it.

looks interesting.  I'll give it a try - thanks for suggestion!

Janek

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


Re: Aleatoric / modern notation

2012-11-11 Thread David Nalesnik
Ben,

On Sat, Nov 10, 2012 at 9:53 PM, SoundsFromSound
soundsfromso...@gmail.com wrote:
 David:

 I see, thanks for clarifying that for me.  So, in your opinion, if I wanted
 to use these aleatoric boxes on a few scores here and there, that would be
 doable - though not ideal, it would /work/- correct? I wouldn't ever need
 this type of notation on anything of a larger scale.

I think that if you're using it on single files (and not, say, with
lilypond-book), there shouldn't be a problem.  At least I haven't
noticed anything untoward.  But understand that the way the new grob
is built up with its new properties and event-class and such is not
done in a sound way.  There is currently no proper user interface for
doing this sort of thing in an .ly file.  When there is one, parts of
this file will need to be rewritten (as happened in the situation that
brought you to the list, which came about because of a step in the
direction of this new-grob-with-all-the-fixings interface made by
David Kastrup).


 I ask because in future scores I'll have to do something similar to this and
 want to make sure I don't corrupt my dear LilyPond install :)

No, the files are safe!

-David

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


Re: Lilypond cheat sheat

2012-11-11 Thread Noeck

Am 07.11.2012 01:25, schrieb Reinhold Kainhofer:
 On 2012-11-06 23:14, Noeck wrote:
 many years ago I made a cheat sheet for Lilypond, because I couldn't
 remember all the syntax by heart. Now, after having used Lilypond for
 some years and after reading the notation reference again, I've made an
 updated version, which might be helpful for other users, too. It
 requires a basic knowledge of Lilypond and aims at putting as much
 information as possible on one page.
 
 Wow, amazing. And incredible how much information you can cram onto one
 single page!
 
 And thanks for sharing it with us.
 
 
 BTW, I wrote a similar cheat sheet a while ago, but aiming at new users,
 so I didn't try to get everything on the page. The code (latex and
 lilypond) is under a CC license, too:
 
 http://www.edition-kainhofer.com/en/lilypond/details/2111/
 https://gitorious.org/lilypond-cheatsheet
 http://article.gmane.org/gmane.comp.gnu.lilypond.devel/44506/
 
 
 I think both cheat sheets nicely complement each other. Mine tries to be
 easy to understand to new users and show them the most important things,
 while yours is for advanced users and tries to give as much information
 as possible.
 
 Cheers,
 Reinhold

I have seen your cheat sheet before and it is a very good help and
introduction to LilyPond. (I haven't found the pdf before, and with your
first link I get a 404 error.)

I am impressed, that it is done with LaTeX! That makes it easier to
update, but definitely needs some extra layout skills, that I
don't have in LaTeX.

You're right that the two are complementing each other. I hope that
LilyPond will attract many new users and hopefully our cheat sheets will
be helpful to them (as they are for me).

Cheers,
Joram

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


Re: TupletNumber direction

2012-11-11 Thread David Nalesnik
On Sun, Nov 11, 2012 at 3:36 PM, Daniel Rosen drose...@gmail.com wrote:
 Fantastic. I had a feeling that it would be a relatively simple function (it 
 certainly appears to be), but I know absolutely nothing about Scheme. I'll 
 have to read the Extending manual one of these days.


Yes--Scheme certainly opens up a lot of possibilities, and it's great
fun if you like solving puzzles.

-David

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


Re: Custom key signature stencils, differentiating major and minor keys

2012-11-11 Thread Paul Morris
Here is an improved version.  It works the same as the last, 
but with much more streamlined and concise code.
-Paul


\version 2.16.0

#(define Custom_key_sig_engraver
   (make-engraver
(acknowledgers
 ((key-signature-interface engraver grob source-engraver)
  (let* (
(context  (ly:translator-context engraver))
(tonic-pitch  (ly:context-property context 'tonic))
(tonic-semi  (modulo (ly:pitch-semitones tonic-pitch) 12)) ;; 
semitone of tonic note, 0-11 
(acclist  (ly:grob-property grob 'alteration-alist))
(accsign   (if (null? acclist) 0 (cdr (list-ref acclist 0 
;; accidental sign type, 1/2=sharp, -1/2=flat
(psn  (if (null? acclist) 0 (car (list-ref acclist 
0 ;; vertical position of last accidental sign
(key-name  #{ \markup {} #})
  )
  (cond 
  ((= accsign 0) 
(if (= tonic-semi 0) 
(set! key-name #{ \markup \raise #3.4 {C Major} #})
(set! key-name #{ \markup \raise #3.4 {A Minor} #})
))
  ((= accsign 1/2)  ;; SHARP KEYS
(cond 
((= psn 3) 
(if (= tonic-semi 7) 
(set! key-name #{ \markup {G Major} #})
(set! key-name #{ \markup {E Minor} #})
))
((= psn 0) 
(if (= tonic-semi 2) 
(set! key-name #{ \markup {D Major} #})
(set! key-name #{ \markup {B Minor} #})
))
((= psn 4) 
(if (= tonic-semi 9) 
(set! key-name #{ \markup {A Major} #})
(set! key-name #{ \markup {F\raise #.6 {\sharp} 
Minor} #})
))
((= psn 1) 
(if (= tonic-semi 4) 
(set! key-name #{ \markup {E Major} #})
(set! key-name #{ \markup {C\raise #.6 {\sharp} 
Minor} #})
))
((= psn 5) 
(if (= tonic-semi 11)
(set! key-name #{ \markup {B Major} #})
(set! key-name #{ \markup {G\raise #.6 {\sharp} 
Minor} #})
))
((= psn 2) 
(if (= tonic-semi 6) 
(set! key-name #{ \markup {F\raise #.6 {\sharp} 
Major} #})  
(set! key-name #{ \markup {D\raise #.6 {\sharp} 
Minor} #})
))
((= psn 6) 
(if (= tonic-semi 1) 
(set! key-name #{ \markup {C\raise #.6 {\sharp} 
Major} #})
(set! key-name #{ \markup {A\raise #.6 {\sharp} 
Minor} #})
))
)
  )
  ((= accsign -1/2) ;; FLAT KEYS
(cond
((= psn 6) 
(if (= tonic-semi 5) 
(set! key-name #{ \markup {F Major} #})
(set! key-name #{ \markup {D Minor} #})
))
((= psn 2) 
(if (= tonic-semi 10) 
(set! key-name #{ \markup {B\raise #.4 {\flat} 
Major} #})
(set! key-name #{ \markup {G Minor} #})
))
((= psn 5) 
(if (= tonic-semi 3) 
(set! key-name #{ \markup {E\raise #.4 {\flat} 
Major} #})
(set! key-name #{ \markup {C Minor} #})
))
((= psn 1) 
(if (= tonic-semi 8) 
(set! key-name #{ \markup {A\raise #.4 {\flat} 
Major} #})
(set! key-name #{ \markup {F Minor} #})
))
((= psn 4) 
(if (= tonic-semi 1) 
(set! key-name #{ \markup {D\raise #.4 {\flat} 
Major} #})
(set! key-name #{ \markup {B\raise #.4 {\flat} 
Minor} #})
))
((= psn 0) 
(if (= tonic-semi 6) 
(set! key-name #{ \markup {G\raise #.4 {\flat} 
Major} #})
(set! key-name #{ \markup {E\raise #.4 {\flat} 
Minor} #})
))
((= psn 3) 
(if (= tonic-semi 11) 
(set! key-name #{ \markup {C\raise #.4 {\flat} 
Major} #})
(set! key-name #{ \markup {A\raise #.4 {\flat} 
Minor} #})
))
   

gregorian.ly and line breaking

2012-11-11 Thread Matthew Vernon
Hi,

Is it possible to get lilypond to break lines for me when using
gregorian.ly? having to add something like \bar  \break by hand is a
bit frustrating, given lilypond normally does quite a good job of line
breaks.

Thanks,

Matthew

-- 
 `O'-0 `O'---.   `O'---.   `O'---.
   \___| |   \___|0-/  \___|/\___|
|  | /\   |  |  \   |  |\ |  |
The Dangers of modern veterinary life


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


Re: Aleatoric / modern notation

2012-11-11 Thread SoundsFromSound
David,

Thanks for the feedback! It's sad to hear that boxed notation is a bit
challenging in LilyPond (i.e. not possible without breaking parts of it) -
do you think there will ever be a native, more acceptable way to do boxed
notation in the future?  I'm not much a programmer so I apologize if that is
a silly question, but it'd be awesome if it could be implemented.  I'm not
sure if you mean it's not possible yet, or not possible from a programming
standpoint.

Thanks,
Ben


David Nalesnik-2 wrote
 Ben,
 
 On Sat, Nov 10, 2012 at 9:53 PM, SoundsFromSound
 lt;

 soundsfromsound@

 gt; wrote:
 David:

 I see, thanks for clarifying that for me.  So, in your opinion, if I
 wanted
 to use these aleatoric boxes on a few scores here and there, that would
 be
 doable - though not ideal, it would /work/- correct? I wouldn't ever need
 this type of notation on anything of a larger scale.
 
 I think that if you're using it on single files (and not, say, with
 lilypond-book), there shouldn't be a problem.  At least I haven't
 noticed anything untoward.  But understand that the way the new grob
 is built up with its new properties and event-class and such is not
 done in a sound way.  
*
 There is currently no proper user interface for
 doing this sort of thing in an .ly file. 
*
  When there is one, parts of
 this file will need to be rewritten (as happened in the situation that
 brought you to the list, which came about because of a step in the
 direction of this new-grob-with-all-the-fixings interface made by
 David Kastrup).
 

 I ask because in future scores I'll have to do something similar to this
 and
 want to make sure I don't corrupt my dear LilyPond install :)
 
 No, the files are safe!
 
 -David
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Aleatoric-modern-notation-tp18113p136229.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: TupletNumber direction

2012-11-11 Thread Thomas Morley
2012/11/11 David Nalesnik david.nales...@gmail.com:
 On Sun, Nov 11, 2012 at 3:36 PM, Daniel Rosen drose...@gmail.com wrote:
 Fantastic. I had a feeling that it would be a relatively simple function (it 
 certainly appears to be), but I know absolutely nothing about Scheme. I'll 
 have to read the Extending manual one of these days.


 Yes--Scheme certainly opens up a lot of possibilities, and it's great
 fun if you like solving puzzles.

Hi David,

Big surprise: I _do_ like solving puzzles. :D

On topic:
Your function doesn't cover the case, where a rest is first in a tuplet.

Try it with:

\relative c'' {
  \times 2/3 { r8 c, c }
}

Here my approach, covering the rest-case and emitting a warning if
kneed beam is occurring:

\version 2.16.0

\relative c' {
\override TupletBracket #'after-line-breaking =
  #(lambda (grob)
(let* ((tuplet-dir (ly:grob-property grob 'direction))
   (note-columns (ly:grob-array-list (ly:grob-object
grob 'note-columns)))
   (note-heads-array-list
(flatten-list
  (map
(lambda (x)
  (ly:grob-object x 'note-heads))
note-columns)))
   (note-heads
(flatten-list
  (map
(lambda (x)
  (ly:grob-array-list x))
note-heads-array-list)))
  (stems (map (lambda (x) (ly:grob-object x 'stem)) note-heads))
  (stem-dirs (map (lambda (x) (ly:grob-property x
'direction)) stems))
  (sorted-stems-dirs-list (sort-list stem-dirs (lambda
(a b) ( a b
  (equal-stems-dir? (= (car sorted-stems-dirs-list)
(car (reverse sorted-stems-dirs-list)
(if (and equal-stems-dir? (= (car sorted-stems-dirs-list) tuplet-dir))
  (ly:grob-set-property! grob 'direction (* -1 (car
sorted-stems-dirs-list)))
  (ly:warning Kneed beam detected - if desired, adjust
TupletBracket manually.

\times 2/3 { c'8 c c }
\times 2/3 { r8 c c }
\times 2/3 { r8 r c }
\times 2/3 { c c'' r }
\break
\times 2/3 { c,,,8 c c }
\times 2/3 { r8 c c }
\times 2/3 { r8 r c }
\times 2/3 { c c'' r }
}

Best,
  Harm

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


RE: TupletNumber direction

2012-11-11 Thread Daniel Rosen
I can't speak to whether the code is sound, but if it is, this should be added 
to the LSR. Quite frankly, I'm surprised something similar isn't there already. 

DR


-Original Message-
From: Thomas Morley [mailto:thomasmorle...@googlemail.com] 
Sent: Sunday, November 11, 2012 5:32 PM
To: David Nalesnik
Cc: Daniel Rosen; David Kastrup; lilypond-user@gnu.org
Subject: Re: TupletNumber direction

2012/11/11 David Nalesnik david.nales...@gmail.com:
 On Sun, Nov 11, 2012 at 3:36 PM, Daniel Rosen drose...@gmail.com wrote:
 Fantastic. I had a feeling that it would be a relatively simple function (it 
 certainly appears to be), but I know absolutely nothing about Scheme. I'll 
 have to read the Extending manual one of these days.


 Yes--Scheme certainly opens up a lot of possibilities, and it's great 
 fun if you like solving puzzles.

Hi David,

Big surprise: I _do_ like solving puzzles. :D

On topic:
Your function doesn't cover the case, where a rest is first in a tuplet.

Try it with:

\relative c'' {
  \times 2/3 { r8 c, c }
}

Here my approach, covering the rest-case and emitting a warning if kneed beam 
is occurring:

\version 2.16.0

\relative c' {
\override TupletBracket #'after-line-breaking =
  #(lambda (grob)
(let* ((tuplet-dir (ly:grob-property grob 'direction))
   (note-columns (ly:grob-array-list (ly:grob-object grob 
'note-columns)))
   (note-heads-array-list
(flatten-list
  (map
(lambda (x)
  (ly:grob-object x 'note-heads))
note-columns)))
   (note-heads
(flatten-list
  (map
(lambda (x)
  (ly:grob-array-list x))
note-heads-array-list)))
  (stems (map (lambda (x) (ly:grob-object x 'stem)) note-heads))
  (stem-dirs (map (lambda (x) (ly:grob-property x
'direction)) stems))
  (sorted-stems-dirs-list (sort-list stem-dirs (lambda (a b) ( 
a b
  (equal-stems-dir? (= (car sorted-stems-dirs-list) (car 
(reverse sorted-stems-dirs-list)
(if (and equal-stems-dir? (= (car sorted-stems-dirs-list) tuplet-dir))
  (ly:grob-set-property! grob 'direction (* -1 (car
sorted-stems-dirs-list)))
  (ly:warning Kneed beam detected - if desired, adjust TupletBracket 
manually.

\times 2/3 { c'8 c c }
\times 2/3 { r8 c c }
\times 2/3 { r8 r c }
\times 2/3 { c c'' r }
\break
\times 2/3 { c,,,8 c c }
\times 2/3 { r8 c c }
\times 2/3 { r8 r c }
\times 2/3 { c c'' r }
}

Best,
  Harm

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


Re: unwanted barnumber

2012-11-11 Thread Thomas Morley
2012/11/11 shutterfreak olivier.b...@gmail.com:
 While incorporating this code in another score I came across a layouting
 problem: if the tempo name is sufficiently long, then the first measure
 number will be rendered _above_ the tempo indicator.

 This problem only occurs when \omitParenthesizedBarNumbers is invoked in the
 layout block.

Hi Olivier,

try it with:

omitParenthesizedBarNumbers =
\override Score.BarNumber #'before-line-breaking =
#(lambda (grob)
   (let* ((text (ly:grob-property grob 'text))
  (text-arg (caadr text))
  (nmbr? (string-number text-arg)))
 (if (not nmbr?)
 (ly:grob-suicide! grob)
 #f)))


HTH,
  Harm

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


Re: aftergrace with pitchedtrill

2012-11-11 Thread Eluze
Stefan Thomas-5 wrote
 Dear community,
 I'm using version 2.16.0

Trevor complained about:

/But combining pitchedTrill with afterGrace gives a wide and varied
array of warnings and errors, …/

is that still the case with 2.16.0?

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/aftergrace-with-pitchedtrill-tp136190p136234.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: unwanted barnumber

2012-11-11 Thread Olivier Biot
On Sun, Nov 11, 2012 at 11:41 PM, Thomas Morley 
thomasmorle...@googlemail.com wrote:

 2012/11/11 shutterfreak olivier.b...@gmail.com:
  While incorporating this code in another score I came across a layouting
  problem: if the tempo name is sufficiently long, then the first measure
  number will be rendered _above_ the tempo indicator.
 
  This problem only occurs when \omitParenthesizedBarNumbers is invoked in
 the
  layout block.

 Hi Olivier,

 try it with:

 omitParenthesizedBarNumbers =
 \override Score.BarNumber #'before-line-breaking =
 #(lambda (grob)
(let* ((text (ly:grob-property grob 'text))
   (text-arg (caadr text))
   (nmbr? (string-number text-arg)))
  (if (not nmbr?)
  (ly:grob-suicide! grob)
  #f)))


 HTH,
   Harm


Hi Thomas,

Thanks again for your help!

Replacing #'after-line-breaking with #'before-line-breaking in
omitParenthesizedBarNumbers did the trick.

Best regards,

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


Re: Aleatoric / modern notation

2012-11-11 Thread David Nalesnik
Ben,

On Sun, Nov 11, 2012 at 4:27 PM, SoundsFromSound
soundsfromso...@gmail.com wrote:
 David,

 Thanks for the feedback! It's sad to hear that boxed notation is a bit
 challenging in LilyPond (i.e. not possible without breaking parts of it) -
 do you think there will ever be a native, more acceptable way to do boxed
 notation in the future?  I'm not much a programmer so I apologize if that is
 a silly question, but it'd be awesome if it could be implemented.  I'm not
 sure if you mean it's not possible yet, or not possible from a programming
 standpoint.


At some point in time, I do hope that there is an interface which will
allow users to define fully functioning grobs within .ly files.  I
think that will be a giant step forward for the program, as it will
lead to all sorts of new capabilities. I can't speak to the details of
how this will be done as this is beyond my skill level.

The current way to create new grobs is to make the necessary additions
to the various files in the code base.  (This is what was done
recently to create the MeasureCounter grob.)

It should be possible to add frame notation this way, but I think it
will be a long road!  (If you do use this engraver, please let me know
if you run into problems or wish it could do something it can't; I'll
be happy to try to improve it, and possibly do this the right way if
it's promising...)

Best,
David

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


Re: TupletNumber direction

2012-11-11 Thread Thomas Morley
2012/11/11 Daniel Rosen drose...@gmail.com:
 I can't speak to whether the code is sound, but if it is, this should be 
 added to the LSR. Quite frankly, I'm surprised something similar isn't there 
 already.

 DR

Do you really think it's usefull?
As soon as polyphonic occurs, it will produce weird output (I think,
not tested).

-Harm

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


RE: TupletNumber direction

2012-11-11 Thread Daniel Rosen
Well, that's what I meant when I said that I can't speak to whether the code 
was good--I don't know what kind of stuff to check for. But I do personally 
think the functionality is useful.

DR


-Original Message-
From: Thomas Morley [mailto:thomasmorle...@googlemail.com] 
Sent: Sunday, November 11, 2012 5:57 PM
To: Daniel Rosen
Cc: David Nalesnik; David Kastrup; lilypond-user@gnu.org
Subject: Re: TupletNumber direction

2012/11/11 Daniel Rosen drose...@gmail.com:
 I can't speak to whether the code is sound, but if it is, this should be 
 added to the LSR. Quite frankly, I'm surprised something similar isn't there 
 already.

 DR

Do you really think it's usefull?
As soon as polyphonic occurs, it will produce weird output (I think, not 
tested).

-Harm

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


Re: Lilypond cheat sheet

2012-11-11 Thread Olivier Biot
Hi Joram,

Thank you for the updates cheat sheet.

As a matter of fact I just printed both cheat sheets on one sheet of paper
and laminated it. Two sides of invaluable LilyPond information :-)

Hint 1: use heavier stock paper when printing double sided.
Hint 2: print borderless for printing the other sheet (pale green
background).

Best regards,

Olivier


On Sun, Nov 11, 2012 at 10:45 PM, Noeck noeck.marb...@gmx.de wrote:

 Thank you for all your comments on my cheat sheet[1]!

 I included them and spotted some more. Here are the updated versions of
 the English and the German cheat sheet (in svg and pdf format)[2]:

 http://joramberger.de/files/lilypond_sheet_en.svg
 http://joramberger.de/files/lilypond_sheet_en.pdf
 http://joramberger.de/files/lilypond_sheet_de.svg
 http://joramberger.de/files/lilypond_sheet_de.pdf

 Because there is no script to produce it, but only an svg file, I cannot
 recommend including it in the documentation of LilyPond (just as a
 matter of file size and the reduced diff-ability).

 But, not just because I've made it, but especially from a user's point
 of view, I would suggest to make a link from the documentation to the
 cheat sheets of Reinhold Kainhofer (if he agrees) and me. (Perhaps from
 the bottom of this page:
 http://lilypond.org/doc/v2.16/Documentation/notation/cheat-sheet).

 For me personally it is a great help to have a cheat sheet while writing
 scores with LilyPond and I think many users would welcome it, but they
 would never find my website or Reinhold's. Both for beginners and more
 advanced users these could be useful in addition to the above mentioned
 existing cheat sheet of the documentation.

 Concerning the question how to update it for new versions:
 The documentation is for 2.16 anyway and a link could be removed in case
 it gets outdated. However, I intend to update it to the next stable
 version as soon as that comes out. But I cannot guarantee that for all
 eternity, though.

 Cheers,
 Joram



 [1] I have corrected Lilypond to LilyPond even though I dislike this
 capital P ;)

 [2] The website itself is not there yet, but the files are accessible.

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


Re: aftergrace with pitchedtrill

2012-11-11 Thread Thomas Morley
2012/11/11 Eluze elu...@gmail.com:
 Stefan Thomas-5 wrote
 Dear community,
 I'm using version 2.16.0

 Trevor complained about:

 /But combining pitchedTrill with afterGrace gives a wide and varied
 array of warnings and errors, …/

 is that still the case with 2.16.0?

 Eluze

I tested:

\new Staff {
 \afterGrace
 \pitchedTrill
 fis''2
 \startTrillSpan gis''
  { e''16[ fis''] }
 g''2
 \stopTrillSpan
}

with 2.14.2, 2.16.0 and 2.17.6

No warnings.
Output is always quite equal (some differents in spacing, etc)
-png

@Stefan:
Example?

-Harm
attachment: atest-15.preview.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bass and chords

2012-11-11 Thread Thomas Morley
2012/11/7 David Kastrup d...@gnu.org:
 Thomas Morley thomasmorle...@googlemail.com writes:

 Will do, if noone comes up with a better solution or finds a drawback.

 We have markup commands \note and \note-by-number.  It seems to me that
 it would likely be most straightforward to provide the same for \rest
 and possibly \rest-by-number and use that as part of the solution.

Seems you don't like the context-modifications. :)

What should \rest-by-number do, what \musicglyph can't?
Proper output of R1*x?
More?

And how to use it?
Perhaps:
\once \set ChordNames.noChordSymbol = \markup \rest-by-number
reading/processing duration and style
?

-Harm

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


Re: aftergrace with pitchedtrill

2012-11-11 Thread Thomas Morley
2012/11/12 Eric eric.schis...@gmail.com:
 I've had this problem for awhile but in 2.16.0 hit on something that worked
 once. Whether it can be generalized to a _solution_ I don't know. Here's a
 snippet, I hope it helps (it's from a cadenza-like passage in a violin part
 of a quartet (composed ca.1899, published posthumously 1904), f.w.i.w. ...)

 \stemNeutral g8[( \times 4/6 {\stemUp a!32 b c d e f)]} \stemNeutral
 \afterGrace \pitchedTrill g2(\fermata\startTrillSpan as { fis16[ g])
 bes4^\markup{\italicrit.}^^ as^^ g(^^ e!\stopTrillSpan)^^}

 Eric Schissel

Adding
\override TrillPitchAccidental #'avoid-slur = #'inside
kills all warnings.

Am I missing sth?

-Harm

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


Re: lilyglyphs 0.2 - First 'official' release

2012-11-11 Thread Thomas Morley
2012/11/11 Urs Liska li...@ursliska.de:
 Well, nobody stops you from beautifying the revision report as well ;-)

 But seriously, if you are looking for something to play with, you can take
 that document too - with credits to Git ...

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



 Janek Warchoł janek.lilyp...@gmail.com schrieb:

 On Sat, Nov 10, 2012 at 7:53 PM, Urs Liska li...@ursliska.de wrote:
  I'm happy (and also proud) to be able to announce a new release of my
  lilyglyphs LaTeX package.
  While I label it version 0.2 I am convinced that it is the first release
  that is really useable, so I consider this the initial 'public' release.

 Congratulations - this is really great work!  I wish i had some LaTeX
 documents with musical symbols to typeset so that i could play with it
 :)

 thanks,
 Janek


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


Hi Urs,

btw, I recently wished to link to your LilyPond tutorial, announced here:
http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00450.html

Couldn't find it anymore.
Cancelled? Link changed?

Thanks,
  Harm

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


Re: Aleatoric / modern notation

2012-11-11 Thread SoundsFromSound
David:

I'll keep you posted for sure.  Say, do you suppose that this boxed notation
utility could be implemented sooner (and perhaps with more powerful
features) in LilyPond if funding/support increased?  If so, this is one
feature where I'd absolutely give all that I could to make possible. :) $

Ben



David Nalesnik-2 wrote
 Ben,
 
 On Sun, Nov 11, 2012 at 4:27 PM, SoundsFromSound
 lt;

 soundsfromsound@

 gt; wrote:
 David,

 Thanks for the feedback! It's sad to hear that boxed notation is a bit
 challenging in LilyPond (i.e. not possible without breaking parts of
 it) -
 do you think there will ever be a native, more acceptable way to do boxed
 notation in the future?  I'm not much a programmer so I apologize if that
 is
 a silly question, but it'd be awesome if it could be implemented.  I'm
 not
 sure if you mean it's not possible yet, or not possible from a
 programming
 standpoint.

 
 At some point in time, I do hope that there is an interface which will
 allow users to define fully functioning grobs within .ly files.  I
 think that will be a giant step forward for the program, as it will
 lead to all sorts of new capabilities. I can't speak to the details of
 how this will be done as this is beyond my skill level.
 
 The current way to create new grobs is to make the necessary additions
 to the various files in the code base.  (This is what was done
 recently to create the MeasureCounter grob.)
 
 It should be possible to add frame notation this way, but I think it
 will be a long road!  (If you do use this engraver, please let me know
 if you run into problems or wish it could do something it can't; I'll
 be happy to try to improve it, and possibly do this the right way if
 it's promising...)
 
 Best,
 David
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Aleatoric-modern-notation-tp18113p136248.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: lilyglyphs 0.2 - First 'official' release

2012-11-11 Thread Urs Liska

Am 12.11.2012 01:15, schrieb Thomas Morley:


Hi Urs,

btw, I recently wished to link to your LilyPond tutorial, announced here:
http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00450.html

Couldn't find it anymore.
Cancelled? Link changed?
Ah, it is now at 
http://lilypond.ursliska.de/notensatz/lilypond-tutorials/tackle-complex-tasks.html

I had to clean up my home page in order to offer a more concise profile.

Unfortunately I never had the time to update the tutorial. It is a pity 
that I couldn't incorporate the feedback I got here. And I'm sorry that 
I couldn't re-do it with copyright-free music.


But it's still there, now accessible again, and I'd be thankful about 
any links ;-)


Best
Urs


Thanks,
   Harm

___
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: lilyglyphs 0.2 - First 'official' release

2012-11-11 Thread Thomas Morley
2012/11/12 Urs Liska li...@ursliska.de:
 Am 12.11.2012 01:15, schrieb Thomas Morley:


 Hi Urs,

 btw, I recently wished to link to your LilyPond tutorial, announced here:
 http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00450.html

 Couldn't find it anymore.
 Cancelled? Link changed?

 Ah, it is now at
 http://lilypond.ursliska.de/notensatz/lilypond-tutorials/tackle-complex-tasks.html
 I had to clean up my home page in order to offer a more concise profile.

 Unfortunately I never had the time to update the tutorial. It is a pity that
 I couldn't incorporate the feedback I got here. And I'm sorry that I
 couldn't re-do it with copyright-free music.

 But it's still there, now accessible again, and I'd be thankful about any
 links ;-)

See
http://www.lilypondforum.de/index.php?topic=1257.0
together with the cheat sheets.

-Harm

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


Re: Optional args in event-function not working with 2.17.6 ?

2012-11-11 Thread Thomas Morley
2012/11/9 David Kastrup d...@gnu.org:
 Thomas Morley thomasmorle...@googlemail.com writes:

 I was working on
 http://lists.gnu.org/archive/html/lilypond-user/2012-11/msg00185.html
 and wrote a event-function as a template for custom-script-signs.
 This function uses some optional arguments and works as expected in 2.16.0
 But not in 2.17.6
 What am I missing?

 newScript =
 #(define-event-function (parser location lst scaling strg) ((list? '(0
 0 0)) (boolean? #f) string?)

 grave = \newScript #'(-1 0 0) ##t `
 acute = \newScript #'(0 1 0) ##t ´
 threePoints = \newScript …
 noName = \newScript @

 I'd have expected these use cases to work.  However, the interface is a
 bit shaky since a string that can be parsed as a symbol will be
 converted into a list of symbols.  So a string like a or xxx would
 fit the list? predicate.  How do we get out here?

 a) The obvious solution is to use number-list? rather than list? as a
predicate, and we won't get fed a symbol list.

 But the behavior is unexpected, so it might be better to amend it in
 addition.  How to amend it?

 b) … does not really look like an identifier even though it obeys
 LilyPond's rules for unquoted word syntax.  Only allow ASCII characters
 in things auto-converted into symbol lists.

 c) That does not help with xxx.  Only allow unquoted words to
 autoconvert into symbol lists.  I am actually working on this already
 since I am not satisfied with input/regression/lyric-tweak.ly (writing
 quotes seems like it should be sufficient; having to write \markup seems
 weird).  But I am not finished yet, and it would have warranted getting
 finished before discussion.  I have kept the changes.tely entry vague
 enough that it would cover this behavior as well.  Cough cough.

 Solution c would make quoted and unquoted strings unequivalent.
 Solution b would stop the equivalence between what can be an unquoted
 word and what can be a symbol.

 I am not decided about b.  It would not have helped you much.  You'd
 still have gotten failures, but the problem would likely have been
 easier to recognize.  Possibly with both b and c in place, it would
 become easy to guess what happened in the remaining failure cases.

 What do you think?

 --
 David Kastrup

Hi David,

sorry replying that late.

a)
My initial function works following your suggestion to use number-list?
or
if changing the string?-predicate to markup? and using \markup xxx,
with the function-call.
That's nice.
Thanks a lot.

b)
I can't follow all subtleties of your explanations. And also, I can't
imagine all consequences of possible code-changes.
The following is the code I used for testing some alternatives.

\version 2.17.6

#(define (command l n t)
#{
\once \override NoteHead #'after-line-breaking =
  #(lambda (grob)
(ly:grob-set-property! grob 'stencil
   (grob-interpret-markup grob (markup t)))
(ly:grob-set-property! grob 'font-size n)
(ly:grob-set-property! grob 'color l))
\once \override  Score.TimeSignature #'stencil = ##f
#})

aa =
#(define-music-function (parser location lst size txt)((list? '(1 0
0)) (number? 1) markup?)
(command lst size txt))

bb =
#(define-music-function (parser location lst size txt)((number-list?
'(1 0 0)) (number? 1) string?)
(command lst size txt))

% --- test
\paper { line-width = 30 indent = 0 }

\relative c'' {
\aa #'(0 1 1) #1 \markup xy
c1
\aa \markup xy
d
% error with (omitting the first argument):
%\aa #3 \markup xy
%e
\break
\bb #'(0 1 1) #1 xy
c
\bb xy
d
% error with (omitting the first argument):
%\bb #4 xy
%e
}

Seems to work with both functions.
I'd prefer \bb
i.e using number-list? because in the end it's less typing.
But I'd be happy with both versions.

c)
The functions above are using two optional arguments.
And I'm able to omit both optional arguments or the second.
But I can't omit only the first.
Why?


Regards,
  Harm

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


Re: Accidentals with \modalTranspose

2012-11-11 Thread Keith OHara
Vaughan McAlley vaughan at mcalley.net.au writes:

 I want to notate a modal canon at the fifth. \modalTranspose works
 well until there are accidentals in the original line. Fiddling with
 the scale by adding notes causes problems; what would be nice is to be
 able to specify *two* scales:

\modalTranspose can use modes that contain accidentals, but the underlying
code cannot be easily modified to have two different pitches in the mode 
transpose to the same output pitch.

It looks like the canon uses regular transpositions, but with a few
exceptions (or mistakes? or instances of a former convention for notation?)
where the transposition gives B-flat but B was written.

When there are exceptions to the pattern, I uses LilyPond to generate the
input that obeys the pattern strictly, in the form of text input that I 
can past into the input file
  \displayLilyMusic \transpose g c {\firstCanon }
and then edit the result.



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


Re: Square brackets across an entire system?

2012-11-11 Thread Keith OHara
Aristotle Esguerra aristotle at esguerra.info writes:


 http://lsr.dsi.unimi.it/LSR/Snippet?id=377
 Is there a similar way to create square brackets that span an entire system?
 

The answer appears to be no, although it would seem to be useful to have.

Drawing one bracket across many staves is more difficult than what the 
existing LSR item does, because the height has to vary depending on the 
space required for the staves.

LilyPond draws span bars across several staves, and has an accessible 
interface to choose what shapes to use for bar lines (in bar-line.scm) 
so a LilyPond user who understands some Scheme could probably make the 
extended brackets, with some effort.



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


Re: Version Control and Public Repository

2012-11-11 Thread Stjepan Horvat
Now thats a useful information..i will ask a lawyer here in croatia and
report what i heard.


On Sun, Nov 11, 2012 at 7:33 PM, martinwguy martinw...@gmail.com wrote:

 On 11 November 2012 18:39, Francisco Vila paconet@gmail.com wrote:
  and i transcribed (by ear) many scores i don't have rights for..
 
  how do you handle this kind of staff..
  What are the laws related to such situations?!
 
  I think copyright laws are clear, regardless of whether you
  transcribed it by ear or photocopied it, you can not publish material
  you don't own the rights of.

 That's a simplistic play-it-safe position, but in reality copyright
 laws are different in every country and cover different situations in
 different ways.

 The term for derivative works of music that do not directly reuse
 another person's performance, which includes cover versions and new
 typesettings of sheet music, is Mechanical license and in the US you
 have the right to do this, whether or not the owner of the copyright
 of the original score or of a particular performance want you to or
 not, on payment of a small fee that is calculateda according to some
 tables ($15 per song + a cut of the profits, if any), managed through
 a central agency.

 In other legal giurisdictions, different laws apply.

 See http://en.wikipedia.org/wiki/Mechanical_license for further details.

 M

 No, I'm not a lawyer either.




-- 
*Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
Izreke 12:18*
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user