Re: Diatonic transposition within a key

2014-04-28 Thread Tim McNamara

On Apr 28, 2014, at 7:26 PM, David Kastrup  wrote:

> Tim McNamara  writes:
> 
>> Can I put \modalTranspose inside the existing \transpose?  Or should
>> it go outside?  Or will the two hopelessly disagree?  My head hurts
>> trying to figure this sort of thing out...
> 
> When in doubt, try it out.
> 
> It would seem most likely to me that you can use \modalTranspose inside
> of the \transpose to transpose according to the scale with which the
> music has been entered, and outside of \transpose to transpose according
> to the scale with which the music will get printed.

OK, I think I get part of that.  I’m confused about how to implement the 

diatonicScale = \relative c' { c d e f g a b }
motif = \relative c' { c8 d e f g a b c }

parts of the command.  Does one put in the scale of the parent key into the 
diatonicScale (e.g., \relative c’ { g a b c d e fis } for the key of G)?  And 
would this go inside or outside \transpose with the \modalTranspose command?

So far no matter where I put this in the score, compilation fails.


Tim


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


Re: Diatonic transposition within a key

2014-04-28 Thread David Kastrup
Tim McNamara  writes:

> Can I put \modalTranspose inside the existing \transpose?  Or should
> it go outside?  Or will the two hopelessly disagree?  My head hurts
> trying to figure this sort of thing out...

When in doubt, try it out.

It would seem most likely to me that you can use \modalTranspose inside
of the \transpose to transpose according to the scale with which the
music has been entered, and outside of \transpose to transpose according
to the scale with which the music will get printed.

-- 
David Kastrup

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


Re: Diatonic transposition within a key

2014-04-28 Thread Tim McNamara

On Apr 28, 2014, at 6:38 PM, David Kastrup  wrote:

> Tim McNamara  writes:
> 
>> I’ve been hunting around (without success) for a method to transpose a
>> melody up or down an interval diatonically.  It’s easy to transpose
>> into a new key to deal with transposing instruments, but I want to
>> shift a melody up a third within the original key to create a harmony
>> line.  Does Lilypond have that capability to save me having to do it
>> manually?
> 
> http://www.lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches.html#modal-transformations>

Thank you!  Unfortunately I can’t figure out how to make it work based on 
what’s in the docs (musician here rather than having any competence at all in 
writing code).

Perhaps the scenario will help along with a snippet.  The chart I am trying to 
generate is a trumpet chart.  It is already transposed from the concert key 
using \transpose to account for the Bb transposition of the horn.  Now I want 
to lift the melody up a third to place the trumpet in a harmony line with a 
tenor sax playing the original melody.  Does that make sense so far?

Can I put \modalTranspose inside the existing \transpose?  Or should it go 
outside?  Or will the two hopelessly disagree?  My head hurts trying to figure 
this sort of thing out...


Here’s a snippet of the modified melody, hopefully this will be sufficient (the 
way the file is laid out, there is a \paper block, a block for chords, a block 
for melody and then they are put together in a \score block at the end of the 
document).




 melody = \transpose c d \relative c' {
\numericTimeSignature
\time 4/4
\clef treble
\key g \major

\partial 4*2 \times 2/3 { r4 e4 fis4}

% 1
\bar "|:"
g1~
g4. b8 a8 g8 r8 a16 g16 
fis1~
fis2 \times 2/3 { r4 e4 g4 }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Diatonic transposition within a key

2014-04-28 Thread David Kastrup
Tim McNamara  writes:

> I’ve been hunting around (without success) for a method to transpose a
> melody up or down an interval diatonically.  It’s easy to transpose
> into a new key to deal with transposing instruments, but I want to
> shift a melody up a third within the original key to create a harmony
> line.  Does Lilypond have that capability to save me having to do it
> manually?

http://www.lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches.html#modal-transformations>

-- 
David Kastrup

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


Diatonic transposition within a key

2014-04-28 Thread Tim McNamara
I’ve been hunting around (without success) for a method to transpose a melody 
up or down an interval diatonically.  It’s easy to transpose into a new key to 
deal with transposing instruments, but I want to shift a melody up a third 
within the original key to create a harmony line.  Does Lilypond have that 
capability to save me having to do it manually?

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


Re: How to access objects/content from another lilypond file: microtone symbol for raised flat

2014-04-28 Thread Urs Liska

Am 29.04.2014 00:02, schrieb Kate Sekula:

