Re: staff switches

2008-07-12 Thread Kieren MacMillan

p.s. For the record, you can also do it in a single command:


\version "2.11.49"

voiceA = \relative
{
c4 d e g,
f e e' d
}
voiceAswitches =
{
s2. \change Staff = "LH" s4
s2 \change Staff = "RH" s2
}

\score
{
\new PianoStaff
<<
		\new Staff = "RH" \new Voice = "RH_voice" << \voiceA  
\voiceAswitches >>

\new Staff = "LH" { \clef bass s1*2 }
>>
}


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


Re: staff switches

2008-07-12 Thread Kieren MacMillan

Hi James,


Is it possible to have staff switches in a separate variable?
I was thinking somthing along the lines of
voiceA = \relative {
   c4 d e g,
   f e e' d
}
voiceAswitches = {
   s2. \change Staff = "LH" s4
   s2 \change Staff = "RH" s2
}

\score {
   \new PianoStaff
   <<
  \new Staff = "RH" \voiceA
  \new Staff = "LH" <<\clef bass s1*2>>
   >>
}
but that doesn't work out so well for me. Any suggestions?


Here's a perfect reason to use \context Voice instead of — or rather,  
in addition to — \new Voice:



\version "2.11.49"

voiceA = \relative
{
c4 d e g,
f e e' d
}
voiceAswitches =
{
s2. \change Staff = "LH" s4
s2 \change Staff = "RH" s2
}

\score
{
\new PianoStaff
<<
\new Staff = "RH"
\new Voice = "RH_voice" \voiceA
\context Voice = "RH_voice" \voiceAswitches
\new Staff = "LH" { \clef bass s1*2 }
>>
}


Once the Voice context has been created and populated with the notes,  
you are then able to "cram the staff switch information" down its  
throat by referencing it using the \context Voice construct.  =)


Hope this helps!
Kieren.

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


Re: #(layout-set-staff-size 3)

2008-07-12 Thread PT.Guitar

Hi,

I supposed you want to change one staff size for one instrument and stay
with normal size for the order staff

Try these

\version "2.11.51"

flaute = \context Staff 
 \with { fontSize = #-3 \override StaffSymbol #'staff-space = #(
magstep -3 ) }  
 \clef treble 

melody = { \flaute { \key c\major \relative c'' { c8 d4\f\> c8 b4 a4\! } } }

