Defining a variable for path names

2014-11-18 Thread ingbolbograr
I have two different versions of each of my lilypond files, each with a
different header.  At the top of each file, I have this:

\include "C:/songs/lilypond_header_file_1.ly"
%\include "C:/music/lilypond_header_file_2.ly"

I'd like to be able to use a global variable that is set in only one place
(maybe somewhere in C:\Program Files
(x86)\LilyPond\usr\share\lilypond\current\ly) to determine which header file
to use.  That way, at the top of each file I could write something like

\include "$header_file"

and I would know that whenever I compile a given file, it would use the
header file that I specified.

How do I do this?

Thanks.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Defining-a-variable-for-path-names-tp168784.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: Defining a variable for path names

2014-11-18 Thread Brian Barker

At 22:34 17/11/2014 -0700, Ingbol Bograr wrote:
I have two different versions of each of my lilypond files, each 
with a different header.  At the top of each file, I have this:


\include "C:/songs/lilypond_header_file_1.ly"
%\include "C:/music/lilypond_header_file_2.ly"

I'd like to be able to use a global variable that is set in only one 
place (maybe somewhere in C:\Program Files 
(x86)\LilyPond\usr\share\lilypond\current\ly) to determine which 
header file to use.  That way, at the top of each file I could write 
something like

\include "$header_file"
and I would know that whenever I compile a given file, it would use 
the header file that I specified.


How do I do this?


One simple workaround would be to maintain three files and to copy 
the relevant actual file - file_1 or file_2 - to another file called 
header_file. You could create a script or scripts to do this and 
possibly associate them with icons, which would make performing the 
chosen copy action either a simple command or the clicking of the 
appropriate icon. Lilypond would always use header_file, but its 
contents would depend on which of file_1 or file_2 was most recently 
copied to it.


I trust this helps.

Brian Barker


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


Re: Defining a variable for path names

2014-11-18 Thread Urs Liska

Hi Ingbol (?),

Am 18.11.2014 06:34, schrieb ingbolbograr:

I have two different versions of each of my lilypond files, each with a
different header.  At the top of each file, I have this:

\include "C:/songs/lilypond_header_file_1.ly"
%\include "C:/music/lilypond_header_file_2.ly"

I'd like to be able to use a global variable that is set in only one place
(maybe somewhere in C:\Program Files
(x86)\LilyPond\usr\share\lilypond\current\ly)


Do *not* store such a configuration inside the LilyPond installation 
because it would be trashed when you uninstall or update LilyPond.

Use a location in your documents folder instead.


to determine which header file
to use.  That way, at the top of each file I could write something like

\include "$header_file"

and I would know that whenever I compile a given file, it would use the
header file that I specified.

How do I do this?


It's actually quite easy.

Write

\include "C:/songs/lilypond_header_file_1.ly"
%\include "C:/music/lilypond_header_file_2.ly"

in a file "lilypond_header.ily"
and save that in a central place where you want to maintain this choice 
(e.g. the toplevel directory where you store all your LilyPond projects).


In any actual music file simply write

\include "C:/path/to/lilypond_header.ily"

This way all your scores refer to that central configuration file, and 
you can edit this file to make all scores use one or the other header file.


HTH
Urs


Thanks.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Defining-a-variable-for-path-names-tp168784.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


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


Markup : convert to v2.18/v2.19 generate error

2014-11-18 Thread Pierre Perol-Schneider
Hi All,

I'm trying to convert this v2.16 file :
http://lilypond-french-users.1298960.n2.nabble.com/attachment/7581913/0/arnaud.ly

but this gives me
"error: unexpected post-event".

So I've come up with this function :

ti =
#(define-music-function (parser location button) (string?)
  (if cadb
#{
  \markup
  \override #'(direction . 0)
  \fontsize #-1.5 #button
#}
#{
  \markup
  \override #'(direction . (rang button))
  \underline \fontsize #-1.5 #(touchnum button)
#}))

but I'm still stuck with another error :

error: music function cannot return \markup \override #'(direction rang
button) \underline \fontsize #-1.5 "3"

Herewith is a tiny example that shows the problem.

TIA, cheers,
Pierre
\version "2.19.15"

#(define cadb #f)

