grace-notes inside tuplet-brackets

2008-09-27 Thread andersvi
(Im paddling around here in the pond, and getting wetter every day.  One
day i might switch from CMN to Lilypond as a main notation-tool if
theres not too many reefs...  Atm. im translating some rqq/rtm-like
representations to generate ly-output.  Of course im doing lots of silly
things, and hopefully learning alot.)

Here's a question vs. grace-notes.

Placing gracenotes together with the first note in tuplet-groups
distorts the tuplet-bracket in several ways, either taking it away
completely (if its at the start of the staff), or displacing it
vertically.

I can move the initial gracenotes before the tuplet-group and have it
behave as expected, but this is a problematic in the context im working
in (and counterintuitive?).  Any hints?

While im at it.  Having to manually insert 'silent' grace-notes at the
head of bars to accomodate real gracenotes in other staffs is double
work and error-prone.  Is this a bug or is there some reason behind
this?

Thanks.

-anders


\version "2.11.59"
\score {
  \new Staff {
\override Score.TupletBracket #'bracket-visibility = ##t
\time 2/8 {
  % starting score with grace-note inside tuplet-group deletes
  % tuplet-bracket:
  \times 2/3 {\grace g,32  g16[   g''16 g]} 
}
\time 2/8 {
  %% putting gracenote inside tuplet distorts bracket
   \times 2/3 {\grace g,32 g16[   g''16 g]} 
}
  }
}

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


Changing Staff

2008-09-27 Thread Helge Kruse

Hello,

I want to typeset a score and want to keep close to the original in some aspects. The original uses heavly staff changes that look 
nice to me.


I tried to use the technic from the lilypond manual pg. 189, but I dont know how to place the beams between the staves. Can you tell 
me how I get closer to the original? http://dj1na.gmxhome.de/bd-0062.JPG


This is my try:

\score {
\new PianoStaff <<
 \new Staff = "up" {
  \key es \major  \clef treble  \time 3/8
  \relative c'' {
   es4.
  }
 }
 \new Staff = "down" {
  \key es \major  \clef bass  \time 3/8
  \relative c {
   c16 g' c \change Staff = "up" es g r
  }
 }
>>
}


Best regards,
Helge



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


Double Sharp in Latex

2008-09-27 Thread Hugo Ribeiro

Does anyone know how to insert a double sharp symbol into a latex code?

I just know those musical symbols:

$\sharp$ - $\flat$ - $\natural$

To insert a double flat I just need to write it twice as 
($\flat$$\flat$). But a double sharp is a different symbol, and I didn't 
find it anywhere...


Thanks,

Hugo Ribeiro
Brazil


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


Re: Changing Staff

2008-09-27 Thread Jonathan Kulp

This code worked for me:

\version "2.11.60"

\score {
\new PianoStaff <<
 \new Staff = "up" {
  \key es \major  \clef treble  \time 3/8
  \relative c'' {
es4.
  }
 }
 \new Staff = "down" {
  \key es \major  \clef bass  \time 3/8
  \relative c
   { \stemUp c16 g' c \change Staff = "up" \stemDown es g r }
 }
>>
}

Jon

Helge Kruse wrote:

Hello,

I want to typeset a score and want to keep close to the original in some 
aspects. The original uses heavly staff changes that look nice to me.


I tried to use the technic from the lilypond manual pg. 189, but I dont 
know how to place the beams between the staves. Can you tell me how I 
get closer to the original? http://dj1na.gmxhome.de/bd-0062.JPG


This is my try:

\score {
\new PianoStaff <<
 \new Staff = "up" {
  \key es \major  \clef treble  \time 3/8
  \relative c'' {
   es4.
  }
 }
 \new Staff = "down" {
  \key es \major  \clef bass  \time 3/8
  \relative c {
   c16 g' c \change Staff = "up" es g r
  }
 }
 >>
}


Best regards,
Helge



___
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: grace-notes inside tuplet-brackets

2008-09-27 Thread Han-Wen Nienhuys
On Sat, Sep 27, 2008 at 6:20 AM,  <[EMAIL PROTECTED]> wrote:

> Placing gracenotes together with the first note in tuplet-groups
> distorts the tuplet-bracket in several ways, either taking it away
> completely (if its at the start of the staff), or displacing it
> vertically.

> I can move the initial gracenotes before the tuplet-group and have it
> behave as expected, but this is a problematic in the context im working
> in (and counterintuitive?).  Any hints?

Good point; I guess we should have some sort of feature where the
effect of tripet start and end is delayed until the onset of the main
note.

> While im at it.  Having to manually insert 'silent' grace-notes at the
> head of bars to accomodate real gracenotes in other staffs is double
> work and error-prone.  Is this a bug or is there some reason behind
> this?

See http://code.google.com/p/lilypond/issues/detail?id=34&num=150

The problem is that solving this problem is difficult; if you like
challenges, give it a go :-)

