Re: Outputting current moment to svg

2017-01-15 Thread Erik Ronström
Many thanks! I should have found those discussions after more than two hours of 
googling, but somehow I didn’t…

Erik




> 16 jan. 2017 kl. 01:57 skrev David Nalesnik :
> 
> Hi Erik,
> 
> On Sun, Jan 15, 2017 at 6:14 PM, Erik Ronström  wrote:
>> Hi,
>> 
>> I’m trying to output some identifiers to my svg, so that I can access 
>> different objects later.
>> 
>> I found this thread:
>> http://lilypond.1069038.n5.nabble.com/id-s-for-svg-elements-td152945.html
>> 
>> explaining how to output pitch, which is useful. But I also want to output 
>> the ”timing” (current moment) of each note, and I can’t figure out how to do 
>> it.
>> 
>> This question seems to have been asked before 
>> (https://lists.gnu.org/archive/html/lilypond-user/2013-12/msg00207.html), 
>> but I couldn’t find any conclusive answer.
>> 
>> Any examples greatly appreciated!
>> 
> 
> Try the discussion here:
> http://www.mail-archive.com/lilypond-user@gnu.org/msg114527.html
> 
> and the follow-up thread here:
> http://www.mail-archive.com/lilypond-user@gnu.org/msg117641.html
> 
> More information is output than just moment, but hopefully the code
> there will be useful to you.
> 
> -David


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


Re: UTF-8 chars in included filenames on Windows 10 revisited

2017-01-15 Thread David Wright
Reposted as Saturday night's email failed to post here and Sunday
morning's did. (Their Bccs have both crossed the Atlantic in a
timely manner.)

On Sat 14 Jan 2017 at 11:17:17 (+0100), Michael Gerdau wrote:

> it appears UTF-8 character in filenames on Windows seems to be a
> recurring theme.

I didn't know windows used UTF-8 at all in file names.
I was under the impression that it used UTF-16, though
I've no idea which endedness.

Cheers,
David.

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


Re: UTF-8 chars in included filenames on Windows 10 revisited

2017-01-15 Thread David Wright
On Sat 14 Jan 2017 at 11:17:17 (+0100), Michael Gerdau wrote:

> it appears UTF-8 character in filenames on Windows seems to be a
> recurring theme.

I didn't know windows used UTF-8 at all in file names.
I was under the impression that it used UTF-16, though
I've no idea which endedness.

Cheers,
David.

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


Re: Outputting current moment to svg

2017-01-15 Thread David Nalesnik
Hi Erik,

On Sun, Jan 15, 2017 at 6:14 PM, Erik Ronström  wrote:
> Hi,
>
> I’m trying to output some identifiers to my svg, so that I can access 
> different objects later.
>
> I found this thread:
> http://lilypond.1069038.n5.nabble.com/id-s-for-svg-elements-td152945.html
>
> explaining how to output pitch, which is useful. But I also want to output 
> the ”timing” (current moment) of each note, and I can’t figure out how to do 
> it.
>
> This question seems to have been asked before 
> (https://lists.gnu.org/archive/html/lilypond-user/2013-12/msg00207.html), but 
> I couldn’t find any conclusive answer.
>
> Any examples greatly appreciated!
>

Try the discussion here:
http://www.mail-archive.com/lilypond-user@gnu.org/msg114527.html

and the follow-up thread here:
http://www.mail-archive.com/lilypond-user@gnu.org/msg117641.html

More information is output than just moment, but hopefully the code
there will be useful to you.

-David

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


Re: Lyrics problem

2017-01-15 Thread Craig Dabelstein
Thanks guys. All fixed. I appreciate it.

Craig


On 16 January 2017 at 08:04, Malte Meyn  wrote:

>
>
> Am 15.01.2017 um 21:58 schrieb Craig Dabelstein:
> > Has anyone encountered this before? In bars 1 and 19 of this MWE the
> > lyrics have been put a long way from the staff. In this example it only
> > occures when \compressFullBarRests is used, but in my full score it is
> > occurring with other instruments (who are required to sing) as well.
>
> Your MWE isn’t really a MWE but a WE ;) I think your usage of \addlyrics
> always creates a new Lyrics context and the different contexts are put
> at different heights to avoid collision. Why don’t you just use a single
> Lyrics context which contains the complete text? \addlyrics skips the
> rests automatically so you don’t have to count them.
>
> ___
> 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


Outputting current moment to svg

2017-01-15 Thread Erik Ronström
Hi,

I’m trying to output some identifiers to my svg, so that I can access different 
objects later.

I found this thread:
http://lilypond.1069038.n5.nabble.com/id-s-for-svg-elements-td152945.html

explaining how to output pitch, which is useful. But I also want to output the 
”timing” (current moment) of each note, and I can’t figure out how to do it.