upper = { \relative c' { \key c\major c1 } }

\score {
   <<
\context staff = "melody" \melody
\context staff = "upper" \upper
   >>
}

I think it is these that you ask... i'm newbie on lilypond.. dont forget to
give me some feedback..

Ty

try these: 



Gilles Sadowski wrote:
> 
> Hi.
> 
>> \score { 
>>  {
>>  c' d' e' f'
>>  }
>>  \layout {
>>  #(layout-set-staff-size 3)
>>  }
>> }
> 
> To get a global zoom out, try to put this
> 
> #(set-global-staff-size 13)
> 
> at the top of the file.
> 
> 
> Best,
> Gilles
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-%28layout-set-staff-size-3%29-tp18423888p18425114.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: GDP: NR 2.2 Keyboard instruments first public draft

2008-07-12 Thread Graham Percival
On Sat, 12 Jul 2008 23:15:27 +0100
"Neil Puttock" <[EMAIL PROTECTED]> wrote:

> Rather than trundle off a list of suggestions, I thought it might be
> easier to send you a patch, which is attached.

Thanks, applied.  Please note that [fragment] should be omitted in
almost all cases, though.  [relative=x] implies [fragment].


Andrew: in general I don't like changing doc sections without
first discussing it with the person resposible for that section,
but in this case all the changes were small enough that it wasn't
worth discussing.  Please download a new .itely file, in case you
need to change anything in response to bigger comments.


> Since the built-in support for accordion (using articulations) is no
> longer working, should we junk the init file accordion-defs-init.ly?

Hmm.  Please ask on -devel.  I mean, yes, if it's broken and
nobody is going to fix it, we should junk it.  But check if
anybody wants to rescue it first.

Cheers,
- Graham


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


staff switches

2008-07-12 Thread James E. Bailey
Is it possible to have staff switches in a separate variable? I was  
thinking somthing along the lines of

voiceA = \relative {
   c4 d e g,
   f e e' d
}
voiceAswitches = {
   s2. \change Staff = "LH" s4
   s2 \change Staff = "RH" s2
}

\score {
   \new PianoStaff
   <<
  \new Staff = "RH" \voiceA
  \new Staff = "LH" <<\clef bass s1*2>>
   >>
}
but that doesn't work out so well for me. Any suggestions?


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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Carl D. Sorensen



On 7/12/08 4:58 PM, "Neil Puttock" <[EMAIL PROTECTED]> wrote:

> 2008/7/12 Carl Sorensen <[EMAIL PROTECTED]>:
>
>> So, figured bass experts, here's your opportunity to chime in:
>
>> 1.  Do you want the accidental size increased?
>
> Based on practicalities rather than knowledge (it was only a minor
> part of my studies at college), I'll have to say no, unless you're
> prepared to spend time tweaking the function; changing the fontsize
> messes with the accidental positioning.

Spending a bit of time tweaking the function doesn't bother me.  It is
relatively easy work, and just requires a bit of time.

>
>> 2.  Do you want the figure number font changed?
>
> Ideally, yes. It is rather heavy looking.
>
> It would also be good to have glyphs for 2, 4 and 5 with crosses
> instead of the rather ugly plus sign after the number (though this
> would naturally require some changes to the formatting function).

I will not do new glyphs.  That's more involved than I want to get.



Thanks for your input.

Carl



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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Neil Puttock
2008/7/12 Carl Sorensen <[EMAIL PROTECTED]>:

> So, figured bass experts, here's your opportunity to chime in:

> 1.  Do you want the accidental size increased?

Based on practicalities rather than knowledge (it was only a minor
part of my studies at college), I'll have to say no, unless you're
prepared to spend time tweaking the function; changing the fontsize
messes with the accidental positioning.

> 2.  Do you want the figure number font changed?

Ideally, yes. It is rather heavy looking.

It would also be good to have glyphs for 2, 4 and 5 with crosses
instead of the rather ugly plus sign after the number (though this
would naturally require some changes to the formatting function).

Regards,
Neil


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


Re: #(layout-set-staff-size 3)

2008-07-12 Thread Gilles Sadowski
Hi.

> \score {  
>   {
>   c' d' e' f'
>   }
>   \layout {
>   #(layout-set-staff-size 3)
>   }
> }

To get a global zoom out, try to put this

#(set-global-staff-size 13)

at the top of the file.


Best,
Gilles


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


Re: GDP: NR 2.2 Keyboard instruments first public draft

2008-07-12 Thread Neil Puttock
Hi Graham,

Rather than trundle off a list of suggestions, I thought it might be
easier to send you a patch, which is attached.

Since the built-in support for accordion (using articulations) is no
longer working, should we junk the init file accordion-defs-init.ly?

Regards,
Neil
From c7b8ab823d6a206e3c5b311d6a98fa7c87217b19 Mon Sep 17 00:00:00 2001
From: Neil Puttock <[EMAIL PROTECTED]>
Date: Sat, 12 Jul 2008 22:24:13 +0100
Subject: [PATCH] Proofreading for keyboards.itely.

---
 Documentation/user/keyboards.itely |  111 ---
 1 files changed, 63 insertions(+), 48 deletions(-)

diff --git a/Documentation/user/keyboards.itely b/Documentation/user/keyboards.itely
index 7ae11e0..640a22a 100644
--- a/Documentation/user/keyboards.itely
+++ b/Documentation/user/keyboards.itely
@@ -41,13 +41,13 @@ instruments.
 
 Keyboard instruments are usually notated with Piano staves.  These
 are two or more normal staves coupled with a brace.  The same
-notation is also used for harps and other keyed instruments.
+notation is also used for other keyed instruments.
 Organ music is normally written with two staves inside a
 @code{PianoStaff} group and third, normal staff for the pedals.
 
 The staves in keyboard music are largely independent, but
-sometimes voices can cross between the two staves.  In this
-section we discuss some notation techniques particular to keyboard
+sometimes voices can cross between the two staves.  This
+section discusses notation techniques particular to keyboard
 music.
 
 Several common issues in keyboard music are covered elsewhere:
@@ -93,13 +93,14 @@ Learning Manual:
 Notation Reference:
 @ref{Grouping staves},
 @ref{Instrument names},
[EMAIL PROTECTED] resolution},
 @ref{Writing music in parallel},
 @ref{Fingering instructions},
