Re: Horizontal Brackets and Markup Placement

2016-05-03 Thread Thomas Morley
2016-05-03 8:10 GMT+02:00 Sam Bivens :
> Hi everyone,
>
> In the attached MWE, I'm somehow having trouble getting the initial
> `^\markup a` to be placed above the horizontal bracket, even though all
> future instances of this markup are placed above the bracket no problem. It
> seems so simple; I feel a little silly just asking. The commented out
> override does the trick, but it brings up some other undesirable issues that
> I'd rather not deal with. Any tips would be great.
>
> Thanks,
>
> Sam


The code below seems to work.
Though, I've absolutely no idea why ...

\version "2.19.40"

\language english

\layout {
  \context {
\Voice
\consists "Horizontal_bracket_engraver"
  }
}

\relative c'' {
  \clef treble
  \key g \major
  \override HorizontalBracket.direction = #UP
  \override Score.BarNumber #'break-align-symbols =
#'(staff-bar clef)

  \override HorizontalBracket.outside-staff-priority = #1
  % \override TextScript.avoid-slur = #'inside
%% "a " instead of "a" ??
  g2\(\startGroup^\markup "a " g4. g8 | % this markup should be above
the bracket
  ef'2. d4 c2 g |
  af1\)->\stopGroup |
  g2\(\startGroup^\markup a' g4. g8 |
  ef'2. d4 |
  c2 af4. af8 |
  bf1\)->~ |
  bf2 r\stopGroup |
  bf2.\startGroup^\markup b bf4 |
  c2 c4. c8 |
  df1~ |
  df2 r\stopGroup |
}

Cheers,
  Harm

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


Horizontal Brackets and Markup Placement

2016-05-03 Thread Sam Bivens

Hi everyone,

In the attached MWE, I'm somehow having trouble getting the initial 
`^\markup a` to be placed /above/ the horizontal bracket, even though 
all future instances of this markup are placed above the bracket no 
problem. It seems so simple; I feel a little silly just asking. The 
commented out override does the trick, but it brings up some other 
undesirable issues that I'd rather not deal with. Any tips would be great.


Thanks,

Sam
\version "2.19.40"

\language english

\layout {
  \context {
\Voice
\consists "Horizontal_bracket_engraver"
  }
}

\relative c'' {
  \clef treble
  \key g \major
  \override HorizontalBracket.direction = #UP
  \override Score.BarNumber #'break-align-symbols = 
#'(staff-bar clef)

  \override HorizontalBracket.outside-staff-priority = #1
  % \override TextScript.avoid-slur = #'inside 
  g2\(\startGroup^\markup a g4. g8 | % this markup should be above the bracket
  ef'2. d4 c2 g |
  af1\)->\stopGroup |
  g2\(\startGroup^\markup a' g4. g8 |
  ef'2. d4 |
  c2 af4. af8 |
  bf1\)->~ |
  bf2 r\stopGroup |
  bf2.\startGroup^\markup b bf4 |
  c2 c4. c8 |
  df1~ |
  df2 r\stopGroup |
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Making notes have no presence at all (horizontal brackets)

2016-01-13 Thread Kieren MacMillan
Hi Kevin,

> I need to add a voice with notes that are a) invisible and b) have no effect 
> on the spacing of other music on the staff. I haven't found a way to do this

What about:

\score {
  \new Staff <<
\mark \markup "rests, omitted"
\global
\new Voice \relative {
  bes,8-\tweak direction #1 \startGroup
  ees4\stopGroup c\startGroup
  bes8\startGroup aes\grace { g16[ aes] } g4\stopGroup \stopGroup
}
\new Voice \relative {
  \omit Rest
  s8
  r2*1/2 -\tweak direction #1 \startGroup \startGroup r\stopGroup
  r8\stopGroup
}
  >>
}

The only oddity I saw was that r1 made that bracket drop vertically (though I 
don’t know why).

Hope this helps in some way!
Kieren.


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


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


Making notes have no presence at all (horizontal brackets)

2016-01-13 Thread Kevin Barry
Dear All,

I frequently need to have overlapping horizontal brackets. This means that
I have to add hidden notes to my scores to attach them to. (Brackets won't
attach to spacer rests unless they live in a Staff context, in which case
you can't have more than one at a time. Adding brackets to both contexts
creates two brackets at a time.)

This means I need to add a voice with notes that are a) invisible and b)
have no effect on the spacing of other music on the staff. I haven't found
a way to do this, or even figured out how to predict what will happen when
I try. My main options are a) \hideNotes, b) stencil=##f, c)
stencil=#point-stencil, or d) same as previous, but with rests.

So far I have found that every option has /some/ effect on the surrounding
music. In some cases option a) is best, and sometimes another option. In a
complex score it's hard to even know which is best unless you make a small
example to test.

It's hard to create a minimal example that demonstrates this, so I have
attached an image and accompanying code to illustrate. I'm only concerned
about the notes (brackets always require tweaking in these situations). In
this case option c) looks best, but there are other times when
#point-stencil produces crazy output. Normally a) is best, but as you can
see it sometimes causes long stems and such, meaning I have to choose the
pitches of invisible notes carefully...

I have battled with this for a long time, so any help would be much
appreciated.

Kevin


test.pdf
Description: Adobe PDF document
\version "2.19.34"

global = {
  \key aes \major
  \partial 8
  \clef bass
}

\score {
  \new Voice \relative {
\mark \markup "normal"
\global
bes,8 ees4 c bes8 aes \grace { g16[ aes] } g4
  }
}

\score {
  \new Staff <<
\mark \markup "transparent"
\global
\new Voice \relative {
  bes,8-\tweak direction #1 \startGroup
  ees4\stopGroup c\startGroup
  bes8\startGroup aes\grace { g16[ aes] } g4\stopGroup \stopGroup
}
\new Voice \relative {
  \hideNotes
  \override NoteColumn.ignore-collision = ##t
  s8
  ees4 -\tweak direction #1 \startGroup \startGroup c\stopGroup
  bes8\stopGroup
}
  >>
}

\score {
  \new Staff <<
\mark \markup "no stencil"
\global
\new Voice \relative {
  bes,8-\tweak direction #1 \startGroup
  ees4\stopGroup c\startGroup
  bes8\startGroup aes\grace { g16[ aes] } g4\stopGroup \stopGroup
}
\new Voice \relative {
  \omit NoteHead
  \omit Beam
  \omit Flag
  \omit Stem
  \override NoteColumn.ignore-collision = ##t
  s8
  ees4 -\tweak direction #1 \startGroup \startGroup c\stopGroup
  bes8\stopGroup
}
  >>
}

