Re: Dynamic context that can follow system breaks?

2012-04-13 Thread -Eluze


James Harkins-2 wrote:
 
 At Fri, 13 Apr 2012 00:29:14 +0800,
 James Harkins wrote:
 
 I'm sure somebody has had to do this before: place dynamics under a staff
 so that all the dynamics in one system are the same distance below the
 staff, but that distance can be different from one system to the next.
 
 
 

probably a case for vertical spacing:

\new Dynamics {
  \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing 
  = #'((basic-distance . 1)(minimum-distance . 1)(stretchability . 20)
(padding . 0))  
…

hth 
Eluze
-- 
View this message in context: 
http://old.nabble.com/Dynamic-context-that-can-follow-system-breaks--tp33676670p33680106.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: Barline type before \time change

2012-04-13 Thread Jan-Peter Voigt

Hello Urs,

There are two possibilities:

1.: use a little music-function-helper:
--snip--
\version 2.15.36

dbtime = #(define-music-function (parser location frac)(fraction?)
  #{
\bar || \time $frac
#})

% example
\relative c' {
  c4 e g b \dbtime 3/4 c des b | c2.
}
--snip--

but this means not using the standard \time command.

2.: If you want to have this effect on existing sources, you might want 
to use a scheme-engraver.
This is based on a snippet, I took from this list ... I think David 
Nalesnik wrote it(?)

--snip--
\version 2.15.36
% this might work in 2.14 too?