#(define rang
  (lambda 
(touch)
(define l 
  (string-length touch))
(define rng 0)
(if (string=? "'" (substring touch (- l 1) l))
(if (string=? "'" (substring touch (- l 2) (- l 1)))
(+ rng 2)
(+ rng 1))
rng)))

#(define touchnum
  (lambda 
(touch)
(if (< 1 (string-length touch))
(if (char-numeric? (string-ref touch 1))
  (substring touch 0 2)
  (substring touch 0 1))
touch)))

tabtete =
#(define-music-function (parser location)()
  (if cadb
#{ \set Staff.instrumentName = \markup\column { P T } #}
#{ \set Staff.instrumentName = \markup\column { C G } #} ))

ti =
#(define-music-function (parser location button) (string?)
  (if cadb
#{
  \markup
  \override #'(direction . 0)
  \fontsize #-1.5 #button
#}
#{
  \markup
  \override #'(direction . (rang button))
  \underline \fontsize #-1.5 #(touchnum button)
#}))

tab = { \ti #"3'" c'8 }

\new DrumStaff \with {
\override StaffSymbol.line-count = #1
\override StaffSymbol.staff-space = #1 
%\override Stem.length = #0
\remove "Time_signature_engraver"
\remove "Clef_engraver"
\override NoteHead.stencil = #point-stencil
%\omit NoteHead
\omit Dots
\omit Flag
\omit Stem
\omit Beam
\omit LedgerLineSpanner
  }
  <<
\tabtete
\tab
  >>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Markup : convert to v2.18/v2.19 generate error

2014-11-18 Thread tisimst
How about using define-scheme-function instead?

-Abraham

Sent from my iPhone

> On Nov 18, 2014, at 3:15 AM, Schneidy [via Lilypond] 
>  wrote:
> 
> Hi All,
> 
> I'm trying to convert this v2.16 file : 
> http://lilypond-french-users.1298960.n2.nabble.com/attachment/7581913/0/arnaud.ly
> 
> but this gives me 
> "error: unexpected post-event".
> 
> So I've come up with this function :
> 
> ti =
> #(define-music-function (parser location button) (string?)
>   (if cadb
> #{
>   \markup
>   \override #'(direction . 0)
>   \fontsize #-1.5 #button
> #}
> #{
>   \markup
>   \override #'(direction . (rang button))
>   \underline \fontsize #-1.5 #(touchnum button)
> #}))
> 
> but I'm still stuck with another error : 
> 
> error: music function cannot return \markup \override #'(direction rang 
> button) \underline \fontsize #-1.5 "3"
> 
> Herewith is a tiny example that shows the problem.
> 
> TIA, cheers,
> Pierre
> 
> 
> 
> ___ 
> lilypond-user mailing list 
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
>  arnaudEssai.ly (1K) Download Attachment
> ~Pierre
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://lilypond.1069038.n5.nabble.com/Markup-convert-to-v2-18-v2-19-generate-error-tp168787.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com 
> To unsubscribe from Lilypond, click here.
> NAML




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Markup-convert-to-v2-18-v2-19-generate-error-tp168787p168788.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: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread signorpantofola
Hi Philippe, thanks for your post. Hopefully I can finally install
frescobaldi on my computer (10.10.1). 
Unfortunately, i am getting stuck after I download this link :
https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz

I double-click to unzip, get the folder... then I don't understand this
instruction : "In the Terminal you have to go to the folder where it was
unzipped (for instance cd Downloads/python-poppler-qt4-0.16.3 )" 
Is there actually something to do before I run the next two commands : 
"python setup.py build" and "sudo python setup.py install" 
At this point, if I try to run these commands, it says "no such file..." 

Sorry if my question seems dumb, I am obviously not very literate with
computers... 

Thanks! 

Silvan.




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Frecobaldi-2-Mac-OS-X-install-guide-tp145898p168790.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: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread Davide Liessi
2014-11-18 12:21 GMT+01:00 signorpantofola :
> Hi Philippe, thanks for your post. Hopefully I can finally install
> frescobaldi on my computer (10.10.1).
> Unfortunately, i am getting stuck after I download this link :
> https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz
[...]

You're probably following some old instructions.
Please instead use these:
https://github.com/wbsoft/frescobaldi/wiki/How-to-install-Frescobaldi-on-Mac-OS-X
(available also in French and Italian).

Best wishes.
Davide

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


Beginners problem with display in an include file

2014-11-18 Thread Peter Gentry

\version "2.18.2"
;;; OS Vista and Frescobaldi
;;; attempt to improve include file enharmonic.ly
;;; why does guile display fail to produce an output to thefresobaldi log file
#(ly:message "Test debug 1\n")
#(define (naturalize-pitch p)
(let ((o (ly:pitch-octave p))
(a (* 4 (ly:pitch-alteration p)))
;;; alteration, a, in quarter tone steps,
;; for historical reasons
(n (ly:pitch-notename p)))
(cond
((and (> a 1) (or (eq? n 6) (eq? n 2)))
(set! a (- a 2))
(set! n (+ n 1)))
((and (< a -1) (or (eq? n 0) (eq? n 3)))
(set! a (+ a 2))
(set! n (- n 1
(display a)
(cond
 ((> a 2) (ly:message "a>2"))
 ((< a -2) (ly:message "a<-2"))
)
(cond
((> a 2) (set! a (- a 4)) (set! n (+ n 1)))
((< a -2) (set! a (+ a 4)) (set! n (- n 1
(cond
 ((< n 0) (ly:message "n<0"))
 ((= n 0) (ly:message "n=0"))
 ((= n 1) (ly:message "n=1"))
 ((= n 2) (ly:message "n=2"))
 ((= n 3) (ly:message "n=3"))
 ((= n 4) (ly:message "n=4"))
 ((= n 5) (ly:message "n=5"))
 ((= n 6) (ly:message "n=6"))
 ((> n 6) (ly:message "n>6"))
)
(if (< n 0) (begin (set! o (- o 1)) (set! n (+ n 7
(if (> n 6) (begin (set! o (+ o 1)) (set! n (- n 7
(ly:make-pitch o n (/ a 4
#(ly:message "Test debug 3\n")
#(define (naturalize music)
(let ((es (ly:music-property music 'elements))
(e (ly:music-property music 'element))
(p (ly:music-property music 'pitch)))
(if (pair? es)
(ly:music-set-property!
music 'elements
(map (lambda (x) (naturalize x)) es)))
(if (ly:music? e)
(ly:music-set-property!
music 'element
(naturalize e)))
(if (ly:pitch? p)
(begin
(set! p (naturalize-pitch p))
(ly:music-set-property! music 'pitch p)))
music))
naturalizeMusic =
#(define-music-function (parser location m)
(ly:music?)
(ly:message "Test debug 4\n")
(naturalize m))

I an trying to get some debug feedback from the code but ly:message only seems 
to allow strings and display reutns nothing. I'll bet
it's a simple missunderstanding of the guile scheme interface.

regards
Peter Gentry 



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


Re: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread Philippe Massart
Hello,

There is another way to install Frescobaldi since I wrote this guide (via 
Macports, for frescobaldi too) if you prefer. In that case, you just have to 
type:
sudo port install frescobaldi

Meanwhile, I'll try to explain more precisely what to do in you case:

Obviously, the Terminal doesn't find the files you downloaded. So, you have to 
check where they are on your hard drive and go to that folder using the 
Terminal. If the folder is in the Download folder, the command to go there is 
the one I show. If it's on the Desktop, the command would be cd 
Desktop/python-poppler-qt4-0.16.3

Then the python setup.py command should work fine

Hope this helps

Philippe


> Le 18 nov. 2014 à 12:21, signorpantofola  a écrit :
> 
> Hi Philippe, thanks for your post. Hopefully I can finally install
> frescobaldi on my computer (10.10.1). 
> Unfortunately, i am getting stuck after I download this link :
> https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz
> 
> I double-click to unzip, get the folder... then I don't understand this
> instruction : "In the Terminal you have to go to the folder where it was
> unzipped (for instance cd Downloads/python-poppler-qt4-0.16.3 )" 
> Is there actually something to do before I run the next two commands : 
> "python setup.py build" and "sudo python setup.py install" 
> At this point, if I try to run these commands, it says "no such file..." 
> 
> Sorry if my question seems dumb, I am obviously not very literate with
> computers... 
> 
> Thanks! 
> 
> Silvan.
> 
> 
> 
> 
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/Frecobaldi-2-Mac-OS-X-install-guide-tp145898p168790.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


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


Re: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread Jacques Menu
Hello Silvan,

Trick (dating back from the NeXT era) : in the Terminal, type ‘cd ‘ (with the 
space) and drag a folder icon from a nearby Finder window on the same line: the 
path to the folder comes as the text argument to ‘cd’.

Enjoy!

JM


> Le 18 nov. 2014 à 13:57:19, Philippe Massart  a 
> écrit :
> 
> Hello,
> 
> There is another way to install Frescobaldi since I wrote this guide (via 
> Macports, for frescobaldi too) if you prefer. In that case, you just have to 
> type:
> sudo port install frescobaldi
> 
> Meanwhile, I'll try to explain more precisely what to do in you case:
> 
> Obviously, the Terminal doesn't find the files you downloaded. So, you have 
> to check where they are on your hard drive and go to that folder using the 
> Terminal. If the folder is in the Download folder, the command to go there is 
> the one I show. If it's on the Desktop, the command would be cd 
> Desktop/python-poppler-qt4-0.16.3
> 
> Then the python setup.py command should work fine
> 
> Hope this helps
> 
> Philippe
> 
> 
>> Le 18 nov. 2014 à 12:21, signorpantofola  a écrit 
>> :
>> 
>> Hi Philippe, thanks for your post. Hopefully I can finally install
>> frescobaldi on my computer (10.10.1). 
>> Unfortunately, i am getting stuck after I download this link :
>> https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz
>> 
>> I double-click to unzip, get the folder... then I don't understand this
>> instruction : "In the Terminal you have to go to the folder where it was
>> unzipped (for instance cd Downloads/python-poppler-qt4-0.16.3 )" 
>> Is there actually something to do before I run the next two commands : 
>> "python setup.py build" and "sudo python setup.py install" 
>> At this point, if I try to run these commands, it says "no such file..." 
>> 
>> Sorry if my question seems dumb, I am obviously not very literate with
>> computers... 
>> 
>> Thanks! 
>> 
>> Silvan.
>> 
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://lilypond.1069038.n5.nabble.com/Frecobaldi-2-Mac-OS-X-install-guide-tp145898p168790.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
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread signorpantofola
Hi Philippe, thanks for your post. Hopefully I can finally install
frescobaldi on my computer (10.10.1).
Unfortunately, i am getting stuck after I download this link :
https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz

I double-click to unzip, get the folder... then I don't understand this
instruction : "In the Terminal you have to go to the folder where it was
unzipped (for instance cd Downloads/python-poppler-qt4-0.16.3 )" 
Is there actually something to do before I run the next two commands : 
"python setup.py build" and "sudo python setup.py install"
At this point, if I try to run these commands, it says "no such file..."

Sorry if my question seems dumb, I am obviously not very literate with
computers...

Thanks!

Silvan. 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Frecobaldi-2-Mac-OS-X-install-guide-tp145898p168789.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: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread Tim McNamara
Why not install the Frescobaldi.app bundle instead, which is installed like any 
Mac app?


> On Nov 18, 2014, at 5:18 AM, signorpantofola  
> wrote:
> 
> Hi Philippe, thanks for your post. Hopefully I can finally install
> frescobaldi on my computer (10.10.1).
> Unfortunately, i am getting stuck after I download this link :
> https://python-poppler-qt4.googlecode.com/files/python-poppler-qt4-0.16.3.tar.gz
> 
> I double-click to unzip, get the folder... then I don't understand this
> instruction : "In the Terminal you have to go to the folder where it was
> unzipped (for instance cd Downloads/python-poppler-qt4-0.16.3 )" 
> Is there actually something to do before I run the next two commands : 
> "python setup.py build" and "sudo python setup.py install"
> At this point, if I try to run these commands, it says "no such file..."
> 
> Sorry if my question seems dumb, I am obviously not very literate with
> computers...
> 
> Thanks!
> 
> Silvan. 
> 
> 
> 
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/Frecobaldi-2-Mac-OS-X-install-guide-tp145898p168789.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

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


Quick Repeats

2014-11-18 Thread Marcos Press
Hi List,

Iḿ looking for a way of making quick repeats of small fragments (not
tremolos) without having to input the whole \repeat function.
I don't know if theres already a threat with these topic.

for example:

a4 r a r a r a r

with the function '\repeat' would be

\repeat unfold 4 {a4 r}

in the end I write the same or more characters than repeating the secuence.

But if it could be done just by...

{a4 r}*4

Wouldn't be great?

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


Fwd: positioning dynamics vertically

2014-11-18 Thread David B. Stocker


Hello all,

I'm typesetting pieces for piano and melody instrument and I have a
question about dynamic placement.

I'm adding dynamics to the melody part in a separate Dynamics context
because I like for each line of markings to have its own static
baseline. But I need that baseline to 'hug' the bottom of the melody
staff and I haven't been able to do that.

Thanks in advance,

David

Here is my minimal example:

\version "2.18.2"


\paper {

ragged-last = ##f

ragged-last-bottom = ##f

}


pianoRH = \relative c'' {

c4 d e c

}


pianoLH = \relative c {

c2 g'4 e

}



hornNotes = \relative c'' {

g2 c

}


dyn = {

s2\mf\< s\!\f

}


\score {

<<

\new Staff \with {

fontSize = #-3

\override StaffSymbol #'staff-space = #(magstep -3)

\override StaffSymbol #'thickness = #(magstep -3)

}

<<

\new Voice {

\hornNotes

}

\new Dynamics {

\override DynamicText.font-size = #-3

\dyn

}





\new PianoStaff <<

\new Staff {

\pianoRH

}

\new Dynamics {

\dyn

}

\new Staff {

\clef bass

\pianoLH

}









}




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


Re: Mac testers needed for Frescobaldi! (again)

2014-11-18 Thread Dewdman42
This DMG was very very very helpful to me and seems to be working great.  I
do not want to install HomeBrew nor MacPorts on my mac, and the task of
manually installing from all the sources and dependencies was daunting to
say the least.  This DMG version worked out of the box really well so thank
you so much and just let me say, please make sure this ends up on some kind
of official place and kept up to date, rather then just through this dropbox
beta test.  It works great!

Is this link on this thread the most up to date version BTW?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Mac-testers-needed-for-Frescobaldi-again-tp163407p168798.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


positioning dynamics vertically

2014-11-18 Thread David B. Stocker

Hello all,

I'm typesetting pieces for piano and melody instrument and I have a 
question about dynamic placement.


I'm adding dynamics to the melody part in a separate Dynamics context 
because I like for each line of markings to have its own static 
baseline. But I need that baseline to 'hug' the bottom of the melody 
staff and I haven't been able to do that.


Thanks in advance,

David

Here is my minimal example:

\version "2.18.2"


\paper {

ragged-last = ##f

ragged-last-bottom = ##f

}


pianoRH = \relative c'' {

c4 d e c

}


pianoLH = \relative c {

c2 g'4 e

}



hornNotes = \relative c'' {

g2 c

}


dyn = {

s2\mf\< s\!\f

}


\score {

<<

\new Staff \with {

fontSize = #-3

\override StaffSymbol #'staff-space = #(magstep -3)

\override StaffSymbol #'thickness = #(magstep -3)

}

<<

\new Voice {

\hornNotes

}

\new Dynamics {

\override DynamicText.font-size = #-3

\dyn

}

>>

\new PianoStaff <<

\new Staff {

\pianoRH

}

\new Dynamics {

\dyn

}

\new Staff {

\clef bass

\pianoLH

}

>>

>>

}


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


Re: Quick Repeats

2014-11-18 Thread Marc Hohl

Am 18.11.2014 um 17:58 schrieb Marcos Press:

Hi List,

Iḿ looking for a way of making quick repeats of small fragments (not
tremolos) without having to input the whole \repeat function.
I don't know if theres already a threat with these topic.

for example:

a4 r a r a r a r

with the function '\repeat' would be

\repeat unfold 4 {a4 r}

in the end I write the same or more characters than repeating the secuence.

But if it could be done just by...

{a4 r}*4

Wouldn't be great?


I remember a discussion about this long time ago. A possible workaround 
is described in


http://lists.gnu.org/archive/html/lilypond-devel/2009-11/msg00362.html

HTH,

marc


Thanks.
Marcos



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




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


Ledger Lines in Key Signature?

2014-11-18 Thread Frank Z.
Dear Lilypond-Community,

I'd like to have a key signature with a flat on B3 (one octave lower
than usual). This can be achieved easily. But I would like to have a
ledger line for this key signature accidental. Is this possible?


\version "2.18.2"

\relative c' {

  \override Staff.KeySignature.flat-positions = #'(-1)

  \time 3/4
  \key d \minor

  d2.
}


The only way I know how to this, is rather creepy. Attatch a line to the
first note and change its offset so that it appears as a ledger line.
There must be a better solution.


\version "2.18.2"

\relative c' {

  \override Staff.KeySignature.flat-positions = #'(-1)

  \time 3/4
  \key d \minor

  \once \override TextScript.extra-offset = #'( -6 . 0.7)
  d2._\markup { \override #'(thickness . 2) \draw-line #'(1.5 . 0)}
}


Thanks alot for any help!

Best

Frank

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


Re: Quick Repeats

2014-11-18 Thread Noeck
>> {a4 r}*4
>>
>> Wouldn't be great?
> 
> I remember a discussion about this long time ago. A possible workaround
> is described in
> 
> http://lists.gnu.org/archive/html/lilypond-devel/2009-11/msg00362.html

That would have been my solution, too. With a recent version, you can
also write:

\version "2.18.2"

u = #(define-music-function (parser location times music) (number? ly:music?)
  #{ \repeat unfold $times $music #})

\u 4 { a4 r }

Cheers,
Joram




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


Re: positioning dynamics vertically

2014-11-18 Thread Pierre Perol-Schneider
Hi David,

2014-11-18 18:30 GMT+01:00 David B. Stocker :


> I need that baseline to 'hug' the bottom of the melody
> staff and I haven't been able to do that.
>

See :
http://lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems
Mini example enclosed.
HTH
Pierre
\version "2.18.2"

\paper {
  ragged-last = ##f
  ragged-last-bottom = ##f
}

pianoRH = \relative c'' { c4 d e c }

pianoLH = \relative c { c2 g'4 e }

hornNotes = \relative c'' { g2 c }

dyn = { s2\mf\< s\!\f }

\score {
  <<
\new Staff 
\with { 
  fontSize = #-3
  \override StaffSymbol.staff-space = #(magstep -3)
  \override StaffSymbol.thickness = #(magstep -3)
}
\new Voice \hornNotes
\new Dynamics {
  \override DynamicText.font-size = #-3
  \dyn
}
\new PianoStaff <<
  \new Staff \pianoRH
  \new Dynamics \dyn
  \new Staff {
\clef bass
\pianoLH
  }
>>
  >>
  \layout {
\context {
  \Staff
  \override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 2)
   (minimum-distance . 2)
   (padding . 1))
  \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 2))
}
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Quick Repeats

2014-11-18 Thread Marcos Press
Thanks.

Seams the way would be to just use the macro :) which its a great one ;)

2014-11-18 16:30 GMT-03:00 Noeck :

> >> {a4 r}*4
> >>
> >> Wouldn't be great?
> >
> > I remember a discussion about this long time ago. A possible workaround
> > is described in
> >
> > http://lists.gnu.org/archive/html/lilypond-devel/2009-11/msg00362.html
>
> That would have been my solution, too. With a recent version, you can
> also write:
>
> \version "2.18.2"
>
> u = #(define-music-function (parser location times music) (number?
> ly:music?)
>   #{ \repeat unfold $times $music #})
>
> \u 4 { a4 r }
>
> Cheers,
> Joram
>
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Markup : convert to v2.18/v2.19 generate error

2014-11-18 Thread Pierre Perol-Schneider
Hi Abraham,

2014-11-18 11:58 GMT+01:00 tisimst :

How about using define-scheme-function instead?
>

Hum, doesn't look better from my side.
Thanks for the answer though.
Cheers,
Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Markup : convert to v2.18/v2.19 generate error

2014-11-18 Thread Thomas Morley
Hi Pierre,

2014-11-18 11:14 GMT+01:00 Pierre Perol-Schneider
:
> Hi All,
>
> I'm trying to convert this v2.16 file :
> http://lilypond-french-users.1298960.n2.nabble.com/attachment/7581913/0/arnaud.ly
>
> but this gives me
> "error: unexpected post-event".
>
> So I've come up with this function :
>
> ti =
> #(define-music-function (parser location button) (string?)

define-scheme-function

>   (if cadb
> #{
>   \markup
>   \override #'(direction . 0)
>   \fontsize #-1.5 #button
> #}
> #{
>   \markup
>   \override #'(direction . (rang button))

\override #`(direction . ,(rang button))
% note the semiquote and unquote
% not tested, though

>   \underline \fontsize #-1.5 #(touchnum button)
> #}))
>
> but I'm still stuck with another error :
>
> error: music function cannot return \markup \override #'(direction rang
> button) \underline \fontsize #-1.5 "3"
>
>
> Herewith is a tiny example that shows the problem.
>
> TIA, cheers,
> Pierre

HTH,
  Harm

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


Re: Mac testers needed for Frescobaldi! (again)

2014-11-18 Thread Davide Liessi
Hi.

2014-11-18 18:56 GMT+01:00 Dewdman42 :
> This DMG version worked out of the box really well

I'm glad it works for you!

> Is this link on this thread the most up to date version BTW?

Yes, it is the most up to date DMG (although Frescobaldi actually
changed a lot since June).

> please make sure this ends up on some kind
> of official place and kept up to date

Frescobaldi 2.17 will be out at the end of December and a DMG will be
officially released.

Best wishes.
Davide

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


Re: Frecobaldi 2 Mac OS X install guide

2014-11-18 Thread Davide Liessi
2014-11-18 16:34 GMT+01:00 Tim McNamara :
> Why not install the Frescobaldi.app bundle instead, which is installed like 
> any Mac app?

Indeed, if you don't need the newest features of Frescobaldi at the moment.

See the thread starting at
http://lists.gnu.org/archive/html/lilypond-user/2014-06/msg00353.html
The experimental application bundle is actually very stable.

The new Frescobaldi 2.17 will be out at the end of December and a DMG
will be officially released.

However I'm still interested in the log file of the failed portmidi
installation: it might be a problem affecting also other users.
(I'm particularly interested in the problem, because although users of
the DMG don't need MacPorts, in order to build the application bundle
I need to install Frescobaldi's dependencies via MacPorts.)

Best wishes.
Davide

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


Re: Defining a variable for path names

2014-11-18 Thread ingbolbograr
That's brilliant.  Thank you.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Defining-a-variable-for-path-names-tp168784p168811.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


Am I misunderstanding the NullVoice?

2014-11-18 Thread Andrew Hawryluk
Hi everyone, I just upgraded to 2.18.2 to use the cool new NullVoice. It
seems like a slick solution to polyphonic lyric alignment. Unfortunately, I
seem to be doing something wrong, because I am getting two syllables
printed right on top of each other (see attached PNG). In this example, I
want each syllable to arrive on a beat, which you see if you change the
NullVoice to a Voice.

Thanks for your thoughts!
Andrew


\version "2.18.2"

soprano = \relative { g'4. a8 g8( f) d4 }
alto = \relative { c'8( d) e4 d b }
aligner = \relative { c'8( d) e4 g8( f) d4 }
words = \lyricmode { pea -- nut but -- ter }

\new Staff <<
  \new Voice { \voiceOne \soprano }
  \new Voice { \voiceTwo \alto }
  \new NullVoice = "aligner" \aligner
  \new Lyrics \lyricsto "aligner" \words
>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Midline system bracket

2014-11-18 Thread Jayaratna
Dear Lilypondians,

is it possible to display a system bracket midline?

Here is a working example:


\version "2.18.2"

global = { \override Staff.Clef.full-size-change = ##t
   \override Score.BreakAlignment #'break-align-orders = #(
   make-vector 3 '(
   staff-bar
   clef
   key-signature
   time-signature
 ) ) 
   \set Staff.timeSignatureFraction = 2/2
  
  
  
}
\score {
\new StaffGroup <<
  
  
  \new Staff \relative c' { \global \time 2/2 \clef violin e1 \bar "||"
   
   
\stopStaff \time 1/64 s64 \bar "" \noBreak %%%white space after the example
\startStaff \clef "petrucci-c1" s64 \bar"" \noBreak %%%new incipit
\stopStaff s64^\markup{\center-align Here}\bar"|" \startStaff %%%new example

   \time 2/2  \clef violin a4 b c d }
  
  
  \new Staff \relative c' { \global \time 2/2 \clef violin e1 \bar "||"
   
   
\stopStaff \time 1/64 s64 \bar "" \noBreak %%%white space after the example
\startStaff \clef "petrucci-c1" s64 \bar"" \noBreak %%%new incipit
\stopStaff s64 \bar"|" \startStaff %%%new example

   \time 2/2  \clef violin a4 b c d }

>>
}


Thank you for your suggestions,

Andrea




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Midline-system-bracket-tp168813.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: Midline system bracket

2014-11-18 Thread Pierre Perol-Schneider
Hi Andrea,
Check this thread :
http://lists.gnu.org/archive/html/lilypond-user/2012-05/msg00379.html

HTH,
Pierre

2014-11-19 6:20 GMT+01:00 Jayaratna :

> Dear Lilypondians,
>
> is it possible to display a system bracket midline?
>
> Here is a working example:
>
>
> \version "2.18.2"
>
> global = { \override Staff.Clef.full-size-change = ##t
>\override Score.BreakAlignment #'break-align-orders = #(
>make-vector 3 '(
>staff-bar
>clef
>key-signature
>time-signature
>  ) )
>\set Staff.timeSignatureFraction = 2/2
>
>
>
> }
> \score {
> \new StaffGroup <<
>
>
>   \new Staff \relative c' { \global \time 2/2 \clef violin e1 \bar "||"
>
>
> \stopStaff \time 1/64 s64 \bar "" \noBreak %%%white space after the example
> \startStaff \clef "petrucci-c1" s64 \bar"" \noBreak %%%new incipit
> \stopStaff s64^\markup{\center-align Here}\bar"|" \startStaff %%%new
> example
>
>\time 2/2  \clef violin a4 b c d }
>
>
>   \new Staff \relative c' { \global \time 2/2 \clef violin e1 \bar "||"
>
>
> \stopStaff \time 1/64 s64 \bar "" \noBreak %%%white space after the example
> \startStaff \clef "petrucci-c1" s64 \bar"" \noBreak %%%new incipit
> \stopStaff s64 \bar"|" \startStaff %%%new example
>
>\time 2/2  \clef violin a4 b c d }
>
> >>
> }
>
>
> Thank you for your suggestions,
>
> Andrea
>
>
>
>
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/Midline-system-bracket-tp168813.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
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Midline system bracket

2014-11-18 Thread Jayaratna
Thank you, Pierre,

Very helpful, as always! :D
I'll try to adapt that snippet and get back if I have problems.

Andrea



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Midline-system-bracket-tp168813p168815.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: Midline system bracket

2014-11-18 Thread Jayaratna
Yes, I need help, sorry.

How would you make a bracket instead of a brace in this function of yours:

braceBar =
#(define-music-function (parser location bracExt)(number?)

  (define ((braceBarLine markup) grob)
(ly:stencil-combine-at-edge (ly:bar-line::print grob)
  X LEFT (grob-interpret-markup grob markup) 0.4))

  (define braceMarkup
(make-line-markup
  (list
(make-with-dimensions-markup '(0 . 0) '(0 . 0)
  (make-translate-markup ;(cons 0 ext)
(cons 0 (+ 0.2 (/ braceExt -10)))
(make-left-brace-markup (+ braceExt 20)))
  #{
  \once\override Score.BarLine #'hair-thickness = #'1.6
  \once \override Staff.BarLine #'stencil = #(braceBarLine braceMarkup)
  \bar "|"
  \move
  \once\override Score.RehearsalMark #'self-alignment-X = #LEFT
  #})

Thank you,
Andrea



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Midline-system-bracket-tp168813p168816.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