This question seems to have been asked before 
(https://lists.gnu.org/archive/html/lilypond-user/2013-12/msg00207.html), but I 
couldn’t find any conclusive answer.

Any examples greatly appreciated!

Erik



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


Adding brass fingerings to notes

2017-01-15 Thread NickC
I'm transcribing some old handwritten drum and bugle corps music with
Lilypond, and one particular aspect of these parts is that they often
provide valve fingerings (0 for no valves pressed, 12 for first and second
valves pressed, etc) since there were different tuning standards for
different configurations of bugles owned by various corps and the players
were often not familiar with reading notes on a staff.  

To save some time and ensure some accuracy, is there a way I can
automatically add a note's given fingering as an annotation?  For example,
for the given fingerings 

c'' = 0, 
d'' = 1, 
e'' = 0, 
f'' = 1, 
g'' = 0

of the notes in the snippet

\relative c'' { 
 c4 d e-12 f g1
}

I'd want the corresponding fingerings in the list added over the first and
last two notes, but override the fingering for E with 12.  

I tried using the NoteNames context to do this, but it seems too inflexible
to let me override a given note's fingering, which sometimes has to be done
for intonation or ease of fingering reasons.

NC



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Adding-brass-fingerings-to-notes-tp199255.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: Text *in* score - Stopped staves - Horizontal spacing

2017-01-15 Thread Malte Meyn


Am 15.01.2017 um 23:54 schrieb Pierre-Luc Gauthier:
> If you comment line 46 and un-comment 48, the R1 rest does not have a
> sufficient horizontal spacing to allow for the text to dodge the
> skylines.
> 
> Also, could the horizontal spacing be a function of the 'line-width
> parameter 40?

Try this combination of \markLengthOn and Y-offset:

songStructure = {
  s1 |
  \bar "||"
  \markLengthOn
  \override Score.MetronomeMark.Y-offset = 0
  \someText
  s |
  \bar "||"
  \key bes \major
  s |
  \bar "|."
}

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


Text *in* score - Stopped staves - Horizontal spacing

2017-01-15 Thread Pierre-Luc Gauthier
Hi there,

I have this text that I hope to fit in between stopped staves.
Obviously, this can only work by stopping staves from the top of the score.

Bellow is my wished-to-be-more-minimal working example.
I've also joined a raster image of the expected result.

If you comment line 46 and un-comment 48, the R1 rest does not have a
sufficient horizontal spacing to allow for the text to dodge the
skylines.

Also, could the horizontal spacing be a function of the 'line-width
parameter 40?

Thanks for your input.
'Good day
-- 
Pierre-Luc Gauthier

http://lilybin.com/5kxtf7/1

%%  \begin{lily}

\version "2.19.54"

someText = \tempo \markup {
  \override #(cons 'line-width 40)
  \justify {
\fontsize #-4 {
  \underline \larger \smallCaps {
"Narrator :"
  }
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
  Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
  Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur.
  Excepteur sint occaecat cupidatat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
}
  }
}

songStructure = {
  s1 |
  \bar "||"
  \someText
  s |
  \bar "||"
  \key bes \major
  s |
  \bar "|."
}

someMusic = {
  f'8 r r4 r2 |
  s1 |
  f'8 r r4 r2 |
}

staffStopper = {
  s1 |
  \stopStaff
  s |
  \startStaff
  s |
}

staffRester = {
  s1 |

  \tuplet 21/32 \repeat unfold 21 c'32 | % Ain't that gracious‽
  % Replace the ^line above^ with this _line bellow_
  % R1\fermataMarkup

  s1 |
}

staffI = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  \staffStopper
>>

staffII = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  \staffStopper
>>

staffIII = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  \staffStopper
>>

piano = \new PianoStaff <<
  \new Staff \with {
  } \new Voice << \songStructure \someMusic \staffRester >>
  \new Staff \with {
  } \new Voice << \songStructure \someMusic \staffRester >>
>>

scoreContent = <<
  \staffI
  \staffII
  \staffIII
  \piano
>>

\score {
  \scoreContent
  \layout {}
}

%%  \end{pond}
\version "2.19.54"

someText = \tempo \markup {
  \override #(cons 'line-width 40)
  \justify {
\fontsize #-4 {
  \underline \larger \smallCaps {
"Narrator :"
  }
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
  Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
}
  }
}

songStructure = {
  s1 |
  \bar "||"
  \someText
  s |
  \bar "||"
  \key bes \major
  s |
  \bar "|."
}

someMusic = {
  f'8 r r4 r2 |
  s1 |
  f'8 r r4 r2 |
}

staffStopper = {
  s1 |
  \stopStaff
  s |
  \startStaff
  s |
}