[EMAIL PROTECTED] of articulations},
 @ref{Grid lines},
 @ref{Ties},
 @ref{Arpeggio},
[EMAIL PROTECTED] repeats},
[EMAIL PROTECTED] of articulations}.
[EMAIL PROTECTED] repeats}.
 
 Internals Reference:
 @rinternals{PianoStaff}.
@@ -135,27 +136,28 @@ Voices can be switched between staves manually, using the command
 
 @noindent
 The string @var{staffname} is the name of the staff.  It switches
-the current voice from its current staff to the Staff called
+the current voice from its current staff to the staff called
 @var{staffname}.  Typical values for @var{staffname} are
 @code{"up"} and @code{"down"}, or @code{"RH"} and @code{"LH"}.
 
 Cross-staff notes are beamed automatically:
 
[EMAIL PROTECTED],quote,ragged-right]
[EMAIL PROTECTED],quote]
 \new PianoStaff <<
   \new Staff = "up" {
 8
-\change Staff = down
-g fis g
-\change Staff = up
+\change Staff = "down"
+g8 fis g
+\change Staff = "up"
 8
-\change Staff = down
-e dis e
-\change Staff = up
+\change Staff = "down"
+e8 dis e
+\change Staff = "up"
   }
   \new Staff = "down" {
 \clef bass
-s1 % keep staff alive
+% keep staff alive
+s1
   }
 >>
 @end lilypond
@@ -179,7 +181,8 @@ Snippets:
 @rlsr{Keyboards}.
 
 Internals Reference:
[EMAIL PROTECTED]
[EMAIL PROTECTED],
[EMAIL PROTECTED]
 
 
 @node Changing staff automatically
@@ -200,15 +203,16 @@ bottom staff.  The syntax for this is
 @noindent
 This will create two staves inside the current staff group
 (usually a @code{PianoStaff}), called @code{"up"} and
[EMAIL PROTECTED]"down"}.  The lower staff will be in bass clef by default.
-The autochanger switches on basis of the pitch (middle C is the
[EMAIL PROTECTED]"down"}.  The lower staff will be in the bass clef by default.
+The autochanger switches on the basis of the pitch ([EMAIL PROTECTED] is the
 turning point), and it looks ahead skipping over rests to switch
 in advance.
 
[EMAIL PROTECTED],verbatim,ragged-right]
[EMAIL PROTECTED],verbatim]
 \new PianoStaff {
   \autochange {
-g4 a b c' d' r4 a g
+g4 a b c'
+d'4 r a g
   }
 }
 @end lilypond
@@ -223,14 +227,14 @@ can be created manually with the names @code{"up"} and
 its voice between the existing staves.  For example, this is
 necessary to place a key signature in the lower staff:
 
[EMAIL PROTECTED],verbatim,ragged-right]
[EMAIL PROTECTED],verbatim]
 \new PianoStaff <<
   \new Staff = "up" {
 \new Voice = "melOne" {
   \key g \major
   \autochange \relative c' {
 g8 b a c b d c e
-d r fis, g a2
+d8 r fis, g a2
   }
 }
   }
@@ -274,15 +278,18 @@ staff based on the first note named in the chord construct.
 Whenever a voice switches to another staff, a line connecting the
 notes can be printed automatically:
 