\score {
  \new Staff <<
\mark \markup "point-stencil"
\global
\new Voice \relative {
  bes,8-\tweak direction #1 \startGroup
  ees4\stopGroup c\startGroup
  bes8\startGroup aes\grace { g16[ aes] } g4\stopGroup \stopGroup
}
\new Voice \relative {
  \override NoteHead.stencil = #point-stencil
  \override Beam.stencil = #point-stencil
  \override Flag.stencil = #point-stencil
  \override Stem.stencil = #point-stencil
  \override NoteColumn.ignore-collision = ##t
  s8
  ees4 -\tweak direction #1 \startGroup \startGroup c\stopGroup
  bes8\stopGroup
}
  >>
}

\score {
  \new Staff <<
\mark \markup "rests"
\global
\new Voice \relative {
  bes,8-\tweak direction #1 \startGroup
  ees4\stopGroup c\startGroup
  bes8\startGroup aes\grace { g16[ aes] } g4\stopGroup \stopGroup
}
\new Voice \relative {
  \hideNotes
  \override NoteColumn.ignore-collision = ##t
  s8
  r4 -\tweak direction #1 \startGroup \startGroup r\stopGroup
  r8\stopGroup
}
  >>
}

\layout {
  \context {
\Voice
\consists "Horizontal_bracket_engraver"
\override HorizontalBracket.bracket-flare = #'(0 . 0)
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including Rests in Horizontal Brackets

2015-10-27 Thread Pierre Perol-Schneider
Hi Sam,

This is not nice, but it works :

\version "2.19.28"

#(ly:set-option 'warning-as-error #f)
#(ly:expect-warning (_ "barcheck failed at: 1/2"))

\layout {
  \context {
\Voice
\consists "Horizontal_bracket_engraver"
  }
}

\relative c'' {
  \override HorizontalBracket.direction = #UP
  g1\startGroup |
  e |
  R |
  R |
  R2 \once\hideNotes r\stopGroup |
  %get the bracket to extend and "include" this final rest
}

Cheers,
Pierre


2015-10-27 22:23 GMT+01:00 Sam Bivens :

> Hi everyone,
>
> In the attached MWE, I'm hoping to extend the horizontal bracket to the
> right to include the three remaining whole rests.
>
> As it is, Lily is smart enough (darn it...) to stop the bracket at the
> final notated pitch; but can I force the bracket to extend, or will I
> have to come up with another solution to make the bracket?
>
> Obviously I could do it with a hidden second voice, but as the real
> example includes lyrics, etc., I was hoping for a friendlier solution.
>
> Thanks as ever,
>
> Sam
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Including Rests in Horizontal Brackets

2015-10-27 Thread Sam Bivens
Hi everyone,

In the attached MWE, I'm hoping to extend the horizontal bracket to the
right to include the three remaining whole rests.

As it is, Lily is smart enough (darn it...) to stop the bracket at the
final notated pitch; but can I force the bracket to extend, or will I
have to come up with another solution to make the bracket?

Obviously I could do it with a hidden second voice, but as the real
example includes lyrics, etc., I was hoping for a friendlier solution.

Thanks as ever,

Sam
\version "2.19.28"

\layout {
  \context {
\Voice
\consists "Horizontal_bracket_engraver"
  }
}

\relative c'' {
  \override HorizontalBracket.direction = #UP

  g1\startGroup |
  e |
  R |
  R |
  R\stopGroup | %get the bracket to extend and "include" this final rest
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including Rests in Horizontal Brackets

2015-10-27 Thread Sam Bivens
Hi Pierre,

This works great, and it's nice enough! (It also helped me realize that
it wasn't a lack of pitches that caused the problem, but the particular
use of R1 at \stopGroup...interesting.)

Thanks again,

Sam

On 10/27/2015 06:16 PM, Pierre Perol-Schneider wrote:
> Hi Sam,
>
> This is not nice, but it works :
>
> \version "2.19.28"
>
> #(ly:set-option 'warning-as-error #f)
> #(ly:expect-warning (_ "barcheck failed at: 1/2"))
>
> \layout {
>   \context {
> \Voice
> \consists "Horizontal_bracket_engraver"
>   }
> }
>
> \relative c'' {
>   \override HorizontalBracket.direction = #UP
>   g1\startGroup |
>   e |
>   R |
>   R |
>   R2 \once\hideNotes r\stopGroup |
>   %get the bracket to extend and "include" this final rest
> }
>
> Cheers,
> Pierre
>
>
> 2015-10-27 22:23 GMT+01:00 Sam Bivens  >:
>
> Hi everyone,
>
> In the attached MWE, I'm hoping to extend the horizontal bracket
> to the
> right to include the three remaining whole rests.
>
> As it is, Lily is smart enough (darn it...) to stop the bracket at the
> final notated pitch; but can I force the bracket to extend, or will I
> have to come up with another solution to make the bracket?
>
> Obviously I could do it with a hidden second voice, but as the real
> example includes lyrics, etc., I was hoping for a friendlier solution.
>
> Thanks as ever,
>
> Sam
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>

-- 
Sam Bivens
Ph.D. Student, Music Theory
Eastman School of Music
Co-Editor, /Intégral/
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


weird behaviour with horizontal brackets and \include

2013-01-31 Thread Kevin Patrick Barry
Dear LilyPond users,

I believe I have encountered a complex bug involving the interaction
between horizontal brackets and outside-staff-priority. It is both obscure
and easy to work around, so it's not urgent, but I thought I would send it
here anyway.  It requires two files to reproduce. Rather than explain what
I was trying to do I'll simply paste in some tinyish examples that should
reproduce the bug (although they won't make any sense). (I am using
LilyPond 2.16.1 through Frescobaldi 2.08 on Ubuntu 12.10.)

stylefile.ly:

 \version 2.16.1


\layout {

\context {

\Voice

\consists Horizontal_bracket_engraver

}

}


score.ly:

\version 2.16.1


\include stylefile.ily

\include stylefile.ily


\relative c' {

c1-\tweak #'outside-staff-priority #1500 \startGroup c\stopGroup

}

The bug seems to be caused by the inclusion of the stylefile twice in the
score (this happens indirectly in my own files), however it only affects
horizontal brackets that I have tweaked the outside-staff-priority of
(nothing else, not even other horizontal brackets are affected). The bug
can be extended by adding extra \includes - each one will add another
bracket.


Regards,

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


Re: weird behaviour with horizontal brackets and \include

2013-01-31 Thread Eluze
Kevin Patrick Barry wrote
 Dear LilyPond users,
 
 I believe I have encountered a complex bug involving the interaction
 between horizontal brackets and outside-staff-priority. It is both obscure
 and easy to work around, so it's not urgent, but I thought I would send it
 here anyway.  It requires two files to reproduce. Rather than explain what
 I was trying to do I'll simply paste in some tinyish examples that should
 reproduce the bug (although they won't make any sense). (I am using
 LilyPond 2.16.1 through Frescobaldi 2.08 on Ubuntu 12.10.)
 
 
 
 The bug seems to be caused by the inclusion of the stylefile twice in the
 score (this happens indirectly in my own files), however it only affects
 horizontal brackets that I have tweaked the outside-staff-priority of
 (nothing else, not even other horizontal brackets are affected). The bug
 can be extended by adding extra \includes - each one will add another
 bracket.

hi Kevin

this has nothing to do with \include - the same happens if you have several
\layout { \context { ... } } in the same file! obviously a
Horizontal_bracket_engraver is added each time

a simple workaround is to remove this engraver before you add it (although I
don't think this should be necessary):

\layout {
  \context { \Voice \consists Horizontal_bracket_engraver}
  \context { \Voice 
 \remove Horizontal_bracket_engraver 
 \consists Horizontal_bracket_engraver
   }
}

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/weird-behaviour-with-horizontal-brackets-and-include-tp140343p140348.html
Sent from the User mailing list archive at Nabble.com.

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


Horizontal brackets: adjust start and end point

2012-08-18 Thread Davide Liessi
Hi everybody.

I'm using horizontal brackets in a piece I'm transcribing, with
bracket-flare set to 0.
I would like the bracket symbols to start a bit before the first note
and end a bit after the last (let's say a bit = about the length of
the head of a quarter note).

E.g. in the following piece i would like the bracket to start a
quarter-note-head-length before c' and end a quarter-note-head-length
after d'.

\new Voice \with {
\consists Horizontal_bracket_engraver
\override HorizontalBracket #'bracket-flare = #'(0 . 0)
} {
c'2 \startGroup d'2\stopGroup
}

I played around with the properties of HorizontalBracket and its
interfaces, but I couldn't achieve the result I want.

I am using the latest stable version (2.14.2), but I can switch to
latest unstable if needed.

I would be grateful if anybody could help me.

Best wishes,
Davide Liessi


P.S. I should mention that I am also using the code provided by harm6 in
http://lists.gnu.org/archive/html/lilypond-user/2011-09/msg00196.html
because I had the same problem as Trevor Bača.
This is however irrelevant: I did my tests with and without harm6's solution.

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


Re: Horizontal brackets: adjust start and end point

2012-08-18 Thread David Nalesnik
Hi Davide,

On Sat, Aug 18, 2012 at 7:14 AM, Davide Liessi dal...@gmail.com wrote:
 Hi everybody.

 I'm using horizontal brackets in a piece I'm transcribing, with
 bracket-flare set to 0.
 I would like the bracket symbols to start a bit before the first note
 and end a bit after the last (let's say a bit = about the length of
 the head of a quarter note).


You can use the following override and adjust the values to get what you want:

\override HorizontalBracket #'shorten-pair = #'(-1 . -1)

HTH,
David

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


Re: Horizontal brackets: adjust start and end point

2012-08-18 Thread Davide Liessi
Hi David,

 I'm using horizontal brackets in a piece I'm transcribing, with
 bracket-flare set to 0.
 I would like the bracket symbols to start a bit before the first note
 and end a bit after the last (let's say a bit = about the length of
 the head of a quarter note).


 You can use the following override and adjust the values to get what you want:

 \override HorizontalBracket #'shorten-pair = #'(-1 . -1)

Thank you, it did the job!
I thought I tried that property, but maybe I was doing it wrong, or
maybe I just missed it.

Best wishes,
Davide

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


vertical alignment inversion of horizontal brackets

2012-01-12 Thread pls
Hey all,

today I tripped over a command for typesetting horizontal brackets (\[ \]) 
which doesn't seem to be covered in the manuals. (At least I didn't find it.)

How can I invert and change the vertical alignment of these horizontal 
brackets? (I'd like to place them below the staff.)

\version 2.15.23 % on Mac OS X
{ \[ c''2 c''2 \] }

Thanks for any hint!
patrick
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: vertical alignment inversion of horizontal brackets

2012-01-12 Thread James
Hello,

On 12 January 2012 11:51, pls p.l.schm...@gmx.de wrote:
 Hey all,

 today I tripped over a command for typesetting horizontal brackets (\[ \]) 
 which doesn't seem to be covered in the manuals. (At least I didn't find it.)

 How can I invert and change the vertical alignment of these horizontal 
 brackets? (I'd like to place them below the staff.)

 \version 2.15.23 % on Mac OS X
 { \[ c''2 c''2 \] }

 Thanks for any hint!

http://lsr.dsi.unimi.it/LSR/Item?id=564

This do?

-- 
--

James

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


Re: vertical alignment inversion of horizontal brackets

2012-01-12 Thread Xavier Scheuer
On 12 January 2012 12:51, pls p.l.schm...@gmx.de wrote:
 Hey all,

 today I tripped over a command for typesetting horizontal brackets
 (\[ \]) which doesn't seem to be covered in the manuals.
 (At least I didn't find it.)

Ligatures are covered in the notation reference manual, in the Ancient
notation section: NR 2.9.2 Ancient notation—common features  Ligatures
http://lilypond.org/doc/v2.15/Documentation/notation/ancient-notation_002d_002dcommon-features.html#ligatures

 How can I invert and change the vertical alignment of these horizontal
 brackets? (I'd like to place them below the staff.)

  \override LigatureBracket #'direction = #DOWN

Ligatures should not be confused with Analysis brackets, which is
maybe what you are actually looking for.  They are explained in
NR 1.7.2 Editorial annotations Outside the staff  Analysis brackets
http://lilypond.org/doc/v2.15/Documentation/notation/outside-the-staff.html#analysis-brackets

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: vertical alignment inversion of horizontal brackets

2012-01-12 Thread -Eluze


pls-2 wrote:
 
 Hey all,
 
 today I tripped over a command for typesetting horizontal brackets (\[ \])
 which doesn't seem to be covered in the manuals. (At least I didn't find
 it.)
 
 How can I invert and change the vertical alignment of these horizontal
 brackets? (I'd like to place them below the staff.)
 
 \version 2.15.23 % on Mac OS X
 { \[ c''2 c''2 \] }
 
 

hi

\override LigatureBracket #' direction = #DOWN

hth
Eluze
-- 
View this message in context: 
http://old.nabble.com/vertical-alignment---inversion-of-horizontal-brackets-tp33127270p33127496.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: vertical alignment inversion of horizontal brackets

2012-01-12 Thread pls
Hi Xavier,

thanks for your help! I had found the documentation of analysis brackets but 
ligatures seem to be what I am looking for. Unless musicxml2ly converts the 
wrong symbol. See http://www.kainhofer.net/musicxml/ 31a-Directions.xml measure 
10

Cheers
patrick

P.S.: the commands \[ and \] are not part of the indices!
Am 12.01.2012 um 13:35 schrieb Xavier Scheuer:

 On 12 January 2012 12:51, pls p.l.schm...@gmx.de wrote:
 Hey all,
 
 today I tripped over a command for typesetting horizontal brackets
 (\[ \]) which doesn't seem to be covered in the manuals.
 (At least I didn't find it.)
 
 Ligatures are covered in the notation reference manual, in the Ancient
 notation section: NR 2.9.2 Ancient notation—common features  Ligatures
 http://lilypond.org/doc/v2.15/Documentation/notation/ancient-notation_002d_002dcommon-features.html#ligatures
 
 How can I invert and change the vertical alignment of these horizontal
 brackets? (I'd like to place them below the staff.)
 
  \override LigatureBracket #'direction = #DOWN
 
 Ligatures should not be confused with Analysis brackets, which is
 maybe what you are actually looking for.  They are explained in
 NR 1.7.2 Editorial annotations Outside the staff  Analysis brackets
 http://lilypond.org/doc/v2.15/Documentation/notation/outside-the-staff.html#analysis-brackets
 
 Cheers,
 Xavier
 
 -- 
 Xavier Scheuer x.sche...@gmail.com


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


Overlapping Horizontal Brackets

2007-11-19 Thread Monk Panteleimon
Hello.
I am preparing a musicological document in which one figure shows
overlapping tetrachords. I want to do \stopGroup and immediate \startGroup (with
the bracket on the other Y side of the staff) on the same note, but LP
won't do it. It looks like analysis brackets can be nested, but not
overlapping.

What's the best way to go about this? I found several things in archives
about drawing brackets as spanners without HorizontalBracket engraver,
but is there a simpler way to just override the Horizontal
Brackets behavior?

Here's my minimal example:

\version 2.11
\header{title=Overlapping Tetrachords }
\score {
\relative c''
{  \set Score.defaultBarType =   
\override Score.HorizontalBracket #'bracket-flare = #'(0 . 0)
\override Score.RehearsalMark #'direction = #-1
g1\startGroup \mark\markup\tiny{1} a \mark\markup\tiny{1} b 
\mark\markup\tiny{1/2,etc.} 

%The important part:
c\stopGroup % \startGroup on the same note is what I want to do, but 
can't
% with Bracket on top like this:
\once\override Score.HorizontalBracket #'direction = #1 
d\startGroup^\markup{I want this bracket to start on the C} e 
f\stopGroup }
  

\layout{ ragged-last = ##t
\context { \Staff \consists Horizontal_bracket_engraver }
}
}

I also couldn't find a way to get the \mark inside the bracket instead
of outside, but that's secondary.
Thank you.

-- 
Monk Panteleimon
Hermitage of the Holy Cross
Wayne, WV, USA
[EMAIL PROTECTED]

+
 IC + XC
+ + + + +
 NI + KA
+


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


Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello Everyone,


Since yesterday I also found that there are several kinds of horizontal 
brackets: volta brackets, mensural ligature brackets, analysis brackets, 
the \hbracket markup command (well, that puts a second bracket, but in 
reversed direction), measure group brackets, piano pedal brackets, 
tuplet brackets... But I couldn't force any of these things to put a 
simple horizontal (better would be a double one, but I'd be glad if I 
could get even a single) bracket above some of my notes. I also had a 
look to the LSR, but there was also nothing related to this. I also 
tried to put a textspanner with solid line, but I was unable to display 
the small vertical lines at the beginning and the end of the line (which 
is the difference between a simple line and a bracket). Can it happen 
that there is no routine in Lilypond that could display a common 
horizontal bracket?...


Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello Everyone,


Since yesterday I also found that there are several kinds of horizontal
brackets: volta brackets, mensural ligature brackets, analysis brackets,
the \hbracket markup command (well, that puts a second bracket, but in
reversed direction), measure group brackets, piano pedal brackets,
tuplet brackets... But I couldn't force any of these things to put a
simple horizontal (better would be a double one, but I'd be glad if I
could get even a single) bracket above some of my notes. I also had a
look to the LSR, but there was also nothing related to this. I also
tried to put a textspanner with solid line, but I was unable to display
the small vertical lines at the beginning and the end of the line (which
is the difference between a simple line and a bracket). Can it happen
that there is no routine in Lilypond that could display a common
horizontal bracket?...

Thank you,
Adam


Hi Adam,

The new settings available on the TextSpanner grob are very good for
this sort of thing.

But the settings can be tricky to experiment with.

Here are two examples to get you started.


%%% SPANNERS %%%

\version 2.11.26


  \new Staff {
 \override TextSpanner #'dash-fraction = ##f
 \override TextSpanner #'bound-details #'right #'padding = #0
 \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#center
 \override TextSpanner #'bound-details #'left #'padding = #0.75
 \override TextSpanner #'bound-details #'right #'attach-dir = #right
 \override TextSpanner #'bound-details #'left #'text =
\markup { \bold 7 }
 \override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #'(0 . -1) }
 c'4 \startTextSpan
 c'4 \stopTextSpan

 \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#up
 \override TextSpanner #'bound-details #'left #'padding = #0
 \override TextSpanner #'bound-details #'right #'padding = #0
 \override TextSpanner #'bound-details #'left #'attach-dir = #right
 \override TextSpanner #'bound-details #'left #'text =
\markup { \draw-line #'(0 . -1) }
 c'4 \startTextSpan
 c'4 \stopTextSpan
  }

%%% SPANNERS %%%



Hope this helps.


--
Trevor Bača
[EMAIL PROTECTED]
attachment: brackets.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello,



thank you. Actually I'm using the stable version (2.10.10 as far as I 
know), and I don't really want to change it to a version under 
development unless I'd be really forced to do that. Don't you have some 
idea that works also with the stable version? (I tried both, but they 
didn't work in 2.10.10)
Of course, if there's no other solution, I'll upgrade my Lily, as my 
deadline for this score is this weekend...


Thank you again,
Adam


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello Everyone,


Since yesterday I also found that there are several kinds of horizontal
brackets: volta brackets, mensural ligature brackets, analysis brackets,
the \hbracket markup command (well, that puts a second bracket, but in
reversed direction), measure group brackets, piano pedal brackets,
tuplet brackets... But I couldn't force any of these things to put a
simple horizontal (better would be a double one, but I'd be glad if I
could get even a single) bracket above some of my notes. I also had a
look to the LSR, but there was also nothing related to this. I also
tried to put a textspanner with solid line, but I was unable to display
the small vertical lines at the beginning and the end of the line (which
is the difference between a simple line and a bracket). Can it happen
that there is no routine in Lilypond that could display a common
horizontal bracket?...

Thank you,
Adam


Hi Adam,

The new settings available on the TextSpanner grob are very good for
this sort of thing.

But the settings can be tricky to experiment with.

Here are two examples to get you started.


%%% SPANNERS %%%

\version 2.11.26


\new Staff {
\override TextSpanner #'dash-fraction = ##f
\override TextSpanner #'bound-details #'right #'padding = #0
\override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#center
\override TextSpanner #'bound-details #'left #'padding = #0.75
\override TextSpanner #'bound-details #'right #'attach-dir = #right
\override TextSpanner #'bound-details #'left #'text =
\markup { \bold 7 }
\override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #'(0 . -1) }
c'4 \startTextSpan
c'4 \stopTextSpan

\override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#up
\override TextSpanner #'bound-details #'left #'padding = #0
\override TextSpanner #'bound-details #'right #'padding = #0
\override TextSpanner #'bound-details #'left #'attach-dir = #right
\override TextSpanner #'bound-details #'left #'text =
\markup { \draw-line #'(0 . -1) }
c'4 \startTextSpan
c'4 \stopTextSpan
}

%%% SPANNERS %%%



Hope this helps.








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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,



thank you. Actually I'm using the stable version (2.10.10 as far as I
know), and I don't really want to change it to a version under
development unless I'd be really forced to do that. Don't you have some
idea that works also with the stable version? (I tried both, but they
didn't work in 2.10.10)
Of course, if there's no other solution, I'll upgrade my Lily, as my
deadline for this score is this weekend...

Thank you again,
Adam


Hi Adam,

If I recall correctly, the syntax for getting vertical nibs at the
edge of text spanners the old way was to override the edge-text
attribute of the grob. Something like this ...

  \override TextSpanner #'edge-text = #'(left . right)

... where you have to replace left and right with the command to
draw-line shown in the previous example.

I'm running the 2.11.x series only; can you find reference to
edge-text in the 2.10 manual?

Trevor.


--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello,


the problem is that I can't figure out how to set up the #'edge-text 
property to draw the lines (the markup doesn't accept the draw-line 
command, and it's not included in the list of valid markup commands for 
2.10.10). Now I've spent at about an hour with adopting the code that I 
got a few days ago for Bartok-pizz to make it able to draw a line (as 
the Bartok-pizz sign has a line included), with the following code:


\override TextSpanner #'edge-text = #(cons (markup #:stencil
   (ly:stencil-add
 (ly:make-stencil
   (list 'draw-line x1 x2 x3 x4 x5)
   '(x6 . x7) '(x8 . x9)
 )
 )
   )  (markup #:stencil
   (ly:stencil-add
 (ly:make-stencil
   (list 'draw-line x10 x11 x12 x13 x14)
   '(x15 . x16) '(x17 . x18)
 )
 )
   ) )


where the values x1-x18 are number parameters. The problem is, that I'm 
googleing and searching every documentation I've found, but I can't 
guess the meaning of these 18 parameters (in fact, just 9, as the other 
9 are supposed to mean the same thing).


Could anybody explain for me what these numbers mean, and how to force 
them to draw a simple vertical line which fits to the textspanner's line?


Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using 
Lilypond a week ago or so, and I couldn't find up to now an acceptable 
reference manual for it (so, a collection of documents that contain 
every possible command with their every possible parameters and values, 
like for example the javadocs for Java). Does exist this kind of 
documentation somewhere?



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,



thank you. Actually I'm using the stable version (2.10.10 as far as I
know), and I don't really want to change it to a version under
development unless I'd be really forced to do that. Don't you have some
idea that works also with the stable version? (I tried both, but they
didn't work in 2.10.10)
Of course, if there's no other solution, I'll upgrade my Lily, as my
deadline for this score is this weekend...

Thank you again,
Adam


Hi Adam,

If I recall correctly, the syntax for getting vertical nibs at the
edge of text spanners the old way was to override the edge-text
attribute of the grob. Something like this ...

  \override TextSpanner #'edge-text = #'(left . right)

... where you have to replace left and right with the command to
draw-line shown in the previous example.

I'm running the 2.11.x series only; can you find reference to
edge-text in the 2.10 manual?

Trevor.





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


Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

Hi Adam,

There's a way to turn LilyPond markup commands like \draw-line into
Scheme expressions; the method is documented in 12.4.1 Markup
construction in Scheme in the 2.11 version of the manual; and I think
the concept is exactly the same in 2.10.

So maybe this will work ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... though, again, I don't have a 2.10 install loaded to test with.

Does this get it?



On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


the problem is that I can't figure out how to set up the #'edge-text
property to draw the lines (the markup doesn't accept the draw-line
command, and it's not included in the list of valid markup commands for
2.10.10). Now I've spent at about an hour with adopting the code that I
got a few days ago for Bartok-pizz to make it able to draw a line (as
the Bartok-pizz sign has a line included), with the following code:

\override TextSpanner #'edge-text = #(cons (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x1 x2 x3 x4 x5)
'(x6 . x7) '(x8 . x9)
  )
  )
)  (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x10 x11 x12 x13 x14)
'(x15 . x16) '(x17 . x18)
  )
  )
) )


where the values x1-x18 are number parameters. The problem is, that I'm
googleing and searching every documentation I've found, but I can't
guess the meaning of these 18 parameters (in fact, just 9, as the other
9 are supposed to mean the same thing).

Could anybody explain for me what these numbers mean, and how to force
them to draw a simple vertical line which fits to the textspanner's line?

Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using
Lilypond a week ago or so, and I couldn't find up to now an acceptable
reference manual for it (so, a collection of documents that contain
every possible command with their every possible parameters and values,
like for example the javadocs for Java). Does exist this kind of
documentation somewhere?


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:
 On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:
 Hello,



 thank you. Actually I'm using the stable version (2.10.10 as far as I
 know), and I don't really want to change it to a version under
 development unless I'd be really forced to do that. Don't you have some
 idea that works also with the stable version? (I tried both, but they
 didn't work in 2.10.10)
 Of course, if there's no other solution, I'll upgrade my Lily, as my
 deadline for this score is this weekend...

 Thank you again,
 Adam

 Hi Adam,

 If I recall correctly, the syntax for getting vertical nibs at the
 edge of text spanners the old way was to override the edge-text
 attribute of the grob. Something like this ...

   \override TextSpanner #'edge-text = #'(left . right)

 ... where you have to replace left and right with the command to
 draw-line shown in the previous example.

 I'm running the 2.11.x series only; can you find reference to
 edge-text in the 2.10 manual?

 Trevor.




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




--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Hello,


actually, that was the first thing I tried, but it seems to me that the 
draw-line command doesn't exist in 2.10.25 (sorry for the prior 
misspelling, I'm using 2.10.25, not 2.10.10 -- although this doesn't 
really make a difference, I suppose). But, after tweaking a few hours 
with the code I got for the Bartok-pizz, I succeeded! :-)


