single system output in 2.24

2023-02-05 Thread Klaus Blum

Hi Henning,


So, please: Is there a way to still get single-system PDFs?



maybe you need to call LilyPond with additional parameters like
    -dtall-page-formats=eps,png,pdf
or -
    dseparate-page-formats=eps,png,pdf

AFAIK the latter is for the single systems.
Here is where I got this information from:
https://gitlab.com/lilypond/lilypond/-/issues/6235
Hope this helps...

Cheers,
Klaus


Re: Cowell clusters

2020-12-21 Thread Klaus Blum

Hi Gilberto,

Am 21.12.2020 um 17:51 schrieb lilypond-user-requ...@gnu.org:


Ideally, I think applying it to a chord (something like \cowellCluster
4) would be the ideal solution. It also does not handle whole
notes, as those do not have stems to be hacked. If I come up with
something interesting I will make sure to post it here.


please have a look at the link to the German forum (the thread there
continues in English):
https://lilypondforum.de/index.php/topic,820.msg4546.html?PHPSESSID=6djk9rm3a7m81mmuqu25mjiehb#msg4546

I've posted an improved version there, and Harm has an even more
interesting solution.

Cheers,
Klaus



Re: Cowell clusters

2020-12-18 Thread Klaus Blum

Ooops,
sorry for that mess in my last post.
This time, I'll copy-past my code straight from Frescobaldi.
Hope it works now...

Cheers,
Klaus


% --
\version "2.20.0"

