Re: Tie control-points delete another tie

2008-07-26 Thread Trevor Daniels


Hi Valentin

Carl got back to you first, saving me the trouble :)
I've nothing to add to his response.

Trevor

- Original Message - 
From: "Valentin Villenave" <[EMAIL PROTECTED]>

To: "Trevor Daniels" <[EMAIL PROTECTED]>
Cc: 
Sent: Saturday, July 26, 2008 9:37 PM
Subject: Re: Tie control-points delete another tie



2008/7/24 Trevor Daniels <[EMAIL PROTECTED]>:

 But you were
right originally, this is either a bug or LilyPond
is overly sensitive.


Greetings Trevor,

I've re-re-read the whole discussion a few times, but I can't manage
to understand the issue clearly enough to make a proper bug-report
(been working on my opera for more than eight hours; I guess this
doesn't help). Can you help me on that?

Thanks,
Valentin




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


Re: ubuntu package

2008-07-26 Thread Mats Bengtsson

Quoting "Paul Scott" <[EMAIL PROTECTED]>:


notesetter wrote:

Is there an Ubuntu package for LilyPond? Suppose I'm using LilyPond 2.10.33
and want to upgrade to the latest (development) branch. Is there a "software
source" I can type in and then have the latest version downloaded and
installed via synaptic?


The GUB's on this page are trivial to install on any LInux system:
http://lilypond.org/web/install/#2.11


Paul, don't forget that the acronym GUB is LilyPond specific and  
doesn't make sense to most readers of the mailing list. What you mean  
is that the installer for "any X86" available at  
http://lilypond.org/web/install/#2.11 can be used.


/Mats


This message was sent using IMP, the Internet Messaging Program.



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


lyrics following split voices

2008-07-26 Thread Paul Scott
Hi,

When I use << { } \\ { } >> without voice naming to show note variations
in different verses of a song the parallel music gets skipped by the
lyrics.  I have read all the relevant 2.11 docs without finding a way to
name the voices so that the lyrics get attached to the parallel music.

Any ideas or pointers to documentation to make more sense of this?

TIA,

Paul Scott





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


Re: syntax hilighting for nano

2008-07-26 Thread Jonathan Kulp

James,

Sorry if this is a dumb question, but in which directory should I put 
the lilypond.nanorc file? (On Linux and/or Mac)  I'd like to try it out. 
 Thanks for sending.


Jon

James E. Bailey wrote:

clicked the send button instead of attach.




___
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


Re: [PATCH] Re: Duration dots and Bar lines on custom Staves.

2008-07-26 Thread Han-Wen Nienhuys
-{
-  Grob *st = Staff_symbol_referencer::get_staff_symbol (me);
-  SCM line_positions = st->get_property ("line-positions");
+{
+  Grob *st = 0;
+  SCM line_positions = me->get_property ("line-positions");
+  if ((st = Staff_symbol_referencer::get_staff_symbol (me)))
+line_positions = st->get_property ("line-positions");
+  else
+st = me;
+

I don't understand the original code. 'me' should already be the
staff-symbol, so this should just do

  me->get_property("line-positions")

Of course, it's the responsibility of the caller to make sure that
'me' is not null.


On Sat, Jul 26, 2008 at 7:56 PM, Neil Puttock <[EMAIL PROTECTED]> wrote:
> The leger line fix (4146a0e0549c424bc129fc985733a36801a6e6a2) turned
> out to have a basic flaw in that it messed up dot and tie positions
> for standard staves. I pushed a fix for this
> (b5ba6d4fdb551ebd0dd55140696f4a7e19e82fdb), but my coding has turned
> out to be a bit iffy, since it causes a crash when the
> Staff_symbol_engraver is removed and notes have dots or ties.

-- 
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: I know you've heard this before

2008-07-26 Thread Brett Duncan

Carl D. Sorensen wrote:

LilyPondTool is Java based, and works on Windows and Unix. It
should work on OSX, but I haven't been able to get it to do
so.

You can use textedit to edit your lilypond files on OSX.

Carl


On 7/26/08 3:36 PM, "James E. Bailey" <[EMAIL PROTECTED]> wrote:


Looks like I was mistaken, lilypondtool is for windows.

Am 26.07.2008 um 23:24 schrieb Carl Sorensen:


James E. Bailey  mac.com> writes:


I would also add that lilypondtool with jedit is probably the easiest
method.


Can you give me a hint or two about getting lilypondtool to work
with OSX?
I'm an OSX newbie, and I haven't been able to get lilypondtool to work
properly.

Thanks,

Carl


I have Lilypondtool working for me (OS X 10.4.11 (Intel) jEdit 4.3pre14, 
lilypondtool 2.10.5).


What exactly isn't happening for you Carl? I've never had trouble 
getting it to install, but it did take some fiddling with the Plugin 
options before I could get it to properly invoke LP. Is this the problem 
you're experiencing?


Brett



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


Re: Tie control-points delete another tie

2008-07-26 Thread Valentin Villenave
2008/7/27 Carl Sorensen <[EMAIL PROTECTED]>:

> I've made a short snippet here that shows what appears to me to be the
> central issue:

Great! Indeed, I can see I hadn't understood well the nature of the problem.

I have added your report (quasi verbatim) as
http://code.google.com/p/lilypond/issues/detail?id=653

Cheers,
Valentin


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


Re: I know you've heard this before

2008-07-26 Thread Jonathan Kulp
When I'm on a Mac I use the Smultron editor, which has pretty nice 
syntax highlighting and has a very nice interface.  It's free also.  I 
got JEdit to work but I think it looks terrible both on Linux and Mac. 
The fonts look all messed up probably because of the Java environment.


Anyway I wrote a script for use on my Linux boxes and have a modified 
version for Macs.  It runs lilypond on a given file and opens the pdf in 
Preview (easy enough to change it to Acrobat Reader if you like).  I'll 
attach the script in case anyone would like to have it.  Create a /bin 
directory in your home directory and make sure it's included in your 
shell path.  Once it's there and the file is executable, you simply type 
"lily foobar.ly" and it runs lilypond on foobar.ly then opens foobar.pdf 
in Preview. If you comment out the Preview line and uncomment the 
Acrobat Reader line then you can use Acrobat Reader for the previewing.


Jon

James E. Bailey wrote:
True, but textedit doesn't have syntax hilighting or bracket matching. 
Speaking of which, I've been meaning to send my syntax hilighting for 
lilypond to this list for ages, but haven't done so. It isn't great, nor 
is perfect, but it hilights and helps me spotting errors. And, the only 
time I've ever attempted anything with regex was to do this, so I'm sure 
there are probably better ways of expressing what's here (if anyone sees 
a better way, let me know). For a pretty basic text editor, it has tons 
of features that I learn more about as I use it.




You can use textedit to edit your lilypond files on OSX.

Carl



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



--
Jonathan Kulp
http://www.jonathankulp.com
#!/bin/bash

#*#
# MAC SCRIPT MAC SCRIPT MAC SCRIPT# 
# #
# Script to run lilypond on specified #
# file and open in Acrobat Reader #
#*#

# gets complete filename of file 
srcfile="`eval echo $1`"

# gets the filename without .ly
FILENOEXTENSION="`echo $srcfile | sed -e 's/\..*$//'`"  

# runs lilypond on specified file #
/Applications/LilyPond.app/Contents/Resources/bin/lilypond $srcfile

#open -a /Applications/Adobe\ Reader\ 8/Adobe\ Reader.app $FILENOEXTENSION.pdf
open -a preview $FILENOEXTENSION.pdf

sleep 2

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


Re: ubuntu package

2008-07-26 Thread Paul Scott
Joseph Haig wrote:
> 2008/7/26 notesetter <[EMAIL PROTECTED]>:
>   
>> Is there an Ubuntu package for LilyPond? Suppose I'm using LilyPond 2.10.33
>> and want to upgrade to the latest (development) branch. Is there a "software
>> source" I can type in and then have the latest version downloaded and
>> installed via synaptic?
>>
>> 
>
> Yes, there is an Ubuntu package available in synaptic but, if I
> remember correctly, it is quite old 
It's most likely what he already has which is what's available in Debian.

Paul



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


Tweaking Vertical Position of a Tie

2008-07-26 Thread CDon

\version "2.11.34"
\include "english.ly"

\relative c'' {
\clef treble
\key bf \major
\time 4/4
bf4. a8 a4. g8 |
g2.

%   \override TieColumn #'tie-configuration = #'((6.0 . 1))% 
tweak
1
%   \once \override TieColumn #'tie-configuration = #'((6.0 . 1))   % tweak 
2  

%   \once \override Script #'padding = #2 %
tweak 3

d'4~\fermata | \bar "||"
\key g \major
\time 3/4
d8. e16 d8. c16 b8. c16 |

d4 d2~ |
d8. e16 d8. c16 b8. c16 |
}

The above script results in a clash between the first tie and the new key
signature.  Both the tie and the fermata need to be moved up.  Tweaks 1 and
3 accomplish this, but later ties are also moved up.  Tweaks 2 and 3 move
the fermata up, but the tie is unaffected.  Is there another way to move a
tie up just one time?

Don
-- 
View this message in context: 
http://www.nabble.com/Tweaking-Vertical-Position-of-a-Tie-tp18671989p18671989.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: Tie control-points delete another tie

2008-07-26 Thread Carl Sorensen
Valentin Villenave  gmail.com> writes:

> 
> 2008/7/24 Trevor Daniels  treda.co.uk>:
> >  But you were
> > right originally, this is either a bug or LilyPond
> > is overly sensitive.
> 
> Greetings Trevor,
> 
> I've re-re-read the whole discussion a few times, but I can't manage
> to understand the issue clearly enough to make a proper bug-report
> (been working on my opera for more than eight hours; I guess this
> doesn't help). Can you help me on that?
> 
> Thanks,
> Valentin
> 

Valentin,

I've made a short snippet here that shows what appears to me to be the
central issue:

%  When \override is applied to a tie that is in parallel music, it is
%  unclear as to which tie the \override will apply.
%  The outcome appears to be somewhat arbitrary.
%  Also, note that the documentation says that \overrides apply to all
%   music at the same moment, which appears not to happen with ties.
\context Staff {
  \context Voice {
\relative c'{
  <<
%  here the override applies to the tied d's, as the f tie
%  is unchanged
{ d2 ~ d }
\once\override Tie  #'control-points =
  #'((1.75 . -0.5) (2.5 . 0.75) (8 . 2) (13.5 . -1.2))
{ f2 ~ f }
  >>
  <<
% here the override applies to the tied f's, as the d tie is normal
\once\override Tie  #'control-points =
  #'((1.75 . -0.5) (2.5 . 0.75) (8 . 2) (13.5 . -1.2))
{ d2 ~ d }
{ f2 ~ f }
  >>
  <<
%  here the override applies to the tied d's, as the f tie
%  is unchanged
\once\override Tie  #'control-points =
  #'((1.75 . -0.5) (2.5 . 0.75) (8 . 2) (13.5 . -1.2))
{ f2 ~ f }
{ d2 ~ d }
  >>
}
  }
}


HTH,

Carl





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


Re: [PATCH] Re: Duration dots and Bar lines on custom Staves.

2008-07-26 Thread Neil Puttock
Han-Wen,

The leger line fix (4146a0e0549c424bc129fc985733a36801a6e6a2) turned
out to have a basic flaw in that it messed up dot and tie positions
for standard staves. I pushed a fix for this
(b5ba6d4fdb551ebd0dd55140696f4a7e19e82fdb), but my coding has turned
out to be a bit iffy, since it causes a crash when the
Staff_symbol_engraver is removed and notes have dots or ties.

Here's a patch which sorts it out; is it OK, or do you think it could
be improved?

Cheers,
Neil
From 90784a799bd70cb41e625178dd457ee36c0d78cc Mon Sep 17 00:00:00 2001
From: Neil Puttock <[EMAIL PROTECTED]>
Date: Sat, 26 Jul 2008 22:22:19 +0100
Subject: [PATCH] Fix segfault.

---
 lily/staff-symbol.cc |   11 ---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/lily/staff-symbol.cc b/lily/staff-symbol.cc
index 6e37643..63c9301 100644
--- a/lily/staff-symbol.cc
+++ b/lily/staff-symbol.cc
@@ -169,9 +169,14 @@ Staff_symbol::height  (SCM smob)
 
 bool
 Staff_symbol::on_line (Grob *me, int pos)
-{
-  Grob *st = Staff_symbol_referencer::get_staff_symbol (me);
-  SCM line_positions = st->get_property ("line-positions");
+{  
+  Grob *st = 0;
+  SCM line_positions = me->get_property ("line-positions");
+  if ((st = Staff_symbol_referencer::get_staff_symbol (me)))
+line_positions = st->get_property ("line-positions");
+  else
+st = me;  
+
   if (scm_is_pair (line_positions))
 {
   Real min_line = HUGE_VAL;
-- 
1.5.4.3

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


Re: I know you've heard this before

2008-07-26 Thread Bertalan Fodor
Yes, JEdit and LilyPondTool does work on Mac OS X, at least for more 
than one user reported that it works in the thread:

http://www.mail-archive.com/lilypond-user@gnu.org/msg36817.html

Carl D. Sorensen írta:

LilyPondTool is Java based, and works on Windows and Unix. It
should work on OSX, but I haven't been able to get it to do
so.

You can use textedit to edit your lilypond files on OSX.

Carl


On 7/26/08 3:36 PM, "James E. Bailey" <[EMAIL PROTECTED]> wrote:

  

Looks like I was mistaken, lilypondtool is for windows.

Am 26.07.2008 um 23:24 schrieb Carl Sorensen:



James E. Bailey  mac.com> writes:

  

I would also add that lilypondtool with jedit is probably the easiest
method.



Can you give me a hint or two about getting lilypondtool to work
with OSX?
I'm an OSX newbie, and I haven't been able to get lilypondtool to work
properly.

Thanks,

Carl



___
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

  


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


syntax hilighting for nano

2008-07-26 Thread James E. Bailey

clicked the send button instead of attach.


lilypond.nanorc
Description: Binary data


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


Re: I know you've heard this before

2008-07-26 Thread James E. Bailey
True, but textedit doesn't have syntax hilighting or bracket matching.  
Speaking of which, I've been meaning to send my syntax hilighting for  
lilypond to this list for ages, but haven't done so. It isn't great,  
nor is perfect, but it hilights and helps me spotting errors. And, the  
only time I've ever attempted anything with regex was to do this, so  
I'm sure there are probably better ways of expressing what's here (if  
anyone sees a better way, let me know). For a pretty basic text  
editor, it has tons of features that I learn more about as I use it.




You can use textedit to edit your lilypond files on OSX.

Carl



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


Re: I know you've heard this before

2008-07-26 Thread Carl D. Sorensen
LilyPondTool is Java based, and works on Windows and Unix. It
should work on OSX, but I haven't been able to get it to do
so.

You can use textedit to edit your lilypond files on OSX.

Carl


On 7/26/08 3:36 PM, "James E. Bailey" <[EMAIL PROTECTED]> wrote:

> Looks like I was mistaken, lilypondtool is for windows.
>
> Am 26.07.2008 um 23:24 schrieb Carl Sorensen:
>
>> James E. Bailey  mac.com> writes:
>>
>>>
>>> I would also add that lilypondtool with jedit is probably the easiest
>>> method.
>>>
>>
>> Can you give me a hint or two about getting lilypondtool to work
>> with OSX?
>> I'm an OSX newbie, and I haven't been able to get lilypondtool to work
>> properly.
>>
>> Thanks,
>>
>> Carl
>>
>>
>>
>> ___
>> 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: I know you've heard this before

2008-07-26 Thread James E. Bailey

Looks like I was mistaken, lilypondtool is for windows.

Am 26.07.2008 um 23:24 schrieb Carl Sorensen:


James E. Bailey  mac.com> writes:



I would also add that lilypondtool with jedit is probably the easiest
method.



Can you give me a hint or two about getting lilypondtool to work  
with OSX?

I'm an OSX newbie, and I haven't been able to get lilypondtool to work
properly.

Thanks,

Carl



___
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: I know you've heard this before

2008-07-26 Thread James E. Bailey
Sorry, I can't (maybe others can) I don't use jEdit. I use nano, it  
has no lilypond support, so I don't have to worry about getting some  
special mode to work in another editor, and the command line  
instructions in the documentation are very clear and they work.


Am 26.07.2008 um 23:24 schrieb Carl Sorensen:


James E. Bailey  mac.com> writes:



I would also add that lilypondtool with jedit is probably the easiest
method.



Can you give me a hint or two about getting lilypondtool to work  
with OSX?

I'm an OSX newbie, and I haven't been able to get lilypondtool to work
properly.

Thanks,

Carl



___
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: I know you've heard this before

2008-07-26 Thread Carl Sorensen
James E. Bailey  mac.com> writes:

> 
> I would also add that lilypondtool with jedit is probably the easiest  
> method.
> 

Can you give me a hint or two about getting lilypondtool to work with OSX?
I'm an OSX newbie, and I haven't been able to get lilypondtool to work
properly.

Thanks,

Carl



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


Re: I know you've heard this before

2008-07-26 Thread James E. Bailey
I would also add that lilypondtool with jedit is probably the easiest  
method.


Am 25.07.2008 um 03:52 schrieb Carol Viera:


Hi,

I'm on Mac OS X version 10.5.4 Leopard (Intel processor) and the  
menu for the Lilypond app has nothing on it but the Lilypond item.   
Yes, I downloaded the script editor which i tried to run (result)  
but nothing happened, having input the filename, without the .ly  
from the text editor, a file i actually just copied from your  
tutorial and i put with an .ly into a folder in my documents, the  
folder being names LilyPondFiles (or whatever I was told to name  
it).  I've read the supposed other stuff specific to Leopard (yes, I  
downloaded the version for G3, G4, etc) and tried to follow the  
other directions but i'm getting nowhere. I even searched online and  
only figured out that others have this problem too.  Do you have a  
dummies version of the instructions?


Thanks!

CV


___
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: ubuntu package

2008-07-26 Thread Joseph Haig
2008/7/26 notesetter <[EMAIL PROTECTED]>:
>
> Is there an Ubuntu package for LilyPond? Suppose I'm using LilyPond 2.10.33
> and want to upgrade to the latest (development) branch. Is there a "software
> source" I can type in and then have the latest version downloaded and
> installed via synaptic?
>

Yes, there is an Ubuntu package available in synaptic but, if I
remember correctly, it is quite old and the packages you can get from
http://lilypond.org/web/install/ are easy to install anyway.

Regards,

Joe


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


Re: broken octaves

2008-07-26 Thread Valentin Villenave
2008/7/26 Jay Anderson <[EMAIL PROTECTED]>:

> I've rewritten it from scratch below where it uses the lengths of the
> input notes and works with chords. It still has problems (dynamics
> doubled, tuplets or nested structures don't work), but I'll try to
> explain it.

Great! LSR, anyone?
:-)

Cheers,
Valentin


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


Re: Tie control-points delete another tie

2008-07-26 Thread Valentin Villenave
2008/7/24 Trevor Daniels <[EMAIL PROTECTED]>:
>  But you were
> right originally, this is either a bug or LilyPond
> is overly sensitive.

Greetings Trevor,

I've re-re-read the whole discussion a few times, but I can't manage
to understand the issue clearly enough to make a proper bug-report
(been working on my opera for more than eight hours; I guess this
doesn't help). Can you help me on that?

Thanks,
Valentin


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


Re: broken octaves

2008-07-26 Thread Jay Anderson
On Sat, Jul 26, 2008 at 1:56 AM, Dominic Neumann <[EMAIL PROTECTED]> wrote:
> Hi Jay,
>
> nice example! But I think it would be even better if I could write
> \brokenoctaves #1 { c4 d e f g8 a b c } meaning that the function also
> recognizes the durations of the notes.
> Maybe you could be so kind to explain how your functions work. Then we
> could also learn from it and possibly improve it. Is that possible?
>

I've rewritten it from scratch below where it uses the lengths of the
input notes and works with chords. It still has problems (dynamics
doubled, tuplets or nested structures don't work), but I'll try to
explain it.

The first note of the first chord needs to be unmodified. All second
notes are in octave arg-1. If arg is 1 we get '0'. '0' means go up an
octave, '-2' means go down an octave, '-1' means stay in the current
octave. The next input note we come to needs to be moved to -arg. So if arg is '1' and the current octave of the note is -1
we end up with -2 which means go down an octave from the previous
note. I'm sure that's clear as mud.

Essentially it loops through the list of chords applying the octave
logic from above. Normally to cover tuplets I'd use music-map, but
here we're adding notes after current notes instead of just modifying
notes. I'm sure there's a clean way to do it, but I haven't tried too
much yet.

-Jay

\version "2.11.52"

#(define (make-sequential-music elements)
  (make-music
'SequentialMusic
'elements
elements))

#(define (make-music-note pitch duration)
  (make-music
'NoteEvent
'pitch pitch
'duration duration))

#(define (make-music-chord elements)
  (make-music
'EventChord
'elements elements))

#(define (broken-octaves muslist arg first?)
  (if (null? muslist) '()
(let* ((notes (ly:music-property (car muslist) 'elements))
  (pitch (ly:music-property (car notes) 'pitch))
  (first-pitch
(if first?
  pitch
  (ly:make-pitch
(+ (- arg) (ly:pitch-octave pitch))
(ly:pitch-notename pitch)
(ly:pitch-alteration pitch
  (second-pitch (ly:make-pitch (1- arg) (ly:pitch-notename
pitch) (ly:pitch-alteration pitch)))
  (duration (ly:music-property (car notes) 'duration))
  (first-chord
(make-music-chord
  (cons (make-music-note first-pitch duration) (cdr notes
  (second-chord
(make-music-chord
  (cons (make-music-note second-pitch duration)
(ly:music-deep-copy (cdr notes))
  (cons first-chord (cons second-chord (broken-octaves (cdr
muslist) arg #f))

brokenoctaves = #(define-music-function (parser location arg mus)
(integer? ly:music?)
  (make-sequential-music (broken-octaves (ly:music-property mus
'elements) arg #t)))

\score
{
  \new Staff \relative c'
  {
%first argument is 1 for up and -1 for down.
%second argument is the music
%
%Shortcomings:
% - Next note after \brokenoctave section is in the wrong octave.
% - dynamics are copied to second note.
% - tuplets don't work.
\brokenoctaves #1 { 4( d e f g8)\f c, c' c,}
  }
}


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


Re: I know you've heard this before

2008-07-26 Thread James E. Bailey
I don't have much time to respond, but he easy way is to download the  
PPC version, and run it using the command line options. Directions are  
in the Application Usage for command line usage specific to Mac OSX.


Am 25.07.2008 um 03:52 schrieb Carol Viera:


Hi,

I'm on Mac OS X version 10.5.4 Leopard (Intel processor) and the  
menu for the Lilypond app has nothing on it but the Lilypond item.   
Yes, I downloaded the script editor which i tried to run (result)  
but nothing happened, having input the filename, without the .ly  
from the text editor, a file i actually just copied from your  
tutorial and i put with an .ly into a folder in my documents, the  
folder being names LilyPondFiles (or whatever I was told to name  
it).  I've read the supposed other stuff specific to Leopard (yes, I  
downloaded the version for G3, G4, etc) and tried to follow the  
other directions but i'm getting nowhere. I even searched online and  
only figured out that others have this problem too.  Do you have a  
dummies version of the instructions?


Thanks!

CV


___
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


I know you've heard this before

2008-07-26 Thread Carol Viera

Hi,

I'm on Mac OS X version 10.5.4 Leopard (Intel processor) and the menu  
for the Lilypond app has nothing on it but the Lilypond item.  Yes, I  
downloaded the script editor which i tried to run (result) but nothing  
happened, having input the filename, without the .ly from the text  
editor, a file i actually just copied from your tutorial and i put  
with an .ly into a folder in my documents, the folder being names  
LilyPondFiles (or whatever I was told to name it).  I've read the  
supposed other stuff specific to Leopard (yes, I downloaded the  
version for G3, G4, etc) and tried to follow the other directions but  
i'm getting nowhere. I even searched online and only figured out that  
others have this problem too.  Do you have a dummies version of the  
instructions?


Thanks!

CV


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


Re: Tie control-points delete another tie

2008-07-26 Thread Marco Caliari

Hi,

My mail probably belongs better to the user list so I post it there...

Trevor Daniels wrote:

It's not clear what you are trying to achieve here,
as the ties without the override look ok.


I don't know about Marco's intentions but I once had a similar case. I
got around by using both slurs and ties.


I did exactly the same. First, please consider that in this snippet 
(without the third voice)


\version "2.11.52"
\paper{ ragged-right=##t }
\new Staff {
<<
% first voice
  {d''2 ~ d''
   d''2 ~ d''}
% second voice in parallel
  {f'2 ~ f'
   \once\override Tie  #'control-points =
   #'((1.5 . -0.5) (2 . 1) (7 . 2) (8 . -1))
   f'2  ~ f'}



}

only the tie in the lower voice is modified, as wanted. What I want to 
engrave is the following:


\version "2.11.52"
\new Staff {
  \key f \major \time 6/8
  <<
{\relative c'' {
  d4. ~ d4 e8
  d4.( d4) e8}}
{\relative c' {
  fis4. fis4 a8
  \once\override Tie  #'control-points =
  #'((1.75 . -0.5) (2.5 . 0.75) (8 . 2) (13.5 . -1.2))
  fis4. ~ fis4 a8}}\\
{\relative c'' {
  a8 a16 a a8 a a a
  a8 a16 a a8 a a a
}}
  >>
}

In the first bar (the original one) there is a tie-collision, which I can 
solve only changing the tie in the upper voice into a slur (second bar).


Best regards,

Marco


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


Re: Variable number of voices on one staff

2008-07-26 Thread Matthieu Jacquot

> What I want: When there is only once voice, the stems should behave as
such.
Have you try to include the \stemNeutral and \tieNeutral functions in your
voice? and then  \stemUp \tieUp when the second voice (bass?) is again
visible?
-- 
View this message in context: 
http://www.nabble.com/Variable-number-of-voices-on-one-staff-tp18663037p18666103.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: Variable number of voices on one staff

2008-07-26 Thread Mark Knoop
On Sat, 2008-07-26 at 02:14 -0700, Jordan Eldredge wrote:
> Thank you.
> 
> Firstly, I understand why my method does not work. I guess what I am
> asking for is a different method.

Try this: 

\version "2.10.25"

\relative c'' {
r4 d4 c  |
|
2 
<< {
\voiceOne g2
} \new Voice { 
\voiceTwo d4 bes 
} >> \oneVoice |
}



-- 
Mark Knoop


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


Re: Variable number of voices on one staff

2008-07-26 Thread James E. Bailey

\oneVoice is still your friend, though.

Am 26.07.2008 um 11:14 schrieb Jordan Eldredge:


Thank you.

Firstly, I understand why my method does not work. I guess what I am  
asking for is a different method.


Secondly, thanks!
Here is updated example code.

\version "2.10.25"

aVoice = \relative c'' {r4 d4 c  |g'> | 2 g}

anotherVoice = \relative c'' {s1 | s1 | s2 d,4 bes}

<<{\aVoice} \\ {\anotherVoice}>>


-Jordan Eldredge

On Sat, Jul 26, 2008 at 1:21 AM, Francisco Vila  
<[EMAIL PROTECTED]> wrote:

2008/7/26 Jordan Eldredge <[EMAIL PROTECTED]>:
>
> What I want: When there is only once voice, the stems should  
behave as such.
> In measures where there are two voices, the stems should be  
dependent on

> voice.

Firstly, you see one voice, but two voices exist. So, first voice is
voice One in a polyphony situation, it will always have stems up.
Maybe  \oneVoice is your friend.

Secondly: \voiceOne .. \voiceFour are predefined macros, they are
reserved words that may confuse LilyPond (and you). Choose other names
for music variables.


--
Francisco Vila. Badajoz (Spain)
http://www.paconet.org

___
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: Variable number of voices on one staff

2008-07-26 Thread Jordan Eldredge
Thank you.

Firstly, I understand why my method does not work. I guess what I am asking
for is a different method.

Secondly, thanks!
Here is updated example code.

\version "2.10.25"

aVoice = \relative c'' {r4 d4 c  | |
2 g}
anotherVoice = \relative c'' {s1 | s1 | s2 d,4 bes}

<<{\aVoice} \\ {\anotherVoice}>>


-Jordan Eldredge

On Sat, Jul 26, 2008 at 1:21 AM, Francisco Vila <[EMAIL PROTECTED]>wrote:

> 2008/7/26 Jordan Eldredge <[EMAIL PROTECTED]>:
> >
> > What I want: When there is only once voice, the stems should behave as
> such.
> > In measures where there are two voices, the stems should be dependent on
> > voice.
>
> Firstly, you see one voice, but two voices exist. So, first voice is
> voice One in a polyphony situation, it will always have stems up.
> Maybe  \oneVoice is your friend.
>
> Secondly: \voiceOne .. \voiceFour are predefined macros, they are
> reserved words that may confuse LilyPond (and you). Choose other names
> for music variables.
>
>
> --
> Francisco Vila. Badajoz (Spain)
> http://www.paconet.org
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: broken octaves

2008-07-26 Thread Dominic Neumann
Hi Jay,

nice example! But I think it would be even better if I could write
\brokenoctaves #1 { c4 d e f g8 a b c } meaning that the function also
recognizes the durations of the notes.
Maybe you could be so kind to explain how your functions work. Then we
could also learn from it and possibly improve it. Is that possible?

Dominic

2008/7/26 Jay Anderson <[EMAIL PROTECTED]>:
> Stefan Thomas  googlemail.com> writes:
>>
>> Dear Lilypond-users, I have in mind an input like:\relative { \brokenoctaves
> {c d e f g }}and the desired output is:\relative { c c' d d' e e' f f' g g' 
> }Can
> this be done automatically?
>>
>
> Play with this see if it does what you want.
>
> -Jay
>
> \version "2.11.52"
>
> #(define (get-pitches mus)
>  (map
>(lambda (x)
>  (ly:music-property (car (ly:music-property x 'elements)) 'pitch))
>(ly:music-property mus 'elements)))
>
> #(define (make-sequential-music elements)
>  (make-music
>'SequentialMusic
>'elements
>elements))
>
> #(define (interleave-lists l1 l2)
>  (cond ((null? l1) l2)
>((null? l2) l1)
>((and (null? l1) (null? l2)) '())
>(else (cons (car l1) (cons (car l2) (interleave-lists (cdr l1) (cdr
> l2)))
>
> #(define (interleave-music m1 m2)
>  (make-sequential-music
>(interleave-lists (ly:music-property m1 'elements) (ly:music-property m2
> 'elements
>
> #(define (create-music-list pitches duration)
>  (make-sequential-music
>(map
>  (lambda (p)
>(make-music
>  'EventChord
>  'elements
>  (list (make-music
>  'NoteEvent
>  'duration duration
>  'pitch p
>  pitches)))
>
> #(define (transpose-all-but-first pitches amt)
>  (cons (car pitches) (map
>(lambda (pitch)
>  (ly:make-pitch
>(+ amt (ly:pitch-octave pitch))
>(ly:pitch-notename pitch)
>(ly:pitch-alteration pitch)))
>(cdr pitches
>
> #(define (set-octave pitches octave)
>  (map
>(lambda (pitch) (ly:make-pitch octave (ly:pitch-notename pitch)
> (ly:pitch-alteration pitch)))
>pitches))
>
> brokenoctaves = #(define-music-function (parser location dur arg mus) 
> (integer?
> integer? ly:music?)
>  (let* ((pitches (get-pitches mus))
> (duration (ly:make-duration dur 0 1 1)))
>(interleave-music
>  (create-music-list (transpose-all-but-first pitches (- arg)) duration)
>  (create-music-list (set-octave pitches (1- arg)) duration
>
> \score
> {
>  \new Staff \relative c'
>  {
>%First argument is the duration (3 - eight, 4 - sixteenth, etc.).
>%Second argument is 1 for up and -1 for down.
>%Third argument is the music
>%
>%Shortcomings:
>% - Next note after \brokenoctave section is in the wrong octave
>%   compared with what one would expect in relative mode.
>\brokenoctaves #3 #1 { c d e f g c, c' c,}
>\brokenoctaves #3 #-1 { c, d e f g c, c' c,}
>  }
> }
>
>
>
>
> ___
> 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: Variable number of voices on one staff

2008-07-26 Thread Francisco Vila
2008/7/26 Jordan Eldredge <[EMAIL PROTECTED]>:
>
> What I want: When there is only once voice, the stems should behave as such.
> In measures where there are two voices, the stems should be dependent on
> voice.

Firstly, you see one voice, but two voices exist. So, first voice is
voice One in a polyphony situation, it will always have stems up.
Maybe  \oneVoice is your friend.

Secondly: \voiceOne .. \voiceFour are predefined macros, they are
reserved words that may confuse LilyPond (and you). Choose other names
for music variables.


-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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