That was the code I created:

%%

simpleBracket = {
 \override TextSpanner #'edge-text = #(cons
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
 )
 \textSpannerUp
 \once \override TextSpanner #'dash-fraction = ##f
}

[...]

 \new Voice {
 \hideNotes
 \simpleBracket
 \stemDown g2.\startTextSpan \glissando e''4.\stopTextSpan
 \unHideNotes
   } {
 \simpleBracket
 g dis'2.\startTextSpan \glissando e'' his'4.\stopTextSpan
 } 

%%


(The two voices are needed because I had to put this over a chord 
glissando, and also because I needed two brackets.)


Well, doesn't look very nice (as the distance between the two brackets 
is enormous, and also because one bracket is supposed to be nested into 
the other), but works!! :-) :-) :-)


Thank you very much!
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

Hi Adam,

There's a way to turn LilyPond markup commands like \draw-line into
Scheme expressions; the method is documented in 12.4.1 Markup
construction in Scheme in the 2.11 version of the manual; and I think
the concept is exactly the same in 2.10.

So maybe this will work ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... though, again, I don't have a 2.10 install loaded to test with.

Does this get it?



On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


the problem is that I can't figure out how to set up the #'edge-text
property to draw the lines (the markup doesn't accept the draw-line
command, and it's not included in the list of valid markup commands for
2.10.10). Now I've spent at about an hour with adopting the code that I
got a few days ago for Bartok-pizz to make it able to draw a line (as
the Bartok-pizz sign has a line included), with the following code:

\override TextSpanner #'edge-text = #(cons (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x1 x2 x3 x4 x5)
'(x6 . x7) '(x8 . x9)
  )
  )
)  (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x10 x11 x12 x13 x14)
'(x15 . x16) '(x17 . x18)
  )
  )
) )


where the values x1-x18 are number parameters. The problem is, that I'm
googleing and searching every documentation I've found, but I can't
guess the meaning of these 18 parameters (in fact, just 9, as the other
9 are supposed to mean the same thing).

Could anybody explain for me what these numbers mean, and how to force
them to draw a simple vertical line which fits to the textspanner's 
line?


Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using
Lilypond a week ago or so, and I couldn't find up to now an acceptable
reference manual for it (so, a collection of documents that contain
every possible command with their every possible parameters and values,
like for example the javadocs for Java). Does exist this kind of
documentation somewhere?


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:
 On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:
 Hello,



 thank you. Actually I'm using the stable version (2.10.10 as far as I
 know), and I don't really want to change it to a version under
 development unless I'd be really forced to do that. Don't you have 
some

 idea that works also with the stable version? (I tried both, but they
 didn't work in 2.10.10)
 Of course, if there's no other solution, I'll upgrade my Lily, as my
 deadline for this score is this weekend...

 Thank you again,
 Adam

 Hi Adam,

 If I recall correctly, the syntax for getting vertical nibs at the
 edge of text spanners the old way was to override the edge-text
 attribute of the grob. Something like this ...

   \override TextSpanner #'edge-text = #'(left . right)

 ... where you have to replace left and right with the command to
 draw-line shown in the previous example.

 I'm running the 2.11.x series only; can you find reference to
 edge-text in the 2.10 manual?

 Trevor.




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







___

Re: Horizontal brackets

2007-07-25 Thread Siska Ádám

Sic transit gloria mundi.


I found it in the snipplet repository now. The problem was, that I 
hadn't search for the keyword 'line'. Here's the code:


 \textSpannerUp
 \once \override TextSpanner #'edge-text = #'(  .  )
 \once \override TextSpanner  #'edge-height = #'(1 . 1)
 \once \override TextSpanner #'dash-fraction = ##f


That was all...

Bye,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Siska Ádám wrote:

Hello,


actually, that was the first thing I tried, but it seems to me that 
the draw-line command doesn't exist in 2.10.25 (sorry for the prior 
misspelling, I'm using 2.10.25, not 2.10.10 -- although this doesn't 
really make a difference, I suppose). But, after tweaking a few hours 
with the code I got for the Bartok-pizz, I succeeded! :-)