toneClusterDown = #(define-music-function
(note1 note2) (ly:music? ly:music?)
(let*
 (
   (p1 (ly:music-property note1 'pitch))
   (p2 (ly:music-property note2 'pitch))
   (y1 (+ (* 7 (ly:pitch-octave p2))
(ly:pitch-notename p2)))
   (y2 (+ (* 7 (ly:pitch-octave p1))
(ly:pitch-notename p1)))
   (steps
(if (> y1 y2)
(- y1 y2)
(- y2 y1)
)
)
   (note-a (if (> y1 y2) note1 note2 ))
   (note-b (if (> y1 y2) note2 note1 ))
   )
 #{
   {
 \once \voiceTwo
 <<
   #note-a
   \new Voice {
 \voiceTwo
 \tweak NoteHead.stem-attachment #'(0 . 0.7)
 \tweak Stem.length #(- steps 1.4)
 \tweak Stem.thickness #2
 \tweak Flag.stencil ##f
 #note-b
   }
 >>
   }
 #})
)

toneClusterUp = #(define-music-function
  (note1 note2) (ly:music? ly:music?)
  (let*
   (
 (p1 (ly:music-property note1 'pitch))
 (p2 (ly:music-property note2 'pitch))
 (y1 (+ (* 7 (ly:pitch-octave p2))
(ly:pitch-notename p2)))
 (y2 (+ (* 7 (ly:pitch-octave p1))
(ly:pitch-notename p1)))
 (steps
  (if (> y1 y2)
  (- y1 y2)
  (- y2 y1)
  )
  )
 (note-a (if (> y1 y2) note1 note2 ))
 (note-b (if (> y1 y2) note2 note1 ))
 )
   #{
 {
   \once \voiceOne
   <<
 #note-b
 \new Voice {
   \voiceOne
   \tweak NoteHead.stem-attachment #'(0 . 0.7)
   \tweak Stem.length #(- steps 1.4)
   \tweak Stem.thickness #2
   \tweak Flag.stencil ##f
   #note-a
 }
   >>
 }
   #})
  )

%% Test:
{
  \toneClusterDown f'1 f''
  \toneClusterDown f'2 f''
  \toneClusterDown g'' g'
  \toneClusterDown a' a''
  \toneClusterDown b'' b'
  \toneClusterDown c''4. a''
  \toneClusterDown d''8 g''
  \toneClusterDown g'8 c''
  \toneClusterDown g'8 c''
  \toneClusterDown a cis'''
  \toneClusterDown a cis'''
  \bar "||"
  \toneClusterUp f'1 f''
  \toneClusterUp f'2 f''
  \toneClusterUp g'' g'
  \toneClusterUp a' a''
  \toneClusterUp b'' b'
  \toneClusterUp c''4. a''
  \toneClusterUp d''8 g''
  \toneClusterUp g'8 c''
  \toneClusterUp g'8 c''
  \toneClusterUp a cis'''
  \toneClusterUp a cis'''
}
% --




Re: Cowell clusters

2020-12-18 Thread Klaus Blum

Hi Gilberto,

Am 18.12.2020 um 20:00 schrieb lilypond-user-requ...@gnu.org:


I am notating a score which uses a lot of clustered chords, to be
notated in the style of Henry Cowell.

just today I saw a similar question on the German list:

https://lilypondforum.de/index.php/topic,820.0.html

Here is what I have so far:

% 



|\version "2.20.0" toneClusterDown = #(define-music-function             
        (note1 note2) (ly:music? ly:music?)                     (let*   
                   (                        (p1 (ly:music-property 
note1 'pitch))                        (p2 (ly:music-property note2 
'pitch))                        (y1 (+ (* 7 (ly:pitch-octave p2)) 
(ly:pitch-notename p2)))                        (y2 (+ (* 7 
(ly:pitch-octave p1)) (ly:pitch-notename p1)))                       
 (steps                         (if (> y1 y2)                           
  (- y1 y2)                             (- y2 y1)                       
      )                         )                        (note-a (if (> 
y1 y2) note1 note2 ))                        (note-b (if (> y1 y2) note2 
note1 ))                        )                      #{               
         {                          \once \voiceTwo                     
     <<                            #note-a                           
 \new Voice {                              \voiceTwo                   
           \tweak NoteHead.stem-attachment #'(0 . 0.7)                 
             \tweak Stem.length #(- steps 1.4)                         
     \tweak Stem.thickness #2                              \tweak 
Flag.stencil ##f                              #note-b                   
         }                          >>                        }         
             #})                     ) toneClusterUp = 
#(define-music-function                   (note1 note2) (ly:music? 
ly:music?)                   (let*                    (                 
     (p1 (ly:music-property note1 'pitch))                      (p2 
(ly:music-property note2 'pitch))                      (y1 (+ (* 7 
(ly:pitch-octave p2)) (ly:pitch-notename p2)))                      (y2 
(+ (* 7 (ly:pitch-octave p1)) (ly:pitch-notename p1)))                   
   (steps                       (if (> y1 y2)                           
(- y1 y2)                           (- y2 y1)                           
)                       )                      (note-a (if (> y1 y2) 
note1 note2 ))                      (note-b (if (> y1 y2) note2 note1 )) 
                     )                    #{                      {     
                   \once \voiceOne                        <<           
               #note-b                          \new Voice {           
                 \voiceOne                            \tweak 
NoteHead.stem-attachment #'(0 . 0.7)                            \tweak 
Stem.length #(- steps 1.4)                            \tweak 
Stem.thickness #2                            \tweak Flag.stencil ##f     
                       #note-a                          }               
         >>                      }                    #})               
    ) %% Test: {   \toneClusterDown f'1 f''   \toneClusterDown f'2 f'' 
  \toneClusterDown g'' g'   \toneClusterDown a' a''   \toneClusterDown 
b'' b'   \toneClusterDown c''4. a''   \toneClusterDown d''8 g''   
\toneClusterDown g'8 c''   \toneClusterDown g'8 c''   \toneClusterDown a 
cis'''   \toneClusterDown a cis'''   \bar "||"   \toneClusterUp f'1 f'' 
  \toneClusterUp f'2 f''   \toneClusterUp g'' g'   \toneClusterUp a' 
a''   \toneClusterUp b'' b'   \toneClusterUp c''4. a''   \toneClusterUp 
d''8 g''   \toneClusterUp g'8 c''   \toneClusterUp g'8 c''   
\toneClusterUp a cis'''   \toneClusterUp a cis''' } |
|% 
 
Cheers, Klaus |




New OOoLilyPond features: asking for feedback

2020-12-05 Thread Klaus Blum

Dear LilyPond community,

there are some new features for OOoLilyPond, the extension for
LibreOffice and OpenOffice.
In short:
- can now also be used in Calc spreadsheets
- batch processing now also possible in Calc, Impress and Draw
- "keep size & crop settings" now is a per-object setting.
Also, some changes to the config dialog were necessary for that.

I'd like to hear your feedback:
Are those features usable, intuitive, ...
Thanks for any comment!

Here is a pre-release:
https://github.com/OOoLilyPond/OOoLilyPond/releases/tag/1.0.1-4
direct download:
https://github.com/OOoLilyPond/OOoLilyPond/releases/download/1.0.1-4/OOoLilyPond-1.0.1-4.oxt

Cheers,
Klaus




Re: Dessus divisés

2020-11-14 Thread Klaus Blum

Hi Francesco,


I need some help regarding the following situation: I'm transcribing some
instrumental french music, where the dessus are at some point divided. I
would like to insert a brace where the division begins, as shown in the
picture. Here is the structure of my systems :


Unfortunately you didn't post a complete MWE that compiles.

Anyway, I remember a discussion a few years ago where you might find
something something useful for your aim:
http://lilypond.1069038.n5.nabble.com/Creating-cut-away-or-scrapbook-scores-in-LilyPond-td177436.html
Strangely enough, it is split up there into several threads, but all of
the posts can be found in the archive:
https://lists.gnu.org/archive/html/lilypond-user/2015-06/threads.html
Here is the final result:
http://lilypond.1069038.n5.nabble.com/Creating-cut-away-or-scrapbook-scores-in-LilyPond-td177473.html#a177500

I hope this helps.

Cheers,
Klaus



Re: OOoLilyPond: new repository

2020-10-26 Thread Klaus Blum

Ooops...

Hi Andrew
(where did I grab the name "Martin"?)

Sorry...



Re: OOoLilyPond: new repository

2020-10-26 Thread Klaus Blum

Hi Martin,

Am 25.10.2020 um 16:17 schrieb lilypond-user-requ...@gnu.org:

>Hi Klaus,



I will be opening the newly revivified openLilyLib repository in the
next couple of weeks. I'm sorry I have not been able to do it
instantly! It would be great if you could come back over there. I am
trying hard to unify the OLL project so that we don't have the
balkanisation and fragmentation of LilyPond into many individual git
repos. I feel this makes it hard for end users. Tell a beginning user
they have to fetch from five or six git repos and they likely won't
stay with it long.


Please don't feel pushed or criticized in any way. Thanks for taking over the 
maintainership!

OOoLilyPond has never been an OLL package and therefore always has been 
somewhat out of place in the repo. In the past, Urs already thought about 
placing it somewhere else.
Or course I will stay on board and continue my work on anaLYsis.

Cheers,
Klaus




OOoLilyPond: new repository

2020-10-25 Thread Klaus Blum

Dear LilyPond community,

OOoLilyPond, the extension for LibreOffice and OpenOffice, has a new home:
https://github.com/OOoLilyPond

In the last few years, it was located inside the openLilyLib repo at
GitHub (which is now orphaned as openLilyLib has moved to GitLab).
Therefore I decided to create a repo of its own.

Apart from that, everything about OOoLilyPond stays the same... except
for a new release with some minor changes.  :-)

Have fun and stay safe,
Klaus




Re: good practices regarding page breaks -- full score and parts

2020-10-15 Thread Klaus Blum

Hi Leszek,

Am 15.10.2020 um 15:13 schrieb lilypond-user-requ...@gnu.org:

I would like to put pagebreaks in specific places in
the full score, so that they would not operate when parts are compiled.


I can confirm all the replies that recommend include files and invisible
voices. (I truly should learn how to use the edition engraver, but still
didn't find the time.)

This is what I've been using so far:

% -- definitions.ily --
\version "2.20.0"

violin_voice = { c'1 d' e' f' g' a' b' }

cello_voice = { \clef bass  c1 d e f g a b }

break_voice = {  % "invisible voice"
  s1 s  \bar "||" \mark "A" s s
  \pb
  s s s \bar "|."
}
% -

The invisible voice also cares about bar lines, rehearsal marks etc.
\pb still needs to be defined. For the score, it's "\pageBreak" while
for the parts, it simply does nothing:

% -- score.ly --
\version "2.20.0"
pb = \pageBreak
\include "definitions.ily"

\score {
  <<
    \new Staff << \violin_voice \break_voice >>
    \new Staff << \cello_voice \break_voice >>
  >>
}
% --

% -- parts.ly --
\version "2.20.0"
pb = {} % does nothing
\include "definitions.ily"

\markup "Violin part:"
\score {
  \new Staff << \violin_voice \break_voice >>
}

\markup "Cello part:"
\score {
  \new Staff << \cello_voice \break_voice >>
}
% --

...not perfect, but simple.  :-)
Hope this helps.

Cheers,
Klaus



Re: lilypond-user Digest, Vol 215, Issue 44

2020-10-10 Thread Klaus Blum

Hi Andrew,

thanks for taking over the OLL management. In the last few weeks I did
not have much time to follow the discussions on the list. Seems I've
missed something important...

I think OLL is a valuable tool that is definitely worth to be kept
alive. In the past, I have made some contributions to the anaLYsis
package and the LibreOffice extension "OOoLilyPond" (which is hosted in
the OLL repo as well), and of course I'd like to continue this work.

May I ask if there is a special reason to move to Gitlab? Wouldn't it be
easier just to keep the existing repo at Github?

Cheers,
Klaus




Re: music symbols in LibreOffice

2020-07-26 Thread Klaus Blum

Hi Dick,

Am 26.07.2020 um 15:15 schrieb lilypond-user-requ...@gnu.org:

I an writing text in LibreOffice about metronome-markings. So, I have
for instance to replace "...quarternote=60..." by "...=60...", etc.

Can I use the Lilypond extension in LibreOffice to achieve such purposes?

If you want to make sure it looks exactly as in a LilyPond score, you
can create a short score and hide everything except the tempo indication.

Create an OLy snippet based on the "School demo" template and just
copy-paste the following lines into the code field:

% -
{
  \new RhythmicStaff
  \tempo 4=60
}
\layout {
  \context {
    \RhythmicStaff
    \override Clef.stencil = ##f
    \override TimeSignature.stencil = ##f
    \override StaffSymbol.stencil = ##f
  }
}
% -

This should do the trick.

Cheers,
Klaus



Re: Tone cluster

2020-05-20 Thread Klaus Blum

Salut Pierre,

Am 20.05.2020 um 18:00 schrieb lilypond-user-requ...@gnu.org:

> toneCluster = #(define-music-function
>                  (note1 note2) (ly:music? ly:music?)
>                    #{
>                       {
>                         \once\override NoteHead.stem-attachment = 
#'(0 . 0)

>                         \once \override Stem.length =
>                                   #(lambda (grob)
>                                        (- (ly:stem::calc-length grob) 
4.5))

>                         \once\override Stem.thickness = #8
>                         < #note1 #note2 >
>                       }
>                    #})
>
> %% Test:
> {
>   a' \toneCluster a a'' a' \toneCluster a cis
> }
>
> Anything better?


How about that:
take the two pitches, calculate how many steps are between them and use 
that as stem length.


% -
\version "2.19.83"

toneCluster = #(define-music-function
    (note1 note2) (ly:music? ly:music?)
    (let*
 (
   (p1 (ly:music-property note1 'pitch))
   (p2 (ly:music-property note2 'pitch))
   (steps
    (-
 (+ (* 7 (ly:pitch-octave p2)) (ly:pitch-notename p2))
 (+ (* 7 (ly:pitch-octave p1)) (ly:pitch-notename p1))
 )
    )
   )
 #{
   {
 \once\override NoteHead.stem-attachment = #'(0 . 0)
 \once \override Stem.length = #steps
 \once\override Stem.thickness = #8
 < #note1 #note2 >
   }
 #})
    )

%% Test:
{
  a' \toneCluster a' a''  a' \toneCluster a cis'''
}
% -

Cheers,
Klaus



Re: double dot articulation

2020-05-17 Thread Klaus Blum

Hi Mogens,

Am 17.05.2020 um 17:11 schrieb lilypond-user-requ...@gnu.org:

How do I put two dots (like .. ) over the note in

\version "2.20.0"
{ c''8:32-. }

(to indicate that the staccato applies to every note in the tremolo)?


There is a snippet for that subject:
http://lsr.di.unimi.it/LSR/Item?id=772

Is that what you need?

Cheers,
Klaus



Re: Current octave in relative mode

2020-05-17 Thread Klaus Blum

Peace be with you, guys...   ;-)

The OP's eXample is more complicated but as
far as I can tell
this is what he's aiming at.


Of course, I did some experimenting on my own before asking here on the
list.
I was aware that the problem only appears if I use my function inside a
\relative statement, but not (as far as I remember) if I start a
\relative expression at the same moment the function is called. And, of
course, no problem in absolute mode.

I was hoping to to find a solution that can deal with all of the above
situations and the user doesn't have to care. That's why David's
solution is perfect for my aim.

I also have seen Han-Wen's function, but I could not test if it fits my
needs. It did not compile without errors. Maybe it doesn't work with
recent LY versions, maybe it was a mistake by me...

Thanks to everyone who replied. I'm glad this list exists and I know
where to find help.

Cheers,
Klaus



Re: Current octave in relative mode

2020-05-15 Thread Klaus Blum

Hi David,

That's perfect, thanks a lot!
Cool to know that this doesn't require complicated tweaks and hacks...

Cheers,
Klaus



Current octave in relative mode

2020-05-15 Thread Klaus Blum

Hi,

I have a function that uses a music expression twice.
My problem is:
In relative mode, this expression can lead into a different octave. Then
the second application of the music expression starts from that new octave.
(See the last two invocations of "\highlight" in the example below)

Is there something I can do INSIDE my function to prevent this? E.g.
storing and re-applying the current octave? Thanks for any hint.  :)


% 
highlight =
#(define-music-function (mus)
   (ly:music?)
   #{
     <<
       $mus
       \makeClusters $mus
     >>
   #})

\new Staff {
  \highlight { c'8 d' e' f' g' a' b' c'' }
  \relative c' {
    c1  \highlight { c8 d e f g f e d }
    c1  \highlight { c8 d e f g a b c }
    c1  \highlight { f,4 e d c }
    c1
  }
}
% 

Cheers,
Klaus



ANN: OOoLilyPond 1.0.0

2020-04-09 Thread Klaus Blum
Hi all, 

I'm happy to announce a new version of OOoLilyPond (OLy), an extension to
include LilyPond snippets into LibreOffice/OpenOffice documents. 

There are several bugfixes and some new and hopefully cool and useful
features: 
https://github.com/openlilylib/LO-ly/releases/tag/1.0.0
Here is a presentation of all new features: 
https://github.com/openlilylib/LO-ly/wiki/Whats-new#v-100---whats-new

And finally, you can find a tutorial and a detailed documentation in the
project's wiki: 
https://github.com/openlilylib/LO-ly/wiki#ooolilypond

I hope that there are no more bugs left. If you find some, please don't
hesitate to report them. 
A big THANK YOU to all contributors and previous authors. 


Happy Easter!

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Markup in chordmode

2020-03-11 Thread Klaus Blum
Hi Pablo, 


pablocordal wrote
> I'm trying to add a markup in the first chord of this music (but I get an
> error)
> 
> How can I add ^\markup {"Var. 1"}  to the first chord?

You can put an invisible rest in parallel and attach your markup to it:

% -
<<
  \chordmode { c,,1:3.5.8 }
  {s1^\markup "Var. 1"}
>>

\chordmode { 
  c,,2:3.5.8 d,,2:3.5.8 e,,4:3.5.8 f,,2
  % /+c:3.5.8  
  r4   \bar "|."
}
% -

BTW: Ly 2.19.83 complained of the expression 
f,,2/+c:3.5.8  
That's why i commented it out. AFAIK after the slash you can only add a bass
note but no other pitches after a colon. 

Cheers, 
Klaus





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Ties in chord mode

2020-02-29 Thread Klaus Blum
Hi Ben, 


Ben Eichler wrote
> suppose I want that C major chord to last only for 5 beats, in a melody
> I would use a tie, but that doesn't work in chord mode, the second chord
> is
> printed which I don't want:
> Chord notation: |C . . . |(C) F . . |
> Lilypond notation: \chordmode { c1( c4) f2. }

If you don't need MIDI output  from your Ly file, you can put invisible
rests into the chords: 

% ---
\version "2.19.83"

<<
  \new ChordNames \chordmode {
c1
s4 f s s
  }
  \new Staff \relative c' {
\repeat unfold 8 {c4} 
  }
>>
% ---

Am I right that you don't want the chord symbols you've put in parentheses? 
If you want an output like  |  C   | (C) F  | you can write
c1 \parenthesize c4 f2.

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: OOolilypond Libre Office extension : insert object large as full page

2020-02-09 Thread Klaus Blum

Hi Dario,

Am 09.02.2020 um 16:18 schrieb Dario Marrini:

but let me understand where this lilypond-preamble.ly
 should be


another question: Is it a Mac or a Linux machine that you are working on?

Cheers,
Klaus



Re: OOolilypond Libre Office extension : insert object large as full page

2020-02-09 Thread Klaus Blum
Hi Dario, 


Dario Marrini-2 wrote
> let me understand where this lilypond-preamble.ly should be

This file is a part of a complete LilyPond installation. 
On Windows, it is located inside the LilyPond program folder, in the
subfolder
/usr/share/lilypond/current/ly
On Linux and Mac, instead of "current", you will probably find a version
number. 
Inside this folder, there should be a file named
lilypond-book-preamble.ly

Your screenshots show no error message about this file missing, so I guess
you will find it there. 

Let's do another test: 
In the OOoLilyPond window, click the button "Open as temp. file in ext.
editor"
The Frescobaldi opens a file "OOoLilyPondTemp.ly"
Can you compile this file in Frescobaldi an make a screenshot again? 
Let's see if a whole page is produced again or a small snippet. 

Cheers, 
Klaus




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: OOolilypond Libre Office extension : insert object large as full page

2020-02-09 Thread Klaus Blum
Klaus Blum wrote
> Could you post a screenshot of your OOoLilyPond window and your
> OOoLilyPond
> Config dialog? Maybe this could help to find the problem. 

Version 0.4.0 and 0.5.0 are very old. You should remove them and try again
with the latest stable version 0.5.12. 

Could you then provide the screenshots mentioned above? 
And: 
After inserting the full-page object, please start OOoLilyPond again and
click the "Ly Output" button. Now a new window will open. Please add a
screenshot of that as well. 

I hope this will provide enough information to find the problem.  :)


Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: OOolilypond LO extension : trouble with 0.5.0 and 0.4.0

2020-02-09 Thread Klaus Blum
Hi Dario, 


Dario Marrini-2 wrote
> Hi musicians,
> trying to use the LO extension, as I said in my previous post, I tried to
> use some older version; with 0.5.0 and 0.4.0 I get the same error, I have
> error message in Italian but I think it should have  been a common problem
> in the past; I get an error about an index out of range in the source
> Basic
> code, and the Basic language window opens showing the line where the error
> is located, I haven't enough knowledge to manage it, I try to attach two
> screenshots

There is still a problem when the template or the Ly code does not contain
the command
  #(define version-seen #t)
or
\include "lilypond-book-preamble.ly"
and there is no \version statement in the code. 

I hope I can soon fix this.

When modifying templates or writing new templates, one of the mentioned
commands should be contained, depending on the image format you use. Then
this error will not occur. 

Probably a solution for your problem from the other tread will solve this
one as well.


Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: OOolilypond Libre Office extension : insert object large as full page

2020-02-09 Thread Klaus Blum
Hi Dario, 


Dario Marrini-2 wrote
> ; it seems they are working
> properly, but they always produce a music object with a full page
> dimension, maing troubles in writing the document.

it seems that your template or your snippet is missing 
\include "lilypond-book-preamble.ly"
This command is responsible for auto-cropping the image. 

Maybe this is related to the image file format you have chosen. You can find
more information here:
https://github.com/openlilylib/LO-ly/wiki/Config#format

Could you post a screenshot of your OOoLilyPond window and your OOoLilyPond
Config dialog? Maybe this could help to find the problem. 

Cheers, 
Klaus




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Specifying \language for a single book

2020-01-21 Thread Klaus Blum
Aaron Hill wrote
> There is no need to change the definition of the variable.
> 
> \layout is your friend:
> 
>  \layout { \context { \ChordNames \italianChords } }

Hi Aaron, 

wow - thanks for that easy solution. 
Another lesson learned...  ;-)

Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Specifying \language for a single book

2020-01-20 Thread Klaus Blum
Sandro Santilli-2 wrote
> I would ideally use an \override so to keep the existing
> definition of my leadSheet.

Hmmm, that sounds difficult. I assume your leadSheet contains chords and
staves like e.g.

% ---
leadSheet = {
  <<
\new ChordNames {
  % \italianChords   % maybe yes, maybe no...
  \chordmode {
c1 g
  }
}
\new Staff {
  \relative c' {
c4 d e f   g1
  }
}
  >>
}
% ---

AFAIK this definition is static and I know no override that could change
things at a later time. 
[To anybody reading this: Please correct me if I'm wrong.  ;-)  ]

But you could turn your "leadSheet" variable into a music function that
takes a boolean parameter telling if to use italian chords or not: 

% -
\version "2.19.83"

leadSheet = #(define-music-function (useItalianChords) (boolean?)
  #{
<<
  \new ChordNames {
#(if useItalianChords #{ \italianChords #})
c1 g
  }
  \new Staff \relative c' {
c4 d e f   g1
  }
>>
  #}
  )


\book {
  \bookOutputSuffix "G"
  \header { subtitle = "(G)" }
  \score {
\transpose c b
\leadSheet ##f
  }
}

\book {
  \bookOutputSuffix "F"
  \header { subtitle = "(F)" }
  \score {
\transpose c a
\leadSheet ##f
  }
}

\book {
  \bookOutputSuffix "F-ita"
  \header { subtitle = "(F)" }
  \score {
\transpose c a
\leadSheet ##t
  }
} 
% -

Another possibility would be to define separate variables for your chords
and notes:

% ---
\version "2.19.83"

leadSheetChords = \chordmode {
  c1 g
}

leadSheetNotes = \relative c' {
  c4 d e f   g1
}

% In your \book parts, use this construction:

{
  <<
\new ChordNames {
  \italianChords   % maybe yes, maybe no...
  \leadSheetChords
}
\new Staff {
  \leadSheetNotes
}
  >>
}
% ---

Cheers, 
Klaus




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Specifying \language for a single book

2020-01-18 Thread Klaus Blum
Hi Sandro, 


Sandro Santilli-2 wrote
> One musician I play with prefers reading DO RE MI FA
> as chord symbols, but the rest of use still want C D E F...

the \language command is used to tell LilyPond what notes (or chord roots)
you want. 
To control the way LilyPond displays them, you might need commands like
\italianChords, \germanChords etc.:

% 
\version "2.19.83"

<<
  \new ChordNames \chordmode { c1 a:m f g }
  \new ChordNames \chordmode { \italianChords c1 a:m f g }
  \new Staff { \clef bass c1 a f g }
>>
% 

Does that help?

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Poster for music engraving conference

2020-01-12 Thread Klaus Blum

Hi Urs, hi Jan-Peter,

thanks for your feedback.

Am 12.01.2020 um 09:59 schrieb Urs Liska:

I can't really imagine how the font sizes will turn out on a real A0
poster, but I assume you have thought about that (or used tested
templates).


Honestly, I have no experience about that. I blindly trusted the
template that Urs has chosen:
https://www.latextemplates.com/template/a0poster-landscape-poster
The font size for the normal text turned out to be about 24 pt, that's
what I used as well.

I've just made a quick test: At a distance of 2 meters, I can clearly
read it. With 3 meters, it's still possible but less comfortable.
Should we go for even bigger font size?

Cheers,
Klaus



Re: Windows installer available (was Re: ANN: Frescobaldi 3.1 has been released!)

2019-12-31 Thread Klaus Blum
Hi Ming, 


yming tsang wrote
> I got the error message when I run frecobaldi.

I just installed Frescobaldi 3.1 on Win10. When launching for the first
time, I had the same error message. 
Maybe I should have de-installed Frescobaldi 3.0 before?

So I de-installed Frescobaldi 3.1 and just re-installed it again. Now it
works. 

Does that help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



OOoLilyPond: testing new features & looking for feedback

2019-12-24 Thread Klaus Blum
Hello all,

in the last few days I've built a new development version of OLy: 
https://github.com/openlilylib/LO-ly/releases/download/0.5.12-03alpha/OOoLilyPond-0.5.12-03alpha.oxt

The new experimental features are described here: 
https://github.com/openlilylib/LO-ly/wiki/Development-versions-and-experimental-features
Now there is batch processing with search-and-replace, splitting up objects
into separate images for each system... and some more things.

I'd like to hear your feedback (useful? comprehensible? something missing?
any bugs left? ...) - you can reply here on the list or open an issue on
GitHub. Thanks in advance for any hint. 