staffRester = {
  s1 |

  \tuplet 21/32 \repeat unfold 21 c'32 | % Ain't that gracious‽
  % Replace the ^line above^ with this _line bellow_
  % R1\fermataMarkup

  s1 |
}

staffI = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  \staffStopper
>>

staffII = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  \staffStopper
>>

staffIII = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  \staffStopper
>>

piano = \new PianoStaff <<
  \new Staff \with {
  } \new Voice << \songStructure \someMusic \staffRester >>
  \new Staff \with {
  } \new Voice << \songStructure \someMusic \staffRester >>
>>

scoreContent = <<
  \staffI
  \staffII
  \staffIII
  \piano
>>

\score {
  \scoreContent
  \layout {}
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Faking a time signature

2017-01-15 Thread Jacques Menu Muzhic
Hello Malte,

Excellent, thanks!

JM

> Le 15 janv. 2017 à 23:18, Malte Meyn  a écrit :
> 
> Am 15.01.2017 um 22:00 schrieb Menu Jacques:
>> Hello,
>> 
>> Going on with my Gabrieli example, there is a time change to 3/2, and I
>> can’t get rid of the warning message on the first R1*3/2.
>> 
>> Thanks again for your help!
>> 
>> JM
> 
> You can adjust the measureLength for this last, shorter measure in 4/2.
> You won’t need \partial then.
> 
>  \set Score.measureLength = #(ly:make-moment 1/1)
>  g,1 \fermata
>  \bar "||"
>  \time 3/2
>  R1*3/2
> 
> Of course you don’t need to set timeSignatureFraction in 3/2 time
> because \time 3/2 does that for you ;)
> 
> ___
> 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: Faking a time signature

2017-01-15 Thread Malte Meyn
Am 15.01.2017 um 22:00 schrieb Menu Jacques:
> Hello,
> 
> Going on with my Gabrieli example, there is a time change to 3/2, and I
> can’t get rid of the warning message on the first R1*3/2.
> 
> Thanks again for your help!
> 
> JM

You can adjust the measureLength for this last, shorter measure in 4/2.
You won’t need \partial then.

  \set Score.measureLength = #(ly:make-moment 1/1)
  g,1 \fermata
  \bar "||"
  \time 3/2
  R1*3/2

Of course you don’t need to set timeSignatureFraction in 3/2 time
because \time 3/2 does that for you ;)

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


Re: Lyrics problem

2017-01-15 Thread Malte Meyn


Am 15.01.2017 um 21:58 schrieb Craig Dabelstein:
> Has anyone encountered this before? In bars 1 and 19 of this MWE the
> lyrics have been put a long way from the staff. In this example it only
> occures when \compressFullBarRests is used, but in my full score it is
> occurring with other instruments (who are required to sing) as well.

Your MWE isn’t really a MWE but a WE ;) I think your usage of \addlyrics
always creates a new Lyrics context and the different contexts are put
at different heights to avoid collision. Why don’t you just use a single
Lyrics context which contains the complete text? \addlyrics skips the
rests automatically so you don’t have to count them.

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


Re: Lyrics problem

2017-01-15 Thread Klaus Blum
Hi Craig, 

Craig Dabelstein wrote
> In bars 1 and 19 of this MWE the lyrics
> have been put a long way from the staff. In this example it only occures
> when \compressFullBarRests is used

that happens because each \addlyrics command starts a new lyrics context. If
they belong to the same staff line, they are located on different heights,
just like different stanzas. 
I don't know how to prevent that. But you could a single context that
contains all the lyrics.

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyrics-problem-tp199246p199249.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: Which Linux distro for Lilypond

2017-01-15 Thread David Kastrup
Thomas Morley  writes:

> I now compiled guile master from
> 35a90592501ebde7e7ddbf2486ca9d315e317d09
> "Add unboxed floating point comparison instructions."
>
> Getting Guile 2.1.5.21-35a90
>
>
> Then I compiled LilyPond with this guile (thanks Werner fore the hints)
> As mentioned before, scm_protects doesn't work anymore. Simply
> replacing it with scm_gc_protect_object as the IRC-log
> https://gnunet.org/bot/log/guile/2017-01-05
> seems to sugest

That one was complete hogwash.  scm_protects returns the list of
protects, scm_gc_protect_object adds an object to that list.  Names are
related, functionality isn't usefully so.

> didn't work for me, so I commented the whole definition of ly:protects
> and replaced the result of it's call with an empty list.  I'm aware
> this is brute-force and one should do a proper fix instead,

Protection is sufficiently different in 2.x as to make this not
worthwhile.  Your fix is likely as good as it gets.

> (2)
> Compiling a huge score
> http://lists.gnu.org/archive/html/lilypond-user/2016-11/msg00943.html
> lasts ~15 minutes
> With lilypond and guile 2.0.13 it was ~17 minutes
> Though, lilypond with guile 1.8.8 made it in ~5 minutes