That was the code I created:

%%

simpleBracket = {
 \override TextSpanner #'edge-text = #(cons
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
   (markup #:stencil
 (ly:stencil-add
   (ly:make-stencil
 (list 'draw-line 0 0 0 0 1)
 '(0 . 0) '(1 . 1)
   )
 )
   )
 )
 \textSpannerUp
 \once \override TextSpanner #'dash-fraction = ##f
}

[...]

 \new Voice {
 \hideNotes
 \simpleBracket
 \stemDown g2.\startTextSpan \glissando e''4.\stopTextSpan
 \unHideNotes
   } {
 \simpleBracket
 g dis'2.\startTextSpan \glissando e'' his'4.\stopTextSpan
 } 

%%


(The two voices are needed because I had to put this over a chord 
glissando, and also because I needed two brackets.)


Well, doesn't look very nice (as the distance between the two brackets 
is enormous, and also because one bracket is supposed to be nested 
into the other), but works!! :-) :-) :-)


Thank you very much!
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:

Hi Adam,

There's a way to turn LilyPond markup commands like \draw-line into
Scheme expressions; the method is documented in 12.4.1 Markup
construction in Scheme in the 2.11 version of the manual; and I think
the concept is exactly the same in 2.10.

So maybe this will work ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... though, again, I don't have a 2.10 install loaded to test with.

