Right hand notes have too many ledger lines.

2011-02-16 Thread Disc Magnet
This is the code:

\version "2.12.3"
\score {
\new PianoStaff <<
\set PianoStaff.midiInstrument = "acoustic grand"
\tempo 4 = 120
\new Staff {
\relative c' {
c d c b
a c d c
c d c b
g c d c
}
}

\new Staff {
\clef "bass"
\relative c {
g c e c
f, a c a
g c e c
f, a c a
}
}
>>
\midi { }
\layout{ }
}

I have attached the PDF output with this email. In his score, the
treble clef is supposed to be played with right hand and the bass clef
with left hand. However, in the treble clef (right hand), we have two
notes ('a' and 'g') which are below the middle C and thus represented
by extra ledger lines.

Unfortunately, there are too many of these in the music I am writing
and the score is full of too many ledger lines. What is the
recommended way of writing scores like these?

Could you please modify this code to the recommended style so that I
can learn the right way to do this?


ledger.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


How to tie the last note of one variable to the first note of another variable?

2011-01-22 Thread Disc Magnet
partOne = \relative c' {
c4 e g e~
}

partTwo = \relative c' {
e1
c4 e g e~
e1
}

\score {
\new PianoStaff <<
\set PianoStaff.midiInstrument = "acoustic grand"

\new Staff {
\tempo 4 = 120
\partOne
\partTwo
}
>>
\midi { }
\layout {}
}

I expect the last e of partOne and first e of partTwo to be tied
together. However, it doesn't happen so. What is the right way to do
this?

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


Invalid tie in a repeat causes missed notes in MIDI

2011-01-22 Thread Disc Magnet
I have the following code.

music = \relative c' {
c4 e g e~
\repeat volta 2 {
e1
c4 f a f~
}
}

\score {
\new PianoStaff <<
\set PianoStaff.midiInstrument = "acoustic grand"

\new Staff {
\tempo 4 = 120
\unfoldRepeats {
\music
}
}
>>
\midi { }
\layout { }
}

It can be seen that the tie f~ in the end of the repeat loop is
invalid since the next note after f~ is e1. When I play the midi, it
plays something like:

c4 e g e~
e1
c4 f a f
e1
c4 r a,4 f

You can see that in the last bar, c4 r a,4 f is played instead of c4 f
a f. In other words, the MIDI output misses the second note in the
last bar.

In the PDF layout however, we have the correct notes for the last bar:
c4 f a f. Could someone please explain why this difference between
MIDI and PDF layout?

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


\repeat volta 2 {} doesn't repeat notes in the .MIDI file

2011-01-22 Thread Disc Magnet
I have the following LilyPond file:


\score {
\new PianoStaff <<
\set PianoStaff.midiInstrument = "acoustic grand"

\new Staff {
\tempo 4 = 120
\relative c' {
c e g e
\repeat volta 2 {
c f a f
}
}
}
>>
\midi { }
\layout{ }
}

However, in the midi generated only 8 notes are played: C E G E C F A F.

I expect a total of 12 notes to be played: C E G E C F A F C F A F.

How can I make the repeat effective in the MIDI file as well?

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


Is \repeat volta 2 in treble clef enough for repeat bar in bass clef as well?

2011-01-22 Thread Disc Magnet
I have a PianoStaff

\score {
\new PianoStaff <<
\set PianoStaff.midiInstrument = "acoustic grand"
\new Staff {
\treble
}

\new Staff {
\clef "bass"
\bass
}

>>
\midi { }
\layout{ }
}

My treble is defined as:

treble = {
   \intro
\repeat volta 2 {
\part1
\part2
\part3
\part4
}
   \ending
}

I want to know whether the repeat line would be drawn right from the
treble clef through the bass clef? I tested this and the answer seems
to be 'yes'. I want to know if this is a reliable and defined behavior
or there is a more correct way of doing this (like using \repeat volta
2 separately for treble as well as bass clef?) ?

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


When right hand notes spill over to the bass clef?

