Re: New member - Bar numbers placement problem

2014-10-23 Thread Les Editions Valmajour
That's right, I was focused on the automation thing, but I will use it 
manually for now, the piece is not so long anyway :)

Thank you so much for your assistance!
Best
Pierre

Le 23-10-2014 01:11, David Nalesnik a écrit :



On Wed, Oct 22, 2014 at 4:17 PM, Les Editions Valmajour 
mailto:p...@editions-valmajour.fr>> wrote:


Thx David,
I feel it's getting close, but I'm stuck waiting for help because
I don't understand the Scheme code. :)
Thank you!
Pierre

What do you want it to do that it isn't doing, or it a problem of 
knowing how to use it?


The second example should give you what you asked for. The only 
problem is that you have to tell it the measure numbers.  Once you 
have the layout down, that would be easy to do--if tedious.


--David



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


Cadence font and lilypond-book

2014-10-23 Thread Marc Hohl

Hi list,

I wanted to give the new alternative font "Cadence" a try in my current 
project, which is based on lilypond-book and xelatex.


Unfortunately, I got dozens of lines like
Layout nach »./de/lily-510b5f50.eps« ausgeben...
Warnung: "cadence-18"="cadence-18" kann nicht eingebettet werden
Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden

and therefore, the note head glyphs are missing in the resulting document.

Compiling a standalone lilypond document like the following:

\version "2.19.16"

\paper {
  #(define fonts
(set-global-fonts
#:music "cadence"
  ))
}

\score {
  \new Staff { c'' d'' e'' }
}

runs without error (and includes the note heads in the output).

Do I have to move the .otf font files in a directory where ghostscript 
can find them?


TIA,

Marc

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


Scheme function to affect a compound music expression?

2014-10-23 Thread Peter Crighton
Hello all,

I’m taking my very first little steps into Scheme right now by trying to
write a function that can make single note heads (and accidentals) in a
chord smaller (to differentiate background vocals from lead vocal when
writing them all in one voice).


What I have so far is:

bgr = #(define-music-function
(parser location note)
(ly:music?)
#{
  \tweak NoteHead.font-size #-2
  \tweak Accidental.font-size #-2
  #note
#})

or