Does this get it?



On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


the problem is that I can't figure out how to set up the #'edge-text
property to draw the lines (the markup doesn't accept the draw-line
command, and it's not included in the list of valid markup commands for
2.10.10). Now I've spent at about an hour with adopting the code that I
got a few days ago for Bartok-pizz to make it able to draw a line (as
the Bartok-pizz sign has a line included), with the following code:

\override TextSpanner #'edge-text = #(cons (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x1 x2 x3 x4 x5)
'(x6 . x7) '(x8 . x9)
  )
  )
)  (markup #:stencil
(ly:stencil-add
  (ly:make-stencil
(list 'draw-line x10 x11 x12 x13 x14)
'(x15 . x16) '(x17 . x18)
  )
  )
) )


where the values x1-x18 are number parameters. The problem is, that I'm
googleing and searching every documentation I've found, but I can't
guess the meaning of these 18 parameters (in fact, just 9, as the other
9 are supposed to mean the same thing).

Could anybody explain for me what these numbers mean, and how to force
them to draw a simple vertical line which fits to the textspanner's 
line?


Thank you,
Adam

P.S. Sorry for the many questions I'm posting, but I started using
Lilypond a week ago or so, and I couldn't find up to now an acceptable
reference manual for it (so, a collection of documents that contain
every possible command with their every possible parameters and values,
like for example the javadocs for Java). Does exist this kind of
documentation somewhere?


Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


