Re: trying to write a simple python beaming snippet for Frescobaldi

2015-12-10 Thread tisimst
Leszek,

Just thought I'd bring this up (though I know you've already put in a bunch
of work. You can add a keyboard shortcut to the "Quick Insert" > "Beam"
option. Following the attached image, here's the steps (since it doesn't
show up in the default set of keyboard shortcuts in the preferences window):

1. Right-click on the "Beam" option in the Quick Insert tool (if you can't
see the Quick Insert tool, you'll need to open it via the "Tools" > "Quick
Insert" menu option).
2. Click on "Configure Keyboard Shortcut (None)"
3. Click on the "Use a custom shortcut" radio button
4. Click on the input box next to "Primary shortcut"
5. Now, hit the "Ctrl" and "[" buttons at the same time on your keyboard to
save the key combination and click on "OK" to save the shortcut
6. Select the group of notes you want to apply the beam to and hit "Ctrl +
[" to have Frescobaldi insert the beam group (just like your code does).

Best,
Abraham

On Thu, Dec 10, 2015 at 8:14 AM, Leszek Wroński [via Lilypond] <
ml-node+s1069038n184633...@n5.nabble.com> wrote:

> You're right, thanks! This showed I was actually doing the correct thing
> when checking whether a string element was a space. Now I see that actually
> Frescobaldi starts calculating the lines from the 2nd one (that is, after
> the line with the initial -*- expression). And so the error was when I was
> assigning
>
> mysequence[x] = '['
>
> because, as I have just learned, strings in Python are immutable. Gosh. This
> does not explain everything what was going on, most probably due to my
> incompetence. But now I have something that's working:
>
> x = 0
> y = 0
> mysequence = text
> while x < len(text):
>   if text[x] == ' ' and y = 0:
> mysequence = mysequence + '[ '
> y = y + 1
>   else:
> mysequence = mysequence + text[x]
>   x = x + 1
> text = mysequence + ']'
>
> So when I select "d16 e8 f8" it returns "d16[ e8 f8]" as I intended. Now I
> will make it nicer :-)
>
> Thanks you very much, Jacques!
>
> On 10 December 2015 at 12:09, Jacques Menu <[hidden email]
> > wrote:
>
>> Hello Leszek,
>>
>> How about:
>>
>>
>> >>> var = "fo a"
>> >>> var[2]
>> ' '
>> >>> var[2] == ' '
>> True
>>
>>
>> JM
>>
>> Le 10 déc. 2015 à 11:33, Leszek Wroński <[hidden email]
>> > a écrit :
>>
>> Guys,
>>
>> Frescobaldi has the useful 'slur for the selected notes' snippet under
>> C-(. I want to have the same functionality for beams. That is, I want to be
>> able to select some notes, and then via the snippet insert a '[' in the
>> first space (that is, after the first note), and then a ']' at the end.
>>
>> Unfortunately, I have never in my life written a line of python... till
>> this day, that is. So, I'm trying the following ('W' is for whitespace):
>>
>> 1 -*- name: mybeam; python; selection: strip;
>> 2 x = 0
>> 3 mysequence = text
>> 4 while x < len(text):
>> 5 WW if text[x] == ' ':
>> 6  mysequence[x] = '['
>> 7  break
>> 8 WW x = x + 1
>> 9 text = mysequence + ']'
>>
>> Notice that line 5 contains a space between the quotes. Of course I need
>> to add conditions regarding what to do if there's no space in the selection
>> etc. But that's for later, once this basic script actually works. As you
>> can see, I thought I'd copy the selection to 'mysequence' string to
>> manipulate on it; this is probably unneeded. But after writing the above I
>> got, at line 5, an error "TypeError: 'unicode' object does not support item
>> assignment".
>>
>> What I found weird is that to my untrained eyes line 5 does no assigning,
>> but rather checks whether the xth element of the string text is a space.
>> Anyway, after some googling I decided to substitute "is" for "==" in line
>> 5. Right now the script does not give any errors, but it only adds a ']' at
>> the end of the selection. I'm apparently unable to check whether the xth
>> element of the string text is a space. I tried
>>
>> if text[x] == ' %d':
>>
>> and
>>
>> if text[x] ==  u"\u0020":
>>
>> and
>>
>> if text[x].isspace():
>>
>> to no avail (the last one gave the "unicode object does not support item
>> assignment" error again, which I don't understand at all, having copied the
>> command from
>> http://www.ehow.com/how_12112665_determine-character-whitespace-python.html).
>> Could anyone give me a hint on this?
>>
>> Best regards,
>>
>> Leszek.
>>
>> ___
>> lilypond-user mailing list
>> [hidden email] 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>>
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> 

Re: Break a chord glissando

2015-12-10 Thread Robin Bannister

Luca Danieli wrote:


I followed this explanation to break a 
glissandohttp://lsr.di.unimi.it/LSR/Search?q=break
but in this code it is not able to break the glissando between two chords.



Do you mean LSR940?
http://lsr.di.unimi.it/LSR/Item?id=940

As it says there, you must also apply
>   \override Glissando.breakable = ##t


Cheers,
Robin

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


Re: SVG files for MediaWiki

2015-12-10 Thread Werner LEMBERG

> When I create an SVG file with LilyPond and upload it to Wikimedia
> Commons, it renders as a blank image (try uploading
> Tristan.preview.svg at https://tools.wmflabs.org/svgcheck/).  Can
> anyone help me figure out how to fix this?

For me it worked without problems uploading to German wikipedia, cf.

  https://de.wikipedia.org/wiki/Datei:Tubular-bells.svg

which also shows the used source code.


Werner

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


problem with "extra" lyrics appearing only sometimes

2015-12-10 Thread Kieren MacMillan
Hello all,

Apologies in advance: I don’t have time for a minimal example…
I’m supposed to have sent this engraving off this morning.  =\
I just need to figure out what’s wrong and move on.

I have the following structure:

  \new ChoirStaff <<
\new Staff = "Staff_SA" \new Voice = "Voice_SA" << \global \SA_notes >>
\new Lyrics \with { alignAboveContext = "Staff_SA" } \lyricsto 
"Voice_S" \S_words
\new Lyrics \lyricsto "Voice_SA" { \SA_words }
\new Staff = "Staff_TB" \new Voice = "Voice_TB" << \global \TB_notes >>
\new Lyrics \with { alignAboveContext = "Staff_TB" } \lyricsto 
"Voice_T" \T_words
\new Lyrics \lyricsto "Voice_TB" { \TB_words }
  >>

This allows me to have up to four lines of lyrics: one above and one below each 
of the two choral staves.

For some reason, some lyrics are appearing and others are not. It seems almost 
random. In my note code, where I want to have (e.g.,) some soprano words 
appear, I use:

<<
  { \voiceTwo r2 a'8 gs' fs' e' ~ 2 ~ 2 }
  \context Voice = "Voice_S" { \voiceOne e''8 ds'' cs'' b' ~ 1 ~ 2 }
>> \oneVoice r4   | % SA 25

As I said, this appears to work exactly as expected in many circumstances, and 
fail completely in others.
Any thoughts on what might be causing this intermittency?

Thanks,
Kieren.


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


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


SVG files for MediaWiki

2015-12-10 Thread Daniel Rosen
When I create an SVG file with LilyPond and upload it to Wikimedia Commons, it 
renders as a blank image (try uploading Tristan.preview.svg at 
https://tools.wmflabs.org/svgcheck/). Can anyone help me figure out how to fix 
this? I've already tried to import it into and export it from Apache OpenOffice 
Draw, but there must be some kind of problem with the import filter extension 
(obtainable at https://wiki.openoffice.org/wiki/SVG_Import_Filter) because a 
couple of grobs are missing from the program's rendering (namely, the 
full-measure rest in line 22, and the flags on the a8 in line 7 and the ais8 in 
line 8-see OOTristan.svg).

DR




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


Break a chord glissando

2015-12-10 Thread Luca Danieli
Hi all,
I followed this explanation to break a 
glissandohttp://lsr.di.unimi.it/LSR/Search?q=break
but in this code it is not able to break the glissando between two chords.Is it 
possible to break chord glissandos?
\version "2.18.2"
  \score {   <<\new StaffGroup  \new Staff <<\key c \major  
  \time 4/4\clef bass\set Staff.instrumentName = #"Cello"   
 \new Voice {   \relative c' {  2.:32\glissando  \once\override 
Glissando.after-line-breaking = ##t  4:32\glissando |  \break  1:32 |}}  >>>>}
Luca  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lower-case letter rehearsal marks

2015-12-10 Thread David Kastrup
Thomas Morley  writes:

> 2015-12-09 17:17 GMT+01:00 David Kastrup :
>>
>> Why not
>>
>> \set Score.markFormat = \markup \circle \bold \markletter \etc
>>
>> (the latter use of \etc does not work yet but that's fixable).
>
> Not sure why
>   foo-markup = \markup \bold \with-color #cyan \markletter \etc
>   \markup \foo #1
> does not work, as opposed to
>   bold-red-markup = \markup \bold \with-color #red \etc
>   \markup \bold-red "text"

Well, I wrote "it's fixable".  That's issue 4687, with patch.  The
markup grammar special-cased "markup command chain with only markup
argument missing" and the \etc hooked into that special case.  I've
added the rest now.

As a note aside: it was a hole in one.  First attempt was accepted by
the compiler and worked.  For a mixed non-trivial Bison/Scheme
feature...

-- 
David Kastrup

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


Re: Lower-case letter rehearsal marks

2015-12-10 Thread Thomas Morley
2015-12-10 7:47 GMT+01:00 David Kastrup :

> That's issue 4687, with patch.  The
> markup grammar special-cased "markup command chain with only markup
> argument missing" and the \etc hooked into that special case.  I've
> added the rest now.
>
> As a note aside: it was a hole in one.  First attempt was accepted by
> the compiler and worked.  For a mixed non-trivial Bison/Scheme
> feature...


Great.

Congrats,
  Harm

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


Re: Feature request for Nalesnik's rN.ly

2015-12-10 Thread Ferdinand Grau
> I've moved all development of this to a GitHub repository here:
https://github.com/davidnalesnik/lilypond-roman-numeral-tool.  There are
significant improvements over what you'll find in the archives. Ability to
do altered figures is one of the things I've added.
It's exactly what I need! Thank you!

> You can't do the isolated flat, but I confess I've never seen that
notation used with _Roman numeral_ notation, rather only within pure
figured bass.
It's used in "Harmony and Voice Leading" by Aldwell/Schachter.

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


Re: problem with "extra" lyrics appearing only sometimes

2015-12-10 Thread tisimst
Oh, and make sure the \context Voice = "Voice_S" appears *before* the
associated \new Lyrics block.

Best,
Abraham

On Thu, Dec 10, 2015 at 1:15 PM, Kieren MacMillan [via Lilypond] <
ml-node+s1069038n184640...@n5.nabble.com> wrote:

> Hello all,
>
> Apologies in advance: I don’t have time for a minimal example…
> I’m supposed to have sent this engraving off this morning.  =\
> I just need to figure out what’s wrong and move on.
>
> I have the following structure:
>
>   \new ChoirStaff <<
> \new Staff = "Staff_SA" \new Voice = "Voice_SA" << \global
> \SA_notes >>
> \new Lyrics \with { alignAboveContext = "Staff_SA" } \lyricsto
> "Voice_S" \S_words
> \new Lyrics \lyricsto "Voice_SA" { \SA_words }
> \new Staff = "Staff_TB" \new Voice = "Voice_TB" << \global
> \TB_notes >>
> \new Lyrics \with { alignAboveContext = "Staff_TB" } \lyricsto
> "Voice_T" \T_words
> \new Lyrics \lyricsto "Voice_TB" { \TB_words }
>   >>
>
> This allows me to have up to four lines of lyrics: one above and one below
> each of the two choral staves.
>
> For some reason, some lyrics are appearing and others are not. It seems
> almost random. In my note code, where I want to have (e.g.,) some soprano
> words appear, I use:
>
> <<
>   { \voiceTwo r2 a'8 gs' fs' e' ~ 2 ~ 2 }
>   \context Voice = "Voice_S" { \voiceOne e''8 ds'' cs'' b' ~ 1 ~ 2 }
> >> \oneVoice r4   | % SA 25
>
> As I said, this appears to work exactly as expected in many circumstances,
> and fail completely in others.
> Any thoughts on what might be causing this intermittency?
>
> Thanks,
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: [hidden email]
> 
>
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/problem-with-extra-lyrics-appearing-only-sometimes-tp184640.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/problem-with-extra-lyrics-appearing-only-sometimes-tp184640p184643.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: problem with "extra" lyrics appearing only sometimes

2015-12-10 Thread tisimst
Kieren,

This doesn't necessarily answer your question, but one thing I've noticed
about assigning lyrics to voices, is that if I don't explicitly mention the
voice inside the \score block, then it's almost like the lyrics don't know
the voice exists. So, If there's a way to show \context Voice = "Voice_S"
somewhere inside the \score block, then the lyrics should find the right
notes.

HTH,
Abraham

On Thu, Dec 10, 2015 at 1:15 PM, Kieren MacMillan [via Lilypond] <
ml-node+s1069038n184640...@n5.nabble.com> wrote:

> Hello all,
>
> Apologies in advance: I don’t have time for a minimal example…
> I’m supposed to have sent this engraving off this morning.  =\
> I just need to figure out what’s wrong and move on.
>
> I have the following structure:
>
>   \new ChoirStaff <<
> \new Staff = "Staff_SA" \new Voice = "Voice_SA" << \global
> \SA_notes >>
> \new Lyrics \with { alignAboveContext = "Staff_SA" } \lyricsto
> "Voice_S" \S_words
> \new Lyrics \lyricsto "Voice_SA" { \SA_words }
> \new Staff = "Staff_TB" \new Voice = "Voice_TB" << \global
> \TB_notes >>
> \new Lyrics \with { alignAboveContext = "Staff_TB" } \lyricsto
> "Voice_T" \T_words
> \new Lyrics \lyricsto "Voice_TB" { \TB_words }
>   >>
>
> This allows me to have up to four lines of lyrics: one above and one below
> each of the two choral staves.
>
> For some reason, some lyrics are appearing and others are not. It seems
> almost random. In my note code, where I want to have (e.g.,) some soprano
> words appear, I use:
>
> <<
>   { \voiceTwo r2 a'8 gs' fs' e' ~ 2 ~ 2 }
>   \context Voice = "Voice_S" { \voiceOne e''8 ds'' cs'' b' ~ 1 ~ 2 }
> >> \oneVoice r4   | % SA 25
>
> As I said, this appears to work exactly as expected in many circumstances,
> and fail completely in others.
> Any thoughts on what might be causing this intermittency?
>
> Thanks,
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: [hidden email]
> 
>
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/problem-with-extra-lyrics-appearing-only-sometimes-tp184640.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/problem-with-extra-lyrics-appearing-only-sometimes-tp184640p184641.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: problem with "extra" lyrics appearing only sometimes

2015-12-10 Thread Kieren MacMillan
Hi Abraham,

THANK YOU!

Don’t know if it's “kosher” [pushing the \global variable into my Voice 
contexts to keep them alive], but I’m now using:

  \new ChoirStaff << 
\new Staff = “Staff_SA” <<
\new Voice = "Voice_SA" << \global \SA_notes >>
\context Voice = “Voice_S” \global
>>
\new Lyrics \with { alignAboveContext = "Staff_SA" } \lyricsto 
"Voice_S" \S_words 
\new Lyrics \lyricsto "Voice_SA" { \SA_words } 
\new Staff = “Staff_TB” <<
\new Voice = "Voice_TB" << \global \TB_notes >>
\context Voice = “Voice_T” \global
>>
\new Lyrics \with { alignAboveContext = "Staff_TB" } \lyricsto 
"Voice_T" \T_words 
\new Lyrics \lyricsto "Voice_TB" { \TB_words } 
  >> 

and lyrics are appearing everywhere they’re supposed to.  =)

If anyone has structural/code improvements or suggestions, let me know.
At least for now this seems to work, and I can get this engraving finished and 
sent off.

Thanks!
Kieren.


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


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


Re: Lower-case letter rehearsal marks

2015-12-10 Thread Thomas Morley
2015-12-10 11:58 GMT+01:00 David Kastrup :
> Thomas Morley  writes:
>
>> Not sure why
>>   foo-markup = \markup \bold \with-color #cyan \markletter \etc
>>   \markup \foo #1
>> does not work, as opposed to
>>   bold-red-markup = \markup \bold \with-color #red \etc
>>   \markup \bold-red "text"
>
> Anyway, should this rather work using the syntax
>
> \markup bold-red = \bold \with-color #red \etc
>
> ?  this would have the advantage of hiding the way \markup introduces
> its own name space, and one could use the full define-markup-command
> resulting in (markup #:bold-red ...) and make-bold-red-markup working as
> well.

Nice advantages.

> But it seems weird to use this for \etc-style functions only.

And right now
\markup bold-red
prints the string "bold-red".

Having
\markup bold-red = <ẃhat-ever>
,i.e. a definition might lead to confusions.
Is it possible to create a sort-of-markup-macro to be used like:

\sort-of-markup-macro sort-of-markup-macro-name = 

instead?
(Just brain-storming)

> And the
> whole markup-macro machinery is crazy anyway.

I trust your expertise.


Cheers,
  Harm

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


Re: SVG files for MediaWiki

2015-12-10 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/12/15 20:03, Werner LEMBERG wrote:
> 
>> When I create an SVG file with LilyPond and upload it to
>> Wikimedia Commons, it renders as a blank image (try uploading 
>> Tristan.preview.svg at https://tools.wmflabs.org/svgcheck/).
>> Can anyone help me figure out how to fix this?
> 
> For me it worked without problems uploading to German wikipedia,
> cf.
> 
> https://de.wikipedia.org/wiki/Datei:Tubular-bells.svg
> 
> which also shows the used source code.
> 
> 
> Werner
> 
I had problems a few months back with a file that I wanted to be
available as a thumbnail, but also capable of being printed out.  I
ended up having to use PNG.  See
https://en.wikipedia.org/wiki/File:Yigdal_by_Leoni.png

The Lilypond source is below.  The odd paper setting was to stop the
music being a couple of lines lost at the top of a sheet of A4.
- %<-
\version "2.18.2"

\language "english"

\header {
title = "Yigdal"
tagline = ""
}

\paper {
  #(set-paper-size "a6" 'landscape)
  indent=0\mm
  line-width=120\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup=##f
  scoreTitleMarkup=##f
}


melody = \relative c' {
  \partial 4 d4^"Andante" |
  g4. a8 bf4 c |
  d2. bf4 |
  c4( d) ef( f) |
  d2. f,4 |
  bf4. c8 d4 ef | \break
  f2( bf,4) ef |
  d2 c |
  bf2. \bar "||" bf4 |
  d4. d8 d4 d |
  c2. a4 |
  bf4( d) c( bf) |
  a2. d,4 |
  g4. a8 bf4 c |
  d2( ef4) c |
  bf2 a |
  g2. \bar "|."
}

text = \lyricmode {
  \markup{ \tiny \smallCaps Hazzan: \normal-text Yig } -- |
  dal E -- lo -- him |
  hay. we -- |
  yish -- tab -- |
  bab. Nim -- |
  za we -- en 'et |
  el __ me -- |
  zi -- 'u -- |
  to. \markup{ \tiny \smallCaps Congregation: \normal-text L' } -- |
  had, we -- en ya -- |
  hid ke -- |
  yi -- hu -- |
  do. Ne' -- |
  lam, we -- gam en |
  sof __ le -- |
  ah' -- du -- | to.
}

\score {
  <<
\new Voice \relative c' {
  \numericTimeSignature \time 2/2
  \key g \minor
  \melody
}
\addlyrics {
  \text
}
  >>
  \layout {}
  \midi { \tempo 2 = 80 }
- --%<-
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJWaejUAAoJEAF3yXsqtyBluL0P/RHDNTncKxh1d0P8SYsmfgA7
7zbWQ6FJ6Az7AqkuicdCTM/417XIUNSFqGQEhKTuJqx/ZHs0mEExCJ2MlI7xrfsh
voszS3p5Xw/M6Nap4CH3/AL+gTUERXyqJc5nPETLGtmRbsKmYbt6SlgFwmBgPba1
jvwwPkxDPPVLZwZFuyW8OxZQhcwSzeQ/yWZcxozgF3hmhLWUCnJm8dcGGmfHW5Wr
DgPchBmlmHsHYnUldMMGdZKBryESXas2MLZhCYtrzudr3bROgA6eAR2690VmQekf
N1MBc7GBg7TDnywOYC6C2C7lUY8aKAnX19BfWZWWz7vwQwynKBSv5oWJY3e1iYbc
0MoVtJ7nbPxG3i32FlHnxHdibcKjObavAfseBgU/uEI5utRtpt5bZ1ZkRISc2nsn
lN/uGDWxNz6j1Xn/SQGilfqBegtglU8CfTbIT3QY6js0dPPMBBgBUHpOv57+AlK9
N6zuJjJNtSIrTbp5bgWKEHI1NCd8xr2QFNPdyke3QmwyIqLSZQ3OhJwmJr+uWAcO
GnCnnd6s5N758xIqV44eXTGaYeVvD2S0f9XUYGzsDP9o0dNF4F0rwnw8nuwYqO3o
ogahvOCDD7QY6AHbEj6f3pIWqaSu9rDR+PRuD1kAVlHUMRx0K9fXUcc0GxuKE/vb
30VBZMznol5RmvpUol1A
=AKB4
-END PGP SIGNATURE-

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


November font

2015-12-10 Thread Andrew Bernard
Greetings All,

Has anybody used the November font mentioned in the Scores of Beauty blog? 
Since this is a rather expensive commercial font, it may be good to have 
reviews from people who have experience with it, as with other commercial 
software.

I wonder if the whole idea goes against the grain of the open source concept of 
lilypond anyway.

Andrew



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


Re: Running Frescobaldi from Git

2015-12-10 Thread Federico Bruni
Il giorno gio 10 dic 2015 alle 12:15, Ed.Klarinet 
 ha scritto:

Hi Federico,

Because the environment variable is set in .bashrc (the advantage is 
that it will work either if frescobaldi is run from terminal and if 
it's run from the desktop).

You missed that part of the wiki or didn't work for you?

It didn't. Is does when I run Frescobaldi from the terminal but not 
when I run it from the menu. Using Goolgle I find: "aliases from 
~/.bashrc file will work only in a bash interactive shell"


Ok, then I'll add frescobaldi to the path in .bashrc.
When we discussed this, we eventually agreed that this was better than 
using an alias, but I forgot updating the wiki.


Thanks
Federico




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


Re: Lower-case letter rehearsal marks

2015-12-10 Thread Kieren MacMillan
Hi David,

On Dec 10, 2015, at 1:47 AM, David Kastrup  wrote:
> As a note aside: it was a hole in one.  First attempt was accepted by
> the compiler and worked.  For a mixed non-trivial Bison/Scheme feature…

Nicely done!
Thanks, as always, for your great work.

Cheers,
Kieren.


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


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


trying to write a simple python beaming snippet for Frescobaldi

2015-12-10 Thread Leszek Wroński
Guys,

Frescobaldi has the useful 'slur for the selected notes' snippet under C-(.
I want to have the same functionality for beams. That is, I want to be able
to select some notes, and then via the snippet insert a '[' in the first
space (that is, after the first note), and then a ']' at the end.

Unfortunately, I have never in my life written a line of python... till
this day, that is. So, I'm trying the following ('W' is for whitespace):

1 -*- name: mybeam; python; selection: strip;

2 x = 0

3 mysequence = text

4 while x < len(text):

5 WW if text[x] == ' ':

6  mysequence[x] = '['

7  break

8 WW x = x + 1

9 text = mysequence + ']'


Notice that line 5 contains a space between the quotes. Of course I need to
add conditions regarding what to do if there's no space in the selection
etc. But that's for later, once this basic script actually works. As you
can see, I thought I'd copy the selection to 'mysequence' string to
manipulate on it; this is probably unneeded. But after writing the above I
got, at line 5, an error "TypeError: 'unicode' object does not support item
assignment".


What I found weird is that to my untrained eyes line 5 does no assigning,
but rather checks whether the xth element of the string text is a space.
Anyway, after some googling I decided to substitute "is" for "==" in line
5. Right now the script does not give any errors, but it only adds a ']' at
the end of the selection. I'm apparently unable to check whether the xth
element of the string text is a space. I tried


if text[x] == ' %d':


and


if text[x] ==  u"\u0020":


and


if text[x].isspace():


to no avail (the last one gave the "unicode object does not support item
assignment" error again, which I don't understand at all, having copied the
command from
http://www.ehow.com/how_12112665_determine-character-whitespace-python.html).
Could anyone give me a hint on this?


Best regards,


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


Running Frescobaldi from Git

2015-12-10 Thread Ed.Klarinet

Hi,

Maybe this is useful for those who want to run Frescobaldi from Git.

I just succeeded running Frescobaldi using a Git clone as described in 
this wiki:

https://github.com/wbsoft/frescobaldi/wiki/Run-Frescobaldi-from-git

But I had to change my desktop file to run Frescobaldi from the menu 
(Ubuntu 15.04/Unity)


Exec=env PYTHONPATH=/path-to-python-ly/python-ly 
/path-to-frescobaldi/frescobaldi %F


The way to set the environment variable in the .desktop file is not 
documented in the wiki.


Greetings, Ed

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


Re: Running Frescobaldi from Git

2015-12-10 Thread Federico Bruni
Il giorno gio 10 dic 2015 alle 11:56, Ed.Klarinet 
 ha scritto:

Hi,

Maybe this is useful for those who want to run Frescobaldi from Git.

I just succeeded running Frescobaldi using a Git clone as described 
in this wiki:

https://github.com/wbsoft/frescobaldi/wiki/Run-Frescobaldi-from-git

But I had to change my desktop file to run Frescobaldi from the menu 
(Ubuntu 15.04/Unity)


Exec=env PYTHONPATH=/path-to-python-ly/python-ly 
/path-to-frescobaldi/frescobaldi %F


The way to set the environment variable in the .desktop file is not 
documented in the wiki.




Because the environment variable is set in .bashrc (the advantage is 
that it will work either if frescobaldi is run from terminal and if 
it's run from the desktop).

You missed that part of the wiki or didn't work for you?


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


Re: Lower-case letter rehearsal marks

2015-12-10 Thread David Kastrup
Thomas Morley  writes:

> Not sure why
>   foo-markup = \markup \bold \with-color #cyan \markletter \etc
>   \markup \foo #1
> does not work, as opposed to
>   bold-red-markup = \markup \bold \with-color #red \etc
>   \markup \bold-red "text"

Anyway, should this rather work using the syntax

\markup bold-red = \bold \with-color #red \etc

?  this would have the advantage of hiding the way \markup introduces
its own name space, and one could use the full define-markup-command
resulting in (markup #:bold-red ...) and make-bold-red-markup working as
well.

But it seems weird to use this for \etc-style functions only.  And the
whole markup-macro machinery is crazy anyway.

-- 
David Kastrup

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


Re: trying to write a simple python beaming snippet for Frescobaldi

2015-12-10 Thread Jacques Menu
Hello Leszek,

How about:


>>> var = "fo a"
>>> var[2]
' '
>>> var[2] == ' '
True


JM

> Le 10 déc. 2015 à 11:33, Leszek Wroński  a écrit :
> 
> Guys,
> 
> Frescobaldi has the useful 'slur for the selected notes' snippet under C-(. I 
> want to have the same functionality for beams. That is, I want to be able to 
> select some notes, and then via the snippet insert a '[' in the first space 
> (that is, after the first note), and then a ']' at the end.
> 
> Unfortunately, I have never in my life written a line of python... till this 
> day, that is. So, I'm trying the following ('W' is for whitespace):
> 
> 1 -*- name: mybeam; python; selection: strip;
> 2 x = 0
> 3 mysequence = text
> 4 while x < len(text):
> 5 WW if text[x] == ' ':
> 6  mysequence[x] = '['
> 7  break
> 8 WW x = x + 1
> 9 text = mysequence + ']'  
> 
> Notice that line 5 contains a space between the quotes. Of course I need to 
> add conditions regarding what to do if there's no space in the selection etc. 
> But that's for later, once this basic script actually works. As you can see, 
> I thought I'd copy the selection to 'mysequence' string to manipulate on it; 
> this is probably unneeded. But after writing the above I got, at line 5, an 
> error "TypeError: 'unicode' object does not support item assignment".
> 
> What I found weird is that to my untrained eyes line 5 does no assigning, but 
> rather checks whether the xth element of the string text is a space. Anyway, 
> after some googling I decided to substitute "is" for "==" in line 5. Right 
> now the script does not give any errors, but it only adds a ']' at the end of 
> the selection. I'm apparently unable to check whether the xth element of the 
> string text is a space. I tried
> 
> if text[x] == ' %d':
> 
> and
> 
> if text[x] ==  u"\u0020":
> 
> and
> 
> if text[x].isspace():
> 
> to no avail (the last one gave the "unicode object does not support item 
> assignment" error again, which I don't understand at all, having copied the 
> command from 
> http://www.ehow.com/how_12112665_determine-character-whitespace-python.html 
> ).
>  Could anyone give me a hint on this?
> 
> Best regards,
> 
> Leszek.
> 
> ___
> 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: Running Frescobaldi from Git

2015-12-10 Thread Ed.Klarinet

Hi Federico,

Because the environment variable is set in .bashrc (the advantage is 
that it will work either if frescobaldi is run from terminal and if 
it's run from the desktop).

You missed that part of the wiki or didn't work for you?

It didn't. Is does when I run Frescobaldi from the terminal but not when 
I run it from the menu. Using Goolgle I find: "aliases from |~/.bashrc| 
file will work /only/ in a bash interactive shell"


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


RE: November font

2015-12-10 Thread Mark Stephen Mrotek
Bernard,

 

Not sure which “November” font to which you refer.

Here are some free fonts of the same name.

http://www.fontpalace.com/font-download/November+Regular/

https://www.fontyukle.net/en/November+Regular.ttf

http://www.azfonts.net/load_font/novem.html

http://ufonts.com/fonts/november-regular.html

 

Mark

 

From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org 
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Andrew 
Bernard
Sent: Thursday, December 10, 2015 3:53 PM
To: LilyPond Users 
Subject: November font

 

Greetings All,

 

Has anybody used the November font mentioned in the Scores of Beauty blog? 
Since this is a rather expensive commercial font, it may be good to have 
reviews from people who have experience with it, as with other commercial 
software.

 

I wonder if the whole idea goes against the grain of the open source concept of 
lilypond anyway.

 

Andrew

 

 

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


RE: November font

2015-12-10 Thread SoundsFromSound
Mark Stephen Mrotek wrote
> Bernard,
> 
>  
> 
> Not sure which “November” font to which you refer.
> 
> Here are some free fonts of the same name.
> 
> http://www.fontpalace.com/font-download/November+Regular/
> 
> https://www.fontyukle.net/en/November+Regular.ttf
> 
> http://www.azfonts.net/load_font/novem.html
> 
> http://ufonts.com/fonts/november-regular.html
> 
>  
> 
> Mark
> 
>  
> 
> From: lilypond-user-bounces+carsonmark=

> ca.rr.com@

>  [mailto:lilypond-user-bounces+carsonmark=

> ca.rr.com@

> ] On Behalf Of Andrew Bernard
> Sent: Thursday, December 10, 2015 3:53 PM
> To: LilyPond Users 

> lilypond-user@

> 
> Subject: November font
> 
>  
> 
> Greetings All,
> 
>  
> 
> Has anybody used the November font mentioned in the Scores of Beauty blog?
> Since this is a rather expensive commercial font, it may be good to have
> reviews from people who have experience with it, as with other commercial
> software.
> 
>  
> 
> I wonder if the whole idea goes against the grain of the open source
> concept of lilypond anyway.
> 
>  
> 
> Andrew
> 
>  
> 
>  
> 
> 
> ___
> lilypond-user mailing list

> lilypond-user@

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

Pretty sure he meant this:
http://www.klemm-music.de/notation/november2/en/index.php



-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/November-font-tp184649p184652.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: lilypond-user Digest, Vol 157, Issue 47

2015-12-10 Thread Leszek Wroński
 selection to 'mysequence' string to
> >> manipulate on it; this is probably unneeded. But after writing the
> above I
> >> got, at line 5, an error "TypeError: 'unicode' object does not support
> item
> >> assignment".
> >>
> >> What I found weird is that to my untrained eyes line 5 does no
> assigning,
> >> but rather checks whether the xth element of the string text is a space.
> >> Anyway, after some googling I decided to substitute "is" for "==" in
> line
> >> 5. Right now the script does not give any errors, but it only adds a
> ']' at
> >> the end of the selection. I'm apparently unable to check whether the xth
> >> element of the string text is a space. I tried
> >>
> >> if text[x] == ' %d':
> >>
> >> and
> >>
> >> if text[x] ==  u"\u0020":
> >>
> >> and
> >>
> >> if text[x].isspace():
> >>
> >> to no avail (the last one gave the "unicode object does not support item
> >> assignment" error again, which I don't understand at all, having copied
> the
> >> command from
> >>
> http://www.ehow.com/how_12112665_determine-character-whitespace-python.html
> ).
> >> Could anyone give me a hint on this?
> >>
> >> Best regards,
> >>
> >> Leszek.
> >>
> >> ___
> >> lilypond-user mailing list
> >> [hidden email] <http:///user/SendEmail.jtp?type=node=184633=2>
> >> https://lists.gnu.org/mailman/listinfo/lilypond-user
> >>
> >>
> >>
> >
> > ___
> > lilypond-user mailing list
> > [hidden email] <http:///user/SendEmail.jtp?type=node=184633=3>
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >
> >
> > --
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://lilypond.1069038.n5.nabble.com/trying-to-write-a-simple-python-beaming-snippet-for-Frescobaldi-tp184624p184633.html
> > To start a new topic under User, email
> ml-node+s1069038n...@n5.nabble.com
> > To unsubscribe from Lilypond, click here
> > <
> http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=2=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=
> >
> > .
> > NAML
> > <
> http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
> adding-custom-keyboard-shortcut-to-frescobaldi.png (161K) <
> http://lilypond.1069038.n5.nabble.com/attachment/184636/0/adding-custom-keyboard-shortcut-to-frescobaldi.png
> >
>
>
>
>
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/trying-to-write-a-simple-python-beaming-snippet-for-Frescobaldi-tp184624p184636.html
> Sent from the User mailing list archive at Nabble.com.
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.gnu.org/archive/html/lilypond-user/attachments/20151210/574c99f3/attachment.html
> >
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: November font

2015-12-10 Thread Johan Vromans
On Thu, 10 Dec 2015 19:37:46 -0700 (MST)
SoundsFromSound  wrote:

> Pretty sure he meant this:
> http://www.klemm-music.de/notation/november2/en/index.php

It even has glyphs for mice (pp. 105/106)... :)

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


Re: November font

2015-12-10 Thread Urs Liska


Am 11.12.2015 um 03:37 schrieb SoundsFromSound:
> Mark Stephen Mrotek wrote
>> Bernard,
>>
>>  
>>
>> Not sure which “November” font to which you refer.
>>
>> ...
> Pretty sure he meant this:
> http://www.klemm-music.de/notation/november2/en/index.php
>
>

Of course he meant this, as he was referring to
http://lilypondblog.org/2015/12/reveries-of-a-solitary-music-typographer-about-november-2-0/

Urs

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


Re: trying to write a simple python beaming snippet for Frescobaldi

2015-12-10 Thread Leszek Wroński
You're right, thanks! This showed I was actually doing the correct thing
when checking whether a string element was a space. Now I see that actually
Frescobaldi starts calculating the lines from the 2nd one (that is, after
the line with the initial -*- expression). And so the error was when I was
assigning

mysequence[x] = '['

because, as I have just learned, strings in Python are immutable. Gosh. This
does not explain everything what was going on, most probably due to my
incompetence. But now I have something that's working:

x = 0
y = 0
mysequence = text
while x < len(text):
  if text[x] == ' ' and y = 0:
mysequence = mysequence + '[ '
y = y + 1
  else:
mysequence = mysequence + text[x]
  x = x + 1
text = mysequence + ']'

So when I select "d16 e8 f8" it returns "d16[ e8 f8]" as I intended. Now I
will make it nicer :-)

Thanks you very much, Jacques!

On 10 December 2015 at 12:09, Jacques Menu  wrote:

> Hello Leszek,
>
> How about:
>
>
> >>> var = "fo a"
> >>> var[2]
> ' '
> >>> var[2] == ' '
> True
>
>
> JM
>
> Le 10 déc. 2015 à 11:33, Leszek Wroński  a écrit :
>
> Guys,
>
> Frescobaldi has the useful 'slur for the selected notes' snippet under
> C-(. I want to have the same functionality for beams. That is, I want to be
> able to select some notes, and then via the snippet insert a '[' in the
> first space (that is, after the first note), and then a ']' at the end.
>
> Unfortunately, I have never in my life written a line of python... till
> this day, that is. So, I'm trying the following ('W' is for whitespace):
>
> 1 -*- name: mybeam; python; selection: strip;
> 2 x = 0
> 3 mysequence = text
> 4 while x < len(text):
> 5 WW if text[x] == ' ':
> 6  mysequence[x] = '['
> 7  break
> 8 WW x = x + 1
> 9 text = mysequence + ']'
>
> Notice that line 5 contains a space between the quotes. Of course I need
> to add conditions regarding what to do if there's no space in the selection
> etc. But that's for later, once this basic script actually works. As you
> can see, I thought I'd copy the selection to 'mysequence' string to
> manipulate on it; this is probably unneeded. But after writing the above I
> got, at line 5, an error "TypeError: 'unicode' object does not support item
> assignment".
>
> What I found weird is that to my untrained eyes line 5 does no assigning,
> but rather checks whether the xth element of the string text is a space.
> Anyway, after some googling I decided to substitute "is" for "==" in line
> 5. Right now the script does not give any errors, but it only adds a ']' at
> the end of the selection. I'm apparently unable to check whether the xth
> element of the string text is a space. I tried
>
> if text[x] == ' %d':
>
> and
>
> if text[x] ==  u"\u0020":
>
> and
>
> if text[x].isspace():
>
> to no avail (the last one gave the "unicode object does not support item
> assignment" error again, which I don't understand at all, having copied the
> command from
> http://www.ehow.com/how_12112665_determine-character-whitespace-python.html).
> Could anyone give me a hint on this?
>
> Best regards,
>
> Leszek.
>
> ___
> 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: changePitch and ties

2015-12-10 Thread Jakob Kühnemann
Gilles THIBAULT wrote
>>changePitch at http://gillesth.free.fr/Lilypond/changePitch/changePitch.ly
>>defineTransform in LSR 346
> 
>>However, each has its deficiencies, and I now need to code some music
which 
>>neither of these utils can handle. The rhythmic pattern to be repeated 
>> >involves ties. 346 handles these but changePitch doesn't.
> 
> Sorry to answer so late.
> With changePitch and ties, you can use the function \samePitch.
> It is ( shortly ) discribed in section 6) of the doc of \changePitch :
> http://gillesth.free.fr/Lilypond/changePitch/change-pitch-doc.pdf
> 
> 
> %%%
> \include "changePitch.ly"
> 
> pattern = { \samePitch {c2 ~ c8} c4. }
> 
>  \changePitch \pattern
>{  c'e'^\markup{Ok now} d'f' e'g' f'a'
> }
> 
> 
> %%
> 
> Gilles 
> 
> 
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> http://lists.gnu.org/mailman/listinfo/lilypond-user

I just found out that changePitch is very useful to write homophonic
passages in \parallelMusic!

%%
\version "2.19.32"
\include "changePitch.ly"

\parallelMusic #'(one two three) {
  \changePitch
  { 4 8 \samePitch { 8~ 8 } 8 8 8 | }
  {
c'' d'' e'' f'' g'' a''
a'  b'  c'' d'' c'' cis''
f'  g'  a'  b'  as' ges'
  }
}

<<
  \one
  \two
  \three
>>
%%

But there is still a small problem with ties.
It's not always possible to use \samePitch.


{ 4 4~ \tuplet 3/2 { 8 8 8 } 4 | }


Would it be possible to tell changePitch to automatically repeat the pitch
of a tied note?

I tried to understand the scheme code to find a solution by myself. But once
again I discovered the limits of my scheme-abilities very soon..



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/changePitch-and-ties-tp35389p184634.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