bgr = #(define-music-function
 (parser location note)
 (ly:music?)
 (set! (ly:music-property note 'tweaks)
   (cons (cons (cons (quote NoteHead) (quote font-size))
   -2)
 (ly:music-property note 'tweaks)))
 (set! (ly:music-property note 'tweaks)
   (cons (cons (cons (quote Accidental) (quote font-size))
   -2)
 (ly:music-property note 'tweaks)))
 note)

which should be the same.


Here is an example that uses it:

\new Voice <<
  \relative c' {
c4 d e f
  }

  \relative c' {
\bgr e4
\bgr f
\bgr g
\bgr a
  }
>>

But I would like to be able to use the function as follows, so it doesn’t
only affect the next note, but a sequence of notes enclosed in { … }:

\new Voice <<
  \relative c' {
c4 d e f
  }

  \relative c' {
\bgr { e4 f g a }
  }
>>

Can somebody point me in the right direction how to do this?

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: New member - Bar numbers placement problem

2014-10-23 Thread David Nalesnik
Hi Pierre,

On Thu, Oct 23, 2014 at 2:46 AM, Les Editions Valmajour <
p...@editions-valmajour.fr> wrote:

>  That's right, I was focused on the automation thing, but I will use it
> manually for now, the piece is not so long anyway :)
>

Yes, the automation thing is really a shame.  Unfortunately, I don't
believe it is possible to do with an \override of InstrumentName which
handles positioning beautifully!

The reason is that the 'currentBarNumber is a context property, which as
far as I know, is inaccessible from within the function "use-my-text".

The reason I tried the Scheme engraver is that context properties are
immediately available, but the big problem with that approach is evident!
Depending on how the text is set in the engraver, all the numbers are
either the first bar number or the last+1.

I think that if you want automation your best approach would be to look at
modifying the position of BarNumber.

Thank you so much for your assistance!
>

You're very welcome!

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


Re: New member - Bar numbers placement problem

2014-10-23 Thread Kieren MacMillan
Hi David,

> I think that if you want automation your best approach would be to look at 
> modifying the position of BarNumber. 

I thought of that at first, but rather hoped the InstrumentName thing would 
work out…  =\

Question: Can the BarNumber *position* be set from the “expected position” of 
InstrumentName?
If so, maybe you could apply an after-line-break callback function to move 
system-initiating BarNumbers to where the InstrumentName would normally be?

Just thinking aloud…  =)

Best,
Kieren.
___

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


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


Re: New member - Bar numbers placement problem

2014-10-23 Thread David Nalesnik
Hi Kieren,

On Thu, Oct 23, 2014 at 8:31 AM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi David,
>
> > I think that if you want automation your best approach would be to look
> at modifying the position of BarNumber.
>
> I thought of that at first, but rather hoped the InstrumentName thing
> would work out…  =\
>
> Question: Can the BarNumber *position* be set from the “expected position”
> of InstrumentName?
> If so, maybe you could apply an after-line-break callback function to move
> system-initiating BarNumbers to where the InstrumentName would normally be?
>
>
Querying Y-position of objects tends to have disastrous results.

The following routine gets at the InstrumentName grob from BarNumber, and
asking for details of Y-positioning (relative to System) gives answers, but
destroys the layout:

\version "2.19.15"

#(define (Y-pos-of-InstrumentName-from-BarLine grob)
   (let* ((refp (ly:grob-system grob))
  (all-grobs (ly:grob-array->list (ly:grob-object refp
'all-elements)))
  (grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta)
'name)))
  (IN (filter (lambda (x) (eq? (grob-name x) 'InstrumentName))
all-grobs)))
 (if (pair? IN)
 (begin
  (format #t "~a Y-coord: ~a Y-offset: ~a~%"
(grob-name (car IN))
(ly:grob-relative-coordinate (car IN) refp Y) ; destroys
vertical spacing
(ly:grob-property (car IN) 'Y-offset) ; destroys vertical
spacing
)

music = \repeat unfold 20 {
  c4 d e f
}

\score {
  \new PianoStaff \with { shortInstrumentName = "pno." } <<
\new Staff {
  \relative c'' {
\music
  }
}
\new Staff {
  \clef bass
  \music
}
  >>
  \layout {
\context {
  \Score
  \override BarNumber.after-line-breaking =
#Y-pos-of-InstrumentName-from-BarLine
}
  }
}

[Currently pursuing another line of inquiry suggested to me--will report
back.]

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


Re: Cadence font and lilypond-book

2014-10-23 Thread Abraham Lee
Marc,

I've never done anything with lilypondbook, so I can't say definitively, but it 
sounds like the fonts need to be put in your system font directory. Only 
LilyPond uses it's own fonts folder, so if you are using another program for 
this, it will be looking for them in the system font folder. 

-Abraham

Sent from my iPhone

> On Oct 23, 2014, at 3:29 AM, Marc Hohl  wrote:
> 
> Hi list,
> 
> I wanted to give the new alternative font "Cadence" a try in my current 
> project, which is based on lilypond-book and xelatex.
> 
> Unfortunately, I got dozens of lines like
> Layout nach »./de/lily-510b5f50.eps« ausgeben...
> Warnung: "cadence-18"="cadence-18" kann nicht eingebettet werden
> Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
> Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
> 
> and therefore, the note head glyphs are missing in the resulting document.
> 
> Compiling a standalone lilypond document like the following:
> 
> \version "2.19.16"
> 
> \paper {
>  #(define fonts
>(set-global-fonts
>#:music "cadence"
>  ))
> }
> 
> \score {
>  \new Staff { c'' d'' e'' }
> }
> 
> runs without error (and includes the note heads in the output).
> 
> Do I have to move the .otf font files in a directory where ghostscript can 
> find them?
> 
> TIA,
> 
> Marc
> 
> ___
> 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: New member - Bar numbers placement problem

2014-10-23 Thread David Nalesnik
Hi all,

On Thu, Oct 23, 2014 at 9:41 AM, David Nalesnik 
wrote:

>
>
> On Thu, Oct 23, 2014 at 8:31 AM, Kieren MacMillan <
> kieren_macmil...@sympatico.ca> wrote:
>
>> Hi David,
>>
>> > I think that if you want automation your best approach would be to look
>> at modifying the position of BarNumber.
>>
>> I thought of that at first, but rather hoped the InstrumentName thing
>> would work out…  =\
>>
>
Turns out that it will work after all--the bar number is, in fact,
accessible.  Learn something every day!


> [Currently pursuing another line of inquiry suggested to me--will report
> back.]
>
>
OK, the attached should give you what you need.

I've left the default bar numbers in so you can check if it's right with
whatever you want to feed it.

Notice that you do need an instrument name for this to work.  Something
would have to be worked out if you want both the short instrument name and
the measure number.

Best,
David
\version "2.19.15"

#(define (use-measure-numbers grob) 
   (let* ((orig (ly:grob-original grob))
  (siblings (if (ly:grob? orig)
(ly:spanner-broken-into orig)
'(
 (let loop ((sibs siblings))
   (if (pair? sibs)
   (begin
(let* ((bound (ly:spanner-bound (car sibs) LEFT))
   (location (ly:grob-property bound 'rhythmic-location))
   (measure (car location)))
  (set! (ly:grob-property (car sibs) 'text)
(number->string measure))
  (loop (cdr sibs


music = {
  \partial 2 c4 d
  \repeat unfold 20 {
c4 d e f
  }
}

\score {
  \new PianoStaff \with { shortInstrumentName = "foo" } <<
\new Staff {
  \relative c'' {
\music
  }
}
\new Staff {
  \clef bass
  \music
}
  >>
  \layout {
\context {
  \Score
  \override InstrumentName.after-line-breaking = #use-measure-numbers
  %\omit BarNumber
}
  }
}

music = {
  \partial 2 c4 d
  \repeat unfold 20 {
c4 d e f
  }
  \break
  \partial 2 c4 d \break
  c d e f
}

\score {
  \new PianoStaff \with { shortInstrumentName = "foo" } <<
\new Staff {
  \relative c'' {
\music
  }
}
\new Staff {
  \clef bass
  \music
}
  >>
  \layout {
\context {
  \Score
  \override InstrumentName.after-line-breaking = #use-measure-numbers
  %\omit BarNumber
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mac OSX 10.10 (Yosemite) and LilyPond compatibility?

2014-10-23 Thread Hans Aberg

> On 22 Oct 2014, at 18:40, Gabriel Striewe  wrote:
> 
> On Wed, Oct 22, 2014 at 06:49:21PM +0300, Omer Katzir wrote:
>> I actually have a problem, I can't compile the files, no error, just
>> not doing it. I'm not sure if it's my very old machine or the upgrade.
>> 
> Me, too, am having problems compiling lilypond (2.18.2) with homebrew. I 
> filed a
> bug on homebrew git. Might have to do with gcc. 

You may have to update to Command Line Tools (OS X 10.10) [1].

1. https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-



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


HOw to modify guitar tablature ...

2014-10-23 Thread Patrick Millier
Hi everyone,

I'm learning to use Lilypond by transcribing a score I have. I would like to 
modify the tablature  (see seventh bar) to replace the second string first fret 
to third string fifth fret (which are the same note but would be more logical 
to use. I include my .ly file (a simple one).

Thank you very much to help

Pat
\version "2.18.0"
\header {
  title = "Jeux Interdits"
  composer = "Composer: anonyme"
  arranger = "Arranger: Narciso YEPES"
  instrument = "(Guitar)"
  copyright = "copyright goes at the bottom of the first page"
  tagline = "tagline goes at the bottom of the last page"
}

% One line per bar

romance = {
  \clef "treble"
  \time 3/4
  \tempo 4 = 100
  \key g \major
  \repeat volta 2 {
<< { \tuplet 3/2 { b''8 b,8 g8 } \tuplet 3/2 { b'8 b,8 g8 } \tuplet 3/2 { b'8 b,8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { b'''8 b,8 g8 } \tuplet 3/2 { a'8 b,8 g8 } \tuplet 3/2 { g'8 b,8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { g''8 b,8 g8 } \tuplet 3/2 { fis'8 b,8 g8 } \tuplet 3/2 { e'8 b8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { e''8 b8 g8 } \tuplet 3/2 { g'8 b,8 g8 } \tuplet 3/2 { b'8 b,8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { e'''8 b,8 g8 } \tuplet 3/2 { e''8 b,8 g8 } \tuplet 3/2 { e''8 b,8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { e'''8 b,8 g8 } \tuplet 3/2 { d''8 b,8 g8 } \tuplet 3/2 { c'8 b,8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { c'''8 e,8 c8 } \tuplet 3/2 { b'8 e,8 c8 } \tuplet 3/2 { a'8 e8 c8 } } \\ { a,2. } >>
<< { \tuplet 3/2 { a''8 e8 c8 } \tuplet 3/2 { b'8 e,8 c8 } \tuplet 3/2 { c'8 e,8 c8 } } \\ { a,2. } >>
<< { \tuplet 3/2 { b''8 fis8 dis8 } \tuplet 3/2 { c'8 fis,8 dis8 } \tuplet 3/2 { b'8 fis8 dis8 } } \\ { b,2. } >>
<< { \tuplet 3/2 { dis''8 fis,8 dis8 } \tuplet 3/2 { c'?8 fis,8 dis8 } \tuplet 3/2 { b'8 fis8 d8 } } \\ { b,2. } >>
<< { \tuplet 3/2 { b''8 b,8 g8 } \tuplet 3/2 { a'8 b,8 g8 } \tuplet 3/2 { g'8 b,8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { g''8 b,8 g8 } \tuplet 3/2 { fis'8 b,8 g8 } \tuplet 3/2 { e'8 b8 g8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { fis''8 b,8 a8 } \tuplet 3/2 { fis'8 b,8 a8 } \tuplet 3/2 { fis'8 b,8 a8 } } \\ { b,2. } >>
<< { \tuplet 3/2 { fis''8 b,8 a8 } \tuplet 3/2 { g'8 b,8 a8 } \tuplet 3/2 { fis'8 b,8 a8 } } \\ { b,2. } >>
<< { \tuplet 3/2 { e'8 b8 g8 } \tuplet 3/2 { e'8 b8 g8 } \tuplet 3/2 { e'8 b8 g8 } } \\ { e4 b4 g4 } >>
<< { 2 r4 } \\ { e,,2 r4 } >>
  }
  \key e \major
  \repeat volta 2 {
<< { \tuplet 3/2 { gis''8 b,8 gis8 } \tuplet 3/2 { gis'8 b,8 gis8 } \tuplet 3/2 { gis'8 b,8 gis8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { gis''8 b,8 gis8 } \tuplet 3/2 { fis'8 b,8 gis8 } \tuplet 3/2 { e'8 b8 gis8 } } \\ { e,2. } >>
<< { \tuplet 3/2 { e''8 a,8 fis8 } \tuplet 3/2 { dis'8 a8 fis8 } \tuplet 3/2 { dis'8 a8 fis8 } } \\ { fis,2. } >>
<< { \tuplet 3/2 { dis''8 a8 fis8 } \tuplet 3/2 { cisis'8 a8 fis8 } \tuplet 3/2 { dis'8 a8 fis8 } } \\ { fis,2. } >>
<< { \tuplet 3/2 { cis'''8 fis,8 dis?8 } \tuplet 3/2 { cis'8 fis,8 dis8 } \tuplet 3/2 { cis'8 fis,8 dis8 } } \\ { b,2. } >>
  }
}

\score {
  <<
\new Staff \relative c' {
  \romance
}
\new TabStaff \relative c {
  \romance
}
  >>
  \header {
  piece = "Romance"
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: HOw to modify guitar tablature ...

2014-10-23 Thread Marc Hohl

Am 23.10.2014 um 09:30 schrieb Patrick Millier:

Hi everyone,

I'm learning to use Lilypond by transcribing a score I have. I would like to
modify the tablature  (see seventh bar) to replace the second string first fret
to third string fifth fret (which are the same note but would be more logical
to use. I include my .ly file (a simple one).


If you explicitly give the string where you want to play the note,
lilypond calculates the correct fret number automatically.

e' gives

-0-
---
---
---
---
---

whereas e'\2 yields in

---
-5-
---
---
---
---

Furthermore, you can \set minimumFret to a positive number, which forces 
lilypond to use frets upto this number.


There is also the possibility to use \set defaultStrings = #'(5 3)
to take only string number 5 and 3 into account in the fret number 
calculations.


HTH a bit,

Marc


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


Re: Cadence font and lilypond-book

2014-10-23 Thread Marc Hohl

Am 23.10.2014 um 16:43 schrieb Abraham Lee:

Marc,

I've never done anything with lilypondbook, so I can't say definitively, but it 
sounds like the fonts need to be put in your system font directory.


Abraham,

this is what I had in mind, too, and copied the .otf files in my 
~/.fonts directory and called fc-cache afterwards.


$ fc-list | grep adence
/home/marc/.fonts/cadence-16.otf: cadence\-16:style=16
/home/marc/.fonts/cadence-26.otf: cadence\-26:style=26
/home/marc/.fonts/cadence-14.otf: cadence\-14:style=14
/home/marc/.fonts/cadence-13.otf: cadence\-13:style=13
/home/marc/.fonts/cadence-23.otf: cadence\-23:style=23
/home/marc/.fonts/cadence-11.otf: cadence\-11:style=11
/home/marc/.fonts/cadence-18.otf: cadence\-18:style=18
/home/marc/.fonts/cadence-20.otf: cadence\-20:style=20

Cadence seems to be known by my system, but not by ghostscript in 
combination with lilypond-book.


That's not a big problem, since Cadence is not optimal in combination 
with the text fonts used in my project, but it would be great if the new 
fonts were available within lilypond-book, too.


Marc

 Only LilyPond uses it's own fonts folder, so if you are using another 
program for this, it will be looking for them in the system font folder.


-Abraham

Sent from my iPhone


On Oct 23, 2014, at 3:29 AM, Marc Hohl  wrote:

Hi list,

I wanted to give the new alternative font "Cadence" a try in my current 
project, which is based on lilypond-book and xelatex.

Unfortunately, I got dozens of lines like
Layout nach »./de/lily-510b5f50.eps« ausgeben...
Warnung: "cadence-18"="cadence-18" kann nicht eingebettet werden
Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden

and therefore, the note head glyphs are missing in the resulting document.

Compiling a standalone lilypond document like the following:

\version "2.19.16"

\paper {
  #(define fonts
(set-global-fonts
#:music "cadence"
  ))
}

\score {
  \new Staff { c'' d'' e'' }
}

runs without error (and includes the note heads in the output).

Do I have to move the .otf font files in a directory where ghostscript can find 
them?

TIA,

Marc

___
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: HOw to modify guitar tablature ...

2014-10-23 Thread Marc Hohl

Am 23.10.2014 um 09:30 schrieb Patrick Millier:

Hi everyone,

I'm learning to use Lilypond by transcribing a score I have. I would like to
modify the tablature  (see seventh bar) to replace the second string first fret
to third string fifth fret (which are the same note but would be more logical
to use. I include my .ly file (a simple one).

Thank you very much to help



Just one more nitpick:

I'd recommend to use \clef "treble_8" in your score, otherwise your 
tablature will be an octave off...(at least if you use the standard tuning).


Regards,

Marc

Pat



___
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: Cadence font and lilypond-book

2014-10-23 Thread Abraham Lee
Try putting them in "/home/marc/.local/share/fonts" instead. I've noticed that 
things seem to work a little better in there. 

-Abraham

Sent from my iPhone

> On Oct 23, 2014, at 12:31 PM, Marc Hohl  wrote:
> 
>> Am 23.10.2014 um 16:43 schrieb Abraham Lee:
>> Marc,
>> 
>> I've never done anything with lilypondbook, so I can't say definitively, but 
>> it sounds like the fonts need to be put in your system font directory.
> 
> Abraham,
> 
> this is what I had in mind, too, and copied the .otf files in my ~/.fonts 
> directory and called fc-cache afterwards.
> 
> $ fc-list | grep adence
> /home/marc/.fonts/cadence-16.otf: cadence\-16:style=16
> /home/marc/.fonts/cadence-26.otf: cadence\-26:style=26
> /home/marc/.fonts/cadence-14.otf: cadence\-14:style=14
> /home/marc/.fonts/cadence-13.otf: cadence\-13:style=13
> /home/marc/.fonts/cadence-23.otf: cadence\-23:style=23
> /home/marc/.fonts/cadence-11.otf: cadence\-11:style=11
> /home/marc/.fonts/cadence-18.otf: cadence\-18:style=18
> /home/marc/.fonts/cadence-20.otf: cadence\-20:style=20
> 
> Cadence seems to be known by my system, but not by ghostscript in combination 
> with lilypond-book.
> 
> That's not a big problem, since Cadence is not optimal in combination with 
> the text fonts used in my project, but it would be great if the new fonts 
> were available within lilypond-book, too.
> 
> Marc
> 
> Only LilyPond uses it's own fonts folder, so if you are using another program 
> for this, it will be looking for them in the system font folder.
>> 
>> -Abraham
>> 
>> Sent from my iPhone
>> 
>>> On Oct 23, 2014, at 3:29 AM, Marc Hohl  wrote:
>>> 
>>> Hi list,
>>> 
>>> I wanted to give the new alternative font "Cadence" a try in my current 
>>> project, which is based on lilypond-book and xelatex.
>>> 
>>> Unfortunately, I got dozens of lines like
>>> Layout nach »./de/lily-510b5f50.eps« ausgeben...
>>> Warnung: "cadence-18"="cadence-18" kann nicht eingebettet werden
>>> Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
>>> Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
>>> 
>>> and therefore, the note head glyphs are missing in the resulting document.
>>> 
>>> Compiling a standalone lilypond document like the following:
>>> 
>>> \version "2.19.16"
>>> 
>>> \paper {
>>>  #(define fonts
>>>(set-global-fonts
>>>#:music "cadence"
>>>  ))
>>> }
>>> 
>>> \score {
>>>  \new Staff { c'' d'' e'' }
>>> }
>>> 
>>> runs without error (and includes the note heads in the output).
>>> 
>>> Do I have to move the .otf font files in a directory where ghostscript can 
>>> find them?
>>> 
>>> TIA,
>>> 
>>> Marc
>>> 
>>> ___
>>> 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: Scheme function to affect a compound music expression?

2014-10-23 Thread Simon Albrecht

Hello all,

I tried to write such a function, but failed at the point you’ll see in 
the attachment. I’d like to learn how this can be made to work ;-) … The 
problem is in extracting the list from SequentialMusic’s 'element 
property. And I suspect it has to do with the following question:

With display-music I can obtain:
#) (pitch . #>) (origin . #c:/users/simon/appdata/local/temp/frescobaldi-_4tllv/tmpdndxnp/bgr.ly:25:10>))((display-methods 
#) (name . NoteEvent) (iterator-ctor . 
#) (types 
general-music event note-event rhythmic-event melodic-event)) >


: { ((duration . #) (pitch . #) (origin . 
#c:/users/simon/appdata/local/temp/frescobaldi-_4tllv/tmpdndxnp/bgr.ly:25:10>)) 
}

and with display-scheme-music:
(make-music

'NoteEvent

'duration

(ly:make-duration 2)

'pitch

(ly:make-pitch -1 2))
What kind of syntax is the first one? And how can I compute one from the 
other?



Grateful as always for help and with best regards,
Simon


Am 23.10.2014 um 14:05 schrieb Peter Crighton:

Hello all,

I’m taking my very first little steps into Scheme right now by trying 
to write a function that can make single note heads (and accidentals) 
in a chord smaller (to differentiate background vocals from lead vocal 
when writing them all in one voice).



What I have so far is:

bgr = #(define-music-function
(parser location note)
(ly:music?)
#{
  \tweak NoteHead.font-size #-2
  \tweak Accidental.font-size #-2
  #note
#})

or

bgr = #(define-music-function
 (parser location note)
 (ly:music?)
 (set! (ly:music-property note 'tweaks)
 (cons (cons (cons (quote NoteHead) (quote font-size))
   -2)
 (ly:music-property note 'tweaks)))
 (set! (ly:music-property note 'tweaks)
 (cons (cons (cons (quote Accidental) (quote font-size))
   -2)
 (ly:music-property note 'tweaks)))
 note)

which should be the same.


Here is an example that uses it:

\new Voice <<
  \relative c' {
c4 d e f
  }

  \relative c' {
\bgr e4
\bgr f
\bgr g
\bgr a
  }
>>

But I would like to be able to use the function as follows, so it 
doesn’t only affect the next note, but a sequence of notes enclosed in 
{ … }:


\new Voice <<
  \relative c' {
c4 d e f
  }

  \relative c' {
\bgr { e4 f g a }
  }
>>

Can somebody point me in the right direction how to do this?

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


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


\version "2.19.12"

bgr = #(define-music-function
(parser location mus)
(ly:music?)

; for testing only
;(display-scheme-music mus)
;mus

 (map 
  (lambda (note) (set! (ly:music-property note 'tweaks)
   (list (cons (cons (quote Accidental) (quote font-size))
  -2)
(cons (cons (quote NoteHead) (quote font-size))
  -2
  (ly:music-property mus 'elements)))

\new Voice <<
  \relative c' {
c4 d e f
  }

  \relative c' {
\bgr e4
\bgr f
\bgr g
\bgr a
  }
>>

\new Voice <<
  \relative c' {
c4 d e f
  }
  \relative c' {
\bgr { e4 f g a }
  }
>>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mac OSX 10.10 (Yosemite) and LilyPond compatibility?

2014-10-23 Thread Gabriel Striewe
> You may have to update to Command Line Tools (OS X 10.10) [1].
> 
> 1. https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-
> 
Unfortunately, that was not the reason; the Command Line Tools are up to
date. 

I am having a discussion on the homebrew mailing list just now...



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


\parallelMusic w/ melody, chordmode, & tabs worked in 2.14.0 but not in 2.18.2

2014-10-23 Thread Stuart A. Harvey
The snippet of code below used to work in 2.14.0.  Now that I have installed
2.18.2 I get "Bars in parallel music don't have the same length".   Is there
any way to accomplish this in 2.18.2 where the lead line, chords, and tabs
are written in parallel?

 

\version "2.14.0"



\parallelMusic #'(voiceT voiceC ukulele ) {

% Bar 1

\key g \major \time 4/4  \partial 4 \relative g' { d4 } |

\key g \major \time 4/4  \partial 4 \chordmode   { g4 } |

\key g \major \time 4/4  \partial 4 \relative g' { \set
TabStaff.minimumFret = #2 d'4 } |

%Bar2

   \relative g' { g4 g8 g8 g4 b4 | d4 b4 g2 | a4 fis4 d2 | d'4 b4 g4 d4
} |

\chordmode   { g1 | g1   | d1 | g1   } |

\relative g' { \set TabStaff.minimumFret = #2 4 g'8 g8 g4 4 

  | 4 b4 2 

 | a4 fis4 d2 | d'4 b4 g4 d4
} |

}   

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


Re: Cadence font and lilypond-book

2014-10-23 Thread Marc Hohl

Am 23.10.2014 um 20:55 schrieb Abraham Lee:

Try putting them in "/home/marc/.local/share/fonts" instead. I've noticed that 
things seem to work a little better in there.


No, doesn't work either ... :-(

Marc


-Abraham

Sent from my iPhone


On Oct 23, 2014, at 12:31 PM, Marc Hohl  wrote:


Am 23.10.2014 um 16:43 schrieb Abraham Lee:
Marc,

I've never done anything with lilypondbook, so I can't say definitively, but it 
sounds like the fonts need to be put in your system font directory.


Abraham,

this is what I had in mind, too, and copied the .otf files in my ~/.fonts 
directory and called fc-cache afterwards.

$ fc-list | grep adence
/home/marc/.fonts/cadence-16.otf: cadence\-16:style=16
/home/marc/.fonts/cadence-26.otf: cadence\-26:style=26
/home/marc/.fonts/cadence-14.otf: cadence\-14:style=14
/home/marc/.fonts/cadence-13.otf: cadence\-13:style=13
/home/marc/.fonts/cadence-23.otf: cadence\-23:style=23
/home/marc/.fonts/cadence-11.otf: cadence\-11:style=11
/home/marc/.fonts/cadence-18.otf: cadence\-18:style=18
/home/marc/.fonts/cadence-20.otf: cadence\-20:style=20

Cadence seems to be known by my system, but not by ghostscript in combination 
with lilypond-book.

That's not a big problem, since Cadence is not optimal in combination with the 
text fonts used in my project, but it would be great if the new fonts were 
available within lilypond-book, too.

Marc

Only LilyPond uses it's own fonts folder, so if you are using another program 
for this, it will be looking for them in the system font folder.


-Abraham

Sent from my iPhone


On Oct 23, 2014, at 3:29 AM, Marc Hohl  wrote:

Hi list,

I wanted to give the new alternative font "Cadence" a try in my current 
project, which is based on lilypond-book and xelatex.

Unfortunately, I got dozens of lines like
Layout nach »./de/lily-510b5f50.eps« ausgeben...
Warnung: "cadence-18"="cadence-18" kann nicht eingebettet werden
Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden
Warnung: "cadence-20"="cadence-20" kann nicht eingebettet werden

and therefore, the note head glyphs are missing in the resulting document.

Compiling a standalone lilypond document like the following:

\version "2.19.16"

\paper {
  #(define fonts
(set-global-fonts
#:music "cadence"
  ))
}

\score {
  \new Staff { c'' d'' e'' }
}

runs without error (and includes the note heads in the output).

Do I have to move the .otf font files in a directory where ghostscript can find 
them?

TIA,

Marc

___
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