timeSig and clef changes

2008-12-13 Thread Stefan Thomas
Dear lilypond-users,
I found out that in a timeig-context the time-signature too far on the left
side, if there are clef-changes. In the below quoted snippet the second
score-block looks good, but the first doesn't.
How can I avoid it?
Thanks for Your help!
Stefan

\version 2.11.60

\layout{
 \context {
   \type Engraver_group
   \consists Time_signature_engraver
   \consists Text_spanner_engraver
   \consists Text_engraver
   \consists Dynamic_engraver
   \consists Axis_group_engraver
   \name TimeSig
   \override TimeSignature #'font-size = #3
   \override TimeSignature #'break-align-symbol = ##f
   \override TimeSignature #'X-offset =
   #ly:self-alignment-interface::x-aligned-on-self
   \override TimeSignature #'self-alignment-X = #0
   \override TimeSignature #'after-line-breaking =
#shift-right-at-line-begin
 }
 \context {
   \Score \accepts TimeSig
 }
 \context { \Staff
   \remove Time_signature_engraver
 }
}

timeSignatures = { \time 2/4 s2 \mark \default \time 3/4 s2. \time 4/4 s1 }

\score {
  
\override Score.BarNumber #'fontsize = #2
\set Score.currentBarNumber = #150
  \new TimeSig \timeSignatures
 \new Staff \relative { c'2 c2.  c1 }
 \new Staff { c'2 \clef bass  a2.\clef treble  a'1}
  
}

\score {

\override Score.BarNumber #'fontsize = #2
\set Score.currentBarNumber = #150
\new TimeSig \timeSignatures
   \new Staff \relative { c'2 c2.  c1 }
   \new Staff { c'2 a2.a'1}

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


sheetprinting

2008-12-13 Thread Julian Brescanu
Hello,
I`d like to print some sheets (songs with words), thats to say to transfer 
manuscripts in digital form. Which programm should I use?
Regtards,
Julian Brescanu



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


Re: sheetprinting

2008-12-13 Thread fiëé visuëlle

Am 2008-12-13 um 11:52 schrieb Julian Brescanu:

I`d like to print some sheets (songs with words), thats to say to  
transfer

manuscripts in digital form. Which programm should I use?


Which answer do you expect if you ask on the LilyPond mailing list?

There are applications that make somg sheets easier than LilyPond,
but I know of none that makes them prettier / more readable.


Regtards,


Should that mean retarted regards? (sorry, couldn't resist)


Greetlings from Lake Constance
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)




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


Re: sheetprinting

2008-12-13 Thread Johan Vromans
Julian Brescanu bresc...@yahoo.com writes:

 I`d like to print some sheets (songs with words), thats to say to transfer 
 manuscripts in digital form. Which programm should I use?

You may wish to take a look at chordii.sourceforge.net .

-- Johan
   Chord is alive! http://chordii.sourceforge.net


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


Re: MediaWiki-Extension for Lilypond

2008-12-13 Thread Rob Canning



  lilypond -d safe foo.ly
works here.

Cheers,
- Graham
  

i guess the lilypond mediawiki extension is broken?
in my wiki page i get the error

*LilyPond error:*
//usr/local//lilypond/usr/bin/lilypond: unrecognized option: `--safe'


/same problem with the below line i guess.
   
 $cmd = $wgLilypond .

--safe --backend=eps --format=png --header=texidoc  .
   escapeshellarg($lyFile) .  21;
cheers

rob



On Sun, Dec 07, 2008 at 03:05:07PM +0100, Hajo Dezelski wrote:
  

   Thanks for the hint. Still have a problem. As far as I understood I have
   to take the parameter -d and an option . But how is the correcht syntax?
   lilypond -d safe
   lilypond -d safe (#f)
   liypond -d #f

   I couldnt get it to work

   Cheers Hajo

   2008/12/7 Graham Percival gra...@percival-music.ca

 On Sat, Dec 06, 2008 at 11:14:50PM +0100, Hajo Dezelski wrote:
 
 I am using v. 11-64.
 
 I am not a php-programmer. Is there a solution to this problem or
 should I
 drop the idea using lilypond within the mediawiki?

 Yes, there is a solution.  That solution is to run
  lilypond --help
 and/or read the News document of lilypond.

 Cheers,
 - Graham

   --
   ---
   ... indessen wandelt harmlos droben das Gestirn




___
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: x y position on page of multiple fragments

2008-12-13 Thread Rob Canning

thank you all for your various suggestions
i will have a detailed look at it all later
cheers
rob

Kieren MacMillan wrote:

Hi Rob,


i am trying to do a new version of a piece i originally made in finale
its a grid type mobile structure type score
what i need is someone to point me at the documentation that would 
help me
make multiple musical fragments and then distribute them on a 
single page in
a number of configurations - a grid to start with - but once i know 
how to
make little musical snips of set dimentions and move them on the x 
y axis of

the page should be easy from there..


Remember that:
1.  \markup can include a \score;
2.  \markup can be enclosed in a \box;
3.  \markup can be \translate-d anywhere from its original position.

In other words, look in the (2.11.65) docs for the \markup functions 
to do that.


HTH!
Kieren.


there is a picture of the score i made in finale on this page about 
halfway

down
http://www.robcanning.info/melencolia.html

i am guessing this kind of work is going to be alot easier with 
lilypond
i just need a pointer where to start in the docs 
lilypond-user@gnu.orghttp://lists.gnu.org/mailman/listinfo/lilypond-user 





Hi Rob,

The NonMusicalPaperColumn grob can be quite useful for this sort of 
thing.


Take a look at NR 4.4.3 Explicit staff and system positioning and 
try out
the X-offset and Y-offset attributes. Note that 
NonMusicalPaperColumn lives
only in the Score context. And note that you use \override to 
override the

grob in the \with block of the Score or in your \layout block but,
strangely, if you override the grob on the fly in your note entry 
you must

use the unusual \overrideProperty command.


Trevor.




--
Trevor Bača
trevorb...@gmail.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






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


Re: Horizontal Alignment of Numbers in Table of Contents

2008-12-13 Thread Simon J Mackenzie
Hi Nicolas,
Thank you for your help and an elegant solution. Would have been very
lost otherwise.

Very much appreciated.

Simon

Sample result attached. The language is Thai


On Fri, 12 Dec 2008 23:37:07 +0100, Nicolas Sceaux
nicolas.sce...@free.fr said:
 Le 12 déc. 08 à 07:59, Simon J Mackenzie a écrit :
 
  Hi
 
  I have a table of contents which contains the following...
 
  1.  Joy to the  
  Universe1
  56. Woe Beyond Hope3
  112.  
  Frankly 
  9
  2001. Same Old Same Old  26
  [...]
 
  Is it possible to right align the preceding numbers in each \tocItem  
  entry above
 
 
 One possible trick is to add space at the left of the number, for  
 instance:
 
 \version 2.11.65
 
 #(define-markup-command (toc-number layout props text) (string?)
(let* ((gauge-stencil (interpret-markup layout props .))
(x-ext (ly:stencil-extent gauge-stencil X))
(y-ext (ly:stencil-extent gauge-stencil Y))
   (stencil (interpret-markup layout props text))
   (gap (- (interval-length x-ext)
   (interval-length (ly:stencil-extent stencil X)
  (interpret-markup layout props
(markup #:concat (#:hspace gap text #:hspace 1)
 
 numTocItem =
 #(define-music-function (parser location num text) (string? string?)
 Add a line to the table of content, using the  
 @code{tocItemMarkup} paper
 variable markup
 (add-toc-item! 'tocItemMarkup (markup #:small #:line (#:toc-number  
 num text
 
 \markuplines \table-of-contents
 
 \numTocItem 1. Joy to the Universe
 \numTocItem 56. Woe Beyond Hope
 \numTocItem 112. Frankly
 \numTocItem 2001. Same Old Same Old
 \markup \null
 
 
 nicolas
 
--

Reverend Simon J Mackenzie simon.macken...@lca.org.au

LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006



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


Re: MediaWiki-Extension for Lilypond

2008-12-13 Thread Graham Percival
On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote:

   lilypond -d safe foo.ly
 works here.

 i guess the lilypond mediawiki extension is broken?
 in my wiki page i get the error

 /same problem with the below line i guess.
 $cmd = $wgLilypond .
 --safe --backend=eps --format=png --header=texidoc  .
escapeshellarg($lyFile) .  21;

I already told you the answer.

Please read the command-line argument I wrote, and compare it to
the command-line argument you used.  Also read the NEWS document
for the version of lilypond that you are using.

- Graham


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


Re: MediaWiki-Extension for Lilypond

2008-12-13 Thread Rob Canning

Graham Percival wrote:

On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote:

  lilypond -d safe foo.ly
works here.


i guess the lilypond mediawiki extension is broken?
in my wiki page i get the error

/same problem with the below line i guess.
$cmd = $wgLilypond .
--safe --backend=eps --format=png --header=texidoc  .
   escapeshellarg($lyFile) .  21;


I already told you the answer.

Please read the command-line argument I wrote, and compare it to
the command-line argument you used.  Also read the NEWS document
for the version of lilypond that you are using.

- Graham




i am just pointing out that the lilypond extension 
http://www.mediawiki.org/wiki/Extension:LilyPond

 has errors
i am not the author of this php script just a bug reporter backing up 
the report made by the last poster to this list

thanks
rob



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


Re: MediaWiki-Extension for Lilypond

2008-12-13 Thread Rob Canning

Graham Percival wrote:

On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote:
  

  lilypond -d safe foo.ly
works here.

  

i guess the lilypond mediawiki extension is broken?
in my wiki page i get the error

/same problem with the below line i guess.
$cmd = $wgLilypond .
--safe --backend=eps --format=png --header=texidoc  .
   escapeshellarg($lyFile) .  21;



I already told you the answer.

Please read the command-line argument I wrote, and compare it to
the command-line argument you used.  Also read the NEWS document
for the version of lilypond that you are using.

- Graham


  
i am just pointing out that the lilypond extension 
http://www.mediawiki.org/wiki/Extension:LilyPond

has errors
i am not the author of this php script just a bug reporter backing up 
the report made by the last poster to this list

thanks
rob


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


Re: Horizontal Alignment of Numbers in Table of Contents. Sample result attached!

2008-12-13 Thread Simon J Mackenzie
Sample result attached.


On Sat, 13 Dec 2008 21:20:40 +0700, Simon J Mackenzie
smac...@fastmail.fm said:
 Hi Nicolas,
 Thank you for your help and an elegant solution. Would have been very
 lost otherwise.
 
 Very much appreciated.
 
 Simon
 
 Sample result attached. The language is Thai
 
 
 On Fri, 12 Dec 2008 23:37:07 +0100, Nicolas Sceaux
 nicolas.sce...@free.fr said:
  Le 12 déc. 08 à 07:59, Simon J Mackenzie a écrit :
  
   Hi
  
   I have a table of contents which contains the following...
  
   1.  Joy to the  
   Universe1
   56. Woe Beyond Hope3
   112.  
   Frankly 
   9
   2001. Same Old Same Old  26
   [...]
  
   Is it possible to right align the preceding numbers in each \tocItem  
   entry above
  
  
  One possible trick is to add space at the left of the number, for  
  instance:
  
  \version 2.11.65
  
  #(define-markup-command (toc-number layout props text) (string?)
 (let* ((gauge-stencil (interpret-markup layout props .))
   (x-ext (ly:stencil-extent gauge-stencil X))
   (y-ext (ly:stencil-extent gauge-stencil Y))
(stencil (interpret-markup layout props text))
(gap (- (interval-length x-ext)
(interval-length (ly:stencil-extent stencil X)
   (interpret-markup layout props
 (markup #:concat (#:hspace gap text #:hspace 1)
  
  numTocItem =
  #(define-music-function (parser location num text) (string? string?)
  Add a line to the table of content, using the  
  @code{tocItemMarkup} paper
  variable markup
  (add-toc-item! 'tocItemMarkup (markup #:small #:line (#:toc-number  
  num text
  
  \markuplines \table-of-contents
  
  \numTocItem 1. Joy to the Universe
  \numTocItem 56. Woe Beyond Hope
  \numTocItem 112. Frankly
  \numTocItem 2001. Same Old Same Old
  \markup \null
  
  
  nicolas
  
--

Reverend Simon J Mackenzie simon.macken...@lca.org.au

LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006

attachment: toc.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


4 bar repeat

2008-12-13 Thread Tim Sawyer
Hi,

I'd like to produce a four bar percent repeat, is this possible in 2.10?

I've tried this but it doesn't work, but instead gives me four blank bars.  
There are four bars of 4/4 notes between the inner curly braces.

up = \drummode { \repeat percent 2 {sn4 sn4 sn4 sn4 sn8 sn8 sn8 sn8 sn4 sn4 
sn4 sn8 sn8 sn4 sn8 sn8 sn8 sn8 r8 sn8 sn4 sn4} \bar |. }

If I shorten the music down to two bars worth, then I get a correct two bar % 
repeat.

Cheers,

Tim.


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


Re: MediaWiki-Extension for Lilypond

2008-12-13 Thread Hajo Dezelski

Hello,

as already posted, the solution is:
In the Lilypond.php file you have to change the parameters:

$cmd = $wgLilypond
-d safe -d eps --format=png ---header=textidoc 

Hajo


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


Re: 4 bar repeat

2008-12-13 Thread Neil Puttock
Hi Tim,

2008/12/13 Tim Sawyer list.lilyp...@calidris.co.uk:

 I'd like to produce a four bar percent repeat, is this possible in 2.10?

I'm not sure whether this is what you're after (and I haven't tested
it in 2.10, but it should work):

\drummode {
  \compressMusic #'(1 . 4) {
\repeat percent 2 {
  sn4 sn4 sn4 sn4 \bar |
  sn8 sn8 sn8 sn8 sn4 sn4 \bar |
  sn4 sn8 sn8 sn4 sn8 sn8 \bar |
  sn8 sn8 r8 sn8 sn4 sn4
}
\bar |.
  }
}

Regards,
Neil
attachment: four-bar-percent.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: 4 bar repeat

2008-12-13 Thread Tim Sawyer
On Saturday 13 December 2008 17:41:23 Neil Puttock wrote:
 Hi Tim,

 2008/12/13 Tim Sawyer list.lilyp...@calidris.co.uk:
  I'd like to produce a four bar percent repeat, is this possible in 2.10?

 I'm not sure whether this is what you're after (and I haven't tested
 it in 2.10, but it should work):

 \drummode {
   \compressMusic #'(1 . 4) {
 \repeat percent 2 {
   sn4 sn4 sn4 sn4 \bar |
   sn8 sn8 sn8 sn8 sn4 sn4 \bar |
   sn4 sn8 sn8 sn4 sn8 sn8 \bar |
   sn8 sn8 r8 sn8 sn4 sn4
 }
 \bar |.
   }
 }

Cheers Neil.

Unfortunately, this just shows a single bar percent style repeat after four 
bars of music.

I need something like the two bar repeat, where all the bar lines are present 
and there's a double line in the middle of the percent.

This is what I'm after, but it only goes over two bars, I'd like it over four,

\drummode { \repeat percent 2 {sn4 sn4 sn4 sn4 sn8 sn8 sn8 sn8 sn4 sn4 } 
\bar |. }

Thanks anyway,

Tim.





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


Re: [lilypond-kde4] cmake problem

2008-12-13 Thread Grammostola Rosea

Wilbert Berendsen wrote:

Op donderdag 11 december 2008, schreef Grammostola Rosea:
  

Ok, I thought one function of lilypond-kde4 was clicking a note in
Okular makes the cursor switch to that note in kate... but that doesn't
work here.



Strange. Try running okular 'file.pdf' from the console and look at the 
messages when you click a note.


If Kate is configured as the preferred app for *.ly then it should be started 
by ktexteditservice.


You can also try:

$ ktexteditservice textedit:///home/path/to/file.ly:0:7:7
(with a valid url of course)
best regards,
Wilbert Berendsen

  

$ ktexteditservice textedit:///home/d/lilypondfiles/bass.ly:0:7:7
d...@debianstudio32:~/lilypondfiles$ kate(4998): createDoc
kate(4998) KateSessionManager::KateSessionManager: LOCAL SESSION DIR:  
/home/d/.kde4/share/apps/kate/sessions

kate(4998) KateApp::initKate: Setting KATE_PID: ' 4998 '
kate(4998) KateViewDocumentProxyModel::updateBackgrounds: false
kate(4998) KateMainWindow::KateMainWindow: 
 
0x9567ed8

kate(4998) KateViewDocumentProxyModel::updateBackgrounds: false
kate(4998) KateViewDocumentProxyModel::updateBackgrounds: false
kate(4998) KateDocManager::slotDocumentNameChanged: docname changed:  
Untitled - Untitled
kate(4998) KateDocManager::slotDocumentNameChanged: docname changed:  
Untitled - bass.ly

kate(4998) KateViewDocumentProxyModel::updateBackgrounds: false
kate(4998) KateApp::startupKate: KateApplication::init finished successful
kate(4998) KateViewDocumentProxyModel::updateBackgrounds: true



No messages when I open a lilypond generated pdf file with okular in the 
konsole...


Regards,

\r


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


automatic \bar ||:?

2008-12-13 Thread Mark Polesky
Is there a way to set the first barline of 
each volta section to ||: without doing it
manually each time?

_

\version 2.11.65-1

{ 
  %% I type:
  b'1 \repeat volta 2 { b' }
  
  %% I want:
  b'1 \bar ||: \repeat volta 2 { b' }
}

\layout { indent=#0 ragged-right=##t system-count=#4 }

__

Thanks
- Mark


  


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


Re: 4 bar repeat

2008-12-13 Thread Neil Puttock
2008/12/13 Tim Sawyer list.lilyp...@calidris.co.uk:

 Unfortunately, this just shows a single bar percent style repeat after four
 bars of music.

Ah, I had a feeling it wouldn't be what you're after. :)

 I need something like the two bar repeat, where all the bar lines are present
 and there's a double line in the middle of the percent.

So two sets of double percent repeats?

The only way I can think of doing this is to override the barline
stencil and use skips for the repeated bars:

doubleRepeatBar = {
  \once \override Staff.BarLine #'stencil =
#(lambda (grob)
   ;ensure repeat slash isn't too thick
   (ly:grob-set-property! grob 'thickness 0.48)
;combine a barline with a double percent repeat
(ly:stencil-add
  (ly:bar-line::print grob)
  (ly:percent-repeat-item-interface::double-percent grob)))
}

\drummode {
  sn4 sn4 sn4 sn4
  sn8 sn8 sn8 sn8 sn4 sn4
  sn4 sn8 sn8 sn4 sn8 sn8
  sn8 sn8 r8 sn8 sn4 sn4
  \repeat unfold 2 {
s1
\doubleRepeatBar
s1
  }
  \bar |.
}

Regards,
Neil
attachment: double-repeat-bar.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: automatic \bar ||:?

2008-12-13 Thread Nick Payne
I get the repeat barlines without having to explicitly specify them.

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 Mark Polesky
 Sent: Sunday, 14 December 2008 06:14
 To: lilypond-user
 Subject: automatic \bar ||:?
 
 Is there a way to set the first barline of
 each volta section to ||: without doing it
 manually each time?
 
 _
 
 \version 2.11.65-1
 
 {
   %% I type:
   b'1 \repeat volta 2 { b' }
 
   %% I want:
   b'1 \bar ||: \repeat volta 2 { b' }
 }
 
 \layout { indent=#0 ragged-right=##t system-count=#4 }
 
 __
 
 Thanks
 - Mark
 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.16/1843 - Release Date:
 12/12/2008 09:02
\version 2.11.64

\relative c {
b'1 \repeat volta 2 { b' }}
attachment: volta.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: automatic \bar ||:?

2008-12-13 Thread Mark Polesky
Nick Payne wrote:
 I get the repeat barlines without having to 
 explicitly specify them.

Nick,

Sorry I wasn't clearer initially.

The \bar ||: command gives a double-bar at the end
of the preceding line when the volta starts at the 
beginning of a new line. The default behavior at line
breaks is to use \bar |: (internally, I guess), that
is, a single bar at the end of the preceding line. I'm 
specifically looking to automate the double-bar.

- Mark


  


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


spacer notes

2008-12-13 Thread chip
I don't fully understand the issues that spacer notes cause, below are a 
couple examples.


This example of 3 measures of music with a glissando in the middle of 
them, I think the two notes with the glissando are too close together to 
print a decent looking zigzag glissando -


d b-. b b-. b b c d
e4\glissando c r8 e d c-.
b b-. b c-. a a-. a b

So I want to add a little space between those two notes, thereby making 
the glissando a bit longer and better looking. I tried the code below 
but it just pushes the last 3 eighth notes into the next measure (why?) 
causing major problems -


d b-. b b-. b b c d
e4 {s4\glissando s4}  c r8 e d c-.
b b-. b c-. a a-. a b

Yet a similar bit of code works just fine for a decrescendo -

   r2 b4 b8 as
a2. { s4\ s4 s4\! }  r4
   r4 c8[ d] e4 c


I've read the sections in the LM and the NR but they don't get this 
specific. Can someone help me make that zigzag glissando a bit longer?

Thanks,
Chip


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


FretBoards

2008-12-13 Thread Carl D. Sorensen
I have now completed the changes that you requested and pushed them to git.

They will show up in the next released version of LilyPond (or you can build
from git if you want it right now).

You can use verbose format for either addChordShape or
storePredefinedDiagram.  Please note that you need to add a tuning indicator
to addChordShape (the new format is \addChordShape #'symbol #tuning
#diagram-descriptor).

You can also use (capo fret) as part of a verbose marking list.  It will
create a solid line across all strings at fret.  It will also make fret the
lowest fret in the diagram.

Thanks,

Carl



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


Re: spacer notes

2008-12-13 Thread James E. Bailey

I haven't checked it, but it looks like your timing is off
Am 13.12.2008 um 21:18 schrieb chip:

I don't fully understand the issues that spacer notes cause, below  
are a couple examples.



e4 {s4\glissando s4}  c r8 e d c-.



e4
{s2} %s4 + s4



Yet a similar bit of code works just fine for a decrescendo -

a2. { s4\ s4 s4\! }  r4



a2.
{s2.} %s4 + s4 + s4



Thanks,
Chip




Hope this helps,

James


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


Re: automatic \bar ||:?

2008-12-13 Thread Neil Puttock
2008/12/13 Nick Payne nick.pa...@internode.on.net:
 I get the repeat barlines without having to explicitly specify them.

Hehe, I almost posted the same thing, until I realized I'd left out
the \layout block. :)

Mark, there are two options here:

1. amend bar-glyph-alist in output-lib.scm;
2. copy the above and bar-line::calc-glyph-name to a .ly file, and
override 'glyph-name:

#(define my-bar-glyph-alist
  '((:|: . (:| . |:))
(:|.|: . (:| . |:))
(:|.: . (:| . |:))
(||: . (|| . |:))
(dashed . (dashed . '()))
(| . (| . ()))
(||: . (|| . |:))
(|s . (() . |))
; amended this entry
(|: . (|| . |:))
(|. . (|. . ()))

;; hmm... should we end with a bar line here?
(.| . (| . .|))
(:| . (:| . ()))
(|| . (|| . ()))
(.|. . (.|. . ()))
(|.| . (|.| . ()))
( . ( . ))
(: . (: . ))
(. . (. . ()))
(empty . (() . ()))
(brace . (() . brace))
(bracket . (() . bracket))
))

#(define (my-bar-line::calc-glyph-name grob)
   (let* (
  ; inlined this from lily-library.scm, since it isn't public
  (index-cell (lambda (cell dir)
(if (equal? dir 1)
(cdr cell)
(car cell
  (glyph (ly:grob-property grob 'glyph))
  (dir (ly:item-break-dir grob))
  (result (assoc glyph  my-bar-glyph-alist))
  (glyph-name (if (= dir CENTER)
  glyph
  (if (and result (string? (index-cell (cdr result) 
dir)))
  (index-cell (cdr result) dir)
  #f)))
  )
 glyph-name))

{
  \override Staff.BarLine #'glyph-name = #my-bar-line::calc-glyph-name
  b'1 \break
  \repeat volta 2 { b' }
}

Regards,
Neil


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


Re: 4 bar repeat

2008-12-13 Thread Tim Sawyer
So two sets of double percent repeats?

Not quite...that would be repeat the last two bars twice, not repeat the 
last four bars ;-)

Never mind...it's not something that comes up very often anyway, I was just 
trying to be complete in explaining what it was in my drum tutor book.  It 
should be fairly obvious really!

Thanks for trying,

Tim.




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


Re: spacer notes

2008-12-13 Thread Neil Puttock
Hi Chip,

2008/12/13 chip c...@wiegand.org:

 This example of 3 measures of music with a glissando in the middle of them,
 I think the two notes with the glissando are too close together to print a
 decent looking zigzag glissando -

You don't need to mess about with spacer notes here; try changing the
'minimum-length property, as discussed here:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Spanners

Regards,
Neil


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


Re: 4 bar repeat

2008-12-13 Thread Neil Puttock
2008/12/13 Tim Sawyer list.lilyp...@calidris.co.uk:
So two sets of double percent repeats?

 Not quite...that would be repeat the last two bars twice, not repeat the
 last four bars ;-)

It's still possible with the code I posted; you just need one override
on the middle barline, though the percent repeat will distort the
spacing a bit.

Regards,
Neil


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


Re: spacer notes

2008-12-13 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Samstag, 13. Dezember 2008 21:18:04 schrieb chip:
 I don't fully understand the issues that spacer notes cause, below are a
 couple examples.

 This example of 3 measures of music with a glissando in the middle of
 them, I think the two notes with the glissando are too close together to
 print a decent looking zigzag glissando -

 d b-. b b-. b b c d
 e4\glissando c r8 e d c-.
 b b-. b c-. a a-. a b

 So I want to add a little space between those two notes, thereby making
 the glissando a bit longer and better looking. I tried the code below
 but it just pushes the last 3 eighth notes into the next measure (why?)
 causing major problems -

 d b-. b b-. b b c d
 e4 {s4\glissando s4}  c r8 e d c-.

If you look at the  ...  section, you'll see that you are here doing a 
quarter note in parallel with two quarter notes. In particular, the length of 
the  ...  is two quarter notes, thus they remaining notes in the measure 
appear shifted due to that error. I suppose you rather want:
 {e4 c} {s4\glissando s4}  r8 e d c-.

 Yet a similar bit of code works just fine for a decrescendo -

 r2 b4 b8 as
  a2. { s4\ s4 s4\! }  r4

Here the durations of the dotted half note and the three quarter notes 
concide...

However, I'm afraid that this issue does not solve you issue of note spacing. 
While I also don't have a solution for the spacing problem, you might change 
the padding for the glissando, so that it starts closer to the notes. This 
way, the zigzag is clearly identifiable:

\relative c'' {
  \override Glissando #'style = #'zigzag
  \override Glissando #'bound-details = #'((right (attach-dir . 0) (padding . 
1)) (left (attach-dir . 0) (padding . 1)))
  e4\glissando c r8 e d c-.
}

Cheers,
Reinhold
- -- 
- --
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJRB/YTqjEwhXvPN0RAgq9AJ9gs4z/aNAqRC5+wZcutm5dLeZJtACeLet7
f7uqreow29/r0wEViTyeyhE=
=IlpJ
-END PGP SIGNATURE-


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


Re: automatic \bar ||:?

2008-12-13 Thread Mark Polesky
Neil Puttock wrote:
 Mark, there are two options here:
 
 1. amend bar-glyph-alist in output-lib.scm;
 2. copy the above and bar-line::calc-glyph-name to a .ly file, and
 override 'glyph-name:

My goodness, Neil. You certainly know what you're doing!
Any chance of making that the default, or adding some 
syntactic sugar for less gifted LilyPonders? 

I guess it doesn't matter to me so much -- I have a folder
with all of my default-overriding preferences. I've added
your patch to my folder, and it works as expected. It's just
that my preferences file is getting pretty huge...

- Mark



  


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


Re: automatic \bar ||:?

2008-12-13 Thread Neil Puttock
2008/12/13 Mark Polesky markpole...@yahoo.com:

 Any chance of making that the default, or adding some
 syntactic sugar for less gifted LilyPonders?

I doubt it; you couldn't just change the default in bar-glyph-alist,
since you'd be stuck with this behaviour.  It would probably require
another context property to switch it on and off.

Regards,
Neil


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


Re: Crosses in tablature

2008-12-13 Thread Marius Andersen
Simon,

again, thanks for your time.

 c' f'\harmonic

This is intriguing. In tablature, I use \parenthesize to enclose grace notes in 
parentheses:

\parenthesize e\1

which produces (0). But this doesn't leave any extra space for the parentheses, 
the way space is left for the brackets when using \harmonic. In other words, 
the fret number itself (the notehead) is printed on a white background, but the 
parentheses around it are printed on the tablature lines.

 if you're all ok with this updated version, i'll
 add that to the LSR.

Please do -- this is tremendously helpful. Even if LilyPond's support for 
tablature is, according to the manual, limited, I'm probably not the only 
guitar player who nevertheless thinks its output is far more beautiful than 
that of any other tabs program. Code like this extends that support!

Having finished a piece which sports regular + tablature notation of the 
melody, detailed fret diagrams, and the occasional dampened grace note (!), 
LilyPond's open format is probably what I'll continue to store my note work in.

Thanks for the help!


  _
Alt i ett. Få Yahoo! Mail med adressekartotek, kalender og
notisblokk. http://no.mail.yahoo.com


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


Re: spacer notes

2008-12-13 Thread chip

Excellent, that really solves that issue easily. Thanks.
--
Chip

Neil Puttock wrote

You don't need to mess about with spacer notes here; try changing the
'minimum-length property, as discussed here:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Spanners

Regards,
Neil



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


Re: spacer notes

2008-12-13 Thread chip

I should've asked this in my first reply, oh well.
So, how do I change that from a /once /override to a override that works 
for all the gliss'es in a piece? I can't just remove the /once 
/override, that causes errors, I tried it.

Regards,
Chip

Neil Puttock wrote:

Hi Chip,

2008/12/13 chip c...@wiegand.org:

  

This example of 3 measures of music with a glissando in the middle of them,
I think the two notes with the glissando are too close together to print a
decent looking zigzag glissando -



You don't need to mess about with spacer notes here; try changing the
'minimum-length property, as discussed here:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Spanners

Regards,
Neil


  




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


Re: spacer notes

2008-12-13 Thread chip
Forget about my previous reply - I figured it out, I just remove the 
/once only and it works.

--
Chip

Neil Puttock wrote:

Hi Chip,

2008/12/13 chip c...@wiegand.org:

  

This example of 3 measures of music with a glissando in the middle of them,
I think the two notes with the glissando are too close together to print a
decent looking zigzag glissando -



You don't need to mess about with spacer notes here; try changing the
'minimum-length property, as discussed here:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Spanners

Regards,
Neil


  




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


Re: FretBoards

2008-12-13 Thread Jonathan Kulp

Carl D. Sorensen wrote:

I have now completed the changes that you requested and pushed them to git.

They will show up in the next released version of LilyPond (or you can build
from git if you want it right now).

You can use verbose format for either addChordShape or
storePredefinedDiagram.  Please note that you need to add a tuning indicator
to addChordShape (the new format is \addChordShape #'symbol #tuning
#diagram-descriptor).

You can also use (capo fret) as part of a verbose marking list.  It will
create a solid line across all strings at fret.  It will also make fret the
lowest fret in the diagram.

Thanks,

Carl



Really cool, Carl!  Thanks for doing that!

Jon

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


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


Re: FretBoards

2008-12-13 Thread Richard Schoeller
Thanks from me too!  It is great how effectively this project turns 
ideas around.  I wish we could do that on my projects at work  :-( .


Jonathan Kulp wrote:

Carl D. Sorensen wrote:
I have now completed the changes that you requested and pushed them 
to git.


They will show up in the next released version of LilyPond (or you 
can build

from git if you want it right now).

You can use verbose format for either addChordShape or
storePredefinedDiagram.  Please note that you need to add a tuning 
indicator

to addChordShape (the new format is \addChordShape #'symbol #tuning
#diagram-descriptor).

You can also use (capo fret) as part of a verbose marking list.  It will
create a solid line across all strings at fret.  It will also make 
fret the

lowest fret in the diagram.

Thanks,

Carl



Really cool, Carl!  Thanks for doing that!

Jon





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


Re: FretBoards

2008-12-13 Thread Carl D. Sorensen



On 12/13/08 4:49 PM, Richard Schoeller schoel...@comcast.net wrote:

 Thanks from me too!  It is great how effectively this project turns
 ideas around.  I wish we could do that on my projects at work  :-( .
 
 Jonathan Kulp wrote:
 
 
 Really cool, Carl!  Thanks for doing that!
 
 Jon
 
 

You're both  welcome.  Unfortunately, for me at least, the only things that
turn around quickly on LilyPond are the very easy projects (and now that
I've got them implemented in the FretBoards context, almost everything to do
with fret diagrams is an easy project).

Anyway, glad to be of help!

Carl



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


Re: replace NoteNames output to other character

2008-12-13 Thread Carl Sorensen
今井雄治 imaiyuji at ybb.ne.jp writes:

 
 Hi, users.
 
 i got following result use NoteNames context.
 
 (1st line)
 c'   d'   e'   f'  |  g'   a'   b'   c''
 (2nd line)
 c' e'   d' f'   e' g'   f' a'  |  g' b'   a' c''   b' d''   c'' e''
 (3rd line)
 c'   c'   c'  |  c' g'   c' g'   c' g'
 
 so, these lines for KOTO (Japanese harp) want to change like following.
 number is string of KOTO.
 
 (1st line)
 1   2   3   4  |  5   6   7   8
 (2nd line)  chord: each number locate vertically.
 1   2   3   4  |  5   6   7   8
 3   4   5   6  |  7   8   9   10
 (3rd line) tie: replace special character for repeat (if possible)
 1   *   *  |  1   *   *
 5   *   *  |
 

I eliminated the note-names context and just used string numbers,
since you said you wanted koto string numbers.

\version 2.11.63
\include english.ly

music = \relative {
c\14 d\2 e\3 f\4 | g\5 a\6 b\7 c\8 | \break
c,\1 e\34 d\2 f\4 e\3 g\5 f\4 a\6 |
g\5 b\7 a\6 c\8 b\7 d\9 c\8 e\10 | \break
c,\1 g'\54 c\0 g'\0~ c g'2 | c\14 c\04~ c\02 | \break
}

\score {
\new Staff {
  \set stringNumberOrientations = #'(down)
  \music
}
}

The string numbers are circled, but the circles can be removed.

I hope this helps,

Carl



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


Re: replace NoteNames output to other character

2008-12-13 Thread 今井雄治
This help leads me to my next step.
Thank you.

2008/12/14 Carl Sorensen c_soren...@byu.edu:
 今井雄治 imaiyuji at ybb.ne.jp writes:


 Hi, users.

 i got following result use NoteNames context.

 (1st line)
 c'   d'   e'   f'  |  g'   a'   b'   c''
 (2nd line)
 c' e'   d' f'   e' g'   f' a'  |  g' b'   a' c''   b' d''   c'' e''
 (3rd line)
 c'   c'   c'  |  c' g'   c' g'   c' g'

 so, these lines for KOTO (Japanese harp) want to change like following.
 number is string of KOTO.

 (1st line)
 1   2   3   4  |  5   6   7   8
 (2nd line)  chord: each number locate vertically.
 1   2   3   4  |  5   6   7   8
 3   4   5   6  |  7   8   9   10
 (3rd line) tie: replace special character for repeat (if possible)
 1   *   *  |  1   *   *
 5   *   *  |


 I eliminated the note-names context and just used string numbers,
 since you said you wanted koto string numbers.

 \version 2.11.63
 \include english.ly

 music = \relative {
c\14 d\2 e\3 f\4 | g\5 a\6 b\7 c\8 | \break
c,\1 e\34 d\2 f\4 e\3 g\5 f\4 a\6 |
g\5 b\7 a\6 c\8 b\7 d\9 c\8 e\10 | \break
c,\1 g'\54 c\0 g'\0~ c g'2 | c\14 c\04~ c\02 | \break
 }

 \score {
\new Staff {
  \set stringNumberOrientations = #'(down)
  \music
}
 }

 The string numbers are circled, but the circles can be removed.

 I hope this helps,

 Carl



 ___
 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


Replacement Macros

2008-12-13 Thread Simon J Mackenzie
Hi
How do you you go about defining replacement macros so that ...
lyricist =  \markup {  \bold Fred J \italic Bones }
is transformed into say a form of...
poet = fullName
Cheers
Simon
--

Reverend Simon J Mackenzie simon.macken...@lca.org.au

LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006

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


Replacement Macros

2008-12-13 Thread Simon J Mackenzie
Hi
How do you go about defining replacement macros so that ...
lyricist =  \markup {  \bold Fred J \italic Bones }
is transformed into say a form of...
poet = fullName
Cheers
Simon
--

Reverend Simon J Mackenzie simon.macken...@lca.org.au

LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006

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


Replacement Macros - Ooops! Try Again Again

2008-12-13 Thread Simon J Mackenzie
Hi
How do you go about defining replacement macros so that ...
lyricist =  \markup {  \bold Fred J \italic Bones }
is transformed into say a form of...
poet = lyricist
Cheers
Simon
--

Reverend Simon J Mackenzie simon.macken...@lca.org.au

LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006

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