Re: offset of chords

2017-01-25 Thread Malte Meyn


Am 26.01.2017 um 04:32 schrieb MING TSANG:
> Is it possible to tweak chords outside the four eighth-note beam?

Try
\once \override NoteColumn.force-hshift = -1.8

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


offset of chords

2017-01-25 Thread MING TSANG


   
Dear lilyponders,
Is it possible to tweak chords outside the four eighth-note beam?
Ming

\version "2.19.54"\language "english"
{\key g \major  \numericTimeSignature  \time 4/4  \tempo 4=66<<{2 
2}\\{ef''8 df'' c'' bf' f'' ef'' bf' g'}>>}




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


Re: change staff

2017-01-25 Thread Gianmaria Lari
Thank you, Malte and Noeck, it works perfectly.

I post here another solution, that is interesting because it doesn't use
scheme and more easy to understand.

\version "2.19.54"
csl = { \change Staff = "left" }
csr = { \change Staff = "right" }

right = \fixed c' {
  \clef treble
  \time 2/4
  g8-4 \csl g_4 \csr e-3 \csl e_3 \csr
  g8-4 \csl g_4 \csr e4-2
  \bar "|."
}

left = \fixed c' {
  \clef treble
  s2
  s4 c_2
}

\score {
  \new PianoStaff
  <<
\new Staff = "right" \right
\new Staff = "left"  \left
  >>
  \layout { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re:\removing the time signature (Noeck)

2017-01-25 Thread Sam Frybyte
​Thank you the first suggestion worked yes I forgot version and yes I was
using \cadenzaOn
best
j​

On Wed, Jan 25, 2017 at 2:56 AM,  wrote:

> Re:\removing the time signature (Noeck)





-- 
Jay Hamilton
Sound & Silence
www.soundand.com
 206-328-7694
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Prohibit page breaks within score

2017-01-25 Thread mogens
Hi Kieren,

Thanks – also for reminding me that \layout can happen at the top level.

Regards,
Mogens

From: Kieren MacMillan
Sent: Wednesday, January 25, 2017 9:06
To: mog...@kayju.com
Cc: Lilypond-User Mailing List
Subject: Re: Prohibit page breaks within score

Hi Mogens,

To discourage page breaks within scores, use

\layout {
  \context {
\Score
\override NonMusicalPaperColumn.page-break-permission = ##f
  }
}

Hope that helps!
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


Re: overextended volta alternatives

2017-01-25 Thread tisimst
Andrew,

On Wed, Jan 25, 2017 at 10:48 AM, N. Andrew Walsh [via Lilypond] <
ml-node+s1069038n199535...@n5.nabble.com> wrote:

> Well,
>
> On Wed, Jan 25, 2017 at 6:38 PM, Simon Albrecht <[hidden email]
> > wrote:
>
>> On 25.01.2017 18:33, N. Andrew Walsh wrote:
>>
>>> the \break statements within an \alternative block are causing the
>>> counter to register another ending, for some reason.
>>>
>>> let me clarify: the \break statements were *in between* the three
> enclosed music statements that comprised the \alternative block. So it
> might have been that Lily assumed them to be independent statements. I
> suppose I could have put them inside the brackets, but as I'm fine with
> Lily's default layout, I'll leave them out.
>

Glad you got it sorted out. Did you try putting the \breaks *within* the
first two music expressions? In other words:

\repeat volta 3 {
  ...
}
\alternative {
  { ... \break }
  { ... \break }
  { ... }
}

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/overextended-volta-alternatives-tp199532p199536.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: overextended volta alternatives

2017-01-25 Thread Simon Albrecht

On 25.01.2017 18:46, N. Andrew Walsh wrote:

Well,

On Wed, Jan 25, 2017 at 6:38 PM, Simon Albrecht 
> wrote:


On 25.01.2017 18:33, N. Andrew Walsh wrote:

the \break statements within an \alternative block are causing
the counter to register another ending, for some reason.

let me clarify: the \break statements were *in between* the three 
enclosed music statements that comprised the \alternative block. So it 
might have been that Lily assumed them to be independent statements. I 
suppose I could have put them inside the brackets, […]


Well, that explains it. You have to put them inside one of the 
alternatives, or it will count as an alternative of its own – a \break 
is a music expression.


Best, Simon

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


Re: overextended volta alternatives

2017-01-25 Thread N. Andrew Walsh
Well,

On Wed, Jan 25, 2017 at 6:38 PM, Simon Albrecht 
wrote:

> On 25.01.2017 18:33, N. Andrew Walsh wrote:
>
>> the \break statements within an \alternative block are causing the
>> counter to register another ending, for some reason.
>>
>> let me clarify: the \break statements were *in between* the three
enclosed music statements that comprised the \alternative block. So it
might have been that Lily assumed them to be independent statements. I
suppose I could have put them inside the brackets, but as I'm fine with
Lily's default layout, I'll leave them out.

Cheers,

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


Re: overextended volta alternatives

2017-01-25 Thread Simon Albrecht

On 25.01.2017 18:33, N. Andrew Walsh wrote:
the \break statements within an \alternative block are causing the 
counter to register another ending, for some reason.


That sounds like a bug to me. If you agree, please report it.

Best, Simon

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


Re: overextended volta alternatives

2017-01-25 Thread N. Andrew Walsh
Update: as was pointed out earlier today, fiddling with an MWE often helps
solve the problem. In this case, here's what's going on: the \break
statements within an \alternative block are causing the counter to register
another ending, for some reason. If I delete both \break statements, then I
can have three \alternative blocks with a \repeat volta 3 statement, and
the time/key signatures reappear.

So, uh, thanks for the help?

Cheers,

A

On Wed, Jan 25, 2017 at 6:23 PM, N. Andrew Walsh 
wrote:

> Hi List,
>
> I have a somewhat difficult issue with volta and alternative endings.
> First, a verbal description:
>
> I have a score in which a passage is repeated 3 times, each with a
> different ending. At the last ending, I have a section that repeats thrice,
> followed by three separate endings. So, here is a MWE:
>
> \version "2.19.52"
>
>
> \relative c' {
>   \time 4/8
>   \repeat volta 5 {
> s2*24 |
>   }
>   \alternative {
>{ % 25-28
>\mark \default
>s2*4
>
>| % 29-30
>\time 2,2,3 7/8
>s1*7/8*2
>\bar "||"
>
>| %31
>s1*7/8
>
>| % 32-35
>\time 4/8
>s2*4
>
>
>| %36-37
>s2 | s4 s8 s16 s16^\markup { \right-align { "D.S. al Coda" } } |
>}
>\break
>{
>% 38-52 (copied from "Abschied")
>\mark \default
>\once \override Score.MetronomeMark.extra-offset = #'(1 . 2.75)
>\tempo 8 = 104
>\time 4/4
>\key b \major
> s1*15 \bar "||"
>
>%53-57
>\mark \default
>s1*5 | }
>\break
>{
>% 58-59
>\mark \default
>\once \override Score.MetronomeMark.extra-offset = #'(1 . 0)
>\tempo "Lento (Tempo I)"
>\time 4/8
>\key b \minor
>s2*2 |
>}
>
>}
> s2*4
> \bar "|."
> }
>
> here's the issue: there are only three alternative endings that I can see
> -- the ones starting at 25, 38, and 58 --, but Lilypond gives me the
> following error if I have any fewer that 5 repeats given to volta:
>
> warning: More alternatives than repeats.  Junking excess alternatives
>
> furthermore, in my complete file, the \time and \key statements in the
> last alternative block are ignored, so that I get a bunch of barcheck
> failures.
>
> Can you let me know what I'm doing wrong here?
>
> Cheers,
>
> A
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


overextended volta alternatives

2017-01-25 Thread N. Andrew Walsh
Hi List,

I have a somewhat difficult issue with volta and alternative endings.
First, a verbal description:

I have a score in which a passage is repeated 3 times, each with a
different ending. At the last ending, I have a section that repeats thrice,
followed by three separate endings. So, here is a MWE:

\version "2.19.52"


\relative c' {
  \time 4/8
  \repeat volta 5 {
s2*24 |
  }
  \alternative {
   { % 25-28
   \mark \default
   s2*4

   | % 29-30
   \time 2,2,3 7/8
   s1*7/8*2
   \bar "||"

   | %31
   s1*7/8

   | % 32-35
   \time 4/8
   s2*4


   | %36-37
   s2 | s4 s8 s16 s16^\markup { \right-align { "D.S. al Coda" } } |
   }
   \break
   {
   % 38-52 (copied from "Abschied")
   \mark \default
   \once \override Score.MetronomeMark.extra-offset = #'(1 . 2.75)
   \tempo 8 = 104
   \time 4/4
   \key b \major
s1*15 \bar "||"

   %53-57
   \mark \default
   s1*5 | }
   \break
   {
   % 58-59
   \mark \default
   \once \override Score.MetronomeMark.extra-offset = #'(1 . 0)
   \tempo "Lento (Tempo I)"
   \time 4/8
   \key b \minor
   s2*2 |
   }

   }
s2*4
\bar "|."
}