I am trying to use microtone notation and need the symbol for a raised flat.
I have the lilypond document from the following page saved as microtone.ly in
the same folder as my main document.

http://x31eq.com/lilypond/regular.ly

Is there a way to access the object for a raised flat (esih) from microtone.ly
without using the the /include command?  I don't want to print microtone.ly
within my main doc., I just want to have access to its contents.




Please make clear what you are exactly referring to.
I tried to make sense of the regular.ly file you are linking but I'm not 
really clear what you want to achieve and which microtone.ly you mean.


Urs


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


How to access objects/content from another lilypond file: microtone symbol for raised flat

2014-04-28 Thread Kate Sekula
I am trying to use microtone notation and need the symbol for a raised flat.  
I have the lilypond document from the following page saved as microtone.ly in 
the same folder as my main document.  

http://x31eq.com/lilypond/regular.ly

Is there a way to access the object for a raised flat (esih) from microtone.ly 
without using the the /include command?  I don't want to print microtone.ly 
within my main doc., I just want to have access to its contents.


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


Re: Yet another voice and ties problem

2014-04-28 Thread Nick Payne

On 29/04/14 04:48, Knute Snortum wrote:
I have another problem with voices and ties.  basically, I have 
octaves moving and an inner voice staying still.  I'd like the upper 
notes of the octaves to be tieUp and the lower notes to be tieDown. 
 But I can find no way to act on the lower and upper note 
independently of each other and still share a stem.


Move the ties inside the chord construct. i.e. Instead of 4.~, 
use 4.



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


PDF portfolio of 2.19.5 docs

2014-04-28 Thread Nick Payne
Is available at 
https://www.dropbox.com/s/txf8ad4600ky7fd/lilydoc-2.19.5.pdf. Needs to 
be opened in Adobe Reader 9.x or later to correctly function as a portfolio.


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


Re: Pull in external LilyPond files into a score of movements