Yep, that's the one to rub people's faces in.

> (3)
> guile now finds files with chinese, etc characters
> guile --no-auto-compile filename_名字.scm
> succeeded.
>
> (4)
> Trying to compile filename_名字.ly with lilypond still returns
> warning: cannot find file: `filename_??.ly'
> fatal error: failed files: "filename_??.ly"

All the encoding stuff isn't up to snuff yet.

> But let me say, why, I mean WHY?? did noone drop a note about (3) here
> http://lists.gnu.org/archive/html/guile-devel/2017-01/msg3.html
> or here
> http://lists.gnu.org/archive/html/guile-user/2016-11/msg00031.html

Depends on when this was fixed.  Or whether it depends on your locale
anyway.

-- 
David Kastrup

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


Re: Faking a time signature

2017-01-15 Thread Menu Jacques
Hello,

Going on with my Gabrieli example, there is a time change to 3/2, and I can’t 
get rid of the warning message on the first R1*3/2.

Thanks again for your help!

JM

%%

\version "2.19.44"

PartPFourVoiceOne =  \relative g {
  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \override Score.BarNumber.break-visibility = ##(#f #t #t)

  \clef "bass"
  \key f \major

  \time 4/2 | % 1
  \set Staff.timeSignatureFraction = 2/2

  g4  d4  g4  a4  bes2.
  bes4 \break | % 4
  g,1 \fermata
  \bar "||"

  \time 3/2
  \set Staff.timeSignatureFraction = 3/2

  \partial 1*3/2
  \set Score.currentBarNumber = #15

  R1*3/2 | % 16
  R1*3/2 | % 17
  g'1  g2 \break | % 18
}

{ \PartPFourVoiceOne }

%%


Starting lilypond 2.19.44 [Untitled]...
Processing 
`/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-tSGM2_/tmpVLIoVM/document.ly'
Parsing...
Interpreting music...
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-tSGM2_/tmpVLIoVM/document.ly:24:3
 : warning: barcheck 