here's the issue: there are only three alternative endings that I can see
-- the ones starting at 25, 38, and 58 --, but Lilypond gives me the
following error if I have any fewer that 5 repeats given to volta:

warning: More alternatives than repeats.  Junking excess alternatives

furthermore, in my complete file, the \time and \key statements in the last
alternative block are ignored, so that I get a bunch of barcheck failures.

Can you let me know what I'm doing wrong here?

Cheers,

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


Re: Prohibit page breaks within score

2017-01-25 Thread Kieren MacMillan
Hi Mogens,

To discourage page breaks within scores, use

\layout {
  \context {
\Score
\override NonMusicalPaperColumn.page-break-permission = ##f
  }
}

Hope that helps!
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


Prohibit page breaks within score

2017-01-25 Thread mogens
Dear List,

When I make several short scores (one staff, two or three systems), I would 
like page breaks to occur only between scores (but not between every pair of 
scores).  I can achieve that by inserting \pageBreak judicially, but how to do 
it automatically?

I have played with
\paper {
  score-system-spacing #'stretchability = #1
  score-markup-spacing #'stretchability = #1
}
to encourage stretching, but that does not discourage page breaks within scores 
sufficiently.

Regards,
Mogens


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


Re: change staff

2017-01-25 Thread Noeck
Am 25.01.2017 um 14:38 schrieb SoundsFromSound:
> Do you know how to fix them?