2010-12-24 Thread Disc Magnet
I have a 4/4 bar containing the following notes with left hand and right hand.

Left hand = f1 (The f key to the left of middle C, i.e. the second
line in bass clef. Occupies the whole bar.)
Right hand = d4 c a b (The D key to the right of middle C, middle C, A
to the left of middle C, B to the left of middle C. Each note occupies
one beat.)

Now, one would see that "a b" of right hand would intrude into the
bass clef. But in the bass clef f1 is already occupying the whole bar.
What is the right way to represent notes like these?

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


Whole rest for time signature 3/4

2010-12-24 Thread Disc Magnet
How to properly print a whole rest for a staff with time signature as:
\time 3/4?

If I try r1, the rest occupies 4 beats. So it consumes 1 bar (3 beats)
and a 1/3rd (1 beat) of the next bar as well. As I understand it, a
whole rest should occupy 1 bar only irrespective of the time
signature.

If I try r2. I see a dotted half rest. However, I want the whole rest
symbol. Please help me with this

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


Suppressing textedit links in Lilypond

2010-10-03 Thread Disc Magnet
When I generate a PDF score using Lilypond, each note becomes a
textedit:// link that points to the source code line in the .ly source
file.

Is there a way to prevent this from happening so that there are no
such links in the PDF?

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


How to overlap \leftHand and \rightHand in the same staff

2010-06-12 Thread Disc Magnet
I've written a Lilypond input file like this:

leftHand = \relative c' {
c e g e
d f a f
e g b g
f a c a
}

rightHand = \relative c'' {
c2 c
d d
e e
f f
}

\score {
\new Staff {
\time 4/4
\tempo 4 = 120
\leftHand
\rightHand
}
\midi { }
\layout{ }
}

Now this generates a score with 8 bars. However, what I want is a
score of 4 bars. I want the left hand and right hand to overlap in the
same staff. Thus the first bar should show c4 e4 g4 e4 relative to c'
as well as c2 c2 relative to c''. Similarly for the 2nd, 3rd and 4th
bars.

How can this be done?

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


Removing or modifying the Lilypond footer at the bottom of PDF

2010-06-12 Thread Disc Magnet
At the bottom of every PDF generated by lilypond, this notice is
present, "Music engraving by LilyPond 2.12.2—www.lilypond.org". Can
this notice be removed or replaced with some other notice? If so, how?

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


Using a variable twice but in different octaves

2010-06-12 Thread Disc Magnet
I have a variable like this:

riff = {d f a f d f a f}

I want to include it twice in my staff but the first time it is used
it is relative to c' and the second time it is relative to c''. How
can this be done?

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


Re: Macro or variable for sequence of notes that repeat often?

2010-06-12 Thread Disc Magnet
On Sat, Jun 12, 2010 at 8:12 PM, James Bailey
 wrote:
>
> On 12.06.2010, at 16:08, Disc Magnet wrote:
>
>> On Sat, Jun 12, 2010 at 7:33 PM, D'Arcy J.M. Cain
>>  wrote:
>>>
>>> On Sat, 12 Jun 2010 18:55:01 +0530
>>> Disc Magnet  wrote:
>>>>
>>>> In my Lilypond input file, I have a group of notes that are repeated
>>>> at many places in the music. Here is a hypothetical example.
>>>>
>>>> c d e f g a b c
>>>> c c c d d d e e
>>>> a b a b c c d d
>>>> c d e f g a b c
>>>> f e fe f e g g g
>>>> c d e f g a b c
>>>>
>>>> So, you can see that 'c d e f g a b c' is repeated again and again. Is
>>>> there a way to make a macro or a variable and store 'c d e f g a b c'
>>>> in it and reuse it whenever required?
>>>
>>> Riff1 = {c d e f g a b c}
>>> ...
>>> \Riff1
>>>
>>
>> Thanks. I have many arpeggios in my piece as well. So, I'm planning to
>> to use it in ths manner:
>>
>> dMinor = {d f a f d f a f} and use \dMinor whereever required.  But, I
>> am also wondering that since there are many standard chords and
>> arpeggios such a C-major, D-minor, E-minor, etc. is there a way to
>> tell Lilypond that I need the arpeggio D-minor from C-major scale and
>> it would just print the arpeggio?
>
> I understand what you're getting at, but there are a lot of variables to
> something like this. If you use the same patterns frequently, then you can
> create a custom file which defines the patterns you use, and include it in
> any files you create. The problem is, what happens when you want to repeat
> the top or bottom note, or not, change the timing on any note, add an
> octave, etc.
>
>