[EMAIL PROTECTED],ragged-right,fragment,relative=1,verbatim]
[EMAIL PROTECTED],fragment,relative=1,verbatim]
 \new PianoStaff <<
   \new Staff = "one" {
 \showStaffSwitch
 c1
-\change Staff=two
+\change Staff = "two"
 b2 a
   }
-  \new Staff = "two" { \clef bass s1*2 }
+  \new Staff = "two" {
+\clef bass
+s1*2
+  }
 >>
 @end lilypond
 
@@ -298,6 +305,7 @@ Snippets:
 @r

#(layout-set-staff-size 3)

2008-07-12 Thread Alan Fabian

Hi,

I have the following problem:
The code:
"
\include "deutsch.ly"
\score {
{
c' d' e' f'
}
\layout {
#(layout-set-staff-size 3)
}
}
"
sets everything to a small size except the staff!? The staff stays with 
the same size whatever size I give it.

Any ideas?
Thank you,
Alan



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


Re: bracketed silence

2008-07-12 Thread Jonathan Kulp
Great!  Glad to be able to help.  I just adjusted the tweaks I was using 
to make fingerings go inside the staff.  Best,


Jon

p.s. Incidentally I really liked the snippet by Mats also.  I can 
probably use that in the future :)


luis jure wrote:


that's truly great, jon, thank you!! i'd never have found that myself,
i'm afraid... :-(

i increased the fontsize a bit and adjusted the offsets accordingly and
i got exactly what i was looking for. here's my slightly modified code:


\version "2.11.51"