Hi,

you need staves named "right" and "left" for this to work:


\version "2.19.50"

l =
#(define-music-function (music) (ly:music?)
   #{
 \change Staff = "left"
 #music
 \change Staff = "right"
   #})

right = \fixed c' {
  \clef treble
  \time 2/4
  g8-4 \l g_4 e-3 \l e_3
  g8-4 \l g_4 e4-2
  \bar "|."
}

% the new part:
\new PianoStaff <<
  \new Staff = right \right
  \new Staff = left { \clef bass s1 }
>>

HTH,
Joram

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


Re: change staff

2017-01-25 Thread SoundsFromSound
Malte Meyn-3 wrote
> Am 25.01.2017 um 11:55 schrieb Gianmaria Lari:
>> - Is there a simpler way to write this source code avoiding all these
>> change staff?
> 
> You could use a simple music function:
> 
> l =
> #(define-music-function (music) (ly:music?)
>#{
>  \change Staff = "left"
>  #music
>  \change Staff = "right"
>#})
> 
> right = \fixed c' {
>   \clef treble
>   \time 2/4
>   g8-4 \l g_4 e-3 \l e_3
>   g8-4 \l g_4 e4-2
>   \bar "|."
> }
> 
>> - Is it correct writing the left hand using s2 etc. etc.?
> 
> Yes it is.
> 
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hello,

When I copied your code into a new LilyPond file, I got some warnings at
every instance of the "l". 

Do you know how to fix them?
--

l = 
#(define-music-function (music) (ly:music?) 
   #{ 
 \change Staff = "left" 
 #music 
 \change Staff = "right" 
   #}) 

right = \fixed c' { 
  \clef treble 
  \time 2/4 
  g8-4 \l g_4 e-3 \l e_3 
  g8-4 \l g_4 e4-2 
  \bar "|." 
} 

*warning: cannot find context to switch to
warning: cannot find context to switch to
warning: cannot find context to switch to
warning: cannot find context to switch to*




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/change-staff-tp199525p199528.html
Sent from the User mailing list archive at Nabble.com.

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


Re: \removing the time signature

2017-01-25 Thread Noeck
> here are two more possibilites. I would choose the first one:

Btw: Why is the spacing different between the two?

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


Re: change staff

2017-01-25 Thread Malte Meyn


Am 25.01.2017 um 11:55 schrieb Gianmaria Lari:
> - Is there a simpler way to write this source code avoiding all these
> change staff?

You could use a simple music function:

l =
#(define-music-function (music) (ly:music?)
   #{
 \change Staff = "left"
 #music
 \change Staff = "right"
   #})

right = \fixed c' {
  \clef treble
  \time 2/4
  g8-4 \l g_4 e-3 \l e_3
  g8-4 \l g_4 e4-2
  \bar "|."
}

> - Is it correct writing the left hand using s2 etc. etc.?

Yes it is.


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


change staff