failed at: 1
R1*3/2 | % 16
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to 
`/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T//lilypond-96yPDq'...
Converting to `document.pdf'...
Deleting `/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T//lilypond-96yPDq'...
Success: compilation successfully completed
Completed successfully in 0.7 ».



> Le 14 janv. 2017 à 07:29, Menu Jacques  a écrit :
> 
> Hello Andrew, Marte and Simon,
> 
> Thanks for the solutions, sorry I missed that topic in december.
> 
> Maybe such use of Staff.timeSignatureFraction is worth being mentioned in 
> this context in the LPNR? (Score.measureLength is not as of 2.19.31).
> 
> JM
> 
>> Le 13 janv. 2017 à 17:13, Simon Albrecht  a écrit :
>> 
>> On 13.01.2017 15:12, N. Andrew Walsh wrote:
>>> I'd probably reduce all note-values by half
>> 
>> I strongly advise against that.  It obscures the historical evolution of 
>> notation and thus takes away an important bit of information from the 
>> performer.  And honestly: it doesn’t make it significantly easier to read.
>> 
>> Best, Simon
>> 
>> ___
>> 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


Lyrics problem

2017-01-15 Thread Craig Dabelstein
Hi Lilyponders,

Has anyone encountered this before? In bars 1 and 19 of this MWE the lyrics
have been put a long way from the staff. In this example it only occures
when \compressFullBarRests is used, but in my full score it is occurring
with other instruments (who are required to sing) as well.

Any help would be greatly appreciated.

Craig


%

\version "2.19.36"

\language "english"

global = {
  \markLengthOn
  \textLengthOn

  \key af \major
  \time 4/4
  s1*3
  \bar "||"
  \time 6/4
  s1.*4
  \bar "||"
  \time 4/4
  s1*2
  \bar "||"
  \time 6/4
  s1.*8
  \bar "||"
  \time 4/4
  s1*2
  \bar "||"
  \time 6/4
  \key ef \major
  s1.*11
  s1.
  \bar "||"
  \time 4/4
  s1*10
  \bar "||"
  \time 6/4
  s1.*2
  \bar "||"
  \key f \major
  s1.*15
  s1.*9
  \bar "||"
  \time 4/4
  s1*4
  \bar "|."
}

audienceNotes = \relative f' {
  \clef "treble"
  R1*2 |

  % 3
  <<
{
  f4. ^\p f8 f4 r4 |
}
\addlyrics {
  \set alignBelowContext = #"Audience"
  Do -- mi -- ne
}
  >>

  % 4
  R1.*4 |

  % 8
  R1 |

  % 9
  <<
{
  f4. ^\p f8 f4 r4 |
}
\addlyrics {
  \set alignBelowContext = #"Audience"
  Do -- mi -- ne
}
  >>

  \barNumberCheck #10
  R1.*8 |

  % 18
  R1 |

  % 19
  <<
{
  c4. ^\p c8 c4 r4 |
}
\addlyrics {
  \set alignBelowContext = #"Audience"
  Do -- mi -- ne
}
  >>

  \barNumberCheck #20
  R1.*12 |

  % 32
  R1*7 |

  % 39
  <<
{
  c4. ^\f c8 c4 r4 |
}
\addlyrics {
  \set alignBelowContext = #"Audience"
  Li -- bra me
}
  >>

  \barNumberCheck #40
  R1*2 |

  % 42
  R1.*2 |

  % 44
  R1.*24

  % 68
  R1 |

  % 69
  <<
{
  f4. ^\p f8 f2 ~ |

  \barNumberCheck #70
  f1 ~ |

  % 71
  f1 \fermata
}
\addlyrics {
  \set alignBelowContext = #"Audience"
  Li -- bra me __
}
  >>
}

\score {
  \new Staff = "Audience" {
\set Staff.instrumentName = #"Audience"
\set Staff.shortInstrumentName = #"Aud."
\compressFullBarRests
<<
  \global
  \audienceNotes
>>
  }
}

\layout {

}

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


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


Re: Which Linux distro for Lilypond

2017-01-15 Thread Thomas Morley
2017-01-13 20:53 GMT+01:00 David Pirotte :
> Hello,
>
>> I never tried to compile lilypond with a guile version higher than
>> 2.0.13, so I can't say anything about it.
>
> I (really) recommend you to do so: guile 2.2 is due to be released in a month 
> or
> two, at the very most. 2.1.5 beta is the latest [1], 2.1.6 will be released 
> in a few
> days (and I think it fixes a(some) utf8 related bug(s).
>
> At this point in time Thomas, if I was in your position, I would not spend 
> time to
> get things done for 2.0, I would skip 2.0 and work on 2.2 instead, it is too 
> late,
> and imo totally useless, 2.2 is an order of magnitude better then 2.0, for 
> numerous
> reasons (read the NEWS since its first release...). Not only that, but when 
> 2.2 is
> released, support to 2.0 will be kept to the very strict minimum... Don't 
> loose your
> time here, it is my advice, maybe a bit more then 2c this time...
>
> Cheers,
> David
>
> [1] http://lists.gnu.org/archive/html/guile-devel/2016-12/msg5.html

I now compiled guile master from
35a90592501ebde7e7ddbf2486ca9d315e317d09
"Add unboxed floating point comparison instructions."

Getting Guile 2.1.5.21-35a90


Then I compiled LilyPond with this guile (thanks Werner fore the hints)
As mentioned before, scm_protects doesn't work anymore. Simply
replacing it with scm_gc_protect_object as the IRC-log
https://gnunet.org/bot/log/guile/2017-01-05
seems to sugest didn't work for me, so I commented the whole
definition of ly:protects and replaced the result of it's call with an
empty list.
I'm aware this is brute-force and one should do a proper fix instead,
but my most naive attempt (see above) didn't work, so someone with
better knowledge is needed.
A change in scheme-sandbox was needed as well, not for compilation but
I stumbled over it ...

Here the whole diff so far:

$ git diff
diff --git a/lily/general-scheme.cc b/lily/general-scheme.cc
index 1168ee9..e4efe60 100644
--- a/lily/general-scheme.cc
+++ b/lily/general-scheme.cc
@@ -267,17 +267,20 @@ LY_DEFINE (ly_dimension_p, "ly:dimension?", 1,
0, 0, (SCM d),
 /*
   Debugging mem leaks:
 */
+/*
 LY_DEFINE (ly_protects, "ly:protects",
0, 0, 0, (),
"Return hash of protected objects.")
 {
-  //scm_protects is available only in Guile versions before 2.1.
+  //scm_protects is available only in Guile versions before 2.1.  ->
scm_gc_protect_object ??
 #if SCM_MAJOR_VERSION < 2 || SCM_MAJOR_VERSION == 2 && SCM_MINOR_VERSION < 1
   return scm_protects;
 #else
-  return programming_error ("ly:protects is not supported in Guile 2.1");
+  // return programming_error ("ly:protects is not supported in Guile 2.1");
+  return scm_gc_protect_object;
 #endif
 }
+*/

 LY_DEFINE (ly_gettext, "ly:gettext",
1, 0, 0, (SCM original),
diff --git a/ly/scheme-sandbox.ly b/ly/scheme-sandbox.ly
index 7dec0dc..1f233c0 100644
--- a/ly/scheme-sandbox.ly
+++ b/ly/scheme-sandbox.ly
@@ -13,4 +13,8 @@
 % requirements may be different.

 #(newline)
-#(scm-style-repl)
+#(if (guile-v2)
+ (begin
+   (use-modules (system repl repl))
+   (start-repl))
+ (scm-style-repl))
diff --git a/scm/lily.scm b/scm/lily.scm
index d3164e4..703b00e 100644
--- a/scm/lily.scm
+++ b/scm/lily.scm
@@ -840,6 +840,7 @@ messages into errors.")
  (lambda (a b)
(< (object-address (car a))
   (object-address (car b))
+ (protects '())
  (out-file-name (string-append
  "gcstat-" (number->string gc-protect-stat-count)
  ".scm"))

With this changes on top of my rebased local copy of the
dev/guile-v2-work)-branch I've got a successful make and a full make
doc.

Up to now I only made some observations, far too early for more.

(1)
While invoking lilypond I always get a guile-message:
Import (ice-9 threads) to have access to `call-with-new-thread'.
Import (ice-9 threads) to have access to `current-thread'.

(2)
Compiling a huge score
http://lists.gnu.org/archive/html/lilypond-user/2016-11/msg00943.html
lasts ~15 minutes
With lilypond and guile 2.0.13 it was ~17 minutes
Though, lilypond with guile 1.8.8 made it in ~5 minutes

(3)
guile now finds files with chinese, etc characters
guile --no-auto-compile filename_名字.scm
succeeded.

(4)
Trying to compile filename_名字.ly with lilypond still returns
warning: cannot find file: `filename_??.ly'
fatal error: failed files: "filename_??.ly"