-- 
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: showLastLength as a command-line option?

2008-09-27 Thread Jonathan Kulp
Well, I didn't get enough info from this posting to do what I originally 
wanted to do (i.e. hack Lilypond itself to add this option--it would 
have been enough if I knew anything about programming, I guess), but 
I've come up with a way to specify showLastLength at the command line 
using the script that I normally use to invoke lilypond.  This works 
equally well on Mac and Linux.  I guess it would take something 
completely different to work on Windows, though.  Don't really know 
about that.


So I've added some code that allows use of an argument that is captured 
and passed to a temporary file so it can be used by a lilypond source 
file.  To make use of this function, add the following line near the top 
of your source file:


\include "showlast.ly"

You don't actually have to *have* the showlast.ly file anywhere on your 
system, as it's created on the fly by the script, so that it's present 
when lilypond is called, and then when the script is done, the 
showlast.ly file is deleted.  Specify the duration of the last length 
the same way you would if you were putting it in your source file.  R1*8 
is eight whole-rest bars.  R2.*8 would be 8 bars of dotted-half-rests. 
Here's an example of how to run it:


lily -l=R1*12 filename.ly

The R1*12 value is passed to the temporary file, and when lilypond is 
called, it only renders the last 12 bars.


If you just do "lily filename.ly", then the script creates an empty 
showlast.ly file so that no "showLastLength" variable is set and the 
source file is run normally.


Now, I've specified acrobat reader for previewing the file in Linux so 
if you prefer another viewer you can say "xdg-open" or "evince" in its 
place.  On Mac I use the default Preview app.


Give it a try!

Jon

Jonathan Kulp wrote:
Thanks for replying, Han-Wen.  I can't find showLastLength anywhere in 
that file, though.  Searches for showlast and show-last came up empty. 
It looks like the file is inside the SCM directory but I can't tell 
where.  Here's the search I did:


[EMAIL PROTECTED]:/usr/local/share/lilypond/2.11.59/scm$ cat *.scm | grep 
-i showlast

 LENGTHOF(\\showLastLength)
  ((show-last  (ly:parser-lookup parser 'showLastLength)))

So it shows that showLastLength is there, but it doesn't say which file 
it's in (my skills at the shell are such that I don't know how to make 
it tell me this.  Sigh...).  Can you tell from this output where it is?


Jon

Han-Wen Nienhuys wrote:
Can anyone point me in the right direction to accomplish this great 
idea?!

;)




Would it be possible technically to specify the showLastLength value
when
invoking lilypond instead of putting it in the .ly file?  
Something like



look at lily.scm to see where the -d options are defined.  At some
point showLastLength is initialized; that's where you should do

  (ly:get-option 'show-last-length)






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

##
# This script runs lilypond on a specified file, keeping all #
# output files in the same directory as the source file  #
##
# Usage: This script allows for the use of the "showLastLength"
# function of Lilypond, where it only runs the last x number of
# measures instead of the whole thing.  To take advantage of this,
# YOU MUST PUT THE FOLLOWING LINE NEAR THE TOP OF YOUR SOURCE FILE:
#
#   \include "showlast.ly"
#
# Then use the -l flag with an argument in the following format:
#
#   lily -l=R1*12 filename.ly   (12 whole-rest bars)
#   lily -l=R2.*12 filename.ly  (12 dotted-half-rest bars)
#
# Without the -l option, the file should run as usual.
#~~
# getopt_simple - Orig by Chris Morgan, stolen from
# the ABS Guide and modified a bit
#~~
getopt_simple()
{
until [ -z "$1" ] ; do
if [ ${1:0:1} = '-' ] ; then
tmp=${1:1}   # Strip off leading '-' . . .
if [ ${tmp:0:1} = '-' ] ; then
tmp=${tmp:1} # Allow double -
fi
parameter=${tmp%%=*} # Extract name.
value=${tmp##*=} # Extract value.
eval $parameter=$value
else
filename="$1"
fi
shift
done
}

length='no'
l='no'

quiet='no'
q='no'

getopt_simple "$@"

if [ $q != 'no' ] ; then
quiet=$q
fi
if [ $quiet != 'no' ] ; then
quiet='Y'
exec >& /dev/null
fi

# determine whether the flag is there.  If not then dump
# a % into the showlast.ly file.  If so, then dump the
# showLastLength variable into it.

if [ "$l" == "no" ] ; then
echo "%" > ~/showlast.ly
  elif [ "$value" != "no" ] ; then
LENGTH=$value
echo "showLastLength=$LENGTH" > ~/showlast.ly 
fi

#*#
# Get all the filename info here  #
#*#

# determines the sou

Re: Adding cue notes to a brass quintet score

2008-09-27 Thread Mats Bengtsson

For the cue notes, there's built-in support, see
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Writing-parts#Formatting-cue-notes
For the time signature changes, you would have to enter them into the
trumpet part even if you didn't have any cue notes, right? I guess the 
part looks something like ... R1*5

\time 3/4
R2.*10
\time 2/4
R2*8
...

   /Mats

Quoting Jim Milks <[EMAIL PROTECTED]>:

I need to add 31 measures of percussion (wood stick) cues to a 
trumpet part for
a brass quintet.  Unfortunately, there are also four time signature 
changes in

those 31 measures.  Is there a relatively easy way to add those cues?

Thanks.

Jim Milks



___
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: Documentation Review

2008-09-27 Thread Valentin Villenave
2008/9/22 Trevor Daniels <[EMAIL PROTECTED]>:

> Several sections of the Learning Manual and most of the first
> two Chapters of the Notation Reference are ready for review by users, and it
> would be good to bring these to the best possible state before 2.12 is
> released.

Greetings Trevor,

I'm sure there's plenty of room for improvements, but could we add NR
1.8 "Text" to the list of sections to be reviewed?
Corrections, suggestions and criticism are welcome!

Cheers,
Valentin


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


Re: vim, point and click

2008-09-27 Thread Mats Bengtsson



Quoting Stefan Thomas <[EMAIL PROTECTED]>:


Dear Mats,
I have read the Application Usage, but I didn't unterstand:
shall I add
emacsclient ?no-wait +line:column file

in the .emacs file, or in lilypond-invoke-editor, or somewhere else?


No! When I read this section more carefully (which I hadn't done when I 
wrote the previous reply) I see that this is what lilypond-invoke-editor

does by itself. In other words, if you don't have the LYEDITOR environment
variable set (which you typically shouldn't), point and click should 
result in that emacsclient is invoked, which does not start a new Emacs
session but rather opens a new buffer in an existing Emacs session. 
However, you have to make sure that the corresponding server is started

in Emacs, which you can do by adding (server-start)
in your .emacs file.

   /Mats



2008/9/26 Mats Bengtsson <[EMAIL PROTECTED]>


Please read the section on Point and Click in the Application Usage manual
for LilyPond,
i.e. make sure to use emacsclient.

 /Mats

Stefan Thomas wrote:


I got now point and click working with emacs.
But I have another problem now: every time when I click on a note in xpdf,
a new emacs window will be opened. How can I avoid this?

2008/9/26 Stefan Thomas <[EMAIL PROTECTED] >

   Dear Mark,
   I use Kpdf and acrobat reader on a linux machine.
   But I don't understand how to use the files You added.

   2008/9/26 Mark Knoop <[EMAIL PROTECTED] >

   At 10:21 on 26 Sep 2008, Stefan Thomas wrote:
   > Dear lilypond-.users,
   > I tried to get the point and click working with gvim. I've
   read the
   > (german) documentation about it, but it es not quite clear
   for me.
   > I added
   >
   > gvim ?remote +:line:normchar file
   >
   >
   > in .xdfrc, but after a click, emacs will be opened. Or do I
   have it
   > to add in the lilypond-invoke.editor program?

   It depends what you are using to view the pdf. If you are
   using evince
   in gnome, you need to add the textedit schema to gconf. See the
   attached files for details.

   --
   Mark Knoop

   ___
   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




--
=
   Mats Bengtsson
   Signal Processing
   School of Electrical Engineering
   Royal Institute of Technology (KTH)
   SE-100 44  STOCKHOLM
   Sweden
   Phone: (+46) 8 790 8463
  Fax:   (+46) 8 790 7260
   Email: [EMAIL PROTECTED]
   WWW: http://www.s3.kth.se/~mabe 
=










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


Re: Documentation Review

2008-09-27 Thread Trevor Daniels


Valentin, you wrote Saturday, September 27, 2008 7:41 PM


I'm sure there's plenty of room for improvements, but could we add NR
1.8 "Text" to the list of sections to be reviewed?
Corrections, suggestions and criticism are welcome!


Done!  This is a major piece of work!

We now need reviewers for this and several
other sections.


Cheers,
Valentin


Trevor



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


setting --png in an .ly file (without using command line)?

2008-09-27 Thread Mark Polesky
When I want .png output, I usually type something like this
in the command line:

lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts
--png my_file.ly

Is it possible to do all of this from inside the .ly file?
Using the ly:set-option command, I can do most of it:

#(ly:set-option 'backend 'eps)
#(ly:set-option 'gs-load-fonts #f)
#(ly:set-option 'include-eps-fonts #t)

But I can't figure out how to set --png from within the file.
Can I?

Thanks,
Mark



  


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


Re: setting --png in an .ly file (without using command line)?

2008-09-27 Thread Jonathan Kulp
Well, I'm not sure if this will do exactly what you want, but you might 
be able to tweak it where it will.  Patrick Horgan has been helping me 
write a program that converts lilypond files into image files (many 
formats supported), and I think I'm ready to share it with the userlist 
again. One of its key functions is cropping images to remove all the 
excess white space if you want to put the images into a web page or 
document or something like that.  If you don't want it cropped, though, 
you can probably just comment out the relevant lines in the script. 
With this tool, your command can be as simple as this:


lily2image -q filename.ly

The -q flag (quiet mode) makes it default to png format at 150 DPI 
resolution.  You can specify different formats (gif, jpeg, tiff, pcx, 
bmp, and many others) and resolutions (pretty much any res you want) 
with -f and -r flags, and you can even make it have a transparent 
background.  It relies on the "netpbm" package of image tools, which you 
can get from Linux repositories, or from MacPorts if you're a Mac user. 
 This script runs equally well on Linux or Mac OSX.


I'll attach the script and the html version of the manpage.

Jon

Mark Polesky wrote:

When I want .png output, I usually type something like this
in the command line:

lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts
--png my_file.ly

Is it possible to do all of this from inside the .ly file?
Using the ly:set-option command, I can do most of it:

#(ly:set-option 'backend 'eps)
#(ly:set-option 'gs-load-fonts #f)
#(ly:set-option 'include-eps-fonts #t)

But I can't figure out how to set --png from within the file.
Can I?

Thanks,
Mark



  



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



--
Jonathan Kulp
http://www.jonathankulp.com
#!/bin/bash
#**#
# Script for making image files from lilypond source suitable for use as   #
# musical examples to insert in a document or web page.#
# Creator   - Jonathan Kulp#
# Scripting Guru- Patrick Horgan   #
#**#
# Change log
#
# 1.2   Added loop to image conversion to accommodate lilypond files that 
#   have more than one page. It loops until it has converted each of 
the 
#   png files output by Lilypond.  
# 1.1.1.12  Added final exit 0 status at end of file; updated manpage
# 1.1.1.11  Added jpg=jpeg, tif=tiff when values set at command line; added
#   echoes of netpbm activity and echoes at end of process.
# 1.1.1.10  -V implies -p ph
# 1.1.1.9   Added range check to getnumval ph
# 1.1.1.8   -p flag is now necessary for preview--image is not opened in 
#   viewer by default. jk
#   Quiet mode is really quiet as long as sufficient parameters are
#   set at command line for process to succeed. jk
# 1.1.1.7   Added -p flag: allows forced preview even in quiet mode. jk
#   Made quiet mode more quiet. jk
# 1.1.1.6   Changed the call to Lilypond on OSX by defining $PATH
#   early in the script. Changed Patrick's "Johnny Come Lately" to
#   "Major Contributor" :) and added a few echoes when formats,
#   resolutions, and so forth are set. We could remove these if you 
#   they're too much. jk
# 1.1.1.5   Added -w option to specify white background and avoid prompt for
#   transparency jk
# 1.1.1.4   Added lines to clean up png file if desired format is not png. jk
# 1.1.1.3   Changed list of Darwin viewers--Darwin doesn't have eog and evince
#   Added quiet mode "-q" (I think it works!) jk
# 1.1.1.2   Fixed handling of dirs and files with spaces ph
# 1.1.1.1   Added search for default list of viewers ph
# 1.1.1 Added -a, -V and much comments changed default viewer to xdg-open ph
# 1.1   Added checking of return codes so we could
#   abort if something failed. ph
# 1.0   Initial beta release jk
#~~~
# in quiet mode exits with various return codes from
# failures
# 40 - transparency not set and no default
# 41 - format not set and no default
# 42 - resolution not set and no default
# 43 - netpbm utilities not installed
# 44 - unable to find conversion program for desired output
# 45 - resolution from command line not positive numeric
# 46 - format from command line invalid
# various - if any of the programs we call fail, we
#   exit with whatever error code they returned
#~~~
# setformatlist - gets the list of all the things that # you can convert to
#~~~

Re: showLastLength as a command-line option?

2008-09-27 Thread Valentin Villenave
2008/9/27 Jonathan Kulp <[EMAIL PROTECTED]>:
> Well, I didn't get enough info from this posting to do what I originally
> wanted to do (i.e. hack Lilypond itself to add this option--it would have
> been enough if I knew anything about programming, I guess)

Well, sooner or later someone will find a way to implement this.

Anyway, I'm adding this to the tracker to make sure it isn't forgotten.

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

Cheers,
Valentin


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


Re: showLastLength as a command-line option?

2008-09-27 Thread Jonathan Kulp
Thanks Valentin.  The script will serve me for the time being, but it'd 
be great to have this available without a script :)


Jon

Valentin Villenave wrote:

2008/9/27 Jonathan Kulp <[EMAIL PROTECTED]>:

Well, I didn't get enough info from this posting to do what I originally
wanted to do (i.e. hack Lilypond itself to add this option--it would have
been enough if I knew anything about programming, I guess)


Well, sooner or later someone will find a way to implement this.

Anyway, I'm adding this to the tracker to make sure it isn't forgotten.

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

Cheers,
Valentin



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


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