Merry Christmas to everyone!  :-)

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: harmonyli.ly beta 0.91 released

2019-11-10 Thread Klaus Blum
Now I found it: 
http://lsr.di.unimi.it/LSR/Item?id=628

I knew there was a snippet on the LSR where the \overlay function was
presented before it was an official part of 2.19 - but the snippet has
another name...  ;-)




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: harmonyli.ly beta 0.91 released

2019-11-10 Thread Klaus Blum
Hi Karsten, 


Karsten Reincke-2 wrote
> I've just tried to test your version. But it does not work, because my
> LilyPond
> version 2.18.2, offered by Ubuntu 19.10, does not contain a function
> \overlay. I
> have the hope, that the coming LTS Ubuntu version 20.04 will contain the
> newer 
> 2.19.x  - LilyPond. 

I just searched the list archive and found that (limited to 2 arguments) it
also works with \combine: 

% 
#(define-markup-command (double layout props letter)
   (markup?)
   (interpret-markup layout props
 #{
   \markup{
 \combine
 $letter
 \translate-scaled #'(0.4 . -0.4)
 $letter
   }
 #}))
%  

Does that work in 2.18 as well?

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: harmonyli.ly beta 0.91 released

2019-11-10 Thread Klaus Blum
Hi Karsten, 


Karsten Reincke-2 wrote
>  'crossout' and 'double' should increase the margin/paddding
> values of the crossed out / doubled letter. But I do not have any idea,
> how to do
> that on the 'Lilyond' - Level. So, any hint is appreciated.

when I was writing the "double" function, I was heavily improvising because
I didn't yet know the \overlay command (or it was not available in older
LilyPond versions). 

A more reliable way would now be: 

% 
#(define-markup-command (double layout props letter)
   (markup?)
   (interpret-markup layout props
 #{
   \markup{
 \overlay {
   $letter
   \translate-scaled #'(0.4 . -0.4)
   $letter
 }
   }
 #}))
% 

The pair of numbers after \translate-scaled exactly defines the shift of the
additional letter. 
If you don't want additional parameters for the "\double" function, maybe
the use of properties might be an option: 
http://lilypond.org/doc/v2.18/Documentation/extending-big-page#on-properties

I never tried that, but it looks interesting. 
Does that help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: New option for OOoLilyPond: PDF to SVG

2019-10-30 Thread Klaus Blum
Hi Carl, 


Carl Sorensen-3 wrote
> The two big issues I saw were font embedding and clipping the bounding
> box.  It seems like we ought to be able to adjust both of those in the svg
> output.
> Would it be possible to modify the effects of lilypond-book-preamble.ly on
> .svg files?

LilyPond does not embed fonts in svg output. Is this possible in general,
like in pdf files? 
lilypond-book-preamble.ly only works with the eps backend, not with the svg
one. 

AFAIK, there have been questions and discussions on the list about both of
those issues, but no solutions available yet. 


Carl Sorensen-3 wrote
> It seems to me that fixing lilypond svg output to match what we want
> would be a better approach long-term than trying to integrate the call of
> a pdf->svg converter.
> Nevertheless, calling the converter appears to be an immediate workaround.

100% agreed.  :)
Another solution would be a working pdf import for LibreOffice. But that
seems to be still a long way to go as well. 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: New option for OOoLilyPond: PDF to SVG

2019-10-30 Thread Klaus Blum

Hi Carl,

Am 30.10.2019 um 18:34 schrieb Carl Sorensen:

The two big issues I saw were font embedding and clipping the bounding box.  It 
seems like we ought to be able to adjust both of those in the svg output.
Would it be possible to modify the effects of lilypond-book-preamble.ly on .svg 
files?

LilyPond does not embed fonts in svg output. Is this possible in
general, like in pdf files?
lilypond-book-preamble.ly only works with the eps backend, not with the
svg one.

AFAIK, there have been questions and discussions on the list about both
of those issues, but no solutions available yet.

It seems to me that fixing lilypond svg output to match what we want would be a 
better approach long-term than trying to integrate the call of a pdf->svg 
converter.
Nevertheless, calling the converter appears to be an immediate workaround.

100% agreed.  :)
Another solution would be a working pdf import for LibreOffice. But that
seems to be still a long way to go as well.

Cheers,
Klaus



Re: New option for OOoLilyPond: PDF to SVG

2019-10-30 Thread Klaus Blum
Hi Henning, 

thanks for your hints. 

Henning Hraban Ramm-3 wrote
> You can also use Inkscape on the command line. The call is like
> inkscape -z -f input.pdf -A output.svg

On my PC, this creates a SVG file that even Inkscape cannot read. 
I already experimented with 
inkscape -z -f input.pdf -l output.svg
but the resulting graphic is incomplete.

The thing is that Inkscape should be forced to use Poppler/Cairo instead of
its own internal library. 
Is there a command that can achieve that?

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



New option for OOoLilyPond: PDF to SVG

2019-10-30 Thread Klaus Blum
Dear OOoLilyPond users, 

I'm planning to add a new option to OOoLilyPond. 

At the moment, we only have the choice between three file formats: 
- PNG is a bitmap format with the obvious quality drawbacks. 
- EPS can only be used with OpenOffice (not LibreOffice) and cannot be
displayed on screen. 
- SVG offers good quality but requires quite some tweaking (described in 
http://lilypondblog.org/2018/02/ooolilypond-part-2-optimizing/
  ). Most
obvious drawback: You cannot use lilypond-book-preamble.ly

PDF would be the ideal choice for an output format, but LibreOffice cannot
(yet?) import PDF files with satisfying quality. 

Now (why did I take so long?...) I had the idea to call an external program
to convert LilyPond's PDF output into SVG which then can be imported into
LibreOffice. 
Most obvious advantage: You can work with any template, just like it works
with PNG and EPS. No need for dedicated SVG templates.
My first test look very promising. 

In Linux, it seems to be quite easy: You can use pdf2svg which can be
installed with any packet manager. (Am I right?)

With Windows, it looks (as always?) more complicated: 
We need additional software capable to perform a command-line conversion
from PDF to SVG. It must be installed by the user, and OOoLilyPond needs to
know the exact command line to be called. 
In a forum post ( http://www.inkscapeforum.com/viewtopic.php?t=30252
  ) i found that
Inkscape cannot yet do that, but there is a "standalone" version of Poppler
that can be used: 
http://blog.alivate.com.au/wp-content/uploads/2018/10/poppler-0.68.0_x86.7z
  
While I still don't know whether to recommend a software that I don't know,
I've tried it and it performs allright.

For Mac, I don't have any idea. My knowledge about Macs is exactly zero.


Am I still missing something? Do you have any more thoughts, ideas,
recommendations, experiences, ... ?

Cheers, 
Klaus




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: Musicology with Lilypond (and now correct attachments ;-)

2019-10-28 Thread Klaus Blum
Hi everybody, 

seems like I've missed an interesting discussion today...  :)


Karsten Reincke-2 wrote
> I would like to discuss / learn, how
> his function fExtend works. Or does anyone know, how this methods
> works?

That fExtend function uses code that I've found in another thread on the
mailing list, 
hence the two references at the beginning of the snippet code: 
% http://lists.gnu.org/archive/html/lilypond-user/2014-12/msg00123.html
% http://www.mail-archive.com/lilypond-user%40gnu.org/msg60732.html

That  means, I don't understand it entirely by myself.  ;-)

AFAIK, the public domain licence also applies to anything published on the
LY mailing list. I hope that I'm not wrong as I don't intend to "steal"
other people's code...


Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Re: All grobs at a given time/in a note column in all or certain contexts

2019-10-24 Thread Klaus Blum
Hi Urs, 