Ok. This answers my question. So, I will create variables for all
these chords, arpeggios, etc. which are used very frequently. Thanks.
You guys have been very helpful. :)

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


Lilypond channel in freenode

2010-06-12 Thread Disc Magnet
Hi,

I am curious about the #lilypond channel in Freenode
(irc.freenode.net)? Is it the official support channel of Freenode? I
see very few users in the channel. It would be great to have more
people there

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


Re: Macro or variable for sequence of notes that repeat often?

2010-06-12 Thread Disc Magnet
On Sat, Jun 12, 2010 at 7:33 PM, D'Arcy J.M. Cain
 wrote:
> On Sat, 12 Jun 2010 18:55:01 +0530
> Disc Magnet  wrote:
>> In my Lilypond input file, I have a group of notes that are repeated
>> at many places in the music. Here is a hypothetical example.
>>
>> c d e f g a b c
>> c c c d d d e e
>> a b a b c c d d
>> c d e f g a b c
>> f e fe f e g g g
>> c d e f g a b c
>>
>> So, you can see that 'c d e f g a b c' is repeated again and again. Is
>> there a way to make a macro or a variable and store 'c d e f g a b c'
>> in it and reuse it whenever required?
>
> Riff1 = {c d e f g a b c}
> ...
> \Riff1
>

Thanks. I have many arpeggios in my piece as well. So, I'm planning to
to use it in ths manner:

dMinor = {d f a f d f a f} and use \dMinor whereever required.  But, I
am also wondering that since there are many standard chords and
arpeggios such a C-major, D-minor, E-minor, etc. is there a way to
tell Lilypond that I need the arpeggio D-minor from C-major scale and
it would just print the arpeggio?

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


Macro or variable for sequence of notes that repeat often?

2010-06-12 Thread Disc Magnet
In my Lilypond input file, I have a group of notes that are repeated
at many places in the music. Here is a hypothetical example.

c d e f g a b c
c c c d d d e e
a b a b c c d d
c d e f g a b c
f e fe f e g g g
c d e f g a b c

So, you can see that 'c d e f g a b c' is repeated again and again. Is
there a way to make a macro or a variable and store 'c d e f g a b c'
in it and reuse it whenever required?

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


Re: How do you test .MIDI output when the MIDI instrument is not supported?

2010-06-06 Thread Disc Magnet
On Mon, Jun 7, 2010 at 4:24 AM, Brett McCoy  wrote:
> On Sun, Jun 6, 2010 at 6:39 PM, Disc Magnet  wrote:
>
>> There some seems to be some MIDI instruments supported by lilypond
>> that doesn't seem to be supported by timidity. In such a case, I don't
>> get silence output from timidity while plaing the .midi file. For
>> example, I was trying the 'string ensemble 2' instrument. The code is:
>
> The stock sounds that come with Timidity are missing a lot of
> instruments (viola is missing also!). I suggest getting a soundfont
> (Fluid GM soundfont works well) and using that with Timidity instead.
> You just need to update your timidity config to use this. Are you
> using Linux? Your distro may even have this soundfont available as a
> package (Ubuntu Lucid does), it even provides a config file for
> Timidity to use.
>
> -- Brett

Thanks! This worked smoothly.

/etc/timidity/timidity.cfg file even had a line like line this one:
source /etc/timidity/fluidr3_gm.cfg which I brought out of comments
and it worked.

I noticed that just like fluid-soundfont-gm, there's another package
called fluid-soundfont-gs. What's the difference between the two?

