Mike Solomon | 4 Jul 16:19
Favicon

Overriding NoteHead stencil in a chord produces unwanted X offset

Hey lilypond users,
    In compiling the following:

\version "2.13.0"

\relative  c' { <c \tweak #'stencil #ly:text-interface::print \tweak #'text
#(markup #:musicglyph "noteheads.s2")  cis' g'>1 }

You'll see that the middle notehead of the above-chord is too far to the
right.  Some other tweaks:

\relative  c' { << { <c g''>1 } \\ { \override Stem #'transparent = ##t
\override Stem #'direction = #UP c'4 } >> }

Too left.

\relative  c' { << { <c g''>1 } \\ { \override Stem #'transparent = ##t c'4
} >> }

Too left.

\relative  c' { << { <c g''>1 } { \override Stem #'transparent = ##t c'4 }
>> }

Too right.

Is there anything you'd recommend that'll get this quarter note flush with
the whole notes?

Thanks!
(Continue reading)

Matthew Hall | 4 Jul 14:54

Lilypond Drum repeats

I have this code:

\header {
  title = "Rocky-rock-rock"
  composer = "Matthew Hall"
  meter = "1?? bpm"
  piece = "Rock"
  tagline = \markup {
  }
}

%#(set-global-staff-size 16)
\include "english.ly"

%%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%

sl = {
  \override NoteHead #'style = #'slash
  \override Stem #'transparent = ##t
}
nsl = {
  \revert NoteHead #'style
  \revert Stem #'transparent
}
crOn = \override NoteHead #'style = #'cross
crOff = \revert NoteHead #'style

%% insert chord name style stuff here.

jazzChords = { }

%%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%

global = { \time 4/4 }

Key = { \key c \major }


% ------ Drums ------
up = \drummode {
  \voiceOne
  crashcymbal8\ff hh <hh sn> hh
  hh8 hh <hh sn> hh
  hh8 hh <hh sn> hh
  hh8 hh <hh sn> hh
}
down = \drummode {
  \voiceTwo
  bd8. bd16 s s s s
  bd4 s8 s8
  bd8. bd16 s s s s
  bd4 s8 s8
}

drumContents = {
  \global
  <<
    \set DrumStaff.instrumentName = #"Drums"
    \new DrumVoice \up
    \new DrumVoice \down
  >>
}

%%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%

\score {
  <<  
    \new StaffGroup = "rhythm" <<
      \new DrumStaff \drumContents
    >>
  >>
 
  \layout {
    \context { \RemoveEmptyStaffContext }
    \context {
      \Score
      \override BarNumber #'padding = #3
      \override RehearsalMark #'padding = #2
      skipBars = ##t
    }
  }
 
  \midi { }
}

and I want to repeat the second bar (the last 2 lines of each section) how would I do this?

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
Martin Tarenskeen | 4 Jul 11:38

lilypond 2.13 download

Hi,

I can't download lilypond 2.13.x from the Lilypond website.
When I go to http://lilypond.org/web/install/#2.13 I see version 0.0.0 and documentation version
0.0.0-0, and if 
I point my mouse on any of the downloadlinks I see "http://lilypond.org/dev/null" everywhere.

The links for version 2.12.x and the older version seem to be OK.

Finally I was able to download the source tarball I was looking for via another website, but something has to
be 
fixed here ?

--

-- 

Martin Tarenskeen
Alan Shaw | 4 Jul 02:02

runover staff lines with hidden time signature


I've seen discussion of a similar situation at the end of a line, where it
can be fixed by adjusting break-visibility, but this is a little different.
What I am trying to do is set certain passages where a choir and instruments
play together, and the instruments then repeat without the choir. In the
simplified snippet here, the first line shows basically what I want. The
second line differs only in that the time signature changes right at the
volta, and though I am able to hide the new time signature in the choir
part, the staff lines around it still get drawn before \stopStaff takes
effect. How can I fix this?

\version "2.12.2"

\layout  {
\context  { \Score
\remove "Volta_engraver"  
         } }