Urs Liska-3 wrote
> is it possible from either a music function or a callback or an engraver
> to get to all the grobs in a certain note column, either across the whole
> score or within specific contexts?

a few years ago, David Nalesnik wrote an interesting engraver: 
http://lilypond.1069038.n5.nabble.com/box-around-notes-td35581.html
  

IIUC, it iterates through all grobs inside a music expression to determine
the dimensions of a box around it. 

I learned a lot from that thread, but most of the magic there is far beyond
anything I can understand.  :(
But maybe it's helpful for you... 

Cheers, 
Klaus




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Tools for harmonic analysis (Riemann style)

2019-04-26 Thread Klaus Blum
Hi everybody, 


Urs Liska-3 wrote
> but I have to some degree lost track of 
> much of the discussion of the last 20 years, and when I actively worked 
> with that kind of written harmonic analysis (while at the 
> Musikhochschule) I didn't have much of a scholarly mind-set. So in fact. 
> I was *not* aware of all this...

at the Musikhochschule Mannheim, we were only taught some basic roman
numeral stuff. IMO, that's a shame. Now being a high school teacher, I know
what I was missing back then. 
OK, enough complaining...  ;-)

I'm happy if that snippet can be useful for other people. Unfortunately,
it's not very user-friendly because all I can handle is ordinary markup
functions with ordinary parameters. 
However, Urs has so often succeeded in finding reasonable interfaces for
stuff like that. If I can help, please let me know. 

I remeber having re-written some of the functions adding a check for empty
string parameters. IIRC that was to prevent different results between pdf
and svg output. So this should be the most recent code that I can offer: 
TonsatzDef.ily
  

I'd be glad to help turning that into another OLL module. 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: OOoLilyPond-0.5.8 : SVG Issue

2019-02-14 Thread Klaus Blum
Hi Ben, 