So far for today. No time left to research about (ice-9 threads) or
what it is about that --no-auto-compile or other issues.

But let me say, why, I mean WHY?? did noone drop a note about (3) here
http://lists.gnu.org/archive/html/guile-devel/2017-01/msg3.html
or here
http://lists.gnu.org/archive/html/guile-user/2016-11/msg00031.html


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org

RE: beams in treble and bass staff

2017-01-15 Thread Mark Stephen Mrotek
Gianmaria,

 

See the attached.

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Gianmaria Lari
Sent: Saturday, January 14, 2017 2:08 AM
To: lilypond-user 
Subject: beams in treble and bass staff

 

Novice question. Attached it's a small music fragment from an harpe score. How 
can I write it using lilypond?

 

Thank you, g.

\version "2.18.2"

\score {
  \new PianoStaff <<

\new Staff = "upper"

\relative c'' {
\time 6/8
\key c \major

g'4. f8 e d |


   

}

\new Staff = "lower" 
\relative c {
\clef treble 
\key c \major

c'16 d f g
\change Staff = "upper"
b d s4. |


  
}
  >>
  \layout { }
  
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: addFingering

2017-01-15 Thread David Wright
On Sat 14 Jan 2017 at 11:47:49 (+0100), Gianmaria Lari wrote:
> > \repeat unfold is not evaluated at all.  It stays a repeat expression
> > until it gets interpreted.  One reason it is implemented that way is in
> > order to keep the repeats in
> >
> > \relative c' { \repeat unfold 4 { c e g } }
> >
> > in the same octave rather than get
> >
> > \relative c' { c e g c e g c e g c e g }
> >
> > which crosses four octaves.
> 
> I understand this pragmatism. It is clear that in a piece when you write
> something like
> 
> \relative c' {
> somemusic.
> \repeat unfold 4 { c e g }
> somemusic.
>  }
> 
> 
> you expect to repeat {c e g} on the same octave. If you don't do it,
> \relative became a command pretty unusable.
> 
> But the side effect of this semantic choice looks very important to me.
> We're introducing a strong exceptional behavior, don't we?
> For me (this is my opinion, and of course I'm not a lilypond/musician etc.
> expert) I would prefer force the user to write
> 
> \version "2.19.54"
> {
>   \repeat unfold 2 \relative c' {c e g}
> }
> 
> 
> rather than lost the orthogonality of the language.
> Just my two cents.

I'm feeling shortchanged.

What side effect and exceptional behaviour?
The orthogonality between what and what?

Cheers,
David.

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


Re: Triplets

2017-01-15 Thread Thomas Morley
2017-01-15 0:21 GMT+01:00 Thomas Morley :

> With my lily-2.14.2 I can do in terminal:
>
> ~$ lilypond-2-14-2 -e '(scm-style-repl)'
> GNU LilyPond 2.14.2
> guile> UP
> 1
> guile> DOWN
> -1
> guile> ly:tuplet-bracket::calc-direction
> #
> guile>
>
> All there and available...
>
> Cheers,
>   Harm

Below you find a working code tested with 2.14.2!
Not sure the output is always convincing, though...

I'm _very_ happy this version is antique, coding there is aarrgh.

\version "2.14.2"