I also noticed a diffference between using 'freepats' (default) and
'fluid3_gm'. With freepaths, the nylon guitar sounds like mono with
equal volume in both speakers. With fluid-soundfont-gs, the nylon
guitar plays in the right speaker only creating a stereo effect. Is
there a way to force a particular instrument to play in both speakers?

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


The MIDI output of a staff should play at a lower volume

2010-06-06 Thread Disc Magnet
Is there a way to express that a certain MIDI instrument should be
played less loudly than its normal volume throughout the piece?

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


How do you test .MIDI output when the MIDI instrument is not supported?

2010-06-06 Thread Disc Magnet
There some seems to be some MIDI instruments supported by lilypond
that doesn't seem to be supported by timidity. In such a case, I don't
get silence output from timidity while plaing the .midi file. For
example, I was trying the 'string ensemble 2' instrument. The code is:

\score {
\new Staff \relative c' {
\set Staff.instrumentName = #"Strings"
\set Staff.midiInstrument = "string ensemble 2"
c' d e f g a b c
c b a g f e d c
}
\midi { }
\layout{ }
}

The lilypond command and output:

$ lilypond x.ly
GNU LilyPond 2.12.2
Processing `x.ly'
Parsing...
x.ly:0: warning: : no \version statement found, please add

\version "2.12.2"

for future compatibility
Interpreting music...
Interpreting music...
Preprocessing graphical objects...
MIDI output to `x.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `x.ps'...
Converting to `./x.pdf'...

Timidity output:

$ timidity x.midi
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 30104, period size 3760 bytes
Playing x.midi
MIDI file: x.midi
Format: 1  Tracks: 2  Divisions: 384
Sequence: control track
Text: creator:
Text: GNU LilyPond 2.12.2
Track name:
Instrument: string ensemble 2
No instrument mapped to tone bank 0, program 49 - this instrument will
not be heard
No pre-resampling cache hit

I would like to know what is the usual way of testing the output of
such MIDI files that use an instrument name not supported by Timidity?

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


Re: Suppress .ps generation

2010-06-06 Thread Disc Magnet
On Sun, Jun 6, 2010 at 8:45 PM, Graham Percival
 wrote:
> On Sun, Jun 06, 2010 at 08:05:28PM +0530, Disc Magnet wrote:
>> >From the man page:
>>
>>        -d, --define-default=SYM[=VAL]
>>               set Scheme option SYM to VAL  (default:  #t).   Use  -dhelp  
>> for
>>               help.
>>
>> How to use this?
>
> That's impressive.  You managed to quote the:
>    Use -dhelp for help
> part, but you're still asking how to use it.
>
> - Graham
>

Dude! Get a life. :-P

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


Re: Suppress .ps generation

2010-06-06 Thread Disc Magnet
On Sun, Jun 6, 2010 at 7:54 PM, Graham Percival
 wrote:
> On Sun, Jun 06, 2010 at 10:15:51AM -0400, Johnny Ferguson wrote:
>> looking through the man page, it seems you're pointing to the "-f"
>> option. I take it that the default settings are "--formats=pdf,ps"
>
> No, I'm not.  Look at -d.
>
> - Graham
>

>From the man page:

   -d, --define-default=SYM[=VAL]
  set Scheme option SYM to VAL  (default:  #t).   Use  -dhelp  for
  help.

How to use this?

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


Re: Suppress .ps generation

2010-06-06 Thread Disc Magnet
On Sun, Jun 6, 2010 at 7:45 PM, Johnny Ferguson  wrote:
> looking through the man page, it seems you're pointing to the "-f" option. I
> take it that the default settings are "--formats=pdf,ps"
>
> specifying explicitly "--formats=pdf" should override this. Any idea why ps
> output is a default?

--formats=pdf would still generate the .ps file

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


Suppress .ps generation

2010-06-06 Thread Disc Magnet
When I run the command: lilypond foo.ly, it generates a foo.ps as well
as foo.pdf. Is there a way to suppress the creation of the foo.ps
file?

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