Re: Fragment with broken/torn/shredded staff lines

2009-01-09 Thread Mark Polesky
Valentin Villenave wrote:
> If you don't have an account, provide me with a title/description etc
> and I'll add it for you.

Valentin, 

Here's my completed snippet. I guess the title could be 
"Ripped/torn staff-lines" or something. I've included the 
description in a separate file; perhaps it's too wordy?
Let me know if it is. Incidentally, I've incorporated both
versions into one file, which I think is more convenient
for the LSR. I made some interesting improvements to the
zigzag code, such as setting the width automatically to
preserve the angle of the serrations, so it always looks
nice. Finally, feel free to make your own suggestions for
improvement...

Thanks!
- Mark


  <>\version "2.12.0"

%% preferences %%

tearWidth = #1
tearXext = #'(0 . 0)

zigzagDefaultYext = #'(-4 . 4)
zigzagDefaultSerrationCount = #5
zigzagTearLineWidth = #0.1
zigzagTearAngle = #90
zigzagTearXext = #'(0 . 0)


%% start definitions %%

tearGeneric =
  #(define-music-function (parser location lengths) (list?)
  #{
#(define (x-ext n)
  (cons (* (list-ref $lengths n) (/ tearWidth 4)) tearWidth))
#(define y-ext '(1.5 . 2.5))

\once \override Staff.BarLine #'stencil = #ly:text-interface::print
\once \override Staff.BarLine #'text = \markup
  \override #'(baseline-skip . 0) \with-color #white
  \column {
\filled-box #(x-ext 0) #y-ext #0
\filled-box #(x-ext 1) #y-ext #0
\filled-box #(x-ext 2) #y-ext #0
\filled-box #(x-ext 3) #y-ext #0
\filled-box #(x-ext 4) #y-ext #0
  }
\once \override Staff.BarLine #'layer = #1
\once \override Staff.BarLine #'X-extent = 
  #`(,(car tearXext) . ,(- (+ (cdr tearXext) tearWidth) 0.1))
\break
  #} )

tear =
  #(define-music-function (parser location) ()
  #{ 