\score {
\relative
<<
%% no left repeat sign and chorus staff stops cleanly before volta bracket
\new Staff <<
{  \time 4/4 c'4 d e f \once \set Staff.whichBar = "|" 
\repeat volta 2 {  a, b c d \stopStaff }
            \alternative  {
                 { s1 | }
                 { s1 | } 
             }    
\break
\startStaff 
 c4 d e f \once \set Staff.whichBar = "|" 
\repeat volta 2 { a, b c d \stopStaff  \once \override Staff.TimeSignature
#'stencil = ##f  \time 3/4 }
            \alternative  {
                   { s2. |   } % new time signature suppressed, but staff
lines still run over
                   { s2. |  } 
             }        
\startStaff           
        }
      >>      
\new Staff \with {
        \consists "Volta_engraver" }
<< 
{ \time 4/4 c,4 d e f
\repeat volta 2 { a, b c d } 
        \alternative  {
             { c2 d }       % instruments repeat
             { r2 r4 e8 e }
          } 
\break 
c4 d e f                
\repeat volta 2 { a b c d \time 3/4 } 
            \alternative  {
                   { r4 r8 e8 e4 } 
                   { fis8 g8 fis8 g8 fis8 g8 }
                 }
             }  
        >>
>>

\layout {   }
}

--

-- 
View this message in context: http://www.nabble.com/runover-staff-lines-with-hidden-time-signature-tp24330110p24330110.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
Grammostola Rosea | 3 Jul 23:54

theory question

Hi,

A question about minor scales and the chords which belongs to a certain 
'step' in the scale.

I've learned when major scale:

step:
I: maj7
II:  min7
III: min7
IV: maj7
V: dominant 7
VI: min7
VII: -7

But what when it is a minor scale? For example E minor? Which type of 
chords belongs to the 7 steps?

thanks in advance.

\r
Graham Percival | 3 Jul 23:41

website draft 4, help wanted

Here it is:
http://percival-music.ca/blogfiles/out/lilypond-general_1.html#Home

- would somebody volunteer to do the Examples already?!?!  all you
  need to do is play with lilypond files.  No texinfo, html, or
  git required.  Guidelines on the Examples page.
... Mao, I expected that I'd need to arbitrate fights amongst you
guys as to who got to do this...

- I'd also like somebody to do the Features page, but I admit this
  would be better done by somebody with a small amount of texinfo
  knowledge.  That said, there weren't be much formatting on the
  page, so if somebody sends me a plaintext file with a few
  images, I'll be happy.

- anybody know python and/or perl?  We have some scripting /
  script modifying tasks.

These are also listed on the "Help us" page.

Cheers,
- Graham
Francisco Vila | 3 Jul 23:20

2.12 in Debian

Hello,

I've just noticed that LilyPond 2.12.2 is in Debian Testing.

http://packages.debian.org/squeeze/lilypond

--

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org
James E. Bailey | 3 Jul 21:37

Re: Removing Piano Staff Temporarily Under Flute Part


On 03.07.2009, at 21:19, craigbakalian wrote:

Hi James,
Where is it in the learning manual.  And, the sections in the notation
reference make the staves invisible.  This means that the flute part
isn't formated properly.  There is a gap between the flute staves where
the the piano part would have been printed.

Craig Bakalian


On Fri, 2009-07-03 at 11:56 +0200, James E.Bailey wrote:

On 03.07.2009, at 11:38, craigbakalian wrote:

Hi,
I am typesetting a Sonata for Flute and Piano.  There is a section
in
the music where the flute part goes into a cadenza with no piano
accompaniment.  I want Lily to stop printing the empty piano part
for 24
bars, and format the flute part on about a half a page, and then
resume
the printing of piano staff there after.


Hi. You'll want to
look at the various options under 1.6.2 Staff symbol and Hiding staves.


Totally forgot.


This is in the Learning Manual of the current stable, 2.12 version.

James E. Bailey









Dangit, I meant to say Notation Reference instead of Learning Manual. Also, there are several options for hiding staves. You just have to play around (read) and find the one that works best for you.

Oh, and always be sure to hit "reply all" so that my being corrected can be posted to the entire list, and not just privately.

James E. Bailey



_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
Tim McNamara | 3 Jul 17:47
Favicon

Website 3b

I just looked at the former "crash course" page:

http://percival-music.ca/blogfiles/out/lilypond-general_7.html#Text- 
input

I think the rewrites- especially the light blue boxed statement- are  
a very good improvement.  I also like the humor in the link on the  
Introduction page ("You write music as text?").  Very nice!
craigbakalian | 3 Jul 11:36

Removing Piano Staff Temporarily Under Flute Part

Hi,
	I am typesetting a Sonata for Flute and Piano.  There is a section in
the music where the flute part goes into a cadenza with no piano
accompaniment.  I want Lily to stop printing the empty piano part for 24
bars, and format the flute part on about a half a page, and then resume
the printing of piano staff there after.
	Am I clear?  I don't know what a typesetter would call this to even
look this up in the manual.  How about this-

fluteStaff = 
{
% a lot of flute music for 224 bars
}

pianoTopStaff = 
{
% a lot of piano music for 100 bars

R1 * 24  <- this needs to not be printed

% more piano music for 100 bars
}

pianoBottomStaff =
{
% a lot of piano music for 100 bars

R1 * 24  <- this needs to not be printed

% more piano music for 100 bars
}

Craig Bakalian
560 Keswick Drive
Yardley, PA 19067
215-428-0856
Martin Hosken | 3 Jul 11:10
Favicon

cipher music

Dear All,

Cipher Music is a variety of notation systems that are used, particularly in Asia, by many millions of
people. The structure is relatively simple with each note having a letter or number identifier and
diacritics to indicate octave, length, etc.

But, just as with western notation, this stuff is hard to typeset and lilypond, being such a power tool
should be able to eat it up.

I enclose my first attempt at this. But I would value some help in making it look nicer and not requiring
raise/lower hackery to get the music lines not to clash. So all improvements are welcome.

The approach I have taken is to extend the note-names engraver slightly so that it can output duration, and
then to reparse the note name to convert it into the required output. I enclose the patch and sample
document. I propose the patch for addition to lilypond in a subsequent version. It's not very big and it
shouldn't break anything.

Particular questions on the .ly front:

1. How do I get the voices not to smash into each other?
2. How do I get the barlines of the right thickness and height?

Todo.

1. Add key normalisation to CMaj or Am and insert indicative text to that effect.
2. Fix Doulos SIL to add better diacritic rendering on numbers
3. Do some user testing

Scary thoughts.

1. People like the - (for time doubling) to spread into the spare space
2. Underlining should act like beaming just like, but completely different to, beaming in Western notation.

Yours,
Martin
diff --git a/lily/note-name-engraver.cc b/lily/note-name-engraver.cc
index 1e1e01a..95ffd14 100644
--- a/lily/note-name-engraver.cc
+++ b/lily/note-name-engraver.cc
@@ -9,6 +9,7 @@
 #include "engraver.hh"
 #include "item.hh"
 #include "pitch.hh"
+#include "duration.hh"
 #include "stream-event.hh"

 #include "translator.icc"
@@ -46,6 +47,11 @@ Note_name_engraver::process_music ()
 	p = Pitch (-1, p.get_notename (), p.get_alteration ());

       s += p.to_string ();
+      if (to_boolean (get_property ("printDurations")))
+        {
+          Duration *d = unsmob_duration (events_[i]->get_property ("duration"));
+          s += d->to_string ();
+        }
     }
   if (s.length ())
     {
@@ -74,6 +80,7 @@ ADD_TRANSLATOR (Note_name_engraver,
 		"NoteName ",

 		/* read */
+        "printDurations "
 		"printOctaveNames ",

 		/* write */
diff --git a/scm/define-context-properties.scm b/scm/define-context-properties.scm
index 3b18e94..093b696 100644
--- a/scm/define-context-properties.scm
+++ b/scm/define-context-properties.scm
@@ -356,6 +356,7 @@ sustain pedals: @code{text}, @code{bracket} or @code{mixed} (both).")
      (pedalUnaCordaStyle ,symbol? "See @code{pedalSustainStyle}.")
      (predefinedDiagramTable ,hash-table? "The hash table of predefined
 fret diagrams to use in FretBoards.")
+     (printDurations ,boolean? "Print durations for the @code{NoteNames} context.")
      (printKeyCancellation ,boolean? "Print restoration alterations
 before a key signature change.")
      (printOctaveNames ,boolean? "Print octave marks for the
Attachment (Need.ly): text/x-lilypond, 7334 bytes
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Gmane