DbBars = #(lambda (context)
  (let ((time-signature '())
(last-fraction #f))

   `((process-music
  . ,(lambda (trans)
  (let ((frac (ly:context-property context 
'timeSignatureFraction)))

   (if (and (null? time-signature)
(not (equal? last-fraction frac))
(fraction? frac))
   (begin
 (ly:context-set-property! context 
'whichBar ||)

 (set! last-fraction frac)
  )))
))

(stop-translation-timestep
  . ,(lambda (trans)
  (set! time-signature '()
))

% example
\score {
  \relative c' {
c4 e g b \time 3/4 c des b | c2.
  }
  \layout {
\context {
  \Score
  \consists \DbBars
}
  }
}
--snip--

With the engraver, you should be able to include an existing file while 
using this custom engraver globally:

--snip--
\layout {
  \context {
\Score
\consists \DbBars
  }
}
\include mymusic.ly
--snip--

HTH

Cheers, Jan-Peter



On 12.04.2012 16:29, Urs Liska wrote:

Hello list,

I'm sorry, but I can't find the relevant documentation.
I want to change lilyPond's default behaviour and tell it to use || 
barlines before \time changes instead of normal ones.
Although it is quite easy to do this manually, I'd like to know where 
and how I could change this setting, possibly in a \layout section.


Best
Urs

___
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: Suggestion for documentation: Easy path to datatype reference

2012-04-13 Thread Trevor Daniels


Trevor Daniels wrote Thursday, April 12, 2012 9:55 PM


James Harkins wrote Thursday, April 12, 2012 5:08 PM

Still, it might be helpful to link to this page from some other places, 
say, Tweaking methods.


For instance,

~~~
The general syntax of this command is:

   \override Context.LayoutObject #'layout-property =
   #value

This will set the property with the name layout-property of the layout 
object with the name LayoutObject, which is a member of the Context 
context, to the value value. [add: The value must be given using the 
right syntax for the property's expected datatype. Consult section 4.2.3, 
Types of properties {with link} for details.]


We don't normally have forward references in the Learning Manual - it
is intended to be read sequentially, introducing concepts one at a time -
but this does seem a helpful and sensible suggestion.  Thanks.


I added this forward ref as requested, although not in precisely this
way.  It will appear in the next release.

Trevor


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


advanced (?) instrumentname setting

2012-04-13 Thread Gagi Petrovic
Dear LilyPond-users, after hours of research I decided to ask you the
following:

- How do I add text which is aligned with certain barlines? This is quite
common for  percussion notation to indicate which line represents which
(part of an) instrument. In my case: which part of a gong to strike.

* EXAMPLE *
*\version 2.14.2  *
*
*
*gong = \new Voice {*
*
*
*  \set Staff.instrumentName = \markup\center-column{Wind  Gong } *
*  \clef percussion *
*  \autoBeamOff*
*
*
*\relative c' {*
* *
*  \override Staff.NoteHead  #'style = #'cross*
*  \override Stem #'stemlet-length = #0.75*
* *
*  #(define mylines '(-4 0 4))*
*  \override Staff.StaffSymbol #'line-positions = #mylines*
*  *
*
*
*R1*2 | *
*\times 2/3{ d8\ppp^soft mallets (s.m.)[ e r] }   \times 2/3 { r8[ r d\]
}   **\times 2/3 { r8[ e8. f16\] }   r4 |** *
*R1 |*
*\break*
*
*
*}}*
*
*
*\score {\new Staff \gong}*
*%%%*


I tried doing

*\set Staff.instrumentName = \markup\right-column{Wind   e.  Gong   m.
 c.} *

but I find this output rather unsatisfying. I can imagine there are more
elegant ways to do this. Any help would be awesome. Thank you!

Kind regards,
Gagi

PS If somebody also can help me with making the whole rests look more
clear: how do I add the horizontal line (see wholerest.png) on top of it?
I would appreciate it a lot!

-- 
+31 6 1259 8681 |
LinkedInhttp://www.linkedin.com/profile/view?id=41702330trk=tab_pro
 | gagipetrovic.nl
attachment: wholerest.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Barline type before \time change

2012-04-13 Thread Urs Liska

Hello Jan-Peter and Tim,

thanks for your replies.

I would like to use this on sources I'm already working on.
So I don't need to use your include construct.
But I think I'll try out your Scheme engraver approach. If it doesn't 
work or behave as I would like, then I'll go for entering the double 
bars manually. This is of course manageable, but I'd find it cleaner to 
have it as a 'setting' in the layout block and use simple \time commands 
in the source.


Best
Urs

Am 13.04.2012 09:49, schrieb Jan-Peter Voigt:

Hello Urs,

There are two possibilities:

1.: use a little music-function-helper:
--snip--
\version 2.15.36

dbtime = #(define-music-function (parser location frac)(fraction?)
  #{
\bar || \time $frac
#})

% example
\relative c' {
  c4 e g b \dbtime 3/4 c des b | c2.
}
--snip--

but this means not using the standard \time command.

2.: If you want to have this effect on existing sources, you might 
want to use a scheme-engraver.
This is based on a snippet, I took from this list ... I think David 
Nalesnik wrote it(?)

--snip--
\version 2.15.36
% this might work in 2.14 too?

DbBars = #(lambda (context)
  (let ((time-signature '())
(last-fraction #f))

   `((process-music
  . ,(lambda (trans)
  (let ((frac (ly:context-property context 
'timeSignatureFraction)))

   (if (and (null? time-signature)
(not (equal? last-fraction frac))
(fraction? frac))
   (begin
 (ly:context-set-property! context 
'whichBar ||)

 (set! last-fraction frac)
  )))
))

(stop-translation-timestep
  . ,(lambda (trans)
  (set! time-signature '()
))

% example
\score {
  \relative c' {
c4 e g b \time 3/4 c des b | c2.
  }
  \layout {
\context {
  \Score
  \consists \DbBars
}
  }
}
--snip--

With the engraver, you should be able to include an existing file 
while using this custom engraver globally:

--snip--
\layout {
  \context {
\Score
\consists \DbBars
  }
}
\include mymusic.ly
--snip--

HTH

Cheers, Jan-Peter



On 12.04.2012 16:29, Urs Liska wrote:

Hello list,

I'm sorry, but I can't find the relevant documentation.
I want to change lilyPond's default behaviour and tell it to use || 
barlines before \time changes instead of normal ones.
Although it is quite easy to do this manually, I'd like to know where 
and how I could change this setting, possibly in a \layout section.


Best
Urs

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




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



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


Re: musicxml2ly from sibelius

2012-04-13 Thread Josiah Boothby
Thank you, Mattias, for showing me this workaround!

 You could also try to import the musicxml file into MuseScore: MuseScore is
 available for Linux, Windows and Mac. It does not only read musicxml, but
 midi as well. Plus: it exports in lilypond-format!

 I've had success in reading a musicxml file which would *not* convert with
 the musicxml2ly script. This very file could be imported in MuseScore and
 exported as lilypond file.

Success! Eventually.

The problem seems to have been the fact that there were some cues
(possibly relevant: more than one), so there were measures where there
were more than one voice. Once I was able to delete the cues, I was
able to export to .ly without crashing MuseScore. Exporting to .xml at
this point, to test with musicxml2ly, did not produce a
lilypond-compatible .xml file.

—Josiah

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


Re: Barline type before \time change

2012-04-13 Thread Urs Liska

Hi Jan-Peter,

thanks a lot, works perfectly!

Am 13.04.2012 11:49, schrieb Urs Liska:

Hello Jan-Peter and Tim,

thanks for your replies.

I would like to use this on sources I'm already working on.
So I don't need to use your include construct.
But I think I'll try out your Scheme engraver approach. If it doesn't 
work or behave as I would like, then I'll go for entering the double 
bars manually. This is of course manageable, but I'd find it cleaner 
to have it as a 'setting' in the layout block and use simple \time 
commands in the source.


Best
Urs

Am 13.04.2012 09:49, schrieb Jan-Peter Voigt:

Hello Urs,

There are two possibilities:

1.: use a little music-function-helper:
--snip--
\version 2.15.36

dbtime = #(define-music-function (parser location frac)(fraction?)
  #{
\bar || \time $frac
#})

% example
\relative c' {
  c4 e g b \dbtime 3/4 c des b | c2.
}
--snip--

but this means not using the standard \time command.

2.: If you want to have this effect on existing sources, you might 
want to use a scheme-engraver.
This is based on a snippet, I took from this list ... I think David 
Nalesnik wrote it(?)

--snip--
\version 2.15.36
% this might work in 2.14 too?

DbBars = #(lambda (context)
  (let ((time-signature '())
(last-fraction #f))

   `((process-music
  . ,(lambda (trans)
  (let ((frac (ly:context-property context 
'timeSignatureFraction)))

   (if (and (null? time-signature)
(not (equal? last-fraction 
frac))

(fraction? frac))
   (begin
 (ly:context-set-property! 
context 'whichBar ||)

 (set! last-fraction frac)
  )))
))

(stop-translation-timestep
  . ,(lambda (trans)
  (set! time-signature '()
))

% example
\score {
  \relative c' {
c4 e g b \time 3/4 c des b | c2.
  }
  \layout {
\context {
  \Score
  \consists \DbBars
}
  }
}
--snip--

With the engraver, you should be able to include an existing file 
while using this custom engraver globally:

--snip--
\layout {
  \context {
\Score
\consists \DbBars
  }
}
\include mymusic.ly
--snip--

HTH

Cheers, Jan-Peter



On 12.04.2012 16:29, Urs Liska wrote:

Hello list,

I'm sorry, but I can't find the relevant documentation.
I want to change lilyPond's default behaviour and tell it to use 
|| barlines before \time changes instead of normal ones.
Although it is quite easy to do this manually, I'd like to know 
where and how I could change this setting, possibly in a \layout 
section.


Best
Urs

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




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



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



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


Re: Two voice notes with one voice rests

2012-04-13 Thread Richard Sabey

Phil Holmes wrote
 Here's one way:
 
\relative c'' {
{ \override Rest #'staff-position = #0 d8 r d r d r d r } \\ { b8 s b 
s b s b s }  
   b d r b d r b d r b d r
}

This suggestion is fine for notes at those particular positions on the stave, 
but for higher or lower notes, a different method is needed. One way is to 
alter Rest #'staff-position at the Score level:

mus =
{
\override Score.Rest #'staff-position = #0
 { e'8 r g' r e'' r g'' r }
\\ { c'8 r e'8 r c'' r e'' r }

}

\score
{
\mus
}

Another way is to adopt Phil's method in one Voice, and use spacer rests in the 
other Voice:

mus =
{
 { \override Rest #'staff-position = #0
 e'8 r g' r e'' r g'' r
   }
\\ { c'8 s e'8 s c'' s e'' s }

}

\score
{
\mus
}


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


help, please/ Contemporary Music Notation

2012-04-13 Thread Sabina Covarrubias
Hello, I am new in Lilypond, because I need to include contemprary music
notation in my socres, but I can not find
any code or examples in the part concerning to Contemporary Music Notation:
It is the same in the PDF version

http://lilypond.org/doc/v2.15/Documentation/notation/contemporary-music

Where can I find the examples in order to include contemporary graphics in
my socres?
Is this aviable in Lilypond?

Thank you in advance.
Sabina Covarrubias
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Suggestion for documentation: Easy path to datatype reference

2012-04-13 Thread David Kastrup
Jonathan Wilkes jancs...@yahoo.com writes:

 Well it's definitely a pain.  My favorites are booleans, which require
 one hash to denote scheme code, and one hash for the boolean.  (Why
 not one more hash, for good measure?)

The character # would be written as ##\# when accessed from LilyPond.
So what?

-- 
David Kastrup


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


Re: help, please/ Contemporary Music Notation

2012-04-13 Thread m...@apollinemike.com
On Apr 13, 2012, at 1:09 AM, Sabina Covarrubias wrote:

 
 
 Hello, I am new in Lilypond, because I need to include contemprary music 
 notation in my socres, but I can not find 
 any code or examples in the part concerning to Contemporary Music Notation: 
 It is the same in the PDF version
 
 http://lilypond.org/doc/v2.15/Documentation/notation/contemporary-music
 
 Where can I find the examples in order to include contemporary graphics in my 
 socres?
 Is this aviable in Lilypond?
 
 Thank you in advance. 
 Sabina Covarrubias

Could you send a PDF of the type of visual effect(s) you want to create?

Cheers,
MS

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


Flying ties

2012-04-13 Thread James Worlton
I've found some odd tie behavior--not sure if it's known currently.
Sorry, currently I can't test whether it also happens in earlier
versions.

The following code creates a flying tie situation around the upper
and lower notes of the chord, in other words the ties lie far outside
the staff. This happens probably because of the accidentals on the new
line--if you take the \key out, removing the accidentals, the ties
stay close to the notes:

\version 2.15.36
\score {
  \new Staff {
\relative a' {
  \key des \major
  a d f1~ \break
  q1
}
  }
}

James Worlton

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


Re: Flying ties

2012-04-13 Thread James
James

On 13 April 2012 16:30, James Worlton jworl...@gmail.com wrote:
 I've found some odd tie behavior--not sure if it's known currently.
 Sorry, currently I can't test whether it also happens in earlier
 versions.

 The following code creates a flying tie situation around the upper
 and lower notes of the chord, in other words the ties lie far outside
 the staff. This happens probably because of the accidentals on the new
 line--if you take the \key out, removing the accidentals, the ties
 stay close to the notes:

 \version 2.15.36
 \score {
  \new Staff {
    \relative a' {
      \key des \major
      a d f1~ \break
      q1
    }
  }
 }

 James Worlton


http://code.google.com/p/lilypond/issues/detail?id=379

is one of many tie issues

or if not this one

http://code.google.com/p/lilypond/issues/list?can=2q=tiescolspec=ID+Type+Status+Stars+Owner+Patch+Needs+Summarycells=tiles

one of these will probably be this.

It's also an area on our Google Summer of Code page

http://lilypond.org/gsoc.html

Not that 'helps' you.

James

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


Re: Flying ties

2012-04-13 Thread James Worlton
On Fri, Apr 13, 2012 at 10:59 AM, James pkx1...@gmail.com wrote:
 James

 On 13 April 2012 16:30, James Worlton jworl...@gmail.com wrote:
 I've found some odd tie behavior--not sure if it's known currently.
 Sorry, currently I can't test whether it also happens in earlier
 versions.

 The following code creates a flying tie situation around the upper
 and lower notes of the chord, in other words the ties lie far outside
 the staff. This happens probably because of the accidentals on the new
 line--if you take the \key out, removing the accidentals, the ties
 stay close to the notes:

 \version 2.15.36
 \score {
  \new Staff {
    \relative a' {
      \key des \major
      a d f1~ \break
      q1
    }
  }
 }

 James Worlton


 http://code.google.com/p/lilypond/issues/detail?id=379

 is one of many tie issues

 or if not this one

 http://code.google.com/p/lilypond/issues/list?can=2q=tiescolspec=ID+Type+Status+Stars+Owner+Patch+Needs+Summarycells=tiles

 one of these will probably be this.

 It's also an area on our Google Summer of Code page

 http://lilypond.org/gsoc.html

 Not that 'helps' you.

 James

Ah, okay. Sorry for the noise. I wish I had some coding skills and/or
money to help the situation.

James Worlton

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


Re: Suggestion for documentation: Easy path to datatype reference

2012-04-13 Thread Janek Warchoł
On Thu, Apr 12, 2012 at 8:28 PM, David Kastrup d...@gnu.org wrote:
 Jonathan Wilkes jancs...@yahoo.com writes:

 Well it's definitely a pain.  My favorites are booleans, which require
 one hash to denote scheme code, and one hash for the boolean.  (Why
 not one more hash, for good measure?)

 The character # would be written as ##\# when accessed from LilyPond.
 So what?

It's nothing you cannot live with, but i remember that when i was a
beginner, it confused me for... 2 months, i guess?  Quite a long
irritation.
Janek

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


Re:Dynamic context that can follow system breaks?

2012-04-13 Thread James Harkins
  At Fri, 13 Apr 2012 00:29:14 +0800,
  James Harkins wrote:
  
  I'm sure somebody has had to do this before: place dynamics under a staff
  so that all the dynamics in one system are the same distance below the
  staff, but that distance can be different from one system to the next.
  
  
  
 
 probably a case for vertical spacing:
 
 \new Dynamics {
   \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing 
   = #'((basic-distance . 1)(minimum-distance . 1)(stretchability . 20)
 (padding . 0))
 ?

Actually, this doesn't help in 2.14.2 -- same result with this:

\version 2.14.2
\include english.ly

notes = { f16 g a b c b a g }

\new Staff {
  
\new Dynamics {
  \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing = 
#'((basic-distance . 1) (minimum-distance . 1) (stretchability . 20) (padding . 
0))
  
{ s1\p }
{ \repeat unfold 5 { s2\ s2\ } s2\ s4..\ s16\! }
  
}
{
  \repeat unfold 6 \relative c' \notes
  \repeat unfold 6 \relative c \notes
}
  
}


But, in my actual score, I think there is something else happening. For a long 
section of it, the dynamics are quite well below even the lowest marking in the 
staff -- and then, suddenly, at the end of the page, the space closes up again. 
So I think my next step is to start taking things out of the score until I 
don't see this odd behavior.

I already did some troubleshooting on it. I found a few dynamics from the note 
expressions that I hadn't removed, and I thought those might have created 
additional dynamics contexts which would have made extra vertical space, but 
after cleaning up all of those, the problem persisted. So, time for exploratory 
surgery (when I have time, maybe not in the next couple of days).

James


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks

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