SoundsFromSound wrote
> Layout output to `OOoLilyPond.svg'...

indeed, that looks quite reasonable. 
It seems that a file named "OOoLilyPond.svg" is created. 
Can you check inside your temp folder if that graphic file looks like
intended? 

Cheers, 
Klaus




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: OOoLilyPond-0.5.8 : SVG Issue

2019-02-13 Thread Klaus Blum
Hi Ben, 

to be a little more precise: 

The lilypond-book-preamble should never be used with svg format. It only
works with the png (or eps) format. 

OLy needs one file named OOoLilyPond.svg.

The first point of the error window gives some hints. 
Your settings defining the score size (e.g. given in "Line Width" and
"Custom 2" - depending on your template) should provide enough space to fit
your music into one page. 
If not, LilyPond will split it up into multiple images. In that case, the
"Ly Output" window will talk about successful compilation and at least two
filenames 

OOoLilyPond-1.svg
OOoLilyPond-2.svg
etc. 

If your code contains something like "page-count = 1" (e.g. the "Piano
[SVG]" template does), no image at all will be created. Then the output
window will report successful compiling but also errors like 
 number of pages is out of bounds
 tried to space systems on a bad number of pages

In both cases, try to provide more space in the OLy settings. 

Does that help?

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: OOoLilyPond-0.5.8 : SVG Issue

2019-02-13 Thread Klaus Blum
Hi Ben,

could you post the contents of the "Ly Output" window clicking away the
error message?
If the music is split into multiple svg images, OLy cannot handle it.
It could be interesting to know if (at the time of that error message) there
are multiple svg output files in your temp folder or none at all.

Cheers,
Klaus 


SoundsFromSound wrote
> SVG output into my documents won't work, no matter what changes I make 
> to the template, config, or the file itself.





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: OOoLilyPond-0.5.8 : SVG Issue

2019-02-13 Thread Klaus Blum
Hi Ben, 


SoundsFromSound wrote
> SVG output into my documents won't work, no matter what changes I make 
> to the template, config, or the file itself

could you post the contents of the "Ly Output" window clicking away the
error message? 
If the music is split into multiple svg images, OLy cannot handle it. 
It could be interesting to know if (at the time of that error message) there
are multiple svg output files in your temp folder or none at all. 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Why is spacing wrong before command?

2018-12-14 Thread Klaus Blum
Hi Reggie, 


Reggie wrote
> Why
> are the first 3 measures adjusted when the newspacing comes after?

The \newSpacingSection command only ensures that there are two separate
sections which can have their own spacing. If you want, you can
independently tweak them with overrides.

The second section from the example mainly consists of 16th notes and
therefore has a wider spacing. 
In the first section, the amount of 16th notes in the whole section is very
small, so spacing is narrower because there are mainly 8th notes. 

So the overall effect is that \newSpacingSection prevents the first section
being widened because of the 16ths in the last bar. 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Boxed Markup as a Whole?

2018-07-13 Thread Klaus Blum
Hi Ben, 


SoundsFromSound wrote
> I can't figure out how to box marked-up notes as one unit.

you can use a whole score as markup, so as a point to start, how about:

%---
\version "2.19.81"

\header {
  title = "Example"
}
\relative c'
{
  c1 c1^\markup \box {
\score {
  {
\stopStaff
d'4 d'8 d'
  }
  \layout {
\context {
  \Staff
  \remove "Clef_engraver"
  \remove "Time_signature_engraver"
}
  }
}
  } c1 c c c c c
}
%---






--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Compiling to PNG on MacOSX

2018-02-01 Thread Klaus Blum
Dear LilyPond fellows, 

who has some experience in creating PNG files on MacOSX? 

The problem is that conversion from EPS to PNG fails: 
---
 Processing `OOoLilyPond.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `OOoLilyPond.eps'...
Converting to PNG...dyld: Library not loaded:
./bin/../sobin/libgs.8.70.dylib
Referenced from: /Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
Reason: no suitable image found. Did find:
/usr/local/lib/libgs.8.70.dylib: stat() failed with errno=13

fatal error: GS exited with status: 5
---

Can anyone help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Compiling to PNG on MacOSX

2018-02-01 Thread Klaus Blum
Dear LilyPond fellows, 

who has some experience in creating PNG files on MacOSX? 

The problem is that conversion from EPS to PNG fails: 
---
 Processing `OOoLilyPond.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `OOoLilyPond.eps'...
Converting to PNG...dyld: Library not loaded:
./bin/../sobin/libgs.8.70.dylib
Referenced from: /Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
Reason: no suitable image found. Did find:
/usr/local/lib/libgs.8.70.dylib: stat() failed with errno=13

fatal error: GS exited with status: 5
---

Can anyone help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Compiling to PNG on MacOSX

2018-02-01 Thread Klaus Blum
Dear LilyPond fellows, 

who has some experience in creating PNG files on MacOSX? 

The problem is that conversion from EPS to PNG fails: 
---
 Processing `OOoLilyPond.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `OOoLilyPond.eps'...
Converting to PNG...dyld: Library not loaded:
./bin/../sobin/libgs.8.70.dylib
Referenced from: /Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
Reason: no suitable image found. Did find:
/usr/local/lib/libgs.8.70.dylib: stat() failed with errno=13

fatal error: GS exited with status: 5
---

Can anyone help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Compiling to PNG on MacOSX

2018-02-01 Thread Klaus Blum
Dear LilyPond fellows, 

who has some experience in creating PNG files on MacOSX? 

The problem is that conversion from EPS to PNG fails: 
---
 Processing `OOoLilyPond.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `OOoLilyPond.eps'...
Converting to PNG...dyld: Library not loaded:
./bin/../sobin/libgs.8.70.dylib
Referenced from: /Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
Reason: no suitable image found. Did find:
/usr/local/lib/libgs.8.70.dylib: stat() failed with errno=13

fatal error: GS exited with status: 5
---

Can anyone help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: \chordmode problem?

2017-09-12 Thread Klaus Blum
Salut Jacques, 


Menu Jacques wrote
> What does ‘lyd’ mean BTW?

"lyd" is short for "lydian". Thy lydian scale is almost equal to the major
scale, except for a #4 which is the same pitch as a #11.

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: additional clef at start

2017-06-01 Thread Klaus Blum
Hi musicus, 


musicus wrote
> How to get a second clef at the beginning of a piece?

Here's another workaround, inspired by lsr.di.unimi.it/LSR/Item?id=956:

% 
\new PianoStaff {
  <<
\new Staff {
  \partial 2
  s4*1/200
  e''4*199/200 f''4
}
\new Staff {
  \partial 2
  \clef "bass"
  s8*1/100
  \clef "treble"
  c'8*99/100 g'8 e' g'
}
  >>
}
% 





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/additional-clef-at-start-tp203539p203543.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: new voice with cluster changes horizontal spacing

2017-05-20 Thread Klaus Blum
Hi Harm, 

Thomas Morley-2 wrote
>   \newSpacingSection
>   %% the value 1.68 was found by try and error
>   \override Score.SpacingSpanner.spacing-increment = #1.68
>  

Thanks for your suggestion. 
Unfortunately, I'm looking for a solution that works automatically, as I'm
trying to build a function: 
https://raw.githubusercontent.com/openlilylib/analysis/connected-noteheads/connected-noteheads/test.ly

Anybody here with some knowledge about clusters? They seem to be written in
c as they don't appear in any of the *.scm files. 

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/new-voice-with-cluster-changes-horizontal-spacing-tp203189p203205.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


new voice with cluster changes horizontal spacing

2017-05-19 Thread Klaus Blum
Hi everybody, 

I want to have some clusters along with the notes in the same staff. 
However, if the clusters are preceeded by a "\new Voice" command, the
horizontal spacing changes. 
Does anybody know why this happens and how I can avoid it? 
Removing the "\new Voice" command would help, but I need to create a
dedicated voice. 

% -
\new Staff {
  c'4 d' e' f' g' f' e' d'
  <<
{c'4 d' e' f' g' f' e' d'}
\new Voice 
\makeClusters {c'4 d' e' f' g' f' e' d'}
  >>
  c'4 d' e' f' g' f' e' d'
}
% -

Thanks for any hint. 
Klaus


with "\new Voice":
 

without "\new Voice":
 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/new-voice-with-cluster-changes-horizontal-spacing-tp203189.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: Parenthesized dynamics

2017-05-09 Thread Klaus Blum
Hi Michiel, 


Michiel Sikma-2 wrote
> What I want to do is fine-tune the
> exact positioning of the dynamic letter itself. 

you can experiment with \raise and \hspace (positive and negative values):

% --
parenP =
#(define-event-function (parser location dyn) (ly:event?)
   (make-dynamic-script
#{ \markup \concat {
 \pad-x #0.2 \hspace #-1.0 \normal-text \italic \fontsize #2 (
   \hspace #0.2 \raise #0.7  #(ly:music-property dyn 'text)
   \hspace #-0.2 \normal-text \italic \fontsize #2 )
   }
#}))
% --

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Parenthesized-dynamics-tp203007p203009.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: Box around chord notation

2017-05-09 Thread Klaus Blum
Hi Bill, 


William Marchant wrote
> I cannot find how to put a box around a chord notation.

not perfect, but maybe a start: 

%
-
#(define (boxed-ignatzek-chord-names in-pitches bass inversion context)
   (markup #:box ( ignatzek-chord-names in-pitches bass inversion context
)))

boxed = #(define-music-function (parser location griffe) (ly:music?)
   #{
 \set chordNameFunction = #boxed-ignatzek-chord-names
 $griffe
 \set chordNameFunction = #ignatzek-chord-names
   #})

\chords {
  c \boxed d:m \boxed f e:m
}
%
-

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Box-around-chord-notation-tp203006p203008.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: Asking too much: text in the staves to cross and overexpose vertical lines

2017-05-06 Thread Klaus Blum
Hi Son, 


Son_V wrote
> is there a way to make these text elements to make the vertical lines
> transparent just for them?

if you want to keep the barlines between the staves, you can simply use the
\whiteout command: 

% -
\new PianoStaff {
  << 
\new Staff \relative c' {c1_\markup \whiteout "blahblahblah" c}
\new Staff {R1 R1}
  >>
}

% maybe not necessary:
\layout {
  \context {
\Score
\override TextScript.layer = #2
  }
}
% -

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Asking-too-much-text-in-the-staves-to-cross-and-overexpose-vertical-lines-tp202970p202973.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: \magnifyMusic omits unison notes in \partcombine?

2017-04-29 Thread Klaus Blum
Manuela wrote
> What is the pair for? When I omit it, everything works fine, check it out

Optional chord-range sets the distance in steps between notes that may be
combined into a chord or unison.
(From the LilyPond NR, this is new in 2.19)

\partcombine #'(2 . 9) ... indicates that the smallest interval to be
combined is a third (2 steps). Seconds (1 step) and unison (0 steps) are
excluded. 
\partcombine #'(0 . 9) ... would work as well. 

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/magnifyMusic-omits-unison-notes-in-partcombine-tp202773p202783.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: Miss same position of note head

2017-04-13 Thread Klaus Blum
Hi Ingo, 

Inxman wrote
> i don't understand why the note heads in the middle of this snippet do not
> share the same place? 

that's because the upper voice needs a dotted note head while the lower
doesn't. 
You can force LilyPond to merge them anyway using \mergeDifferentlyDottedOn:

% ---
\version "2.19.33"

upper = \relative c'' {
  \clef treble
  \time 4/4
  \mergeDifferentlyDottedOn
  <<
{ a4 g8. [f16] }
\\
{ a16 [a, c f] g [g, b f']  }
  >>
}

\score {
  \new GrandStaff
  \new Staff = upper { \new Voice = "singer" \upper }
}
% ---

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Miss-same-position-of-note-head-tp202248p202251.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: Grob callback: query position (unbroken, end-of-line, start-of-line)

2017-04-06 Thread Klaus Blum
Hi Simon, 


Simon Albrecht-2 wrote
> I would like to override RehearsalMark’s self-alignment-X to -1 only if 
> it’s at start-of-line. How would I find that out in a grob callback?


I'm really no expert on this topic, but I once got some help from David
Nalesnik for snippet 1000:

\override HorizontalBracket.stencil =
$(lambda (grob)
   (let* (
   (open-on-left  (=  1 (ly:item-break-dir (ly:spanner-bound grob
LEFT 
   (open-on-right (= -1 (ly:item-break-dir (ly:spanner-bound grob
RIGHT
   )
 ; ...do some more stuff...
 ))

The NR tells about those to functions:

Function: ly:item-break-dir it
The break status direction of item it. -1 means end of line, 0 unbroken,
and 1 beginning of line. 

Function: ly:spanner-bound spanner dir
Get one of the bounds of spanner. dir is -1 for left, and 1 for right. 


Hope that helps.
Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Grob-callback-query-position-unbroken-end-of-line-start-of-line-tp201994p201995.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: Drawing a contour on a staff

2017-03-22 Thread Klaus Blum
Hi Kevin, 


Kevin Barry wrote
> I am setting a large volume of examples by a now-deceased composer,
> some of which use contours as an educational tool

as suggested by caagr98, cluster can be extremely helpful and at the same
time easy to use:


% ---
music = \relative c'{ c8 d e g c g e c }

{
  \new Staff
  <<
\new Voice \music
\new Voice \makeClusters \music
  >>
}

\layout {
  \context {
\Voice
\override ClusterSpanner.color = #red
\override ClusterSpanner.layer = #-2
\override ClusterSpanner.X-offset = #0.5
% \override ClusterSpanner.padding = #0.5
  }
}
% ---

I hope this helps. 

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Drawing-a-contour-on-a-staff-tp201402p201409.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: proportional spacing for chords?

2017-03-15 Thread Klaus Blum
Hi Adam, 


Adam Spiers-5 wrote
> On 15 March 2017 at 12:28, Simon Albrecht 

> simon.albrecht@

>  wrote:
>> why not put all the music expressions in one score in
>> parallel?
> But please could you give an example of how to do that, bearing in mind
> that
> there are no notes or staves, only chord names?

basically the structure would be like this: 

<<
  \new ChordNames { ... }
  \new ChordNames { ... }
  ...
>>

But please consider that you will need more horizontal space, because the
different choruses lose their individual spacing. Therefore I reduced the
staff size to prevent an automatic line break. 
Nevertheless, having strictly proportional spacing would eat up even more
space.

Different Rehearsal marks at the same time are only possible by moving the
Mark_engraver to the ChordNames context. Instead, I "abused" instrumentName. 

Cheers, 
Klaus

Blue-Train-chords-parallel.ly

  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/proportional-spacing-for-chords-tp201117p201133.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: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-03-11 Thread Klaus Blum

Hi Jones,

Am 11.03.2017 um 20:41 schrieb 19joh...@gmail.com:
Well, that is really strange. Besides the redistribution problem I've 
not heard of this poppler problem yet. (I had it on my machine, but in 
my case it was because of the missing poppler-qt5.dll
I have created a new setup which includes the redist depenencies. On 
Monday I have access to a clean Win7 virtual machine and if it runs 
there I plan to pass it on to Wilbert. Maybe the new setup will then 
work on your machine.


Cheers
Jones



sorry for having more strange news... I just tried on another Win7 
machine, and it works without problems. That doesn't sound like 
something was missing in the installer.
I'd really like to understand what's going on here. But it's 
Windows...   ;-)


Cheers,
Klaus

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


Re: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-03-11 Thread Klaus Blum

Hi Jones,

that doesn't seem to be the problem. The file is present.
Strange...

Cheers,
Klaus


Am 11.03.2017 um 20:03 schrieb 19joh...@gmail.com:

Hi Klaus,
I think your problem is not related to the redistribution pack. You 
seem to be missing the poppler-qt5.dll which should be in the main 
Frescobaldi folder.

Please check if you can find it there.

Cheers
Jones

Am Freitag, 10. März 2017 17:27:56 UTC+1 schrieb Klaus Blum:

Hi Jones,

Am 09.03.2017 um 08:58 schrieb 19jo...@gmail.com :
> Please install the Visual Studio 2015 Redistribution pack which you
> can download here:
> https://www.microsoft.com/en-US/download/details.aspx?id=48145
<https://www.microsoft.com/en-US/download/details.aspx?id=48145>
> Make sure you download the x86 Version. This should fix the
problem. I
> will integrate the installation of this package in the next
setup version
>
> Cheers
> Jones
>
>
thanks for your information. Unfortunately, it didn't fix the
problem.
The installation program offered to deinstall or repair-install the
Redistribution pack, so it must already have been on my system.
I've tried to repair it (no luck), afterwards to deinstall and
re-install it, and finally even deinstalled the x64 version that
was on
my system as well.
The problem with frescobaldi persists.

Is there a way to check if all components of the Redistribution
pack are
correctly available to the system?

Cheers,
Klaus



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


Re: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-03-10 Thread Klaus Blum

Hi Jones,

Am 09.03.2017 um 08:58 schrieb 19joh...@gmail.com:
Please install the Visual Studio 2015 Redistribution pack which you 
can download here: 
https://www.microsoft.com/en-US/download/details.aspx?id=48145
Make sure you download the x86 Version. This should fix the problem. I 
will integrate the installation of this package in the next setup version


Cheers
Jones



thanks for your information. Unfortunately, it didn't fix the problem.
The installation program offered to deinstall or repair-install the 
Redistribution pack, so it must already have been on my system.
I've tried to repair it (no luck), afterwards to deinstall and 
re-install it, and finally even deinstalled the x64 version that was on 
my system as well.

The problem with frescobaldi persists.

Is there a way to check if all components of the Redistribution pack are 
correctly available to the system?


Cheers,
Klaus

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


Re: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-03-07 Thread Klaus Blum
Thanks to everyone who helped to make this wonderful tool available for
Windows as well! 

However... I installed Frescobaldi 3.0.0 with the provided Windows
installer, and instead of the music view, I get a simple "Could not load the
popplerqt5 module". 
Sorry if this is a stupid question, but I have absolutely no clue: 
What do I have to do to have this available in Windows? Any installation
informations are related to Linux. 

Thanks for any help, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-Frescobaldi-2-20-0-Frescobaldi-3-0-0-python-ly-0-9-5-tp200225p200849.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: ANN: OOoLilyPond 0.5.0

2017-03-05 Thread Klaus Blum
Hi Ben, 


SoundsFromSound wrote
> on Windows 10 LibreOffice 5, I am constantly seeing an error when trying
> to simply enter a small musical example into a document:
*
> Error: No png output found
*
> 
> Just wanted to share this with you, in case you knew what the cause/fix
> was!

could you add the contents of the "Ly Output" window? Maybe this could help.

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-OOoLilyPond-0-5-0-tp200737p200744.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: ANN: OOoLilyPond 0.5.0

2017-03-05 Thread Klaus Blum
Another thought about graphic file formats: 

The brand new LibreOffice supports importing PDF graphics, *but* embedded
fonts are not yet recognized, which makes this feature not (yet?) usable for
LilyPond-created PDFs. If this changes in the forseable future, using PDF
format might solve all our problems. 

The developer of this LO feature has already made some changes:
https://disqus.com/home/discussion/vmiklos/insert_pdf_as_image_in_libreoffice_53_01/
Maybe his comment means that in LO 5.4.0.0 this might be solved.

There is also a bug report on the LO buglist:
https://bugs.documentfoundation.org/show_bug.cgi?id=106203
A comment there sounds as if someone could confirm the same bug for LO
5.4.0.0... that's all I know about that for the moment. 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-OOoLilyPond-0-5-0-tp200737p200742.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: ANN: OOoLilyPond 0.5.0

2017-03-05 Thread Klaus Blum
Hi Henning, 


Henning Hraban Ramm-3 wrote
> In my installation (LibreOffice 5.2.4.2 and LilyPond 2.18.2 on OSX 10.9.5)
> only the SVG mode works; in EPS mode I get an image with two lines of text
> (Title: ... / Creator: ...)

yes, that's a known limitation of LibreOffice. EPS graphics only work in
OpenOffice (Windows), which is not preferred by everyone.   ;-) 
But we now have SVG versions for all templates inherited from 0.4.0, and
working without the auto-crop feature might be easier than it seems at the
first glance. 
Detailed informations can be found in the verbose release notes
(https://github.com/openlilylib/LO-ly/releases/download/0.5.0/OOoLilyPond-0.5.0-Release-Notes.txt).

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-OOoLilyPond-0-5-0-tp200737p200740.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


ANN: OOoLilyPond 0.5.0

2017-03-05 Thread Klaus Blum
Dear LilyPond community, 

I am happy to announce a new version of OOoLilyPond - an extension for
LibreOffice/OpenOffice. 
OOoLilyPond enables you to enter LilyPond code from within your Office
document. Both the resulting image and its source code will be embedded
within the document. No need to keep any additional files other than the
Writer/Draw/Impress document itself.

The project has been unmaintained during the last few years. With the
agreement of the original author, the development of the project is now
continued under the roof of openlilylib.org:
https://github.com/openlilylib/LO-ly/releases


Changes since v. 0.4.0:

*   fixed: Runtime error "Variable not defined: line 40 CurserPosition=1"
*   additional include paths can be specified
*   added button to save the current code into temporary file and open it in
external editor
*   added button to re-import code from temporary file back to editor window
*   added support for the use of SVG graphics format (please read the
verbose release notes)
*   fixed: wrong size of vector graphics in Impress/Draw
*   size and crop settings of existing graphics can be preserved
*   user now can choose between two different ways to import graphic into
document
*   font name and font size for editor windows can be specified
*   user interface can be translated into other languages


Compatibility:

OOoLilyPond (OLy) works with recent versions of LibreOffice (5.3.0.3) and
OpenOffice (4.1.3). Older versions should work as well. It has even been
tested with OpenOffice 2.4 without issues.

Any content (LilyPond code, templates, OLy configuration files) created
with/for OLy 0.4.x will work with OLy 0.5.x - and vice versa. (Fully
compatible, forward and backward.)
Older snippets created with OLy 0.3.x will also work with 0.4.x and 0.5.x,
but not (necessarily) vice versa.


Direct download:
https://github.com/openlilylib/LO-ly/releases/download/0.5.0/OOoLilyPond-0.5.0.oxt
Verbose release notes:
https://github.com/openlilylib/LO-ly/releases/download/0.5.0/OOoLilyPond-0.5.0-Release-Notes.txt

The project is also listed in the official extension centers for LibreOffice
and OpenOffice:
https://extensions.libreoffice.org/extensions/ooolilypond
http://extensions.openoffice.org/en/project/ooolilypond

I hope this will be useful for many people. 

Cheers, 
Klaus





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-OOoLilyPond-0-5-0-tp200737.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: "Hide" the tagline

2017-02-27 Thread Klaus Blum
Hi Simon, 


Simon Albrecht-2 wrote
> You could just as well have written
> make-tagline-color-markup = #make-transparent-markup
> or maybe even (I’m not sure if that does work for markup commands yet)
> tagline-color = \markup\transparent \etc

I'm not that familiar with scheme, so I'm alway glad if there is a way to do
it in LilyPond syntax. I also tried the \etc method, but without any
success. Is there any documentation of that new feature?


Simon Albrecht-2 wrote
> And, as Urs already said, he was looking for a way that does _not_ 
> require changing the input file at all.

IIUC he doesn't mind having some kind of preparation in the input file:


Urs Liska wrote
> It's ok to insert something in the input file but it should be, well,
> non-intrusive.

Once the input file is finished, it can be left "as is". Compilation results
afterwards only depend on the contents of the include file. That should be
suitable even for automated batch processing. 

Cheers, 
Klaus





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Hide-the-tagline-tp200532p200555.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: "Hide" the tagline

2017-02-27 Thread Klaus Blum
Urs Liska wrote
> I'm looking for a way to "externally" hide the tagline, i.e. by either
> making it transparent or colouring it white.

Coloring white leaves invisible but useless stuff at the bottom. 
So maybe better:

% -- color.ily 
#(define-markup-command (tagline-color layout props text)
   (markup?)
   (interpret-markup layout props
 #{
   \markup{ \transparent $text }
 #}))
% -

% == main document 
\paper {ragged-last-bottom = ##f}
\header {
  tagline = \markup \tagline-color { use \rotate #90 so
much space }
}
{
  \repeat unfold 10 {c'1 \break}
}
% =



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Hide-the-tagline-tp200532p200550.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: "Hide" the tagline

2017-02-27 Thread Klaus Blum
Hi Urs, 


Urs Liska wrote
> Additionally it's
> equivalent to \omit and not to \hide (so it may change the layout if
> someone creates a tagline with some vertical extent.

I once read that you are used to work with include files. 
How about that: Put only the color definition into a separate include file:

% -- color.ily 
tagline-color = #blue  % or whatever color
% -

% == main document 
\include "color.ily"
\header {
  tagline = \markup \with-color \tagline-color "Here is the tagline -
visible or not"
}
{c'}
% =

Does that work?

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Hide-the-tagline-tp200532p200549.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: Vocal scores with extra staves

2017-02-27 Thread Klaus Blum
Hi Andrew, 

welcome to the List!  :-)


Andrew Bromage-2 wrote
> the lyrics for verse 2 don't start on the 
> correct beat.

It will be easier to align the lyrics to a voice that exists from the very
beginning. In your example, I've put the unison part into the same voice as
the soprano part.


Andrew Bromage-2 wrote
> the new staff isn't where I expect it to be; I'd like it to 
> be part of the ChoirStaff.

In such cases, it's better to explicitely start a new staff instead of
having LilyPond do that automatically. Now you can control positions with
alignAboveContext or alignBelowContext. 

% ---
\version "2.18.2"

timeline = {
  \time 4/4
  { s1*2 } \bar "||"
  { s1*2 } \bar "|."
}

choirVerseI = { \relative c'' { c4 c c c c c c c } }
sopranoVerseII = { \relative c'' { c4 c c c c c c c } }
altoVerseII = { \relative e' { e4 e e e e e e e } }
tenorVerseII = { \relative g { g4 g g g g g g g } }
bassVerseII = { \relative c { c4 c c c c c c c } }
pianoRH = { \relative c' { 1} }
pianoLH = { \relative c { 1} }
lyricsVerseI = \lyricmode { la la la la la la la la }
lyricsVerseII = \lyricmode { lu lu lu lu lu lu lu lu }

\book {
  <<
\new ChoirStaff {
  \new Staff {
<<
  \timeline
  \clef treble \key c \major
  \new Voice = "sopranoChorus" {
\choirVerseI
<<
  \context Voice = "sopranoChorus" { \voiceOne \sopranoVerseII }
  \new Voice = "altoChorus" { \voiceTwo \altoVerseII }

  \new Staff \with {alignBelowContext = #"chorusLyrics"} {
\clef bass \key c \major
<<
  \new Voice = "tenorChorus" { \voiceOne \tenorVerseII }
  \new Voice = "bassChorus" { \voiceTwo \bassVerseII }
>>
  }
>>
  }
>>
  }
}

\new Lyrics = "chorusLyrics"

\context Lyrics = "chorusLyrics" {
  \lyricsto "sopranoChorus" { \lyricsVerseI \lyricsVerseII }
}

\new PianoStaff <<
  \new Staff {
\clef treble \key c \major <<
  \timeline \new Voice
  { \pianoRH }
>>
  }
  \new Staff {
\clef bass \key c \major <<
  \timeline \new Voice {
\pianoLH
  }
>>
  }
>>
  >>
}
% ---

As you can see, this can get pretty complicated. With your "real" verses
being longer than just two bars, maybe it's easier to start all staves from
the beginning and just working with \RemoveEmptyStaves.

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Vocal-scores-with-extra-staves-tp200526p200529.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: Png cropping

2017-02-25 Thread Klaus Blum
Hi Renato, hi Andrew,

Andrew Bernard wrote
> why would you use backend = eps if you are generating a PNG file? I think
> you can omit that.

The auto-cropping features only work with the EPS backend which can also be
used to generate PNG or PDF output. 
Making use of 
\include "lilypond-book-preamble.ly"
has the same effect.


Renato-23 wrote
> How can I produce a png with some nonzero margins? I've tried to add
> top-margin, bottom-margin, top-system-spacing, last-bottom-spacing,
> left-margin, right-margin, paper-width, but none of them seem to work

I'm afraid that it won't work out of the box. The cropping seems to take
place after the image is composed and doesn't care about margin or indent
settings. 
My only idea would be to place invisible stuff around like, 
\set Staff.instrumentName = \markup \with-color #white "X"
but I don't think this will result in a usable workflow.

Maybe it's easier to add margins with an image editor that has automatic
batch processing like IrfanView.


Cheers, 
Klaus






--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Png-cropping-tp200437p200441.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: chord names

2017-02-13 Thread Klaus Blum
Hi Joram, 

Klaus Blum wrote
> In chord-name.scm, there is a function ...

forget about my last post. 

It's about changing 

-
(define (accidental->markup alteration)
  "Return accidental markup for ALTERATION."
  (if (= alteration 0)
  (make-line-markup (list empty-markup))
  (conditional-kern-before
   (alteration->text-accidental-markup alteration)
   (= alteration FLAT) 0.094725)))
-

to

-
(define (accidental->markup alteration)
  "Return accidental markup for ALTERATION."
  (make-smaller-markup
  (if (= alteration 0)
  (make-line-markup (list empty-markup))
  (conditional-kern-before
   (alteration->text-accidental-markup alteration)
   (= alteration FLAT) 0.094725
-

Cheers again, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/chord-names-tp199985p200070.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: chord names

2017-02-13 Thread Klaus Blum
Hi Joram, 

Noeck wrote
> Can I also make the accidentals in the superscript
> smaller or shift them?

there is no function to be redefined, such as chordRootNamer or
chordNoteNamer. Defining lots of exceptions won't be funny either. 

In chord-name.scm, there is a function 

---
(define-public (alteration->text-accidental-markup alteration)
   (make-raise-markup
(if (= alteration FLAT)
0.3
0.6)
(make-musicglyph-markup
 (assoc-get alteration standard-alteration-glyph-name-alist ""
---

that you could replace by

---
(define-public (alteration->text-accidental-markup alteration)
  (make-smaller-markup
   (make-raise-markup
(if (= alteration FLAT)
0.3
0.6)
(make-musicglyph-markup
 (assoc-get alteration standard-alteration-glyph-name-alist "")
---

but I don't know how to tweak that without changing your whole LP
installation.

Cheers, 
Klaus





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/chord-names-tp199985p200068.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: adding common guitar chords

2017-02-13 Thread Klaus Blum
Hi Julien, 

Julien Cubizolles wrote
> Is there a way to define
> such a chord and name it (with the "full" suffix for example) so that in
> chordmode one could use g:full, c:full and so on ? 

you can define your chord by assembling the six "real" pitches:

% --
g_full = #(define-music-function (parser location) ()
#{
  
#})

{
  \new TabStaff {
\chordmode {
  g1 \g_full g
}
  }
}
% --

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/adding-common-guitar-chords-tp200057p200058.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: chord names

2017-02-11 Thread Klaus Blum
Hi Joram, 


Noeck wrote
> Is it correct that
> this function only works for "simple chords" like F# Fm and not in
> combination with numbers, F7 F9? At least that's what I get here.

that's strange... I've tested it with 2.19.37 and it worked - see below. 
(In my last post, comments in the code were messed up by unwanted line
breaks, I hope this time it works.)

AFAIK chordRootNamer only affects the appearance of the chord root, before
any signs/numbers/letters are added for options. 

%
#(define (note-name->international-markup pitch lowercase?)
   (let* (
   (name (ly:pitch-notename pitch))
   (alt (ly:pitch-alteration pitch))
   (hspace (vector-ref #(0.15 0.15 0.05 0.05 0.15) (+ (* alt 2) 2)))
   (raise (vector-ref #(0.6 0.6 0.65 0.8 0.7) (+ (* alt 2) 2)))
   )

 (if (>= alt 0)
 (make-line-markup
  (list
   (make-simple-markup
(if lowercase?
(vector-ref #("c" "d" "e" "f" "g" "a" "b") name)
(vector-ref #("C" "D" "E" "F" "G" "A" "B") name)
)
)
   (if (= alt 0)
   ;; If it's natural and not b, do nothing
   (make-line-markup (list empty-markup))
   ;; Else add alteration
   (make-line-markup
(list
 (make-hspace-markup hspace)
 (make-tiny-markup (make-raise-markup raise
 ;make-tiny-markup instead of make-smaller-markup
(make-musicglyph-markup
 (assoc-get alt
standard-alteration-glyph-name-alist ""
 ))
   )))
 (make-line-markup
  (list
   (make-simple-markup
(if lowercase?
(vector-ref #("c" "d" "e" "f" "g" "a" "b") name)
(vector-ref #("C" "D" "E" "F" "G" "A" "B") name)
)
)
   (if (= alt 0)
   ;; If it's natural and not b, do nothing
   (make-line-markup (list empty-markup))
   ;; Else add alteration
   (make-line-markup
(list
 (make-hspace-markup hspace)
 (make-tiny-markup (make-raise-markup raise
 ;make-tiny-markup instead of make-smaller-markup
(make-musicglyph-markup
 (assoc-get alt
standard-alteration-glyph-name-alist ""
 ))
   )))
 )
 )
   )

internationalChords = {
  \set Staff.chordRootNamer = #note-name->international-markup
  % \unset Staff.chordNoteNamer
}

\new ChordNames \chordmode {
  as a ais bes b bis bes:m bis:m bes:9 bis:9 as/bes
  \internationalChords
  as a ais bes b bis bes:m bis:m bes:9 bis:9 as/bes
}
%

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/chord-names-tp199985p200012.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: chord names

2017-02-10 Thread Klaus Blum
Benjamin Bloomfield wrote
> I'm trying to figure out how to tweak the size of the sharp and flat
> symbol that displays when the chord name has one in it.  Those symbols are
> slightly taller than the capitals in my font, and I'd like to get them
> even.

Maybe there's an easier way, but here's a first solution. It's a quick
modification of 
http://www.lilypondforum.de/index.php?topic=824.0

%
--
#(define (note-name->international-markup pitch lowercase?)
   (let* (
   (name (ly:pitch-notename pitch))
   (alt (ly:pitch-alteration pitch))
   (hspace (vector-ref #(0.15 0.15 0.05 0.05 0.15) (+ (* alt 2) 2)))
   (raise (vector-ref #(0.6 0.6 0.65 0.8 0.7) (+ (* alt 2) 2)))
   )

 (if (>= alt 0)
 (make-line-markup
  (list
   (make-simple-markup
(if lowercase?
(vector-ref #("c" "d" "e" "f" "g" "a" "b") name)
(vector-ref #("C" "D" "E" "F" "G" "A" "B") name)
)
)
   (if (= alt 0)
   ;; If it's natural and not b, do nothing
   (make-line-markup (list empty-markup))
   ;; Else add alteration
   (make-line-markup
(list
 (make-hspace-markup hspace)
 (make-tiny-markup (make-raise-markup raise;
make-tiny-markup instead of make-smaller-markup
(make-musicglyph-markup
 (assoc-get alt
standard-alteration-glyph-name-alist ""
 ))
   )))
 (make-line-markup
  (list
   (make-simple-markup
(if lowercase?
(vector-ref #("c" "d" "e" "f" "g" "a" "b") name)
(vector-ref #("C" "D" "E" "F" "G" "A" "B") name)
)
)
   (if (= alt 0)
   ;; If it's natural and not b, do nothing
   (make-line-markup (list empty-markup))
   ;; Else add alteration
   (make-line-markup
(list
 (make-hspace-markup hspace)
 (make-tiny-markup (make-raise-markup raise;
make-tiny-markup instead of make-smaller-markup
(make-musicglyph-markup
 (assoc-get alt
standard-alteration-glyph-name-alist ""
 ))
   )))
 )
 )
   )

internationalChords = {
  \set Staff.chordRootNamer = #note-name->international-markup
  % \unset Staff.chordNoteNamer
}

\new ChordNames \chordmode {
  as a ais bes b bis
  \internationalChords
  as a ais bes b bis
}
%
--

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/chord-names-tp199985p10.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: chord names

2017-02-10 Thread Klaus Blum
Hi Ben, 

Benjamin Bloomfield wrote
> I'm trying to figure out how to make chord modifiers like "sus4" not be
> superscript.

for your first issue you can modify what you've found in "Customizing chord
names": 

% ---
chExceptionMusic = {
  1-\markup { \tiny "sus4" }
}

% Convert music to list and prepend to existing exceptions.
chExceptions = #( append
  ( sequential-music-to-chord-exceptions chExceptionMusic #t)
  ignatzekExceptions)

\new ChordNames \chordmode {
  g1:sus4
  \set chordNameExceptions = #chExceptions
  g1:sus4
}

\layout {
  ragged-right = ##t
}
% ---

Cheers, 
Klaus





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/chord-names-tp199985p199989.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: Ending repeat bar not rendering

2017-02-01 Thread Klaus Blum
Hi MikVar, 

welcome to the list! 


MikVar wrote
> no matter what I try, the ending repeat bar is swallowed by the engraver. 

The solution should be quite simple: Don't change the repeat bar lines that
are automatically created by the \repeat commands. 

% --
\version "2.19.54"

\header {
  title = "Repeat Bar Issue"
}

\layout {
  indent = #0
  \context {
\Score
\remove "Bar_number_engraver"
  }
}
 
\score {
  \new DrumStaff {
\override Score.TimeSignature.break-visibility = ##(#f #t #t)

\drummode {
  \stemUp

  \time 4/4
  \mark "1"
  
  \bar ".|:"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
  }

  \bar ":|.|:"

  \mark "2"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
  }
  
  % Repeat bar will not display:
  % \bar ":|."   % not necessary

  \break
  
  \time 4/4
  \mark "3"
  % \bar ".|:"   % not necessary
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
  }

  \bar ":|.|:"

  \mark "4"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
  }
  
  \break

}
  }
}
% --

If you want your changes to the middle repeat line to be done automatically,
you can even try this:

% --
\version "2.19.54"

\header {
  title = "Repeat Bar Issue"
}

\layout {
  indent = #0
  \context {
\Score
\remove "Bar_number_engraver"
  }
}

\score {
  \new DrumStaff {
\override Score.TimeSignature.break-visibility = ##(#f #t #t)

\drummode {
  \stemUp

  \time 4/4
  \mark "1"

  \bar ".|:"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
  }

  \mark "2"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
  }

  \break

  \time 4/4
  \mark "3"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
  }

  \mark "4"
  \repeat volta 2 {
sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
  }

  \break

}
  }
}

\layout {
  \context {
\Score
% defaultBarType = #"|"
% startRepeatType = #".|:"
doubleRepeatType = #":|.|:"
% endRepeatType = #":|."
  }
}
% --

Cheers, 
Klaus





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ending-repeat-bar-not-rendering-tp199659p199663.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: Note-heads not superimposed

2017-01-27 Thread Klaus Blum
Hum... I knew I was missing something even shorter: 

(Left Hand)
\shiftOff 4\arpeggio ~ \stemDown q8\noBeam 
 \override NoteColumn.ignore-collision = ##t % Just add this and
you're done   :-)
 c -.

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Note-heads-not-superimposed-tp199561p199563.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: Note-heads not superimposed

2017-01-27 Thread Klaus Blum
Hi David, 

David Sumbler wrote
> How do I get the triplet demisemi and the quaver to share the same
> notehead?

it seems that the shift is caused by the invisible c notehead in your
temporary left hand voice:

\new Voice { \shiftOff \set tieWaitForNote = ##t
\hideNotes \stemUp s4.
\once \override TupletNumber.stencil = ##f
\tuplet 3/2 { c32~ g~ b~ } s16 < b g c> } 

Replacing it by s32 prevents the shift. 
I would prefer to work with less additional voices, e.g.:

%%
\version "2.19.48"

\language "english"

lv = \laissezVibrer

\new PianoStaff <<
  \new Staff = "RH" {
\set PianoStaff.connectArpeggios = ##t
\time 2/4 <<
  {
\stemUp
e''2\arpeggio | s8
  }
  \new Voice {
\shiftOff \stemDown
< b' g'>4\arpeggio ~ \set tieWaitForNote = ##t
\stemUp \tuplet 12/8 {
  32 b'\lv g'\lv e'\lv
  \change Staff = LH b\lv g\lv
  c g b
  \change Staff = RH e'_~ g'
  b'_~
} |
8-.
  }
>>
\oneVoice 8-. 4\fermata \bar "||" |
  }
  \new Staff = "LH" {
\clef "bass" \time 2/4
<<
  {
\shiftOff 4\arpeggio ~ \stemDown q8\noBeam
\set tieWaitForNote = ##t
\autoBeamOff
c8*1/6~ \hideNotes g8*1/6~ b8*1/6~ s16 \unHideNotes 8-.
  }
>>
\oneVoice < b b,>8-. < b e>4\fermata |
  }
>>
%%

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Note-heads-not-superimposed-tp199561p199562.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: OOoLilyPond

2017-01-21 Thread Klaus Blum
, because everything else 
from the template (including other fields, e.g. staff size) is missing. 

The "Open as temp. file in Ext. Editor" will therefore merge the contents of 
the editor fields into the template code and save the result to a temporary 
file "OOoLilyPondTemp.ly", which is now fully compilable. 
This file will be opened in the editor specified in the config dialog.
Your changes must be saved to that file.

The "Import from temp. file" button will read "OOoLilyPondTemp.ly" and update 
the contents of the code field and the "LineWidth", "Staff Size", "Custom1" and 
"Custom2" fields in the editor window.
Important: Only those five fields are updated. Changes to other parts of the 
template will be ignored! 
(If necessary, you can create your own templates or modify existing ones.) 


4.) Support for EPS/PNG/SVG graphics format


In the config dialog, OOoLilyPond lets you choose whether to use EPS, PNG or 
SVG graphics format. 
However, there are some restrictions:


PNG should work fine with both office versions (OpenOffice, LibreOffice) on 
both platforms (Linux, Windows). But as PNG is a bitmap format, it does not 
look as good as EPS or SVG when printed on paper. 


EPS does *not* work with LibreOffice. (Maybe this can be fixed in LibreOffice 
versions later than 5.2.4.2 - who knows...) 
It works fine with OpenOffice 4.1.3, even if the graphics are not visible in 
the OpenOffice window. If you "print" your document with a suitable pdf 
printer, e.g. FreePDF ( http://freepdfxp.de/index_en.html ), the resulting pdf 
output file will be correct. 


SVG will only work with LibreOffice and *not* with OpenOffice. 
For SVG use, some more things have to be considered: 

* Most OOoLilyTemplates use "lilypond-book-preamble.ly" which *only* works with 
EPS or PNG format, and *not* with SVG (in that case, no graphics output file is 
produced). 

* You can use the templates "SVG Default" and "SVG Direct to LilyPond" with SVG 
format. 
However, without lilypond-book-preamble.ly, there is no automatic cropping of 
the resulting image. 
Therefore, you must specify the "paper" size for your LilyPond snippet in 
advance. As line-width must be given anyway, only the paper height would have 
to be found by trial-and-error. So maybe this isn't as bad as is sounds... 
By the way: in LibreOffice, you can manually crop the image after inserting.

* If LilyPond uses fonts that are not installed on your system, they won't show 
up correctly in the resulting SVG image. Therefore, the two SVG templates have 
some preparation to replace LilyPond's default fonts. 


By the way: Using a macro to import vector graphics (EPS, SVG) into OpenOffice 
Draw or LibreOffice Draw, the image has only about 40% of its original size. 
Importing the same graphics file via the menu preserves the original image 
size. No idea what's going on here...


5.) Two different ways to import graphic into document 
---

Up to Version 0.4.0, graphics were imported to the clipboard and then pasted 
into the document. In LibreOffice, this can cause problems, e.g. when inserting 
as SVG into Draw. 
For 0.4.1, the developer provided a new method for direct inserting without 
clipboard use. In OpenOffice it can happen that temporary graphic files are not 
released after use and therefore cannot be deleted. In LibreOffice it works 
fine. 
In 0.4.2 both methods are offered. The option dialog lets you define which 
method to use in Writer and which one for Draw/Impress.




What if I get an error "There is no EPS/PNG/SVG output"?
-

You can read LilyPond's compiler messages by clicking the "Ly Output" button. 

* Do you have severe errors in your LilyPond code?
You can also jump to the reported errors with the "arrow" buttons at the bottom 
left of the editor window.

* Did you try to produce SVG output, and your template uses 
"lilypond-book-preamble.ly" (see above)? The preamble prevents the creation of 
a SVG file.

* In SVG mode, if your "paper" size for the music snippet is too small, 
LilyPond will split up its output into multiple images named 
"OOoLilyPond-page-1.svg", "OOoLilyPond-page-2.svg" etc. Those are not 
recognized, hence the error message. 

You can also specify "page-count = 1" to prevent the creation of multiple 
images. But if your paper size is to small, there's no image at all. 
Check Ly output for messages like "tried to space systems on a bad number of 
pages" or "number of pages is out of bounds".


Credits


Finally: A big big THANK YOU to Samuel Hartmann, the original developer of 
OOoLilyPond, and to everyone else who has contributed to t

Re: Unorthodox notation

2017-01-19 Thread Klaus Blum
Hi David, 


David Sumbler wrote
> Another approach would, of course, be to tie each note of the sextuplet
> directly to the note in the following chord.  I have not tried this
> because I don't know how it can be done.

search the notation reference for:
\set tieWaitForNote = ##t

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Unorthodox-notation-tp199361p199363.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: 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: Lyrics question

2017-01-14 Thread Klaus Blum
Hi Craig, 

Craig Dabelstein wrote
> No matter what I try, the lyrics are all ending up stacked below the
> bottom staff, rather than under
> each individual staff.

Try alignBelowContext:

% ---
\version "2.19.36"

\language "english"

global = {
  \key af \major
  \time 4/4
  s1*3
  \bar "||"
  \time 6/4
  s1.*4
}

fluteNotes = \relative f' {
  \clef "treble"

  %1-2
  R1*2 |

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

  % 4-7
  R1.*4 |
}

oboeINotes = \relative f' {
  \clef "treble"

  %1-2
  R1*2 |

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

  % 4-7
  R1.*4 |
}

\score {
  <<
\new StaffGroup = "Flute and Oboe" <<
  \new Staff = "Flute" {
\set Staff.instrumentName = #"Flute"
\set Staff.shortInstrumentName = #"Fl."
<<
  \global
  \fluteNotes
>>
  }

  \new Staff = "Oboe 1" {
\set Staff.instrumentName = #"Oboe 1"
\set Staff.shortInstrumentName = #"Ob. 1"
<<
  \global
  \oboeINotes
>>
  }
>>
  >>
}

\layout {
}
% ---

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyrics-question-tp199215p199219.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: How can I get a repeat symbol in the chord names part of lead sheet?

2017-01-13 Thread Klaus Blum
Hi Rob, 

Rob Torop wrote
> I'm trying to figure out what to use for a chord name to get a "repeat"
> (percent) sign over one of the measures.

you could also try:

% 
\version "2.18.2"

chordNames = \chordmode {
  \repeat percent 2 {c1}
  d1
}

melody = \relative c'' {
  c4 d e f
  g a, b c
  c d e f
}


\score {
  <<
\new ChordNames \chordNames
\new Staff { \melody }
  >>
  \layout {
\context {
  \ChordNames
  \consists "Percent_repeat_engraver"
}
  }
}
% 

However, the percent sign will be centered above the measure.

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-can-I-get-a-repeat-symbol-in-the-chord-names-part-of-lead-sheet-tp199145p199148.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: OOoLilyPond

2017-01-11 Thread Klaus Blum
Hi Henning, 

thanks for your observations. 
I have no idea what exactly happens when LO installs an extension. I'm glad
you could fix it manually so far.


Henning Hraban Ramm-3 wrote
> - SVG mode finds no output, EPS mode places text of EPS file into frame

I completely forgot to talk about EPS, I only did in an earlier post. EPS
didn't work for me on LO, only on OO. 
SVG mode should work as long as you don't use lilypond-book-preamble which
is "hidden" in most of the templates. 

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199104.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: OOoLilyPond

2017-01-11 Thread Klaus Blum
Hi Ben, 


SoundsFromSound wrote
> I cannot get your version of the extension to show up at all in
> LibreOffice 5 in Windows 10. If I revert to an older "official" version of
> the OOo, it shows up correctly in add-ons.
> 
> Not sure why but as of now nothing I can do will make your modified
> version of OOoLilyPond show up in Windows LibreOffice. 
> 
> Even from the extension manager, it shows a blank instance listed of
> "OOoLilyPond" with no other information (which is normally would with
> older version). Do you know what could cause this or how to fix?

maybe I made some mistakes in composing the oxt file. 
Here is another attempt. This time I took the version 0.4.0 oxt file and
only replaced the updated ingredients. On my LO 5.2.4.2/Win7 it now shows up
as expected. 
BTW: Even with the original 0.4.0, I did not get any automatic creation of a
menu entry or toolbar button. I had to manually create a button and link the
correct marco with it (see picture). 
I don't know if there is some secret I have missed...

Does it work now?

Cheers, 
Klaus

Macros.gif   
OOoLilyPond-0.oxt
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199086.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: OOoLilyPond

2017-01-10 Thread Klaus Blum
Hi again, 

recently I've done some homework...  ;-)
I've tried to make some additions, and the result is
OOoLilyPond-0.4.2rc1.oxt - see attached.
OOoLilyPond-0.oxt
  

Notice: This is based on the most "recent" release OOoLilyPond-0.4.1rc1.oxt
from 2009 which isn't on the official site, but you can find it here: 
https://sourceforge.net/p/ooolilypond/discussion/614285/thread/d200563d/

On Windows, it worked fine with LibreOffice, but not with OpenOffice.

New features: 

1.) It's now possible to add include paths in the config dialog. 

2.) Ability to save the current code to a temporary LY file and open it in
an external editor, e.g. Frescobaldi. The path to the executable can be
customized in the config dialog. Another button re-imports code from the
temporary file back to the editor window. 

3.) LilyPond's svg backend still doesn't support lilypond-book-preamble.ly
would be needed for auto-cropping. 
Any current attempt to use OLy with svg format must work without
lilypond-book-preamble.ly, e.g. with the "Direct to Lilypond" template.
Paper size must be found by trial-and-error. As line-width must be given
anyway, only the paper height would have to be a guess, which is maybe not
that bad. 
Also, text fonts seem to be replaced - don't know where and why. Is there
already a discussion about that?
That being said: I've added svg support, and on Windows 7 I had no problems
with the graphics import. 

It would be cool if someone also could test it on Linux and report errors.
I've added two templates to play with. 
Attempt.ly   
Attempt2.ly   

Cheers, 
Klaus

P.S.: I hope the attachments work, as I'm posting from nabble:
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198768.html



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199060.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: OOoLilyPond

2017-01-02 Thread Klaus Blum
Urs Liska wrote
> So it might be useful to add an option to use EPS, PNG or SVG. This
> should accordingly invoke LilyPond and then import the right image file.
> So users can configure the behaviour to their needs and OS.

Agreed! 
I've always wondered why nobody added that option to OLy. Now I know: 

To auto-crop the images, OLy relies on lilypond-book-preamble.ly which only
works with the EPS backend. 
There's already a thread for that problem, but no solution:
http://lilypond.1069038.n5.nabble.com/How-does-the-lilypond-book-preamble-work-td191523.html

It seems that lilypond-book-preamble.ly has lots of abilities... most of
which are not needed here. We only need to auto-crop the resulting image. 
Maybe someone knows how to achieve that?




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198768.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: How does the lilypond-book-preamble work?

2017-01-02 Thread Klaus Blum
Hi everybody, 


Noeck wrote
> I think it boils down to coding an output-classic-framework for the svg
> backend. And I still wonder how that can be missing, while svg output
> works nicely without the collect/print machinery of the
> lilypond-book-preamble.

I've run into the very same problem. 
Has anyone found out new things to enlighten us? 

Thanks for any hint, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-does-the-lilypond-book-preamble-work-tp191523p198766.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: OOoLilyPond

2017-01-02 Thread Klaus Blum
Urs Liska wrote
> Am 02.01.2017 um 14:07 schrieb Klaus Blum:
>> Hmmm... I just installed LibreOffice 5.2.4.2 and had no luck with .eps
>> graphics. In OpenOffice 4.1.2 and 4.1.3 it works. That's what I'm using
>> literally/figuratively every day. 
>> However, .svg import seems to work fine in LibreOffice (but not in
>> OpenOffice). 
> 
> *After* writing my last comment I wrote something (but for OpenOffice)
> that support for file formats may vary by OS (then it said: .eps is not
> possible on Windows).

Ooops, I forgot to mention that this only counts for Windows 7. 
I don't have a Linux installation that could be called up-to-date. ;-)



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198758.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: OOoLilyPond

2017-01-02 Thread Klaus Blum
Urs Liska wrote
> The original package on SourceForge does *not* have a license included

The macro code itself is preceeded by a comment: 

> '  OOoLilyPond - using LilyPond in OpenOffice.org
> ' 
> 'Copyright (C) 2005  geoffroy piroux
> 'Copyright (C) 2009  Samuel Hartmann
> '
> 'This program is free software; you can redistribute it and/or modify
> 'it under the terms of the GNU General Public License as published by
> 'the Free Software Foundation; either version 2 of the License, or
> '(at your option) any later version.
> '
> 'This program is distributed in the hope that it will be useful,
> 'but WITHOUT ANY WARRANTY; without even the implied warranty of
> 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> 'GNU General Public License for more details.
> '
> 'You should have received a copy of the GNU General Public License
> 'along with this program; if not, write to the Free Software
> 'Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 
> USA

Maybe this is what you are looking for.


Urs Liska wrote
> I checked with LibreOffice 5.2.4 and could properly include a
> LilyPond-generated .eps graphic and export the whole document to PDF
> without obvious issues.

Hmmm... I just installed LibreOffice 5.2.4.2 and had no luck with .eps
graphics. In OpenOffice 4.1.2 and 4.1.3 it works. That's what I'm using
literally/figuratively every day. 
However, .svg import seems to work fine in LibreOffice (but not in
OpenOffice). 

Right now I'm trying to add an option to use .svg in OooLilyPond. 

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198756.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: OOoLilyPond

2016-12-30 Thread Klaus Blum

Hi guys,

thanks for all the replies!

Am 30.12.2016 um 07:36 schrieb Brian Barker:



At 09:17 30/12/2016 +1100, Philip Rhoades wrote:
How did OOoLP accomplish this? - by distracting an axe murderer who 
loves beautiful scores thus giving you enough time to escape?  OOoLP 
giving you external heart massage after a heart attack?


Good tip . . bad English . .


Charles Dickens wrote of Nicholas Nickleby "His looks were very 
haggard, and his limbs and body literally worn to the bone, ...". 
Will you tell Mr Dickens he wrote "bad English" or should I?


James Joyce, in Dubliners: "Lily, the caretaker’s daughter, was 
literally run off her feet." Will you speak to Mr Joyce?


Charlotte Brontë, in Jane Eyre: "Literally, I was (what he often 
called me) the apple of his eye." Will you approach Ms Brontë about 
her error?


And there we were, thinking these were writers of excellent English!

Brian Barker

Don't walk away... Bad English doesn't always have to be a shame:
https://www.youtube.com/watch?v=1MaO0OAZZUE
;-)
(To all Germans: Don't be afraid, it's NOT that famous Oettinger video...)

Cheers,
Klaus



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


Re: OOoLilyPond

2016-12-30 Thread Klaus Blum
SoundsFromSound wrote
> Anyone know how to change the font of the macro editor window 
/
> itself 
/
> in OooLilyPond?

I can only speak for OpenOffice, but I guess it works in a similar way on
LibreOffice, so here we go: 

Open the OooLilyPond macro, just as you did before. 
There you have some tabs called "Config", "Editor", "LilyPond" etc. 
Select the tab called "GUI_Editor" and you get the main OLy window. 
Click on the editor pane to select it. Now right-click on it, a context menu
should offer to edit its properties. 
Here you can change the font and/or font size. 
Somewhere in the macro editor there should also be a button or menu entry to
save your changes. 

Does that work? 

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198682.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: OOoLilyPond

2016-12-29 Thread Klaus Blum
Hello everybody, 

maybe it's a little late to warm up an old thread, but I had to struggle
with a similar problem: 

Roman Stawski wrote
> When I hit the lilypond button the console popped up as usual to run 
> Lilypond, finished correctly and disappeared. The OOoLP dialogue stayed 
> open. When I looked at the LP output, everything had compiled fine. 
> There were no errors.
> 
> Debugging the macro, I found in the OOoLilypond/Make routine that after 
> compilation it was looking for OOoLilyPond.eps in the temp directory. In 
> reality I had OOoLilyPond-1.eps, OOoLilyPond-2.eps and OOoLilyPond-3.eps 
> ... but no OOoLilyPond.eps, so the routine just exited. I commented this 
> out since the only file I'm interested in is OOoLilyPond.png which was 
> there, and was included next. Debugging further kept throwing out errors 
> in LibreBasic ... so I gave up.
> 
> Current state is that its now inserting the image ... but holding the 
> image source open (even if I delete the image from the document). This 
> means that the next run of OOoLP fails because it can't delete the 
> source from the previous run.

I have OpenOffice 4.1.3 and OooLilyPond 0.4.0 running on Windows 7, and I
use them a lot. 
Everything works fine as long as I use LilyPond 2.18.2, but I never got it
to work with any 2.19 version. 

Apparently, LP 2.18 produces an EPS file and converts it into a PNG file.
Both files are kept. 
With LP 2.19 (invoked by the same command) there is no EPS file with the
same file name. 

Unfortunately, OooLilyPond always checks the presence of the EPS file (and
exits if there's none), no matter if it's told to use the PNG or the EPS
file. 
The easiest way I found was to change the way LilyPond is called, in a way
that there really is an EPS file present. 

In the OooLilyPond macros, there is a section "LilyPond" containing a
function named "CallLilyPond()". 
For composing the Windows command, there is a line that reads: 

--
sCommand = sCommand & " " & sBackendOpt & " -f png -dresolution=" &
iGraphicDPI & " OOoLilyPond.ly >OOoLilyPond.out 2>&1" (10)
--

This line should be replaced by: 

--
sCommand = sCommand & " -dno-delete-intermediate-files --png " & sBackendOpt
& " -dresolution=" & iGraphicDPI & " OOoLilyPond.ly >OOoLilyPond.out 2>&1"
(10)
--

I've tested that with LP 2.18.2, LP 2.19.37 and LP 2.19.51, and it worked
with all three versions. 
By the way, I have no idea of how to use the command line parameters...
instead, I simply experimented with Frescobaldi and "stole" its output.  ;-)

I hope that this information is useful for some people. OooLilyPond is a
great tool and has literally saved my life so many times. 

Cheers, 
Klaus

P.S.: Interestingly enough, the error showed up as complaining about an
unknown variable named "CurserPosition", but that seems to be another
story...




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198655.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


  1   2   3   >