2017-01-25 Thread Gianmaria Lari
- Is there a simpler way to write this source code avoiding all these
change staff?
- Is it correct writing the left hand using s2 etc. etc.?

Thank you, g.

\version "2.19.54"
right = \fixed c' {
  \clef treble
  \time 2/4
  g8-4 \change Staff = "left" g_4 \change Staff = "right" e-3 \change Staff
= "left" e_3 \change Staff = "right"
  g8-4 \change Staff = "left" g_4 \change Staff = "right" e4-2
  \bar "|."
}

left = \fixed c' {
  \clef treble
  s2
  s4 c_2
}

\score {
  \new PianoStaff
  <<
\new Staff = "right" \right
\new Staff = "left"  \left
  >>
  \layout { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Coordinates of the noteheads a tie/slur is attached to

2017-01-25 Thread Urs Liska
Hi David,

thanks for your code


Am 24.01.2017 um 15:42 schrieb David Nalesnik:
> Hi Urs,
>
> On Tue, Jan 24, 2017 at 7:19 AM, Urs Liska  wrote:
>> Hi,
>>
>> how can I find the coordinates of the two note heads a tie or slur is
>> attached to?
>>
>> ...
> Try:
>
> ...
>
> You can get the Y position by 'staff-position of the notes and
> calculate the Y from the staff-space, staff-width, etc.
>
> HTH,

Indeed. I think for the next step I have everything I need, I can
determine the horizontal distance of the note heads and the Y position,
and from there I'll be able to create a path. The following isn't the
path I'm after but it shows how (and that) it works.
What I'll have to deal with now is the direction and the proper handling
of chords (of course it's not a solution to simply pick the first
notehead). And of course I'll clean up the bindings.



\version "2.19.54"

#(define (get-noteheads grob)
   (if (grob::has-interface grob 'note-column-interface)
   (ly:grob-array->list (ly:grob-object grob 'note-heads))
   (list grob)))

#(define (my-notehead-positions grob)
   (let* ((sys (ly:grob-system grob))
  (lb (ly:spanner-bound grob LEFT))
  (lb-noteheads (get-noteheads lb))
  (lb-x (ly:grob-relative-coordinate (first lb-noteheads) sys X))
  (lb-y (ly:grob-property (first lb-noteheads) 'staff-position))
  (lb-y-start (- (/ lb-y 2) 1.5))
  (rb (ly:spanner-bound grob RIGHT))
  (rb-noteheads (get-noteheads rb))
  (rb-x (ly:grob-relative-coordinate (first rb-noteheads) sys X))
  (rb-y (ly:grob-property (first rb-noteheads) 'staff-position))
  (rb-y-end (- (/ rb-y 2) 1.5))
  (grob-width (- rb-x lb-x))
  )
 (ly:make-stencil
  `(path
0.5
`(moveto 0 ,,lb-y-start
   lineto ,,grob-width ,,rb-y-end)))
 ))

\relative c' {
  \override Slur.stencil = #my-notehead-positions
  \override Tie.stencil = #my-notehead-positions
  c~ c 2( e)
}

\new PianoStaff <<
  \new Staff \relative c' {
\override Slur.stencil = #my-notehead-positions
\override Tie.stencil = #my-notehead-positions
c~ c c( e)
  }
  \new Staff {
R1*2
  }
>>




>
> David

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


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


Re: Question about easy note heads

2017-01-25 Thread Pierre Perol-Schneider
Hi Max,

How about:

\version "2.18.2"

\layout {
  \context {
\Staff
\override StaffSymbol.staff-space = #3
\override StaffSymbol.line-thickness = #1.5
\override Clef.font-size = #10
\override TimeSignature.font-size = #10
\override Accidental.font-size = #5
  }
}

\relative {
  \easyHeadsOn
  \override NoteHead.font-size = #3
  c' d e f g a b cis
}

Cheers,
Pierre

2017-01-23 21:53 GMT+01:00 Max Xiong :

> How do I make the easy note heads display larger text or bold text? Thanks!
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \removing the time signature

2017-01-25 Thread Noeck
Hi Sam,

here are two more possibilites. I would choose the first one:

\version "2.19.53"

% version 1
{
  \omit Staff.TimeSignature
  % \override Staff.TimeSignature.stencil = ##f  % equivalent
  \cadenzaOn  % start a cadenza (no meter)
  a a a a a1 \bar "|"
}

% version 2
\score{
  {
a4 a a a a1
  }
  \layout {
\context {
  \Staff
  \remove "Bar_engraver"
  \remove "Time_signature_engraver"
}
  }
}

HTH,
Joram

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