Trevor Bača wrote:
 On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:
 Hello,



 thank you. Actually I'm using the stable version (2.10.10 as far 
as I

 know), and I don't really want to change it to a version under
 development unless I'd be really forced to do that. Don't you 
have some
 idea that works also with the stable version? (I tried both, but 
they

 didn't work in 2.10.10)
 Of course, if there's no other solution, I'll upgrade my Lily, as my
 deadline for this score is this weekend...

 Thank you again,
 Adam

 Hi Adam,

 If I recall correctly, the syntax for getting vertical nibs at the
 edge of text spanners the old way was to override the edge-text
 attribute of the grob. Something like this ...

   

Re: Horizontal brackets

2007-07-25 Thread Trevor Bača

On 7/25/07, Siska Ádám [EMAIL PROTECTED] wrote:

Hello,


actually, that was the first thing I tried, but it seems to me that the
draw-line command doesn't exist in 2.10.25 (sorry for the prior
misspelling, I'm using 2.10.25, not 2.10.10 -- although this doesn't
really make a difference, I suppose). But, after tweaking a few hours
with the code I got for the Bartok-pizz, I succeeded! :-)


Yes; the draw-line command went bad for a couple of 2.[10, 11].x
releases; I just tested 2.11.25 and know that draw-line was definitely
*not* working in 2.11.25. However, draw-line *is definitely* working
in 2.11.26 and 2.11.27 after a bug fix from the developers. I can't
guarantee that it's the same in that 2.10.25 would be broken but that
2.10.26 and 2.10.27 would work ... but I think it's a reasonable
assmption.

Looking at the download page, it looks like 2.10.25 is the most recent
version and that 2.10.27 and 2.10.27 don't exist yet. When 2.10.26 (or
.27 or .28) becomes available, you should be able to use ...

   \once \override TextSpanner #'edge-text = #(cons
  (markup #:draw-line '(0 . -1))
  (markup #:draw-line '(0 . -1)))

... just fine.

Alternatively, you could try downloading 2.11.27 and see if everything
compiles fine. The unstable releases tend to be relatively stable
(IMO).



--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Horizontal brackets

2007-07-24 Thread Siska Ádám

Hello,


I'm trying to set up upper double brackets (the 'con molta pressione' 
sign for strings), but I have no idea on how to do this. I found that 
there are analysis brackets, but I can't force them to put themselves on 
the top of the notes, they don't really have rectangular shape, and they 
don't really nest well into each other (they have space between each 
other). I've seen that in mensural notation there are rectangular 
brackets for ligatures, but I also didn't catch how to display them in 
ordinary scores.

Does anyone know a solution?

Thank you,
Adam



Siska Ádám
+36 (70) 207-63-85
http://apocalypse.rulez.org/~sadam


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


Re: Notes in parentheses, horizontal brackets, midi from TabStaff

2006-05-08 Thread Geoff Horton

1/ Is it possible to place some noteheads into the parentheses?


Yes. See the \parenthesize command in 9.2.6 of the manual, assuming
you're using a 2.8 version of LilyPond. It's possible to do it in 2.6
versions, but on the messy side.

Geoff


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


Re: FW: Putting horizontal brackets at a fixed y-position

2005-09-27 Thread Sven Axelsson
Han-Wen Nienhuys [mailto:[EMAIL PROTECTED]] wrote: [EMAIL PROTECTED] wrote:  Is there already a non-hackish way of putting horizontal brackets (voltas and
  analysis brackets) at a *fixed* y-position unaffected by the bracketed music?  If not I'm willing to sponsor such a feature that for both volta brackets and  analysis brackets lets me do, for instance
   \override HorizontalBracket #'fixed-position = #'(2 . 3) % use octave and note pos   or perhaps using the padding property together with a flag. Now the bracket will  all be put at that position, even if the music overlaps them.
   How about that? And I actually consider it a bug that Lilypond doesn't do this  as default.   try this   \layout { \context {
 \Staff \consists Horizontal_bracket_engraver } raggedright = ##t }   \relative c { \once \override Staff.HorizontalBracket #'Y-offset-callbacks = #(list
 Staff_symbol_referencer::callback) \once \override Staff.HorizontalBracket #'staff-position = #5 \once \override Staff.HorizontalBracket #'direction = #UP c4\startGroup c'''4 c,,,4\stopGroup
 }
That is very close to what I need. It works perfectly for analysis brackets
but it appears that the staff-position can't be more than 8 (or perhaps 7.5),
which puts the volta brackets a little too close to the staff. If I could raise
those one more note space it would be perfect.-- Sven Axelsson 
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: FW: Putting horizontal brackets at a fixed y-position

2005-09-27 Thread Han-Wen Nienhuys

Sven Axelsson wrote:
 
That is very close to what I need. It works perfectly for analysis brackets
but it appears that the staff-position can't be more than 8 (or perhaps 
7.5),
which puts the volta brackets a little too close to the staff. If I 
could raise

those one more note space it would be perfect.


the overrides have to be where the bracket starts. Otherwise, leave out 
the \once.


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: Putting horizontal brackets at a fixed y-position

2005-09-27 Thread Sven Axelsson
Han-Wen Nienhuys wrote:
 Sven Axelsson wrote:

 That is very close to what I need. It works perfectly for analysis
 brackets but it appears that the staff-position can't be more than 8
 (or perhaps
 7.5),
 which puts the volta brackets a little too close to the staff. If I
 could raise those one more note space it would be perfect.

 the overrides have to be where the bracket starts. Otherwise, leave
 out the \once.

Well, of course. I made it a global override using

\layout {
\context {
\Score
\override VoltaBracket #'Y-offset-callbacks = #(list
Staff_symbol_referencer::callback)
\override VoltaBracket #'staff-position = #8
}
}