\relative c'' {
\override TextScript #'staff-padding = #'()
\once \override TextScript #'extra-offset = #'(-1.0 . -3.8)
r4^\markup { \fontsize #3 { "[ ]" } }
}

best,

lj





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


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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Damian leGassick

I second arno

d

On 12 Jul 2008, at 19:43, Arno Rog wrote:


Carl Sorensen  byu.edu> writes:

This is the place.  I will make the change, if there is consensus  
on the

-user list
that this is something we want to do.  I'm not an expert on figured  
bass
(as James has noticed in the past) but I'm doing the GDP section on  
chords,

so I'm familiar with the figured bass part of LilyPond.

While we're at it, I'd be willing to change the font of the figures
to something
other than the music font.  Several have complained in the past  
that the

figures are too heavy for the music.

So, figured bass experts, here's your opportunity to chime in:

1.  Do you want the accidental size increased?

2.  Do you want the figure number font changed?

Carl



Carl,

Amazing:

1. Yes please increase the accidental size ( 0 0 ), seems fine to me

2. figure font is fine by me.

Thanks in advance,

Arno Rog
(organist, continuo-player)





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




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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Arno Rog
Carl Sorensen  byu.edu> writes:

> This is the place.  I will make the change, if there is consensus on the 
> -user list
> that this is something we want to do.  I'm not an expert on figured bass
> (as James has noticed in the past) but I'm doing the GDP section on chords,
> so I'm familiar with the figured bass part of LilyPond.
> 
> While we're at it, I'd be willing to change the font of the figures 
> to something
> other than the music font.  Several have complained in the past that the
> figures are too heavy for the music.
> 
> So, figured bass experts, here's your opportunity to chime in:
> 
> 1.  Do you want the accidental size increased?
> 
> 2.  Do you want the figure number font changed?
> 
> Carl
> 

Carl,

Amazing:

1. Yes please increase the accidental size ( 0 0 ), seems fine to me

2. figure font is fine by me.

Thanks in advance,

Arno Rog
(organist, continuo-player)





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


Re: Creating Chorded Notes

2008-07-12 Thread Eric Knapp
Sounds like you are also saying that the way I'm going to get this to
work is to learn a little scheme. I'm OK with that, I like learning
new languages. I like to learn a new one every year or so. It's just
that I'm already learning a couple this year. Getting this all to work
is a big priority for me so here I go. I'm starting with the Scheme
Tutorial in the LM. Then I'll read the Interfaces for programmers
chapter in the NR. If that doesn't get me all the way there I'll keep
asking questions.

Thanks for getting going in the right direction. Having a path to
follow makes the journey fun.

-Eric

On Sat, Jul 12, 2008 at 10:59 AM, Trevor Daniels <[EMAIL PROTECTED]> wrote:
>
> Eric
>
> The key to discovering how to do this is \displayMusic.  Compile
>
> \displayMusic { 2 }
>
> in LilyPond and the Scheme equivalent is shown in the console log.
>
> In this case it is:
>
> (make-music
>  'SequentialMusic
>  'elements
>  (list (make-music
> 'EventChord
> 'elements
> (list (make-music
> 'NoteEvent
> 'duration
> (ly:make-duration 1 0 1 1)
> 'pitch
> (ly:make-pitch -1 5 0))
>   (make-music
> 'NoteEvent
> 'duration
> (ly:make-duration 1 0 1 1)
> 'pitch
> (ly:make-pitch -1 0 0))
>
> Trevor
>
>
> - Original Message - From: "Eric Knapp" <[EMAIL PROTECTED]>
> To: "List lilypond-user" 
> Sent: Saturday, July 12, 2008 3:36 PM
> Subject: Creating Chorded Notes
>
>
>> Hi, all.
>>
>> I'm trying to write a music function that creates chorded notes. I'm
>> starting simply and I'm stumped. How would I create this simple music
>> expression in a function?
>>
>>  2
>>
>> Is there a grob for these? What I'm working on is being able to
>> customize the individual NoteHead and Stem grobs for each note.
>>
>> Thanks,
>>
>> -Eric
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>


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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Carl Sorensen
Arno Rog  gmail.com> writes:


> Neil,
> 
> This is really great!
> May I suggest a new default value of 0 (zero).
> The present value is really too small in comparison to the numbers
 (and to read).
> 
> Is there a place where I can make such a siggestion for the 
upcoming release?
> 

This is the place.  I will make the change, if there is consensus on the 
-user list
that this is something we want to do.  I'm not an expert on figured bass
(as James has noticed in the past) but I'm doing the GDP section on chords,
so I'm familiar with the figured bass part of LilyPond.

While we're at it, I'd be willing to change the font of the figures 
to something
other than the music font.  Several have complained in the past that the
figures are too heavy for the music.

So, figured bass experts, here's your opportunity to chime in:

1.  Do you want the accidental size increased?

2.  Do you want the figure number font changed?


Carl







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


Re: Creating Chorded Notes

2008-07-12 Thread Trevor Daniels


Eric

The key to discovering how to do this is \displayMusic.  Compile

\displayMusic { 2 }

in LilyPond and the Scheme equivalent is shown in the console log.

In this case it is:

(make-music
 'SequentialMusic
 'elements
 (list (make-music
 'EventChord
 'elements
 (list (make-music
 'NoteEvent
 'duration
 (ly:make-duration 1 0 1 1)
 'pitch
 (ly:make-pitch -1 5 0))
   (make-music
 'NoteEvent
 'duration
 (ly:make-duration 1 0 1 1)
 'pitch
 (ly:make-pitch -1 0 0))

Trevor


- Original Message - 
From: "Eric Knapp" <[EMAIL PROTECTED]>

To: "List lilypond-user" 
Sent: Saturday, July 12, 2008 3:36 PM
Subject: Creating Chorded Notes



Hi, all.

I'm trying to write a music function that creates chorded notes. I'm
starting simply and I'm stumped. How would I create this simple music
expression in a function?

 2

Is there a grob for these? What I'm working on is being able to
customize the individual NoteHead and Stem grobs for each note.

Thanks,

-Eric


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




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


Re: Adding chord names to a piano staff format

2008-07-12 Thread Carl Sorensen
Thermo  iinet.net.au> writes:

> 
> 
> I have this to build the guitar chords
> guitarChords = \chordmode {d a/fis g:7 g/a  (etc) }
> 
> Then I have this to build the whole score:
> 
>   \score {
  <<
  \new ChordNames { guitarChords}
>\new GrandStaff <<
>\new Staff = upper { \new Voice = "one" \upper   }   % upper is the
> melody line
>\new Lyrics \lyricsto "one" \verseWords   %
> verseWords are the verse words alright=^D
>\new Staff = lower { \lower }% lower
> is the bass line
>>>

  >>
>\layout {
>  \context { \GrandStaff \accepts "Lyrics" }
>  \context { \Lyrics \consists "Bar_engraver" }
>}
>}
>\midi { }
>  }
> 


I put the added lines in the code above; you simply need to put a
ChordNames context containing the chords in parallel with the
GrandStaff.

HTH,

Carl



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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Arno Rog
> The default function, format-bass-figure, is found in the file
> scm/translation-functions.scm; the relevant part is the following:
> 
> (alt (ly:event-property event 'alteration))
>(alt-markup
> (if (number? alt)
> (markup
>  #:general-align Y DOWN #:fontsize
>  (if (not (= alt DOUBLE-SHARP))
>;fontsize defaults set here, -2 for all accidentals
> except double-sharp
>  -2 2)
>  (alteration->text-accidental-markup alt))
>   
> #f))
> 
> You can either amend it in situ if you want the changes to be global,
> or copy it into a .ly file and rename it, setting the function using
> \set figuredBassFormatter = #renamed-bass-formatter-function.
> 
> Regards,
> Neil
> 

Neil,

This is really great!
May I suggest a new default value of 0 (zero).
The present value is really too small in comparison to the numbers (and to 
read).

Is there a place where I can make such a siggestion for the upcoming release?

Arno Rog




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


Re: Creating Chorded Notes

2008-07-12 Thread Jonathan Kulp
Maybe you could adjust something in this macro to do it for you.  This 
one makes octaves (it's awesome!!).


Jon


\version "2.11.47"

%LSR This function was contributed by Jay Anderson.

#(define (octave-up m t)
 (let* ((octave (1- t))
  (new-note (ly:music-deep-copy m))
  (new-pitch (ly:make-pitch
octave
(ly:pitch-notename (ly:music-property m 'pitch))
(ly:pitch-alteration (ly:music-property m 'pitch)
  (set! (ly:music-property new-note 'pitch) new-pitch)
  new-note))

#(define (octavize-chord elements t)
 (cond ((null? elements) elements)
 ((eq? (ly:music-property (car elements) 'name) 'NoteEvent)
   (cons (car elements)
 (cons (octave-up (car elements) t)
   (octavize-chord (cdr elements) t
 (else (cons (car elements) (octavize-chord (cdr elements ) t)

#(define (octavize music t)
 (if (eq? (ly:music-property music 'name) 'EventChord)
   (ly:music-set-property! music 'elements (octavize-chord
(ly:music-property music 'elements) t)))
 music)

octaves = #(define-music-function (parser location arg mus) (integer? 
ly:music?)

 (music-map (lambda (x) (octavize x arg)) mus))


\relative c' { d e \octaves #-1 { \times 2/3 {f g c }}} % this is an 
example of the macro in practice



Eric Knapp wrote:

Hi, all.

I'm trying to write a music function that creates chorded notes. I'm
starting simply and I'm stumped. How would I create this simple music
expression in a function?

  2

Is there a grob for these? What I'm working on is being able to
customize the individual NoteHead and Stem grobs for each note.

Thanks,

-Eric


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



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


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


Creating Chorded Notes

2008-07-12 Thread Eric Knapp
Hi, all.

I'm trying to write a music function that creates chorded notes. I'm
starting simply and I'm stumped. How would I create this simple music
expression in a function?

  2

Is there a grob for these? What I'm working on is being able to
customize the individual NoteHead and Stem grobs for each note.

Thanks,

-Eric


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


Re: GDP: NR 2.2 Keyboard instruments first public draft

2008-07-12 Thread Graham Percival
On Sat, 12 Jul 2008 11:39:34 + (UTC)
Arno Rog <[EMAIL PROTECTED]> wrote:

> Graham Percival  gmail.com> writes:
> 
> > I'm happy to announce that NR 2.2 Keyboard instruments  is ready
> > for the first public review!  Thanks to Andrew for writing and
> > Carl for reviewing this section.
> > 
> > Please proofread it carefully; let us know about any mistakes or
> > omissions.  As always, GDP website is here:
> > http://web.uvic.ca/~gperciva/
> 
> Where to post suggestions?

Right here.

Cheers,
- Graham


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


Re: Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Neil Puttock
Hi Arno,

2008/7/12 Arno Rog <[EMAIL PROTECTED]>:

> Is there a way to enlarge the accidentals in a figured bass,
> leaving the size of the numbers unchanged?

Yes, but it's a bit hackish, since you'll have to change the details
for accidentals inside the function which does the figured bass
formatting.

The default function, format-bass-figure, is found in the file
scm/translation-functions.scm; the relevant part is the following:

(alt (ly:event-property event 'alteration))
 (alt-markup
  (if (number? alt)
  (markup
   #:general-align Y DOWN #:fontsize
   (if (not (= alt DOUBLE-SHARP))
   ;fontsize defaults set here, -2 for all accidentals
except double-sharp
   -2 2)
   (alteration->text-accidental-markup alt))

  #f))

You can either amend it in situ if you want the changes to be global,
or copy it into a .ly file and rename it, setting the function using
\set figuredBassFormatter = #renamed-bass-formatter-function.

Regards,
Neil


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


Re: Size Matters

2008-07-12 Thread Kieren MacMillan

Hi Dennis,


It appears that the #layout-set-staff-size does not set sizes
for the same  classes of things as set-global-staff-size.
set-global-staff-size scales everything, while
#layout-set-staff-size does not scale [...]


This is definitely one of my big pet peeves with Lilypond —  
hopefully, someone will soon fix this, since it's obviously not  
intuitive or useful in it's current behaviour.


Look in the docs (incl. LSR) for things with magstep: that will help  
you find a workaround.


Best,
Kieren.

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


Adding chord names to a piano staff format

2008-07-12 Thread Thermo

I have this to build the guitar chords
guitarChords = \chordmode {d a/fis g:7 g/a  (etc) }

Then I have this to build the whole score:

  \score {
   \new GrandStaff <<
   \new Staff = upper { \new Voice = "one" \upper   }   % upper is the
melody line
   \new Lyrics \lyricsto "one" \verseWords   %
verseWords are the verse words alright=^D
   \new Staff = lower { \lower }% lower
is the bass line
   >>
   \layout {
 \context { \GrandStaff \accepts "Lyrics" }
 \context { \Lyrics \consists "Bar_engraver" }
   }
   }
   \midi { }
 }

Where and how do I add the chord names so they are above the melody line?

Thank you in advance.
Graham
-- 
View this message in context: 
http://www.nabble.com/Adding-chord-names-to-a-piano-staff-format-tp18419366p18419366.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Size Matters

2008-07-12 Thread Dennis O'Toole
I have a large set of solo arrangements that use
#(set-global-staff-size XX)
where XX varies somewhat from arrangement to
arrangement.  This is set following a paper block 
and before the score block in each separate file.

I would now like to combine these into a book
by merging the files and using a book block around 
the scores, but I need to maintain the varying 
staff size.  I tried using:
 \layout {#(layout-set-staff-size XX )}
within each score, but I got very different 
results.  Apparently the units implied in these
two statements is different, the first being 
points and the second being mm.  Do I understand
this correctly?

*But* when I convert to what should be the same 
size, I still get a different result.  Some sizes are right
but others are not.  It appears that the 
#layout-set-staff-size does not set sizes for the same 
classes of things as set-global-staff-size.  set-global-staff-size
scales everything, while #layout-set-staff-size does 
not scale the staff itself (only the notes) and text seems
inconsistent between titles and markup.  There may  
be other differences I haven't identified.

How can I maintain the varying staff sizes that
I need across a book of scores?  Is there something 
I can set instead of #layout-set-staff-size, or in 
addition to it?  Some other approach entirely?

Thanks for any help,
-Dennis-



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


Re: bracketed silence

2008-07-12 Thread luis jure

on 2008-07-12 at 10:19 Damian leGassick wrote:


>i use this snippet:
>
>http://lsr.dsi.unimi.it/LSR/Item?id=377

thank you very much damian. in fact, i had found this snippet searching
for "bracket" in the lsr, but it's different from what i was looking
for. the bracket crosses the whole staff and i felt i couldn't adapt
the code myself. i found it a bit intimidating for my limited knowledge
of lilypond...


best,

lj




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


Enlarge the size of the accidentals in figured bass

2008-07-12 Thread Arno Rog
L.S.,

Is there a way to enlarge the accidentals in a figured bass, 
leaving the size of the numbers unchanged?

Thanks in advance

Arno Rog









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


Re: bracketed silence

2008-07-12 Thread luis jure

on 2008-07-11 at 18:53 Jonathan Kulp wrote:

>I got the brackets to go inside the staff with this code.  If you
>fiddle with the markup (change font size, spacing, whatever)  and the
>values inside the parentheses you can probably get it to look like you
>want.


that's truly great, jon, thank you!! i'd never have found that myself,
i'm afraid... :-(

i increased the fontsize a bit and adjusted the offsets accordingly and
i got exactly what i was looking for. here's my slightly modified code:


\version "2.11.51"

\relative c'' {
\override TextScript #'staff-padding = #'()
\once \override TextScript #'extra-offset = #'(-1.0 . -3.8)
r4^\markup { \fontsize #3 { "[ ]" } }
}

best,

lj






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


Re: GDP: NR 2.2 Keyboard instruments first public draft

2008-07-12 Thread Arno Rog
Graham Percival  gmail.com> writes:

> 
> I'm happy to announce that NR 2.2 Keyboard instruments  is ready
> for the first public review!  Thanks to Andrew for writing and
> Carl for reviewing this section.
> 
> Please proofread it carefully; let us know about any mistakes or
> omissions.  As always, GDP website is here:
> http://web.uvic.ca/~gperciva/
> 
> Cheers,
> - Graham
> 

Graham,

Where to post suggestions?

AWRog





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


Re: bracketed silence

2008-07-12 Thread Neil Puttock
2008/7/12 Damian leGassick <[EMAIL PROTECTED]>:
> hi luis
>
> i use this snippet:
>
> http://lsr.dsi.unimi.it/LSR/Item?id=377

That's an excellent snippet, but overkill for rests.

A bit of Scheme code is all you need:

\override Rest #'stencil = #(lambda (grob)
(bracketify-stencil (ly:rest::print grob) Y 0.2 0.2 0.2))

The appearance can be adjusted by altering the three numbers which
determine the bracket's thickness, protrusion and padding.

Regards,
Neil


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


Re: bracketed silence

2008-07-12 Thread Damian leGassick

hi luis

i use this snippet:

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

hope this helps

damian


On 12 Jul 2008, at 00:53, Jonathan Kulp wrote:


Hi Luis,

I got the brackets to go inside the staff with this code.  If you  
fiddle with the markup (change font size, spacing, whatever)  and  
the values inside the parentheses you can probably get it to look  
like you want.


Jon


\version "2.11.51"

\relative c'' {
  \override TextScript #'staff-padding = #'()
  \once \override TextScript #'extra-offset = #'(-0.6 . -3.0)
  b4\rest^\markup { [  ] }
}



luis jure wrote:

hello list,
i'd need to place brackets around a rest in the score. something like
\parenthesize but square brackets [ ].
i tried using a \markup, but no matter what i try, i found no way to
place the brackets in the staff around the rest. i tried every  
tweak i

could find in the manual, but it seems to me that lilypond is always
smarter and refuses to place the markup _in_ the staff.
could anyone help me with this? is it at all possible?
best,
lj



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




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