\tearGeneric
  #(let loop ((unused '(0 1 2 3 4))
  (lengths '()))
(if (= (length lengths) 5)
lengths
(let* ((x (random (length unused)))
   (y (- (length unused) x))
   (z (list-ref unused x)))
 (loop (append (list-tail unused (+ x 1))
   (list-tail (reverse unused) y))
   (append lengths `(,z))
  #} )

tearCustom =
  #(define-music-function (parser location lengths) (list?)
  #{ \tearGeneric #$lengths #} )

zigzagTearCustom =
  #(define-music-function (parser location y-ext serrations)
(pair? number?)
  #{
#(define zigzagTearHeight (- (cdr $y-ext) (car $y-ext)))
#(define (deg2rad x) (* x (/ (* (atan 1) 4) 180)))
%% adjust width to maintain tear-angle:
#(define zigzagTearWidth 
   (/ zigzagTearHeight
  $serrations
  (* (tan (/ (deg2rad zigzagTearAngle) 2)) 2)))

\once \override Staff.BarLine #'stencil = #ly:text-interface::print
\once \override Staff.BarLine #'text = 
  \markup \with-dimensions
   #`(0 . ,zigzagTearWidth)
   #`(,(car $y-ext) . ,(cdr $y-ext))
\postscript

#(string-append "
/linewidth " (number->string zigzagTearLineWidth) " def
/height " (number->string zigzagTearHeight) " def
/serrations " (number->string $serrations) " def
/width " (number->string zigzagTearWidth) " def
/padding " (number->string (cdr zigzagTearXext)) " 2 width mul add def 

/serrationHeight height serrations div def
/y0 " (number->string (cdr $y-ext)) " def
/xn width def
/yn serrationHeight 2 div neg def

/plotAngle {
  xn yn rlineto
  xn neg yn rlineto
} def

/plotSerrations {
  serrations { plotAngle } repeat
} def

%% whiteout:
1 setgray
linewidth setlinewidth
0 y0 linewidth add moveto %% (whiteout staff-lines when y-exts are integers)
0 y0 lineto
plotSerrations
0 linewidth neg rlineto %% (whiteout staff-lines when y-exts are integers)
padding 0 rlineto
0 height linewidth 2 mul add rlineto %% (account for top and bottom linewidth)
padding neg 0 rlineto
fill stroke

%% draw serrations:
newpath
0 setgray
linewidth setlinewidth
0 y0 moveto
plotSerrations
stroke")

\once \override Staff.BarLine #'layer = #1
\once \override Staff.BarLine #'X-extent =
  #`(,(car zigzagTearXext) .
   ,(- (+ (cdr zigzagTearXext) zigzagTearWidth) 0.1))
\break
  #} )

zigzagTear = \zigzagTearCustom #zigzagDefaultYext #zigzagDefaultSerrationCount

%% end definitions %%

%% example of a custom tear-pattern:
tearRagged = \tearCustom #'(3 1 3 1 3)

music = { g'4 d'' b' d'' }
\header { tagline=##f }
\score { 
  {
%% random line-lengths:
\music \tear
  
%% set line-lengths on-the-fly:
\music \tearCustom #'(0 1 2 3 4)
  
%% define a custom tear-pattern if you want consistency (see above):
\music \tearRagged
  
%% default zigzag tear:
\music \zigzagTear 
  
%% set zigzag Y-extent and serration-count on-the-fly:
\transpose c c' \music \zigzagTearCustom #'(-4 . 7) #4
  }
  \layout {
indent = #0
ragged-right = ##t
  }
}
Here are some macros which can make a single staff appear
as though its right side has been t

Re: Fragment with broken/torn/shredded staff lines

2009-01-09 Thread Mark Polesky
Mark Polesky wrote:
> Here's my completed snippet. 

Accidentally sent the wrong file ... here's the final version.

Thanks again.
- Mark



  \version "2.12.0"

%% preferences %%

tearWidth = #1
tearXext = #'(0 . 0)

zigzagDefaultYext = #'(-4 . 4)
zigzagDefaultSerrationCount = #5
zigzagTearLineWidth = #0.1

zigzagTearAngle = #90 %% should be within 30-120, must be between 0-180
zigzagTearXext = #'(0 . 0)


%% start definitions %%

tearGeneric =
  #(define-music-function (parser location lengths) (list?)
  #{
#(define (x-ext n)
  (cons (* (list-ref $lengths n) (/ tearWidth 4)) tearWidth))
#(define y-ext '(1.5 . 2.5))

\once \override Staff.BarLine #'stencil = #ly:text-interface::print
\once \override Staff.BarLine #'text = \markup
  \override #'(baseline-skip . 0) \with-color #white
  \column {
\filled-box #(x-ext 0) #y-ext #0
\filled-box #(x-ext 1) #y-ext #0
\filled-box #(x-ext 2) #y-ext #0
\filled-box #(x-ext 3) #y-ext #0
\filled-box #(x-ext 4) #y-ext #0
  }
\once \override Staff.BarLine #'layer = #1
\once \override Staff.BarLine #'X-extent = 
  #`(,(car tearXext) . ,(- (+ (cdr tearXext) tearWidth) 0.1))
\break
  #} )

tear =
  #(define-music-function (parser location) ()
  #{ 
\tearGeneric
  #(let loop ((unused '(0 1 2 3 4))
  (lengths '()))
(if (= (length lengths) 5)
lengths
(let* ((x (random (length unused)))
   (y (- (length unused) x))
   (z (list-ref unused x)))
 (loop (append (list-tail unused (+ x 1))
   (list-tail (reverse unused) y))
   (append lengths `(,z))
  #} )

tearCustom =
  #(define-music-function (parser location lengths) (list?)
  #{ \tearGeneric #$lengths #} )

zigzagTearCustom =
  #(define-music-function (parser location y-ext serrations)
(pair? integer?)
  #{
#(define zigzagTearHeight (- (cdr $y-ext) (car $y-ext)))
#(define (deg2rad x) (* x (/ (* (atan 1) 4) 180)))
%% adjust width to maintain tear-angle:
#(define zigzagTearWidth 
   (/ zigzagTearHeight
  $serrations
  (* (tan (/ (deg2rad zigzagTearAngle) 2)) 2)))

\once \override Staff.BarLine #'stencil = #ly:text-interface::print
\once \override Staff.BarLine #'text = 
  \markup \with-dimensions
   #`(0 . ,zigzagTearWidth)
   #`(,(car $y-ext) . ,(cdr $y-ext))
\postscript

#(string-append "
/linewidth " (number->string zigzagTearLineWidth) " def
/height " (number->string zigzagTearHeight) " def
/serrations " (number->string $serrations) " def
/width " (number->string zigzagTearWidth) " def
/padding " (number->string (cdr zigzagTearXext)) " 2 width mul add def 

/serrationHeight height serrations div def
/y0 " (number->string (cdr $y-ext)) " def
/xn width def
/yn serrationHeight 2 div neg def

/plotAngle {
  xn yn rlineto
  xn neg yn rlineto
} def

/plotSerrations {
  serrations { plotAngle } repeat
} def

%% whiteout:
1 setgray
linewidth setlinewidth
0 y0 linewidth add moveto %% (whiteout staff-lines when y-exts are integers)
0 y0 lineto
plotSerrations
0 linewidth neg rlineto %% (whiteout staff-lines when y-exts are integers)
padding 0 rlineto
0 height linewidth 2 mul add rlineto %% (account for top and bottom linewidth)
padding neg 0 rlineto
fill stroke

%% draw serrations:
newpath
0 setgray
linewidth setlinewidth
0 y0 moveto
plotSerrations
stroke")

\once \override Staff.BarLine #'layer = #1
\once \override Staff.BarLine #'X-extent =
  #`(,(car zigzagTearXext) .
   ,(- (+ (cdr zigzagTearXext) zigzagTearWidth) 0.1))
\break
  #} )

zigzagTear = \zigzagTearCustom #zigzagDefaultYext #zigzagDefaultSerrationCount

%% end definitions %%

%% example of a custom tear-pattern:
tearRagged = \tearCustom #'(3 1 3 1 3)

music = { g'4 d'' b' d'' }
\header { tagline=##f }
\score { 
  {
%% random line-lengths:
\music \tear
  
%% set line-lengths on-the-fly:
%% - only nonnegative numbers less than or equal to 4
%% - these values will be scaled to match "tearWidth"
\music \tearCustom #'(0 1 2 3 4)
  
%% define a custom tear-pattern if you want consistency (see above):
\music \tearRagged
  
%% default zigzag tear:
\music \zigzagTear 
  
%% set zigzag Y-extent and serration-count on-the-fly:
%% - serration-count must be a positive integer
\transpose c c' \music \zigzagTearCustom #'(-4 . 7) #4
  }
  \layout {
indent = #0
ragged-right = ##t
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fragment with broken/torn/shredded staff lines

2009-01-09 Thread MonAmiPierrot



Mark Polesky wrote:
> 
> 
> Here's my completed snippet. 
> 

...this is what I love about open software: you just ask in a forum if it's
possibile to do something you need, and then comes some Mark and prepares it
for you (and everyone) in one week and to the last detail! And a lot of
people too find it interesting and useful... Thanks Mark, thanks open
forums, thanks Lilypond.

Piero



-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/Fragment-with-broken-torn-shredded-staff-lines-tp21220482p21369789.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Fragment with broken/torn/shredded staff lines

2009-01-09 Thread Dmytro O. Redchuk
2009/1/9 MonAmiPierrot :
> and then comes some Mark and prepares it
> for you (and everyone) in one week and to the last detail! And a lot of
> people too find it interesting and useful... Thanks Mark, thanks open
> forums, thanks Lilypond.
and the solution will be perfect, excellent, beautiful, re-usable
etc-etc-etc :-)

And you always can learn a lot from it.

This is what I love about open software.

Thanks to all :-)

>
> Piero

-- 
Dmytro O. Redchuk


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


Re: Fragment with broken/torn/shredded staff lines

2009-01-09 Thread Jonathan Kulp

Dmytro O. Redchuk wrote:

2009/1/9 MonAmiPierrot :

and then comes some Mark and prepares it
for you (and everyone) in one week and to the last detail! And a lot of
people too find it interesting and useful... Thanks Mark, thanks open
forums, thanks Lilypond.

and the solution will be perfect, excellent, beautiful, re-usable
etc-etc-etc :-)

And you always can learn a lot from it.

This is what I love about open software.

Thanks to all :-)


Piero




That's a really nice snippet, Mark!  Very cool. :)

Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: short instrument name setting

2009-01-09 Thread Kieren MacMillan

Hi James (et al).

There seems to still be some confusion about all this… There is  
certainly no need to "define a context for instrument names", as  
suggested by James:


You could define a context for instrument names, which is probably  
way more work than is necessary for most situations


I have attached a little tutorial, which shows various methods of  
showing or hiding an instrument name, both when that instrument name  
is defined inside the music variable and when it is not.


Hope this helps!
Kieren.

\version "2.12"
\include "english.ly"
#(set-global-staff-size 18)

\markup \wordwrap { We have defined two music variables: \typewriter "\musicWithName" and \concat { \typewriter "\musicWithoutName" . } }
musicWithName = \relative
{
  \tag #'score \set Staff.instrumentName = "Kazoo"
  c4 d e f | g1 \bar "|."
}
musicWithoutName = \relative
{
  c4 d e f | g1 \bar "|."
}

\markup \wordwrap { First, we show how to display or hide the instrument name using \concat { \typewriter "\musicWithName" . } Here is the default output: }
\score
{
  \musicWithName
}
\markup \wordwrap { Note that trying to override the \typewriter "Staff.instrumentName" property in the \typewriter "\with" block fails, because the \typewriter "\set Staff.instrumentName" command contained inside \typewriter "\musicWithName" “resets” the property \italic after the staff (music) really begins: }
\score
{
  \new Staff \with { instrumentName = "" } \musicWithName
}

\markup \wordwrap { In the \typewriter "\with" block of the Staff context, you \italic { can } eliminate the instrument name entirely, by setting the \typewriter "#'stencil" property to \concat { \typewriter "##f" : } }
\score
{
  \new Staff \with { \override InstrumentName #'stencil = ##f } \musicWithName
}
\markup \wordwrap { The same effect is obtained by completely removing the \typewriter Instrument_name_engraver from the Staff context: }
\score
{
  \new Staff \musicWithName
  \layout { \context { \Staff \remove "Instrument_name_engraver" } }
}

\markup \wordwrap { If you have “tagged” the \typewriter "\set Staff.instrumentName" command inside the musical content (unnecessarily mixing content with presentation), you can use \typewriter "\removeWithTag" to hide the instrument name: }
\score
{
  \new Staff \removeWithTag #'score \musicWithName
}

\markup \wordwrap { Now, we show how to display or hide the instrument name using \concat { \typewriter "\musicWithoutName" . } Here is the default output: }
\score
{
  \musicWithoutName
}

\markup \wordwrap { Of course, you can add the instrument name to the Staff context directly, in the \typewriter "\with" block (and this is probably the best method): }
\score
{
  \new Staff \with { instrumentName = "Kazoo" } \musicWithoutName
}
\markup \wordwrap { Alternatively, you can use a \typewriter "\set Staff.instrumentName" command within the staff music: }
\score
{
  \new Staff { \set Staff.instrumentName = "Kazoo" \musicWithoutName }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Auto-beaming rules

2009-01-09 Thread Trevor Daniels
I'm making some changes to the auto-beaming rules to take full advantage of 
beatGrouping wherever possible, since this will make the default beaming 
much easier to override.  I'd like to be sure LilyPond follows standard 
beaming practice (in so far as it is defined) wrt beat grouping as far as 
possible.  As I don't have access to Gardner Read or any other definitive 
book on engraving could someone who has please let me know what Read or any 
other authority has to say about this.


Many thanks

Trevor



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


LilyPondTool and jPedal preview

2009-01-09 Thread Johan Vromans
Hi,

With the newest LilyPondTool, jPedal does not remember the scaling
during reloads. So when editing a score and previewing at 250%, every
time after an update the score is shown at 100% again.

Unless my memory deceives me, with the previous version of
LilyPondTool jPedal kept the scaling during reloads.

Is this a bug?

-- Johan


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


Numbered Musical Notation

2009-01-09 Thread Yogi
I am currently researching to build a library of LilyPond files for
praise/worship songs. While musical notation is great for musicians, the same
can't be said for the local non-musical churchgoers here, who are somewhat more
accustomed to reading numbered musical notation.

Here's the article, if you don't know what I'm talking about
http://en.wikipedia.org/wiki/Numbered_musical_notation

So I'm wondering if LilyPond can support such notation and render it alongside a
musical notation, or on its own, without major changes in the input files. I've
done a little Googling and found no such program yet, but if anyone can point me
to the right direction, please do so :)

That's the end of my 2 cents. Thanks for reading.



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


verbatim (non-file) macro

2009-01-09 Thread Kieren MacMillan

Hi all,

Is there a \verbatim macro out there anywhere, i.e., one where

\markup \verbatim {
Hickory dickory dock,
I'm a \verbatim %%block%%.
}

would output

Hickory dickory dock,
I'm a \verbatim %%block%%.

[note that leading spaces are maintained].

Thanks for any pointers,
Kieren.


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


Re: stacked markup with parenthesis

2009-01-09 Thread Jean-Alexis Montignies

Hi All!

So does anyone have an idea how to achieve this (with or without  
parenteses) ?
I would do that for chord markups for tensions. In the most  
complicated case I need three stacked numbers i.e: (b9, #9, b13)


Thanks all and happy new year.

Le 14 avr. 08 à 15:11, lasconic a écrit :



Hi all !
I'm looking for a way to display a text on several lines with  
parenthesis

around the line (no bracket, round parenthesis). I tried \columns and
\center-align. That's ok to stack texts but how can I put  
parenthesis around

? (like \bracket does for squared bracket).
Thks a lot !

Example :

/\
|  A  |
|  B  |
\/
--
View this message in context: 
http://www.nabble.com/stacked-markup-with-parenthesis-tp16677616p16677616.html
Sent from the Gnu - Lilypond - User mailing list archive at  
Nabble.com.




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


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


RE: LilyPondTool and jPedal preview

2009-01-09 Thread Nick Payne
I see the same problem. I also have the problem with the newest version that
I have to make sure that jPedal is displaying the first page of the pdf
before I run Lilypond from Lilypondtool to update the pdf. If I don't do
that, then the odds are that when the jPedal window is made topmost after
Lilypond completes, jPedal, jEdit, and the console window all completely
lock up and the only recourse is to start Task Manager and kill the
javaw.exe process. This is with Suns latest JRE on Vista...

Nick

> -Original Message-
> From: lilypond-user-bounces+nick.payne=internode.on@gnu.org
> [mailto:lilypond-user-bounces+nick.payne=internode.on@gnu.org] On
> Behalf Of Johan Vromans
> Sent: Saturday, 10 January 2009 01:38
> To: lilypond-user@gnu.org
> Subject: LilyPondTool and jPedal preview
> 
> Hi,
> 
> With the newest LilyPondTool, jPedal does not remember the scaling
> during reloads. So when editing a score and previewing at 250%, every
> time after an update the score is shown at 100% again.
> 
> Unless my memory deceives me, with the previous version of
> LilyPondTool jPedal kept the scaling during reloads.
> 
> Is this a bug?



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


Re: stacked markup with parenthesis

2009-01-09 Thread James E. Bailey
It's crude, and there's probably a better parenthesis glyph, but it's  
a quick and dirty solution. And perhaps a different way to think.

\version "2.11.65"

\markup \vcenter {
  \fontsize #12 { ( }
\column {
  \line {a}
  \line {b}
  \line {c}
}
  \fontsize #12 { ) }
}

Am 09.01.2009 um 20:05 schrieb Jean-Alexis Montignies:


Hi All!

So does anyone have an idea how to achieve this (with or without  
parenteses) ?
I would do that for chord markups for tensions. In the most  
complicated case I need three stacked numbers i.e: (b9, #9, b13)


Thanks all and happy new year.

Le 14 avr. 08 à 15:11, lasconic a écrit :



Hi all !
I'm looking for a way to display a text on several lines with  
parenthesis

around the line (no bracket, round parenthesis). I tried \columns and
\center-align. That's ok to stack texts but how can I put  
parenthesis around

? (like \bracket does for squared bracket).
Thks a lot !

Example :

/\
|  A  |
|  B  |
\/
--
View this message in context: http://www.nabble.com/stacked-markup- 
with-parenthesis-tp16677616p16677616.html
Sent from the Gnu - Lilypond - User mailing list archive at  
Nabble.com.




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


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


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


How to produce a tiny example?

2009-01-09 Thread MonAmiPierrot

Hello, I need to use several example (90% are tiny fragments) of music, many
times just 2 or 3 measures of some melody with words for my musicological
thesis.
I'ma latex user and I DON'T want to use lilypond-book, because it's too
difficoult to implement in LyX 1.6.1 (the editor I use) if one uses some
complex external-pass packages such for example BibLaTeX.
Anyway, I can bypass the use of lilypond-book by using normal lilypond. And
here come my question:

I can insert a Lilypond file in my LyX document, but it get it "as it is"
and paste it in the page. That means it will be as big as a page.
One solution would be to play with page and music dimensions and then zoom
in/out the image in the document, but this is the dirty way.
The best solution is that Lilypond could produce a pdf or ps file that is
already clipped of all white space, left, right, top and bottom.
I found an old post where someone explain how to have the vertical space
clipped with this trick:

\header{
copyright = "" 
tagline = ""}

as well as
\paper{ragged-right=##t}
(or ragged-last=##t if the excerpt is longer than 1 line) 

but left and right space is still present and depends on the page size used
by Lilypond.

Is there a way to have Lilypond CLIP all blank space around and produce a
pdf or ps file of the same size of the music written?
Thanks

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/How-to-produce-a-tiny-example--tp21380265p21380265.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: How to produce a tiny example?

2009-01-09 Thread Jonathan Kulp

MonAmiPierrot wrote:

Hello, I need to use several example (90% are tiny fragments) of music, many
times just 2 or 3 measures of some melody with words for my musicological
thesis.
I'ma latex user and I DON'T want to use lilypond-book, because it's too
difficoult to implement in LyX 1.6.1 (the editor I use) if one uses some
complex external-pass packages such for example BibLaTeX.
Anyway, I can bypass the use of lilypond-book by using normal lilypond. And
here come my question:

I can insert a Lilypond file in my LyX document, but it get it "as it is"
and paste it in the page. That means it will be as big as a page.
One solution would be to play with page and music dimensions and then zoom
in/out the image in the document, but this is the dirty way.
The best solution is that Lilypond could produce a pdf or ps file that is
already clipped of all white space, left, right, top and bottom.
I found an old post where someone explain how to have the vertical space
clipped with this trick:

\header{
copyright = "" 
tagline = ""}


as well as
\paper{ragged-right=##t}
(or ragged-last=##t if the excerpt is longer than 1 line) 


but left and right space is still present and depends on the page size used
by Lilypond.

Is there a way to have Lilypond CLIP all blank space around and produce a
pdf or ps file of the same size of the music written?
Thanks

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 


Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 





Patrick Horgan and I wrote a program (actually a long shell script) that 
does exactly what you want, but it only works on Linux and Mac so far. 
Depending on your computer skills, you might be able to make it work on 
Windows using Cygwin--I've experimented a bit with this but I'm terrible 
on Windows and don't have the time to fiddle with it.  I'm attaching the 
script for you in case you want to try it out.  The main dependency is 
the netbpm suite of image manipulation tools, which is available freely 
for Windows.


Alternatively you could make a Linux partition or a Wubi Linux 
installation on your XP machine and run the program while booted into 
Linux.  Best of luck :)


Jon
--
Jonathan Kulp
http://www.jonathankulp.com
#!/bin/bash
#**#
# Script for making image files from lilypond source suitable for use as   #
# musical examples to insert in a document or web page.#
# Creator   - Jonathan Kulp#
# Scripting Guru- Patrick Horgan   #
#**#
# Change log
#
# 1.2   Added loop to image conversion to accommodate lilypond files that 
#   have more than one page. It loops until it has converted each of 
the 
#   png files output by Lilypond.  
# 1.1.1.12  Added final exit 0 status at end of file; updated manpage
# 1.1.1.11  Added jpg=jpeg, tif=tiff when values set at command line; added
#   echoes of netpbm activity and echoes at end of process.
# 1.1.1.10  -V implies -p ph
# 1.1.1.9   Added range check to getnumval ph
# 1.1.1.8   -p flag is now necessary for preview--image is not opened in 
#   viewer by default. jk
#   Quiet mode is really quiet as long as sufficient parameters are
#   set at command line for process to succeed. jk
# 1.1.1.7   Added -p flag: allows forced preview even in quiet mode. jk
#   Made quiet mode more quiet. jk
# 1.1.1.6   Changed the call to Lilypond on OSX by defining $PATH
#   early in the script. Changed Patrick's "Johnny Come Lately" to
#   "Major Contributor" :) and added a few echoes when formats,
#   resolutions, and so forth are set. We could remove these if you 
#   they're too much. jk
# 1.1.1.5   Added -w option to specify white background and avoid prompt for
#   transparency jk
# 1.1.1.4   Added lines to clean up png file if desired format is not png. jk
# 1.1.1.3   Changed list of Darwin viewers--Darwin doesn't have eog and evince
#   Added quiet mode "-q" (I think it works!) jk
# 1.1.1.2   Fixed handling of dirs and files with spaces ph
# 1.1.1.1   Added search for default list of viewers ph
# 1.1.1 Added -a, -V and much comments changed default viewer to xdg-open ph
# 1.1   Added checking of return codes so we could
#   abort if something failed. ph
# 1.0   Initial beta release jk
#~~~
# in quiet mode exits with various return codes from
# failures
# 40 - transparency not set and no default
# 41 - format not set and no default
# 42 - resolution not set and no default
# 43 -

Ties in alternatives

2009-01-09 Thread Johan Vromans
I'm quite sure I've seen this somewhere in the docs...

Given this snippet:

  \relative c' {
c4 c c c ~ |
\repeat volta 2 {
  c c c c  |
}
\alternative {
  { c c c c ~ | }
  { r c c c | }
}
c c c c |
  }

How can I get a tie after the 4th note of the 1st alternative?

-- Johan


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


Re: How to produce a tiny example?

2009-01-09 Thread Damian leGassick

dear MAP

(also doing my phD with LyX)

in the terminal (well, actually in textmate...) i do:

lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts  
filename.ly


which generates a clipped eps and pdf file which i then import into lyx

d

On 9 Jan 2009, at 21:01, Jonathan Kulp wrote:


MonAmiPierrot wrote:
Hello, I need to use several example (90% are tiny fragments) of  
music, many
times just 2 or 3 measures of some melody with words for my  
musicological

thesis.
I'ma latex user and I DON'T want to use lilypond-book, because it's  
too
difficoult to implement in LyX 1.6.1 (the editor I use) if one uses  
some

complex external-pass packages such for example BibLaTeX.
Anyway, I can bypass the use of lilypond-book by using normal  
lilypond. And

here come my question:
I can insert a Lilypond file in my LyX document, but it get it "as  
it is"

and paste it in the page. That means it will be as big as a page.
One solution would be to play with page and music dimensions and  
then zoom

in/out the image in the document, but this is the dirty way.
The best solution is that Lilypond could produce a pdf or ps file  
that is

already clipped of all white space, left, right, top and bottom.
I found an old post where someone explain how to have the vertical  
space

clipped with this trick:
\header{
copyright = "" tagline = ""}
as well as
\paper{ragged-right=##t}
(or ragged-last=##t if the excerpt is longer than 1 line) but left  
and right space is still present and depends on the page size used

by Lilypond.
Is there a way to have Lilypond CLIP all blank space around and  
produce a

pdf or ps file of the same size of the music written?
Thanks
-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies


Patrick Horgan and I wrote a program (actually a long shell script)  
that does exactly what you want, but it only works on Linux and Mac  
so far. Depending on your computer skills, you might be able to make  
it work on Windows using Cygwin--I've experimented a bit with this  
but I'm terrible on Windows and don't have the time to fiddle with  
it.  I'm attaching the script for you in case you want to try it  
out.  The main dependency is the netbpm suite of image manipulation  
tools, which is available freely for Windows.


Alternatively you could make a Linux partition or a Wubi Linux  
installation on your XP machine and run the program while booted  
into Linux.  Best of luck :)


Jon
--
Jonathan Kulp
http://www.jonathankulp.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user




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


Re: Ties in alternatives

2009-01-09 Thread -Eluze


Johan Vromans wrote:
> 
> I'm quite sure I've seen this somewhere in the docs...
> 
\laissezVibrer !?

hth
Eluze
-- 
View this message in context: 
http://www.nabble.com/Ties-in-alternatives-tp21381953p21382191.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: How to produce a tiny example?

2009-01-09 Thread MonAmiPierrot

Thanks John, but my programming skills are not above Lilypond users
average...
thanks anyway.
Piero


Jonathan Kulp-2 wrote:
> 
> MonAmiPierrot wrote:
>> Hello, I need to use several example (90% are tiny fragments) of music,
>> many
>> times just 2 or 3 measures of some melody with words for my musicological
>> thesis.
>> I'ma latex user and I DON'T want to use lilypond-book, because it's too
>> difficoult to implement in LyX 1.6.1 (the editor I use) if one uses some
>> complex external-pass packages such for example BibLaTeX.
>> Anyway, I can bypass the use of lilypond-book by using normal lilypond.
>> And
>> here come my question:
>> 
>> I can insert a Lilypond file in my LyX document, but it get it "as it is"
>> and paste it in the page. That means it will be as big as a page.
>> One solution would be to play with page and music dimensions and then
>> zoom
>> in/out the image in the document, but this is the dirty way.
>> The best solution is that Lilypond could produce a pdf or ps file that is
>> already clipped of all white space, left, right, top and bottom.
>> I found an old post where someone explain how to have the vertical space
>> clipped with this trick:
>> 
>> \header{ 
>> copyright = "" 
>> tagline = ""}
>> 
>> as well as
>> \paper{ragged-right=##t}
>> (or ragged-last=##t if the excerpt is longer than 1 line) 
>> 
>> but left and right space is still present and depends on the page size
>> used
>> by Lilypond.
>> 
>> Is there a way to have Lilypond CLIP all blank space around and produce a
>> pdf or ps file of the same size of the music written?
>> Thanks
>> 
>> -
>> Piero Faustini, PhD student
>> Dipartimento di Scienze Storiche
>> Sezione musicologia
>> Università di Ferrara 
>> 
>> Software used:
>> - LyX 1.6.1 on WinXP; EndNote & JabRef
>> - MikTex
>> - LaTeX class: Koma book
>> - Lilypond and MusixTeX for example excerpts
>> - BibLaTeX for bibliographies 
>> 
>> 
> 
> Patrick Horgan and I wrote a program (actually a long shell script) that 
> does exactly what you want, but it only works on Linux and Mac so far. 
> Depending on your computer skills, you might be able to make it work on 
> Windows using Cygwin--I've experimented a bit with this but I'm terrible 
> on Windows and don't have the time to fiddle with it.  I'm attaching the 
> script for you in case you want to try it out.  The main dependency is 
> the netbpm suite of image manipulation tools, which is available freely 
> for Windows.
> 
> Alternatively you could make a Linux partition or a Wubi Linux 
> installation on your XP machine and run the program while booted into 
> Linux.  Best of luck :)
> 
> Jon
> -- 
> Jonathan Kulp
> http://www.jonathankulp.com
> 
> #!/bin/bash
> #**#
> # Script for making image files from lilypond source suitable for use as  
> #
> # musical examples to insert in a document or web page.   
>#
> # Creator - Jonathan Kulp#
> # Scripting Guru  - Patrick Horgan   #
> #**#
> # Change log
> #
> # 1.2 Added loop to image conversion to accommodate lilypond files
> that 
> # have more than one page. It loops until it has converted each of
> the 
> # png files output by Lilypond.  
> # 1.1.1.12  Added final exit 0 status at end of file; updated manpage
> # 1.1.1.11  Added jpg=jpeg, tif=tiff when values set at command line;
> added
> # echoes of netpbm activity and echoes at end of process.
> # 1.1.1.10  -V implies -p ph
> # 1.1.1.9   Added range check to getnumval ph
> # 1.1.1.8   -p flag is now necessary for preview--image is not opened in 
> # viewer by default. jk
> # Quiet mode is really quiet as long as sufficient parameters are
> # set at command line for process to succeed. jk
> # 1.1.1.7   Added -p flag: allows forced preview even in quiet mode. jk
> #   Made quiet mode more quiet. jk
> # 1.1.1.6   Changed the call to Lilypond on OSX by defining $PATH
> # early in the script. Changed Patrick's "Johnny Come Lately" to
> # "Major Contributor" :) and added a few echoes when formats,
> # resolutions, and so forth are set. We could remove these if you 
> # they're too much. jk
> # 1.1.1.5   Added -w option to specify white background and avoid prompt
> for
> # transparency jk
> # 1.1.1.4   Added lines to clean up png file if desired format is not png.
> jk
> # 1.1.1.3   Changed list of Darwin viewers--Darwin doesn't have eog and
> evince
> # Added quiet mode "-q" (I think it works!) jk
> # 1.1.1.2   Fixed handling of dirs and files with spaces ph
> # 1.1.1.1   Added search for default list of viewers ph
> # 1.1.1 Added -a, -V and much comments changed default viewer to
> xdg-open ph
> # 1.1   Added checkin

Re: How to produce a tiny example?

2009-01-09 Thread MonAmiPierrot



Damian leGassick wrote:
> 
> dear MAP
> 
> (also doing my phD with LyX)
> 
> in the terminal (well, actually in textmate...) i do:
> 
> lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts  
> filename.ly
> 
> which generates a clipped eps and pdf file which i then import into lyx
> 
Seems what I need, but I don't want to manually process it and then import
the image. I want it perfectly clean: only the .ly files.
Is there a way to add some code in the .ly file just to tell him to be
treated in that manner?
Or, is there a way to tell Lilypond to act like this by default? (Cause it
seems difficoult to tell LyX to launch Lilypond with those options, isn't
it?)
Thanks.
Piero

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/How-to-produce-a-tiny-example--tp21380265p21382943.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: How to produce a tiny example?

2009-01-09 Thread Graham Percival
On Fri, Jan 09, 2009 at 12:48:30PM -0800, MonAmiPierrot wrote:
> 
> The best solution is that Lilypond could produce a pdf or ps file that is
> already clipped of all white space, left, right, top and bottom.

> Is there a way to have Lilypond CLIP all blank space around and produce a
> pdf or ps file of the same size of the music written?

NR 3.4.1 Extracting fragments of music
  and maybe
AU 4.6 Inserting LilyPond output into other programs

- Graham


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


Re: How to produce a tiny example?

2009-01-09 Thread Jonathan Kulp

MonAmiPierrot wrote:



Damian leGassick wrote:

dear MAP

(also doing my phD with LyX)

in the terminal (well, actually in textmate...) i do:

lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts  
filename.ly


which generates a clipped eps and pdf file which i then import into lyx


Seems what I need, but I don't want to manually process it and then import
the image. I want it perfectly clean: only the .ly files.
Is there a way to add some code in the .ly file just to tell him to be
treated in that manner?
Or, is there a way to tell Lilypond to act like this by default? (Cause it
seems difficoult to tell LyX to launch Lilypond with those options, isn't
it?)
Thanks.
Piero



I know you said you don't want to use lilypond-book for this, but you 
really ought to give it a try.  It works great.  It's the only way I 
know of to use just the lilypond code for musical examples as you seem 
to want.  I have it working beautifully with BibTeX for the 
bibliography, too.  I don't know how to use LyX with lilypond-book, but 
it doesn't take long to get used to the LaTeX syntax and it's very easy 
just to use a text editor instead.


Best,

Jon
--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: How to produce a tiny example?

2009-01-09 Thread MonAmiPierrot



Damian leGassick wrote:
> 
> dear MAP
> 
> (also doing my phD with LyX)
> 
> in the terminal (well, actually in textmate...) i do:
> 
> lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts  
> filename.ly
> 
> which generates a clipped eps and pdf file which i then import into lyx
> 
Seems what I need, but I don't want to manually process it and then import
the image. I want it perfectly clean: only the .ly files.
Is there a way to add some code in the .ly file just to tell him to be
treated in that manner?
Or, is there a way to tell Lilypond to act like this by default? (Cause it
seems difficoult to tell LyX to launch Lilypond with those options, isn't
it?)
Thanks.
Piero

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/How-to-produce-a-tiny-example--tp21380265p21383885.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: How to produce a tiny example?

2009-01-09 Thread MonAmiPierrot



Graham Percival-3 wrote:
> 
> 
> NR 3.4.1 Extracting fragments of music
>   and maybe
> AU 4.6 Inserting LilyPond output into other programs
> 
> 
Are you pointing to some docs?

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/How-to-produce-a-tiny-example--tp21380265p21383903.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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



Re: How to produce a tiny example?

2009-01-09 Thread MonAmiPierrot



Jonathan Kulp-2 wrote:
> 
>  I have it working beautifully with BibTeX for the 
> bibliography, too.  ...  and it's very easy 
> just to use a text editor instead.
> 

Thanks, but I use BibLaTeX, which is a complex package which create perfect
bibliographies. I don't want to be unpolite, but it stands to BibTeX as
Lilypond stands to pen & ink. But is quite tricky to have it use under LyX.
Why LyX? Because it will be the de facto standard for LaTeX users,
expecially for humanities. As for the LaTeX code... Yes, as all Latex users,
I don't want WYSIWYG, just WYSIWIM (Mean), and all those "%", "&" "\" are
definitely not what I mean. In LyX you exactly MEAN what you see.
But don't get me wrong: I know lilypond-book is very powerful. But I'm
waiting for it to be implemented in LyX. Meanwhile, I want all my examples
being compiled and inserted on-the-fly, just as lilypond-book would do, with
some more effort in shrinking, cutting etc. If only I could CLIP white
space
Thanks again, anyway
Piero

-
Piero Faustini, PhD student
Dipartimento di Scienze Storiche
Sezione musicologia
Università di Ferrara 

Software used:
- LyX 1.6.1 on WinXP; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond and MusixTeX for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/How-to-produce-a-tiny-example--tp21380265p21383997.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: How to produce a tiny example?

2009-01-09 Thread Patrick McCarty
On Fri, Jan 9, 2009 at 4:13 PM, MonAmiPierrot  wrote:
>
> Damian leGassick wrote:
>>
>> dear MAP
>>
>> (also doing my phD with LyX)
>>
>> in the terminal (well, actually in textmate...) i do:
>>
>> lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts
>> filename.ly
>>
>> which generates a clipped eps and pdf file which i then import into lyx
>>
> Seems what I need, but I don't want to manually process it and then import
> the image. I want it perfectly clean: only the .ly files.
> Is there a way to add some code in the .ly file just to tell him to be
> treated in that manner?

Yes, you can add the following lines to your LY file:

#(ly:set-option 'backend 'eps)
#(ly:set-option 'gs-load-fonts #f)
#(ly:set-option 'include-eps-fonts #t)

You can use ly:set-option for any of the -d options.

HTH,
Patrick


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


Re: How to produce a tiny example?

2009-01-09 Thread Jonathan Kulp

MonAmiPierrot wrote:



Graham Percival-3 wrote:


NR 3.4.1 Extracting fragments of music
  and maybe
AU 4.6 Inserting LilyPond output into other programs



Are you pointing to some docs?


He's pointing to Notation Reference and Application Usage.

Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: How to produce a tiny example?

2009-01-09 Thread Martin Tarenskeen
On Fri, Jan 09, 2009 at 04:13:01PM -0800, MonAmiPierrot wrote:
> > lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts  
> > filename.ly
> > 
> > which generates a clipped eps and pdf file which i then import into lyx

> Or, is there a way to tell Lilypond to act like this by default? (Cause it
> seems difficoult to tell LyX to launch Lilypond with those options, isn't
> it?)

Is it ? I think lyx can be configured for this. I'll take a look at it. 
The subject has my interest too.

- 

Martin


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


Re: notes for toms and floortoms

2009-01-09 Thread Mark Polesky
Herman wrote:

> ... an open circle with a line through it. ...
> I looked in lilypond if this symbol is available,  but
> I coudn't find it. Is there a way to generate it?

Yes. Using scheme and postscript, you can generate
your own stencil and substitute your stencil in 
place of the default notehead (see the attached file).

\override NoteHead #'stencil = #circSlashStil

Although to be honest, I don't know how to make this
work in drummode, which (obviously) is a requirement.

After glancing at the docs (NR 2.5.1)...
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Common-notation-for-percussion#Custom-percussion-staves
... it looks likeDrumStaff.drumStyleTable expects
glyph-names, and I don't know how to make a glyph-
name for my stencil.

Does anyone know? I think I've done the hardest part,
coding the stencil, and the last step ought to be
trivial. I just can't figure it out.

- Mark



  \version "2.12.0"

#(define (circSlashStil grob)
  (let* ((line-thickness (ly:staff-symbol-line-thickness grob))
 (width (+ line-thickness 1))
 (stem-thickness (* line-thickness 1.3))
 (radius (/ (- width stem-thickness) 2)))
(ly:grob-set-property! grob 'stencil
  (ly:make-stencil (list 'embedded-ps
(string-append "
  /line-thickness " (number->string line-thickness) " def
  /stem-thickness " (number->string stem-thickness) " def
  /radius " (number->string radius) " def
  /width " (number->string width) " def
  /half-width width 2 div def
  /x0 half-width def
  /y0 0 def
  /x1 width stem-thickness 2 div sub def
  /y1 half-width stem-thickness 2 div sub def
  /x2 stem-thickness 2 div def
  /y2 half-width neg stem-thickness 2 div add def

  gsave
  currentpoint translate
  stem-thickness setlinewidth
  newpath
  x0 y0 radius 0 360 arc
  stroke

  newpath
  1 setlinecap
  x1 y1 moveto
  x2 y2 lineto
  stroke
  grestore"))
(cons 0 width)
(cons 0 0)

tomNoteHeads = \override NoteHead #'stencil = #circSlashStil
normalNoteHeads = \revert NoteHead #'stencil

\header { tagline=##f }
\relative c'' {
  \stemUp
  c16 c c \tomNoteHeads c
  c \normalNoteHeads c c \tomNoteHeads a \normalNoteHeads
  <\tweak #'stencil #circSlashStil a> c c <\tweak #'stencil #circSlashStil f,>
}
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [LilyKDE] Re: [ANN] Frescobaldi 0.7 released, a new LilyPond music editor

2009-01-09 Thread Wilbert Berendsen
Op dinsdag 6 januari 2009, schreef Wilbert Berendsen:
> Not yet, but you can configure one. Rightclick the option in the menu and
> choose "Configure shortcut..."
>
> I just did't decide which shortcuts to use by default... :-)

SVN and upcoming 0.7.3 have nice shortcuts now :-)

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/


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


Re: Ties in alternatives

2009-01-09 Thread Mark Polesky
-Eluze wrote:
> Johan Vromans wrote:
> > 
> > I'm quite sure I've seen this somewhere in the docs...
> > 
> \laissezVibrer !?

Yes, but I'm bothered by this semantic limitation.
I wrote an exhaustive feature-request regarding this
on -devel, but (: interestingly :) nobody replied!

http://lists.gnu.org/archive/html/lilypond-devel/2008-12/msg00403.html

- Mark



  


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


Re: Translating the Music Glossary (Was: Newbie question: tie between a and b)

2009-01-09 Thread Kurt Kroon
On 2009/01/05 3:02 AM, "Zoltan Selyem"  wrote:

> 
> Hi,

Hi

I'm Kurt: I maintain the Glossary.

> On Mon, 5 Jan 2009, Mats Bengtsson wrote:
>> I'm afraid that the Music Glossary included in the LilyPond
>> documentation does not yet include Hungarian, perhaps you would
>> be interested in helping out with that?

I didn't anticipate adding Hungarian for a (potentially long) time.

> I'm interested in helping with including Hungarian terms in the
> Music Glossary! Though I'm not sure how much time I will have
> for it, but I certainly would like to be part of that work.

Here's how much work you can count on:

* There are 326 terms -- about 30 just redirect to the "standard" term.

* I sometimes add more -- sometimes, the folks who are working on the
documentation ask me to add terms.  I decide whether the term merits
inclusion (or not) ... or if it should just be a redirect to an existing
term.

* There is a table that lists note duration names from longa (quadruple
whole note and its rest counterpart) to two-hundred-fifty-sixth note (and
rest)

* There is another table of pitch names from c to b (h, if you're German or
Scandinavian) with all sharp and flat variants (including enharmonics, like
e-sharp = f and f-flat = e)

* If possible, provide a bibliographical reference to a reputable Hungarian
music reference.  For comparison, please see the list of current references
at the end of the Glossary, in the section titled "Literature Used":
http://lilypond.org/doc/v2.12/Documentation/user/music-glossary/Pitch-names#
Literature-used

* Translators only translate terms -- entries are not currently provided in
other languages.

> The question is:
> Where and in what format should I send the Hungarian terms?

If I accept your offer, you would send them directly to me ... but I haven't
decided whether to accept your offer.

> I suppose the Music Glossary is made with lilypond-book.

No: it is made with texinfo and texi2html (customized).

> Is the source file available?

Yes -- but as the designated Glossary maintainer, I'm responsible for
preparing and submitting *all* glossary updates.

Regards,
Kurt




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


Re: How to produce a tiny example?

2009-01-09 Thread Martin Tarenskeen
On Fri, Jan 09, 2009 at 04:13:01PM -0800, MonAmiPierrot wrote:

> > in the terminal (well, actually in textmate...) i do:
> > 
> > lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts  
> > filename.ly
> > 
> > which generates a clipped eps and pdf file which i then import into lyx
> > 

> Or, is there a way to tell Lilypond to act like this by default? (Cause it
> seems difficoult to tell LyX to launch Lilypond with those options, isn't
> it?)

In Lyx go to Tools->Preferences->File Handling->Converters and add the 
mentioned options to the different Lilypond converters. ( BTW: Is -b eps 
the same as -dbackend=eps ? ). Then click on the "modify" button 
"append" and "save". ( Maybe this is not all needed. )

In your Lilypond source don't forget to add 

\header { tagline=##f }

and don't use any other stuff that will be printed at the bottom of the 
page: You will always get a full page if you forget that.

-- 

Martin Tarenskeen


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


Re: Minimum width for a bar

2009-01-09 Thread Mark Polesky
> \once\override Slur #'minimum-length = #16

One thing I noticed is that you're using "Slur"
instead of "Tie". Try changing it, maybe that'll
do the trick? Hope so.

- Mark



  


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


Snippets documentation

2009-01-09 Thread Nick Payne
The html version of the snippets documentation (2.12.1, both the big page
and normal versions) doesn't have links to the individual snippets. i.e.
Every indivual snippet link under Pitches in the index at
http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/index links to
http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/Pitches#Pitches
instead of the individual snippet. Same thing for snippets under Rhythms,
Expression Marks, etc.

The individual snippet bookmarks in the PDF version *do* link to the
individual snippet.

Nick



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


RE: Minimum width for a bar

2009-01-09 Thread Nick Payne
Thanks. The suggestion from James Bailey of using \override
Score.PaperColumn #'keep-inside-line = ##t fixed the layout problem.

Nick

> -Original Message-
> From: Mark Polesky [mailto:markpole...@yahoo.com]
> Sent: Saturday, 10 January 2009 18:15
> To: Nick Payne; Andrew Hawryluk; James E. Bailey
> Cc: lilypond-user@gnu.org
> Subject: Re: Minimum width for a bar
> 
> > \once\override Slur #'minimum-length = #16
> 
> One thing I noticed is that you're using "Slur"
> instead of "Tie". Try changing it, maybe that'll
> do the trick? Hope so.
> 
> - Mark
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.5/1884 - Release Date:
> 09/01/2009 19:59



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