\score {
\new Staff
  \relative c''{
\times 2/3 { c4 d e }

\voiceOne

\times 2/3 { a,4 b c }
\times 2/3 { a4 b c' }
\times 2/3 { a,4 b c, }
\times 2/3 { a'4 b, c }

\voiceTwo

\times 2/3 { a'4 b c }
\times 2/3 { a4 b c' }
\times 2/3 { a,4 b c, }
\times 2/3 { a'4 b, c }
  }
  \layout {
\context {
  \Voice
  %% Use 'thickness from Slur
  \override TupletBracket #'thickness = #1.2
  %% 'control-points need to be set
  \override TupletBracket #'after-line-breaking =
#(lambda (grob)
  (let* ((x-pos (ly:stencil-extent (ly:grob-property grob 'stencil) X))
 (pos (ly:grob-property grob 'positions))
 (x-ln (interval-length x-pos))
 (dir (ly:grob-property grob 'direction))
 ;;; read out the height of the TupletBracket, maybe negative!
 (height (- (cdr pos) (car pos)))
 ;;; height-corr is introduced because sometimes the shape of
 ;;; the slur needs to be adjusted.
 ;;; It is used in the 2nd/3rd control-point.
 ;;; The value of 0.3 is found by trial and error
 (height-corr (* 0.3 dir height))
 (edge-height (ly:grob-property grob 'edge-height '(0.7 . 0.7)))
 (pad 1.0))
;; set control-points for slur-stencil
(ly:grob-set-property! grob 'control-points
  (list
;; first cp
(cons
  (+ (car x-pos) 0.5)
  (- (+ (* dir pad) (+ (car pos) (* -1 dir (car edge-height
 (* 0.5 dir)))
;; second cp
(cons
  (+ (car x-pos) (* x-ln 1/4))
  (+ (* dir pad) (+ (car pos) (* dir (+ 0.7 height-corr)
;; third cp
(cons
  (+ (car x-pos) (* x-ln 3/4))
  (+ (* dir pad) (+ (cdr pos) (* dir (- 0.7 height-corr)
;; fourth cp
(cons
  (- (cdr x-pos) 0.5)
  (- (+ (* dir pad) (+ (cdr pos) (* -1 dir (cdr edge-height
 (* 0.5 dir)
;; Use slur-stencil
(ly:grob-set-property! grob 'stencil
  ;; For debugging uncomment the following three lines
  ;; and comment (ly:slur::print grob)
  ;(ly:stencil-add
  ;  (ly:grob-property grob 'stencil)
  ;  (ly:slur::print grob))
  (ly:slur::print grob)
)))

  \override TupletBracket #'staff-padding = #'()

  %% probably:
  %\override TupletBracket #'direction =
  %  #(lambda (grob)
  %(if (eq? UP (ly:tuplet-bracket::calc-direction grob)) DOWN UP))

}
  }
}


Cheers,
  Harm

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


Re: How to increase the space between the header and notes?

2017-01-15 Thread Bernhard Kleine
Works, thanks a lot!

Bernhard


Am 15.01.2017 um 13:32 schrieb Andrew Bernard:
> Hi Bernhard,
>
> It is actually an alist (an association list), so you have to say, for
> example:
>
>   markup-system-spacing.basic-distance = #10
>
> or set all the properties in the alist at once with something like:
>
>   markup-system-spacing =
> #'((basic-distance . 12)
>(minimum-distance . 6)
>(padding . 1)
>(stretchability . 12))
>
> I know it is somewhat confusing the first time you come across these
> alist structures.
>
> Andrew
>
>
> On 15 January 2017 at 23:09, Bernhard Kleine  > wrote:
>
> I have seen it! however
>
> \paper {  markup-system-spacing = #120 }
>
> is not enough, does not change anything. What do I wrong?
>
> Bernhard
>
> Am 15.01.2017 um 12:48 schrieb Andrew Bernard:
>> HI Bernhard,
>>
>> Have a look at markup-system spacing in the Notation Reference
>> (NR) Section 4.1.4.
>>
>> Andrew
>>
>>
>> On 15 January 2017 at 22:42, Bernhard Kleine
>> > wrote:
>>
>>
>>
>> What is easiest way to have more space between the header and
>> the first
>> staff. I have space left at the bottom of the page. Therefore
>> one could
>> add some empty line in front of the music.
>>
>
> -- 
> spitzhalde9
> D-79853 lenzkirch
> bernhard.kle...@gmx.net 
> www.b-kleine.com , www.urseetal.net 
> 
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
>

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



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


Re: Removing Barlines

2017-01-15 Thread Malte Meyn


Am 14.01.2017 um 18:16 schrieb Amir Teymuri:
> i am a new lilypond user. How can i hide / remove barlines completely?
> When i set \override Score.BarLine in each upper and lower staffes of a
> piano staff only the line on the systems will be overriden but not the
> line between upper and lower systems. Attached is how it lookes like
> and my code.

It looks like you have no bars and no time signature in this piece. So
you don’t want to have break possibilities only at bar lines. There are
two options (see code example below):

1. use barAlways = ##t which sets a bar line after every single note.
2. use \cadenzaOn and \bar"" where you want to allow a line breaks.

I saw that you use <> for chords. This works but there is a
shorter way: 8 (note that the duration belongs after the > because
it’s for the whole chord). << >> is usually used for polyphony.

%
\version "2.18.2"

% for line break possibilities everywhere use
% barAlways and empty bar lines:

\new Score \with {
  barAlways = ##t
  defaultBarType = ""
  \omit BarNumber
  \omit TimeSignature
} {
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
}

% for only manual break possibilities use
% \cadenzaOn and manual empty bars:

\new Score \with {
  \omit TimeSignature
} {
  \cadenzaOn
  b b b b b b b b b b b b b b b b b b
  b b b b b b b\bar"" b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
  b b b b b b b b b b\bar"" b b b b\bar"" b b b b
  b b b b b b\bar"" b b b b b b b b b b b b
  b\bar"" b b b b b b b b b b b b b b b b b
  b b b b\bar"" b b b b b b b b b b b b b b
  b b b b b b b b b b b b b b b b b b
}

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


Re: How to increase the space between the header and notes?

2017-01-15 Thread Andrew Bernard
Hi Bernhard,

It is actually an alist (an association list), so you have to say, for
example:

  markup-system-spacing.basic-distance = #10

or set all the properties in the alist at once with something like:

  markup-system-spacing =
#'((basic-distance . 12)
   (minimum-distance . 6)
   (padding . 1)
   (stretchability . 12))

I know it is somewhat confusing the first time you come across these alist
structures.

Andrew


On 15 January 2017 at 23:09, Bernhard Kleine 
wrote:

> I have seen it! however
>
> \paper {  markup-system-spacing = #120 }
> is not enough, does not change anything. What do I wrong?
>
> Bernhard
>
> Am 15.01.2017 um 12:48 schrieb Andrew Bernard:
>
> HI Bernhard,
>
> Have a look at markup-system spacing in the Notation Reference (NR)
> Section 4.1.4.
>
> Andrew
>
>
> On 15 January 2017 at 22:42, Bernhard Kleine 
> wrote:
>
>>
>>
>> What is easiest way to have more space between the header and the first
>> staff. I have space left at the bottom of the page. Therefore one could
>> add some empty line in front of the music.
>>
>>
> --
> spitzhalde9
> D-79853 lenzkirchbernhard.kle...@gmx.netwww.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to increase the space between the header and notes?

2017-01-15 Thread Bernhard Kleine
I have seen it! however

\paper {  markup-system-spacing = #120 }

is not enough, does not change anything. What do I wrong?

Bernhard

Am 15.01.2017 um 12:48 schrieb Andrew Bernard:
> HI Bernhard,
>
> Have a look at markup-system spacing in the Notation Reference (NR)
> Section 4.1.4.
>
> Andrew
>
>
> On 15 January 2017 at 22:42, Bernhard Kleine  > wrote:
>
>
>
> What is easiest way to have more space between the header and the
> first
> staff. I have space left at the bottom of the page. Therefore one
> could
> add some empty line in front of the music.
>

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



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


Re: Triplets

2017-01-15 Thread Noeck
Hi,

some relevant changes between 2.14 and 2.19 are these:
http://lilypond.org/doc/v2.18/Documentation/changes/index.html

> error: syntax error, unexpected '=', expecting SCM_FUNCTION or SCM_IDENTIFIER 
> or SCM_TOKEN
>  \override TupletBracket.stencil 
>  = #ly:slur::printVia trial-and-error I found 
> out that the version o

It might be that it's not the ‘=’ but the dot syntax. How about this?

\override TupletBracket #'stencil = …

> error: unknown escaped string: `\tuplet'
>  \tuplet 3/2 { c''4 d'' e'’ }

‘\tuplet 3/2’ was newly introduced. With older versions you can write
‘\times 2/3’.

Cheers,
Joram

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


Re: How to increase the space between the header and notes?

2017-01-15 Thread Andrew Bernard
HI Bernhard,

Have a look at markup-system spacing in the Notation Reference (NR) Section
4.1.4.

Andrew


On 15 January 2017 at 22:42, Bernhard Kleine 
wrote:

>
>
> What is easiest way to have more space between the header and the first
> staff. I have space left at the bottom of the page. Therefore one could
> add some empty line in front of the music.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How to increase the space between the header and notes?

2017-01-15 Thread Bernhard Kleine
Happy new year!

What is easiest way to have more space between the header and the first
staff. I have space left at the bottom of the page. Therefore one could
add some empty line in front of the music.

Regards Bernhard

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




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