2014-04-28 Thread Paul Morris
David Kastrup wrote
> doScore =
> #(define-void-function (parser location cond? mus)(procedure? ly:music?)
>; if condition is met, parser shall create score
>(if (cond? parser location)
>(begin
> (ly:parser-define! parser 'doScoreMusic mus)
> (ly:parser-include-string parser (format "\\score { \\doScoreMusic
> }"))
> )))
> 
> With current LilyPond (as of 2.19.0, issue 3728), you could likely do
> better with something like
> 
> doScore =
> #(define-scheme-function (parser location cond? mus) (procedure?
> ly:music?)
>   (if (cond? parser location)
>   #{ \score { #mus } #}))

Nice, that is certainly better!  Thanks for the reminder on how to do this
(I had simply forgotten...).  And as always thanks for all your good work on
LilyPond.

-Paul





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Pull-in-external-LilyPond-files-into-a-score-of-movements-tp161839p161904.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: Yet another voice and ties problem

2014-04-28 Thread David Kastrup
David Kastrup  writes:

> Knute Snortum  writes:
>
>> I have another problem with voices and ties.  basically, I have octaves
>> moving and an inner voice staying still.  I'd like the upper notes of the
>> octaves to be tieUp and the lower notes to be tieDown.  But I can find no
>> way to act on the lower and upper note independently of each other and
>> still share a stem.
>
> Actually, the tricky part here is _not_ using a "whole-chord" tie event
> but rather _individual_ "in-chord" tie events.  The way you structure
> your input (namely writing parallel music rather than true chords),
> doing that is somewhat irksome.
>
> The next problem is that \tieUp and \tieDown are overrides and apply to
> everything in a Voice, and the Stem_engraver is by default at Voice
> level.  Fortunately, there is \single for converting an override into a
> tweak.

Actually, we don't need \single.  Doh.

Just using ^ and _ is sufficient:

\version "2.18.2"

\language "english"

global = {
  \key gs \minor
  \time 6/8
  \clef treble
}

\new Staff {
  <<
\new Voice {
  \relative c'' {
\global
\voiceOne
% | 4. ~ ( q8 8  )
% \once \override Tie.rotation = #'(180 0 0)
<<
  { 4. a8 gs fs }
  { 4. a8 gs fs }
>>
  }
}
\new Voice {
  \relative c'' {
\global
\voiceTwo
\override NoteColumn.force-hshift = #1.4
2.
  }
}
  >>
}


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


Re: Yet another voice and ties problem

2014-04-28 Thread David Kastrup
Knute Snortum  writes:

> I have another problem with voices and ties.  basically, I have octaves
> moving and an inner voice staying still.  I'd like the upper notes of the
> octaves to be tieUp and the lower notes to be tieDown.  But I can find no
> way to act on the lower and upper note independently of each other and
> still share a stem.

Actually, the tricky part here is _not_ using a "whole-chord" tie event
but rather _individual_ "in-chord" tie events.  The way you structure
your input (namely writing parallel music rather than true chords),
doing that is somewhat irksome.

The next problem is that \tieUp and \tieDown are overrides and apply to
everything in a Voice, and the Stem_engraver is by default at Voice
level.  Fortunately, there is \single for converting an override into a
tweak.

So we get

\version "2.18.2"

\language "english"

global = {
  \key gs \minor
  \time 6/8
  \clef treble
}

\new Staff {
  <<
\new Voice {
  \relative c'' {
\global
\voiceOne
% | 4. ~ ( q8 8  )
% \once \override Tie.rotation = #'(180 0 0)
<<
  { 4. a8 gs fs }
  { 4. a8 gs fs }
>>
  }
}
\new Voice {
  \relative c'' {
\global
\voiceTwo
\override NoteColumn.force-hshift = #1.4
2.
  }
}
  >>
}


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


Yet another voice and ties problem

2014-04-28 Thread Knute Snortum
I have another problem with voices and ties.  basically, I have octaves
moving and an inner voice staying still.  I'd like the upper notes of the
octaves to be tieUp and the lower notes to be tieDown.  But I can find no
way to act on the lower and upper note independently of each other and
still share a stem.


​Here is the sample code:

%%%

\version "2.18.2"

\language "english"

global = {

  \key gs \minor

  \time 6/8

  \clef treble

}

\new Staff {

  <<

\new Voice {

  \relative c'' {

\global

\voiceOne

% | 4. ~ ( q8 8  )

% \once \override Tie.rotation = #'(180 0 0)

<<

  { \tieUp a4. ~ a8 gs fs }

  { \tieDown a'4. ~ a8 gs fs }

>>

  }

}

\new Voice {

  \relative c'' {

\global

\voiceTwo

\override NoteColumn.force-hshift = #1.4

2.

  }

}

  >>

}




Knute Snortum
(via Gmail)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Pull in external LilyPond files into a score of movements

2014-04-28 Thread David Kastrup
Paul Morris  writes:

> Hi David,
>
>
> David Kastrup wrote
>>> Your "doScore" function seems to be a workaround for the limitation
>>> that music functions can't return a score.
>> 
>> That's not a "limitation".  A music function returning a score makes as
>> little sense as an integer function returning a complex number.
>> 
>> If you want to return a score, don't use a music function.
>
> Ok, point taken.  I guess I had not fully internalized the distinction in
> the code between music and a score.  At any rate, I did not intend any
> criticism of the design or implementation of music functions.  Just glad to
> have an example of a way to write a scheme function that returns a score. 
> That's something I had not been able to figure out on my own before.

Ugh.

doScore =
#(define-void-function (parser location cond? mus)(procedure? ly:music?)
   ; if condition is met, parser shall create score
   (if (cond? parser location)
   (begin
(ly:parser-define! parser 'doScoreMusic mus)
(ly:parser-include-string parser (format "\\score { \\doScoreMusic }"))
)))

With current LilyPond (as of 2.19.0, issue 3728), you could likely do
better with something like

doScore =
#(define-scheme-function (parser location cond? mus) (procedure? ly:music?)
  (if (cond? parser location)
  #{ \score { #mus } #}))

-- 
David Kastrup

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


Re: Pull in external LilyPond files into a score of movements

2014-04-28 Thread Paul Morris
Hi David,


David Kastrup wrote
>> Your "doScore" function seems to be a workaround for the limitation
>> that music functions can't return a score.
> 
> That's not a "limitation".  A music function returning a score makes as
> little sense as an integer function returning a complex number.
> 
> If you want to return a score, don't use a music function.

Ok, point taken.  I guess I had not fully internalized the distinction in
the code between music and a score.  At any rate, I did not intend any
criticism of the design or implementation of music functions.  Just glad to
have an example of a way to write a scheme function that returns a score. 
That's something I had not been able to figure out on my own before.

-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Pull-in-external-LilyPond-files-into-a-score-of-movements-tp161839p161899.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: spanner angle

2014-04-28 Thread Kate Sekula
Worked like a charm!  Thank you!




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


Re: spanner angle

2014-04-28 Thread Pierre Perol-Schneider
2014-04-28 18:56 GMT+02:00 Kate Sekula :


>  % \once \override TextSpanner...something about bound details on
> right?
>

 \override TextSpanner.rotation = #'(10 -1 0) % or whatever

should do the job.
see also :
http://www.lilypond.org/doc/v2.18/Documentation/notation/rotating-objects.fr.html

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


Re: Pull in external LilyPond files into a score of movements

2014-04-28 Thread David Kastrup
Paul Morris  writes:

> Hi Jan-Peter,
>
>
> Jan-Peter Voigt wrote
>> to use a file for including definitions and also to compile it 
>> stand-alone, I use a command to conditionally create the score. It is 
>> integrated in a system to execute templates:
>> https://github.com/openlilylib/snippets/tree/master/templates/lalily
>> 
>> Attached is a short example, which conditionally compiles (without the 
>> template framework).
>
> Wow, thanks, this is a nice solution!  So the "conditional-compile.ly" file
> is the child file (for a single movement) and the "conditional-compile2.ly"
> file is the parent file (that contains several movements).  Below is a
> version of "conditional-compile.ly" where I added some logging commands if
> that helps anyone else see how it's working.
>
> Your "doScore" function seems to be a workaround for the limitation
> that music functions can't return a score.

That's not a "limitation".  A music function returning a score makes as
little sense as an integer function returning a complex number.

If you want to return a score, don't use a music function.

> (I tried to rewrite it as a music function but got "error: music
> function cannot return #".

Scheme functions exist.

-- 
David Kastrup

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


spanner angle

2014-04-28 Thread Kate Sekula
Is there a way to make a spanner angle upwards/downwards?  I am trying to 
create a textspanner line which starts at (0 . 0) and ends somewhere around (0 
. 2).  

Here's a minimal example:
 \once \override TextSpanner.style = #'line
 % \once \override TextSpanner...something about bound details on right?
 \times 2/3 {fis\startTextSpan gis fis!} a32 d, fis! 
 c^\accent\stopTextSpan


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


Re: Pull in external LilyPond files into a score of movements

2014-04-28 Thread Paul Morris
Hi Jan-Peter,


Jan-Peter Voigt wrote
> to use a file for including definitions and also to compile it 
> stand-alone, I use a command to conditionally create the score. It is 
> integrated in a system to execute templates:
> https://github.com/openlilylib/snippets/tree/master/templates/lalily
> 
> Attached is a short example, which conditionally compiles (without the 
> template framework).

Wow, thanks, this is a nice solution!  So the "conditional-compile.ly" file
is the child file (for a single movement) and the "conditional-compile2.ly"
file is the parent file (that contains several movements).  Below is a
version of "conditional-compile.ly" where I added some logging commands if
that helps anyone else see how it's working.

Your "doScore" function seems to be a workaround for the limitation that
music functions can't return a score.  (I tried to rewrite it as a music
function but got "error: music function cannot return #".  

I think this would be a nice standalone snippet for the LSR or openLilyLib. 
And I need to take a closer look at your lalily template system and edition
engraver.  

Thanks,
-Paul

BTW, if anyone is wondering what "smob" refers to, for example in
"parser-smob" in the docs, I found this ("small object"):
https://www.gnu.org/software/guile/manual/html_node/Defining-New-Types-_0028Smobs_0029.html#Defining-New-Types-_0028Smobs_0029



% "conditional-compile.ly"

\version "2.18.2"

#(use-modules (ice-9 regex))

#(define (lalily-test-location? parser location)
   (let ((outname (ly:parser-output-name parser))
 (locname (car (ly:input-file-line-char-column location
 
 (display "1. ")(display outname) (newline)
 (display "2. ")(display locname) (newline)
 
 ; check if parser-output-name and location-name match
 (regexp-match? (string-match (format "^(.*/)?~A\\.i?ly$" outname)
locname))
 
 (display "3. ")(display (regexp-match? (string-match (format
"^(.*/)?~A\\.i?ly$" outname) locname))) (newline)
 ))

doScore =
#(define-void-function (parser location cond? mus)(procedure? ly:music?)
   ; if condition is met, parser shall create score
   (if (cond? parser location)
   (begin
(ly:parser-define! parser 'doScoreMusic mus)
(ly:parser-include-string parser (format "\\score { \\doScoreMusic
}"))

(display "4. ")(display (format "\\score { \\doScoreMusic
}"))(newline)
)))

% music definition
exampleMusic = \relative c'' { c4 b bes a }

% create score, if condition is met
\doScore #lalily-test-location? \exampleMusic




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Pull-in-external-LilyPond-files-into-a-score-of-movements-tp161839p161894.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: frescobaldi vs. org-babel-lilypond

2014-04-28 Thread Steven Arntson
James Harkins  writes:

> Steven Arntson  stevenarntson.com> writes:
>
>> I may be getting in over my head with this question. I'm a new user of
> Lilypond,
>> transitioning away from Musescore. I've
>> been using Frescobaldi a bit, and am impressed with it so far.
>> 
>> However, I see there's an Emacs mode available through org-babel called
>> "Arrange Mode". I'm a user of Emacs (though far from an expert!), and I
>> love the environment.
>> 
>> Does anyone have familiarity with both, who could highlight a few of the
>> differences? Frescobaldi has many features I doubt I'll use much (such
>> as the Quick Insert menu). Mainly what I like about it is the
>> integration of the windows--text entry, music display, lilypond
>> messages, and MIDI playback. I wonder if that could be done with a
>> dedicated Emacs instance.
>
> I would cast my vote for Frescobaldi, actually.
>
> I went through a phase of trying to do everything in Emacs -- org-mode,
> e-mail (Wanderlust), LilyPond-mode, sclang-mode for SuperCollider. Now
> I use
> Emacs only for org-mode -- and by itself, that's a good enough reason to
> keep Emacs around. (I'm not kidding -- it's the best organizer/authoring
> tool I've ever seen.)
>
> For me, the thing that seals the deal in favor of Frescobaldi is its
> syntax-aware autocompletion. It's pretty good at hiding completion options
> that are not appropriate in that location -- good enough that, if I
> expect a
> completion menu and one doesn't appear, that's often a red flag to recheck
> the syntax.
>
> LilyPond-mode may have grown since I stopped using it, but at the
> time, its
> completion tables left out a lot of valuable keywords, and it provides
> basically no on-the-fly assistance with syntax.
>
> Plus, the integrated PDF viewer with point-and-click to jump to the bit of
> code responsible for a glyph, and which also highlights the glyph coming
> from the text cursor's location, saves HOURS of navigation time. Really,
> seriously.
>
> My opinion is that Emacs-purity isn't worth losing the conveniences of
> Frescobaldi.
>
> hjh

That's exactly the sort of thing I've been wondering about. Clicking on
the noteheads to see the same spot in the txt file has been a big
benefit for me already, and I can tell my productivity would suffer for
losing it. Much as I miss the emacs keybindings (and am always opening a
print dialog when I try to move the cursor down a line) there seem to be
many advantages to sticking with Frescobaldi.


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


Re: easyHeadsOn with numbers or solfege coded in <<{...}\\{..}>> construct

2014-04-28 Thread MING TSANG
Hi, Pierre:
<<<
On Monday, April 28, 2014 10:40:40 AM, Pierre Perol-Schneider 
 wrote:
 
2014-04-28 14:08 GMT+02:00 MING TSANG :

 
I applied your change to my full score and I notice that the staff size for 
female-staff & male-staff are the same.  I am expecting the male-staff size is 
larger for better reading.  

Hi,

Please try the enclosed file,

~Pierre

>>>
Yes! It works..  thank you very much.   Have a great day!
Emmanuel,
Ming.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tuplet bracket / articulation collision

2014-04-28 Thread Pierre Perol-Schneider
2014-04-28 16:14 GMT+02:00 David Stephen Grant :

> Hello list,
>

Hello David,


> I'm looking for a way to nudge the articulation slightly to the left, but
> can't work out how to do this.
>

Try :

%%
\relative c {

   \clef bass

   r8. c=16(

   \tuplet 3/2 { c,16-\tweak X-offset #.1 ^^ g' bes } d8~ d4~ d8-.) r8 |

}
%%%

see also :
http://www.lilypond.org/doc/v2.18/Documentation/notation/the-tweak-command

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


Re: easyHeadsOn with numbers or solfege coded in <<{...}\\{..}>> construct

2014-04-28 Thread Pierre Perol-Schneider
2014-04-28 14:08 GMT+02:00 MING TSANG :


> I applied your change to my full score and I notice that the staff size
> for female-staff & male-staff are the same.  I am expecting the male-staff
> size is larger for better reading.
>

Hi,
Please try the enclosed file,
~Pierre

>
\version "2.19.5"

\language "english"

#(define solfege (circular-list "d" "r" "m" "f" "s" "l" "t"))
#(define numbers (circular-list "1" "2" "3" "4" "5" "6" "7"))

#(define (Ez_noteheads-engraver lst )
   (list
(cons 'acknowledgers
  (list
   (cons 'note-head-interface
 (lambda (engraver grob source-engraver)
   (let* ((context (ly:translator-context engraver))
  (tonic-pitch (ly:context-property context 'tonic))
  (tonic-name (ly:pitch-notename tonic-pitch))
  (delta (- 7 tonic-name))
  (solfege-base lst)
  (solfege (take (drop solfege-base delta) 7))
  (note-names (apply vector solfege)))
 ; (display solfege)(newline)
 (ly:grob-set-property! grob 'note-names
   note-names

% set male staff elements sizes : 
mySize = #1.4

EzON = {
  \easyHeadsOn
  \override Staff.StaffSymbol.staff-space = \mySize
  \override Staff.Clef.font-size = \mySize
  \override Staff.TimeSignature.font-size = \mySize
}

% if needded :
EzOFF = {
  \easyHeadsOff
  \revert Staff.StaffSymbol.staff-space
  \revert Staff.Clef.font-size
  \revert Staff.TimeSignature.font-size
}

EzNum = \with { \consists #( Ez_noteheads-engraver numbers ) } 
#(define eznum  #( Ez_noteheads-engraver numbers )) 
EzSol = \with { \consists #( Ez_noteheads-engraver solfege   ) } 
ezsol =   #( Ez_noteheads-engraver solfege   )

% {
#(set-global-staff-size 26)

globalii = {
  \key c \major
  \numericTimeSignature
  \time 3/4
}

SA = {
  \globalii
  
  %% uncomment below for easy reading :
  %\EzON
  
  | % mes.27
<< 
   { 
 \voiceOne 
 c''4. b'8 
   }
   \new Voice { 
 
  %% uncomment below for easy reading :
  %\EzON
 
 \voiceTwo 
 d'4 c'4 
   }
>> 
\oneVoice 
4

  | % mes.28
4 r4 q4 

  | % mes.29  
4 4 4 

  | % mes.30
  4 4 4
  
  | % mes.31-32
<<
  {
\voiceOne 
e'2.^~
  | % mes.32
e'4
  }
  \new Voice {
\voiceTwo 

  %% uncomment below for easy reading :
  %\EzON

d'4( c'2~ 
  | % mes.32 
c'4)
  }
>> 
\oneVoice
r4 g'4 

  | % mes.3...
}

TB = { 
  \globalii
  
  %% comment-on below for standart reading :
  \EzON
  
  | % mes.27
4 q4 4 
  
  | % mes.28 
4 r4 q4 
  
  | % mes.29 
4 q4 
<<
  {
\voiceOne 
a8( g8)
  }
  \new Voice{
\voiceTwo 

  %% comment-on below for standart reading :
  \EzON
  
d4
  }
>> 
  
  | % mes.30 
\oneVoice 
4 q4 q4 
  
  | % mes.31 
2.~ 
  
  | % mes.32 
q4 r4 g4 

  | % mes.3.. 
}

\score {
  \new ChoirStaff <<
\new Staff  
\EzNum 
{
  <<
\new Voice = "female"
\SA 
  >>
}
\new Staff 
\EzSol  
{
  % comment-on for standard size :
  \set Staff.fontSize = \mySize
  
  \set Staff.instrumentName = \markup \center-column { "T." "B." }
  \set Staff.shortInstrumentName = \markup \center-column { "T." "B." }
  <<
\clef bass
\new Voice = "male"   
\voiceOne 
\TB 
  >>
}
  >>
  \layout { }
}


%{
convert-ly.py (GNU LilyPond) 2.19.5  convert-ly.py: Processing `'...
Applying conversion: 2.19.2
%}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Tuplet bracket / articulation collision

2014-04-28 Thread David Stephen Grant
Hello list,
Please see code snippet: In the second system the slur seems to be pushing
the tuplet bracket down, causing it to collide with the wedge. I'm looking
for a way to nudge the articulation slightly to the left, but can't work
out how to do this. Help or other suggestions much appreciated!
Best, David

\version "2.18.2"

\relative c {
  \clef bass
  r8. c=16
  \tuplet 3/2 { c,16^^ g' bes } d8~ d4~ d8-. r8 |
}

\relative c {
  \clef bass
  r8. c=16(
  \tuplet 3/2 { c,16^^ g' bes } d8~ d4~ d8-.) r8 |
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reducing the second VoltaBracketSpanner length.

2014-04-28 Thread Thomas Morley
2014-04-27 20:48 GMT+02:00 Richard Shann :
> On Sun, 2014-04-27 at 19:31 +0200, Thomas Morley wrote:
>> It is a simple typo in bar-line.scm
>> replace:
>> (define-bar-line ":|]" ":|]" #f " |")
>> with
>> (define-bar-line ":|]" ":|]" #f " | ")
>> and all should work. Note the added space!
>>
>> For now you should use 'shorten-pair as shown.
>
> hmm, does this mean that you could put
>
> #(define-bar-line ":|]" ":|]" #f " | ")

Yes. It works.

>
> at the head of your file and it would work too (and then need less
> changes, or none, when the patch gets into the code)?

patch is on the way
http://code.google.com/p/lilypond/issues/detail?id=3908

Cheers,
  Harm

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


Re: frescobaldi vs. org-babel-lilypond

2014-04-28 Thread James Harkins
Steven Arntson  stevenarntson.com> writes:

> I may be getting in over my head with this question. I'm a new user of
Lilypond,
> transitioning away from Musescore. I've
> been using Frescobaldi a bit, and am impressed with it so far.
> 
> However, I see there's an Emacs mode available through org-babel called
> "Arrange Mode". I'm a user of Emacs (though far from an expert!), and I
> love the environment.
> 
> Does anyone have familiarity with both, who could highlight a few of the
> differences? Frescobaldi has many features I doubt I'll use much (such
> as the Quick Insert menu). Mainly what I like about it is the
> integration of the windows--text entry, music display, lilypond
> messages, and MIDI playback. I wonder if that could be done with a
> dedicated Emacs instance.

I would cast my vote for Frescobaldi, actually.

I went through a phase of trying to do everything in Emacs -- org-mode,
e-mail (Wanderlust), LilyPond-mode, sclang-mode for SuperCollider. Now I use
Emacs only for org-mode -- and by itself, that's a good enough reason to
keep Emacs around. (I'm not kidding -- it's the best organizer/authoring
tool I've ever seen.)

For me, the thing that seals the deal in favor of Frescobaldi is its
syntax-aware autocompletion. It's pretty good at hiding completion options
that are not appropriate in that location -- good enough that, if I expect a
completion menu and one doesn't appear, that's often a red flag to recheck
the syntax.

LilyPond-mode may have grown since I stopped using it, but at the time, its
completion tables left out a lot of valuable keywords, and it provides
basically no on-the-fly assistance with syntax.

Plus, the integrated PDF viewer with point-and-click to jump to the bit of
code responsible for a glyph, and which also highlights the glyph coming
from the text cursor's location, saves HOURS of navigation time. Really,
seriously.

My opinion is that Emacs-purity isn't worth losing the conveniences of
Frescobaldi.

hjh



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


Re: easyHeadsOn with numbers or solfege coded in <<{...}\\{..}>> construct

2014-04-28 Thread Pierre Perol-Schneider
2014-04-28 4:32 GMT+02:00 MING TSANG :

> Hi, Pierre:
>

Hi Emmanuel,


>  I remove the \EzNum from Female staff; I am expecting to see normal
> staff display, but it give me the easyNoteheadsOn .  I want female Staff
> display normal staff and male staff display as selfege noteheads. Any idea
> to resolve this.
>

See enclosed file.


>   Sorry that I impose so much problems on you.
>

No problem
Cheers,
\version "2.19.5"

\language "english"

#(define solfege (circular-list "d" "r" "m" "f" "s" "l" "t"))
#(define numbers (circular-list "1" "2" "3" "4" "5" "6" "7"))

#(define (Ez_noteheads-engraver lst )
   (list
(cons 'acknowledgers
  (list
   (cons 'note-head-interface
 (lambda (engraver grob source-engraver)
   (let* ((context (ly:translator-context engraver))
  (tonic-pitch (ly:context-property context 'tonic))
  (tonic-name (ly:pitch-notename tonic-pitch))
  (delta (- 7 tonic-name))
  (solfege-base lst)
  (solfege (take (drop solfege-base delta) 7))
  (note-names (apply vector solfege)))
 ; (display solfege)(newline)
 (ly:grob-set-property! grob 'note-names
   note-names

EzON = {
  \easyHeadsOn
  \override Staff.StaffSymbol.staff-space = #1.25  
  \override Staff.StaffSymbol.line-thickness = #1.25  
  \override Staff.NoteHead.font-size = #+3.25  
  \override Staff.Clef.font-size = #+1.35  
  \override Staff.TimeSignature.font-size = #+1.35  
  %\override Staff.Accidental.font-size = #+1.35  
  \override Staff.NoteHead.font-size = #-5.0  
}

% if needded :
EzOFF = {
  \easyHeadsOff
  \revert Staff.StaffSymbol.staff-space
  \revert Staff.StaffSymbol.line-thickness
  \revert Staff.NoteHead.font-size 
  \revert Staff.Clef.font-size
  \revert Staff.TimeSignature.font-size
  %\revert Staff.Accidental.font-size
  \revert Staff.NoteHead.font-size
}

EzNum = \with { \consists #( Ez_noteheads-engraver numbers ) } 
#(define eznum  #( Ez_noteheads-engraver numbers )) 
EzSol = \with { \consists #( Ez_noteheads-engraver solfege   ) } 
ezsol =   #( Ez_noteheads-engraver solfege   )

% {
#(set-global-staff-size 26)

globalii = {
  \key c \major
  \numericTimeSignature
  \time 3/4
}

SA = {
  \globalii
  
  %% uncomment below for easy reading :
  %\EzON
  
  | % mes.27
<< 
   { 
 \voiceOne 
 c''4. b'8 
   }
   \new Voice { 
 
  %% uncomment below for easy reading :
  %\EzON
 
 \voiceTwo 
 d'4 c'4 
   }
>> 
\oneVoice 
4

  | % mes.28
4 r4 q4 

  | % mes.29  
4 4 4 

  | % mes.30
  4 4 4
  
  | % mes.31-32
<<
  {
\voiceOne 
e'2.^~
  | % mes.32
e'4
  }
  \new Voice {
\voiceTwo 

  %% uncomment below for easy reading :
  %\EzON

d'4( c'2~ 
  | % mes.32 
c'4)
  }
>> 
\oneVoice
r4 g'4 

  | % mes.3...
}

TB = { 
  \globalii
  
  %% comment-on below for standart reading :
  \EzON
  
  | % mes.27
4 q4 4 
  
  | % mes.28 
4 r4 q4 
  
  | % mes.29 
4 q4 
<<
  {
\voiceOne 
a8( g8)
  }
  \new Voice{
\voiceTwo 

  %% comment-on below for standart reading :
  \EzON
  
d4
  }
>> 
  
  | % mes.30 
\oneVoice 
4 q4 q4 
  
  | % mes.31 
2.~ 
  
  | % mes.32 
q4 r4 g4 

  | % mes.3.. 
}

\score {
  \new ChoirStaff <<
\new Staff  
\EzNum 
{
  <<
\new Voice = "female"
\SA 
  >>
}
\new Staff 
\EzSol  
{
  \set Staff.instrumentName = \markup \center-column { "T." "B." }
  \set Staff.shortInstrumentName = \markup \center-column { "T." "B." }
  <<
\clef bass
\new Voice = "male"   
\voiceOne 
\TB 
  >>
}
  >>
  \layout { }
}


%{
convert-ly.py (GNU LilyPond) 2.19.5  convert-ly.py: Processing `'...
Applying conversion: 2.19.2
%}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Absolute size for \epsfile, i.e. independent of global-staff-size

2014-04-28 Thread Marc Hohl

Am 28.04.2014 00:08, schrieb Rutger Hofman:

Good evening list,

I want to include a title page w/ an \epsfile image in a number of files
(score, parts), where the point size for the files may differ: score has
smaller font than parts, basically. Now I want to write one include file
that makes the title page, and I want that title page to be independent
of the point size of the lilypond file. I can get that done for markups
(\abs-fontsize works fine), but I don't know how I can do it for the
image from the \epsfile: it scales with the font size.

Suggestions? If there is no direct way, then maybe a way to
programmatically query the font size and correct for that?


Hi, I used something like that in one of my projects:

#(define-markup-command (epsfile-mm layout props axis size file-name)
  (number? number? string?)
  (let* ((o-s (ly:output-def-lookup layout 'output-scale))
 (scaled-size (abs (/ size o-s
  (if (ly:get-option 'safe)
  (interpret-markup layout props "not allowed in safe")
  (eps-file->stencil axis scaled-size file-name)
  )))

It works like \epsfile but assumes the dimensions are in mm.

HTH,

Marc



Rutger Hofman
Amsterdam

___
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