and it seems that the bracket stops raising at staff-position 8.
Perhaps I need to tweak something else too?

--
Sven Axelsson


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


Re: Putting horizontal brackets at a fixed y-position

2005-09-27 Thread Han-Wen Nienhuys

Sven Axelsson wrote:

Well, of course. I made it a global override using

\layout {
\context {
\Score
\override VoltaBracket #'Y-offset-callbacks = #(list
Staff_symbol_referencer::callback)
\override VoltaBracket #'staff-position = #8
}
}

and it seems that the bracket stops raising at staff-position 8.


bugreport please.

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: Putting horizontal brackets at a fixed y-position

2005-09-27 Thread Sven Axelsson
On 27/09/05, Han-Wen Nienhuys [EMAIL PROTECTED] wrote:
 Sven Axelsson wrote:
  Well, of course. I made it a global override using
 
  \layout {
  \context {
  \Score
  \override VoltaBracket #'Y-offset-callbacks = #(list
  Staff_symbol_referencer::callback)
  \override VoltaBracket #'staff-position = #8
  }
  }
 
  and it seems that the bracket stops raising at staff-position 8.

 bugreport please.

No bug, just my mistake. Sorry about that. Anyhow this is a great tip
that I'm sure everybody wants to know about. Try this.


\version 2.7.10

\score {
\relative c'' {
  \repeat volta 2 { a b c d }
  \alternative { { d' c b a } { e c d b } }
}
}
\markup { Adjacent volta brackets are put on different height. }

\score {
\relative c'' {
  \repeat volta 2 { a b c d }
  \alternative { { d' c b a } { e c d b } }
}
\layout {
  \context {
\Score
\override VoltaBracket #'Y-offset-callbacks = #(list
Staff_symbol_referencer::callback)
\override VoltaBracket #'staff-position = #8
  }
}
}
\markup { Now brackets are aligned and the music is inside the bracket. }


Shouldn't this behaviour be the default?

--
Sven Axelsson


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


Re: Putting horizontal brackets at a fixed y-position

2005-09-27 Thread Mats Bengtsson



Sven Axelsson wrote:

\score {
\relative c'' {
  \repeat volta 2 { a b c d }
  \alternative { { d' c b a } { e c d b } }
}
\layout {
  \context {
\Score
\override VoltaBracket #'Y-offset-callbacks = #(list
Staff_symbol_referencer::callback)
\override VoltaBracket #'staff-position = #8
  }
}
}
\markup { Now brackets are aligned and the music is inside the bracket. }


Shouldn't this behaviour be the default?


No! If you for example replace the d' in the first ending with a g',
then you will get a completely unacceptable output. I know your
opinion that you will manually spot it and correct it, but it
should certainly not be the default.

The default behaviour should be that if there is a high note
in any of the prima volta or secunda volta, then both should be
raised so that the notes fit below the brackets but both brackets
are still aligned. However, it seems that this would require some
major modifications to the internals of LilyPond, which is why we
have the current situation.

   /Mats


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


Putting horizontal brackets at a fixed y-position

2005-09-26 Thread sven
Is there already a non-hackish way of putting horizontal brackets (voltas and
analysis brackets) at a *fixed* y-position unaffected by the bracketed music?
If not I'm willing to sponsor such a feature that for both volta brackets and
analysis brackets lets me do, for instance

\override HorizontalBracket #'fixed-position = #'(2 . 3) % use octave and note
pos

or perhaps using the padding property together with a flag. Now the bracket will
all be put at that position, even if the music overlaps them.

How about that? And I actually consider it a bug that Lilypond doesn't do this
as default.

-- 
Sven Axelsson



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


Re: Putting horizontal brackets at a fixed y-position

2005-09-26 Thread Mats Bengtsson

Are you seriously saying that you want high notes to actually pass
through the brackets?

What you can do is to reduce the padding and increase the staff-padding
(or minimum-space, which is used in the default settings for
VoltaBracket, for some reason). Then, the distance from the stave will
be more limiting than the distance from the note unless you have a note
with a very high pitch.

   /Mats

[EMAIL PROTECTED] wrote:

Is there already a non-hackish way of putting horizontal brackets (voltas and
analysis brackets) at a *fixed* y-position unaffected by the bracketed music?
If not I'm willing to sponsor such a feature that for both volta brackets and
analysis brackets lets me do, for instance

\override HorizontalBracket #'fixed-position = #'(2 . 3) % use octave and note
pos

or perhaps using the padding property together with a flag. Now the bracket will
all be put at that position, even if the music overlaps them.

How about that? And I actually consider it a bug that Lilypond doesn't do this
as default.



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=


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


Re: Putting horizontal brackets at a fixed y-position

2005-09-26 Thread sven
Mats Bengtsson wrote:
 Are you seriously saying that you want high notes to actually pass
 through the brackets?

Yes, that's what I want. This doesn't mean that I intend to have lots of
music that overlaps the brackets, but rather that if I see overlaps, I can tweak
the position globally, and be sure to get a consistent layout without Lilypond
moving things behind my back.

It also means that I can have music that is actually inside the volta brackets.
As of now the brackets seems to be pushed up as soon as music gets near the
bracket bounding box.

 What you can do is to reduce the padding and increase the
 staff-padding (or minimum-space, which is used in the default
 settings for VoltaBracket, for some reason). Then, the distance from
 the stave will be more limiting than the distance from the note
 unless you have a note with a very high pitch.

OK, I may look into this too.

Thanks

-- 
Sven Axelsson


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


Re: Putting horizontal brackets at a fixed y-position

2005-09-26 Thread Han-Wen Nienhuys

[EMAIL PROTECTED] wrote:

Is there already a non-hackish way of putting horizontal brackets (voltas and
analysis brackets) at a *fixed* y-position unaffected by the bracketed music?
If not I'm willing to sponsor such a feature that for both volta brackets and
analysis brackets lets me do, for instance

\override HorizontalBracket #'fixed-position = #'(2 . 3) % use octave and note
pos

or perhaps using the padding property together with a flag. Now the bracket will
all be put at that position, even if the music overlaps them.

How about that? And I actually consider it a bug that Lilypond doesn't do this
as default.



try this


\layout {
  \context {
\Staff \consists Horizontal_bracket_engraver
  }
  raggedright = ##t
}


\relative c {
  \once \override Staff.HorizontalBracket #'Y-offset-callbacks = #(list 
Staff_symbol_referencer::callback)

  \once \override Staff.HorizontalBracket #'staff-position = #5
  \once \override Staff.HorizontalBracket #'direction = #UP
  c4\startGroup c'''4 c,,,4\stopGroup
}



If this answer satisfies you, please consider a donation.

thanks,

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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