Re: Changing the bar-number string

2008-03-09 Thread Francesco Guglie
Thank you very much, Kieren! 
I was looking for a kind of solution like the one you wrote but I didn't 
arrive to Scheme snippet, so I think it's a big step toward the goal even if 
it doesn't really work yet.
I'll try to start from these lines, maybe I will be luckier enough to find the 
right way. :D

Best regards,

Francesco



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


Converting MIDI File into Lilypond...how can I get "piano score" notation?

2008-03-09 Thread dbsoundman

I'm completely new to Lilypond. I have only really discovered it because I
found a .mid file of a song I wanted the piano score to, so I downloaded it
and I wanted to print out the sheet music. The problem is, I need to have it
in piano score notation, meaning there is a bass and treble clef for each
line, and I don't know how to go about doing that. I used rosegarden to
export the file as a .ly, but of course Rosegarden only does one line
output. I don't really have any good way of knowing what notes should be in
the bass clef vs. treble clef, but I was hoping there was some sort of
option where I could get the score "split" into the two clefs automatically.
I have tried using NoteEdit, but it freezes up as soon as I try to do
autobar or autobeam, and GNU Denemo crashes as soon as I open a midi file in
it. What can I do?

Thanks,
Dan
-- 
View this message in context: 
http://www.nabble.com/Converting-MIDI-File-into-Lilypond...how-can-I-get-%22piano-score%22-notation--tp15918531p15918531.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: Changing the bar-number string

2008-03-09 Thread Francesco Guglie
Alle sabato 8 marzo 2008, Trevor Daniels ha scritto:
> Hi Keiren
>
> Rather than just give you a Scheme procedure to do
> this, I thought it might be more helpful to say
> how I arrived at this code, as I'm still learning
> too, and needed to work this out.
>
> First I looked at the BarNumber grob in the IR and
> saw that the stencil property is set by default to
> ly:text-interface::print, and in this interface we
> find that the 'text property contains the text to
> be printed.  As this text needs to vary with the
> bar number it must be set up by Lily before the
> stencil procedure is called.
>
> As the value of 'text is set up dynamically
> in this way we cannot simply change it with an
> override - it has to be changed *after* Lily has
> set up the current bar number, so we need a Scheme
> call-back procedure.  This procedure needs to lift
> out the current value of the 'text property, append
> " bis" to it, and store it back, finally calling
> ly:text-interface::print to print it.
>
> Having worked out what to do, we have to generate
> the correct Scheme code to do it.  I needed to look
> up how to append text to a string, but otherwise
> this is fairly straight-forward.  The stencil
> call-back is called with the BarNumber grob as its
> argument, so the text property is immediately
> available, and we need to pass on the BarNumber
> grob to the ::print procedure.  The only remaining
> difficulty, as always with Scheme, is to get all
> the brackets in the right places!
>
> Here it is, well-annotated, with some artificial
> code to demonstrate it working:
>
> #(define (bis-bar-number BarNumber)
>   "Append bis to the bar number."
>   (let* (
>   ; Set barNumber to the current value
>   (barNumber (ly:grob-property BarNumber 'text))
>   ; Append " bis" to it
>   (bisBarNumber (string-append barNumber " bis")))
> ; Store the new value back
> (ly:grob-set-property! BarNumber 'text bisBarNumber))
>   ; and print it
>   (ly:text-interface::print BarNumber))
>
> music = \relative
> {
>   \override Score.BarNumber #'self-alignment-X = #center
>   \override Score.BarNumber #'break-visibility =
> #all-visible
>   \repeat unfold 4 { a1 }
>   \override Score.BarNumber #'stencil = #bis-bar-number
>   \repeat unfold 4 { a1 }
>   \revert Score.BarNumber #'stencil
>   \repeat unfold 4 { a1 }
> }
>
> \score { \music }
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:lilypond-user-bounces+t.daniels=treda.co.u
> > [EMAIL PROTECTED] Behalf Of
> > Kieren MacMillan
> > Sent: 07 March 2008 17:23
> > To: Francesco Guglie
> > Cc: lilypond-user@gnu.org
> > Subject: Re: Changing the bar-number string
> >
> >
> > Hi Francesco,
> >
> > > I'd like to change the bar-numbers of a
> >
> > repeated section so that it
> >
> > > shows the bar-number of the first time with a
> >
> > "bis" added.
> >
> > If I knew Scheme, I would write something like
> >
> > %%
> > \version "2.11.37"
> >
> > #(define (special-bar-number context)
> > (markup (#:line ((ly:context-property
> > 'Score 'currentBarNumber)
> > "bis"
> >
> > music = \relative
> > {
> > \override Score.BarNumber #'stencil =
> > #special-bar-number
> > \repeat unfold 16 { a1 }
> > }
> >
> > \score { \music }
> > %%
> >
> > Unfortunately, the code I wrote doesn't work...  =\
> > Maybe someone out there can fix it -- or tell us
> > why this idea can't
> > possibly work.
> >
> > Cheers,
> > Kieren.
> >
> >
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > http://lists.gnu.org/mailman/listinfo/lilypond-user

Thank you very much, both for the code and for your clear explanation! A good 
lesson indeed :) Thanks again!

Francesco 


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


Re: dotted or dashed phrasing slurs

2008-03-09 Thread Mats Bengtsson

If you use version 2.11, please note that this is one thing that has
changed, so please use the corresponding definitions
from ly/property-init.ly as a starting point. If I remember
correctly, convert-ly will issue a warning but will not solve the
problem automatically, when you upgrade your file.

  /Mats

Quoting Reinhold Kainhofer <[EMAIL PROTECTED]>:


Am Samstag, 8. März 2008 schrieb Reinhold Kainhofer:

Am Samstag, 8. März 2008 schrieb Peter Kaplan:
> I am interested in making phrasing slurs that are (graphically, not
> rhythmically) dotted or dashed, in order to differentiate them visually
> from ordinary legato slurs (to be represented with solid slurs).  Is
> there a way to do this straightforwardly in lilypond?

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


Oh, right, if you want to have these settings apply to real phrasing slurs
generated by \( and \), then you can't use \slurDashed, but have to apply the
appropriate settings on the PhrasingSlur object. if you look at the file
ly/property-init.ly, there is the definition for \slurDashed:

slurDashed = {
 \override Slur #'dash-period = #0.75
 \override Slur #'dash-fraction = #0.4
}

This sets the appropriate settings for slurs. For phrasing slurs, you would
simply have to define your own command, setting dash-period for PhrasingSlur:

phrasingSlurDashed = {
 \override PhrasingSlur #'dash-period = #0.75
 \override PhrasingSlur #'dash-fraction = #0.4
}
phrasingSlurDotted = {
 \override PhrasingSlur  #'dash-period = #0.75
 \override PhrasingSlur #'dash-fraction = #0.1
}
phrasingSlurSolid = {
 \revert PhrasingSlur #'dash-period
 \revert PhrasingSlur #'dash-fraction
}

Sample file (the lsr example, adapted to phrasing slurs) is attached.

cheers,
Reinhold

PS: I wonder if we shouldn't add these definitions to ly/property-init.ly for
the sake of consistency...

--
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/







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


Re: crescendo beginning in middle of note duration

2008-03-09 Thread Mats Bengtsson

Quoting Wilbert Berendsen <[EMAIL PROTECTED]>:


Op zaterdag 8 maart 2008, schreef Peter Kaplan:

Occasionally a crescendo or decrescendo needs to begin not at the
commencement of a note's duration, but rather halfway through the note.
Can such a situation be properly typeset using lilypond?  If so, how?


Yes, one way I know of is by instantiating a temporary polyphony, and
attaching the dynamic to a 'space':

 \new Staff \relative c' {
   << g1\pp {s2 s\< a1 b\ff}>>
 }


This question is answered in the second example of the section on 
Dynamics in the manual. Peter, can you provide a hint on how to make it 
even more clear?


  /Mats




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


Re: Need help with upgrade from 2.2 to 2.10

2008-03-09 Thread Mats Bengtsson
I recognize the problem, when trying to use the precompiled binary 
package of 2.10 or 2.11 on Debian Sarge. The funny

thing is that often I get the correct output anyway, but sometimes
LilyPond simply breaks halfway through the compilation.

   /Mats

Quoting Alan McConnell <[EMAIL PROTECTED]>:


I grabbed the big .gz from your site and ran the install.  It
seemed to work fine.  But I now when I runlilypond  testfile.ly  ,
I get the error message:

/usr/local//lilypond/usr/bin/lilypond: relocation error:
/usr/local/lilypond/usr/lib/libguile.so.17: symbol regexec, version 
GLIBC_2.3.4

not defined in file libc.so.6 with link time reference

I am running a very ancient Debian sarge, which I hope to upgrade to etch in
a week or so.  Can I fix the above error before that, or is it best to wait
till I have etch working?

TIA for help and best wishes,

Alan




___
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


Different distance line - chordnames within one score

2008-03-09 Thread Dominic Neumann
Hi,

I´ve determined a strange problem. In some of my scores the distance
between note line and chord names differs from line to line. I´ve got
a song with >3 lines. In line 2 the chord names are around 1mm farther
away from the line.

I will try to build a minimal example, because the songs I usually
publish are not allowed to be sent here.

Is this a known problem? I don´t know where I should start searching ...


Dominic


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


Re: crescendo beginning in middle of note duration

2008-03-09 Thread Gilles THIBAULT





Occasionally a crescendo or decrescendo needs to begin not at the 
commencement
of a note's duration, but rather halfway through the note.  Can such a 
situation

be properly typeset using lilypond?  If so, how?


You can do that for example
{ g'2*1/2   s4\<   g'2\!  }

Gilles 




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


The LilyPond Report: a new weekly opinion column about Lily's world

2008-03-09 Thread Valentin Villenave
Hi everybody,

As you may already know, I am fond of starting little useless projects
to promote LilyPond (perhaps you remember about some of them).

Here's my last one (i don't know if I'll be able to maintain it, but
it's just fun to launch it anyway): a "short informal, weekly opinion
column about the LilyPond project; its team, its world, its community.
It is not meant to be an exhaustive documentation resource. Reader
comments are, of course, welcome."

Its sole purpose is to be pleasant to read, entertaining -- and to
make LilyPond look sexy. It's primarily intended for newbies, but I
hope that anyone in the LilyPond community can be interested in
reading it.

I have named it "the LilyPond Report", but if anyone comes up with a
better suggestion I won't object. I have put it on my personal website
but it's not meant to be some self-advertising; if some of you guys
(newbies, users, contributors etc) want to propose subjects, articles,
ideas, stuff... host it anywhere else or even fork it, you are
welcome.

Here's the introduction of this week's issue, that presents some of
the topics dealt with. Follow the link below it to see all of the
sections I tried to propose.

In this week's issue, I used some quotes from public mails, but also a
couple of private ones. If any of the quoted persons wants his quote
to be removed, just ask.


%---


Welcome to this beta issue of the LilyPond Report!

This issue is marked as "beta", numbered as #0, so you can just
consider it as a proof of concept — which is why some of the sections
below are not "implemented" yet. Likewise, not every section will be
dealt with every week; I've just mentioned all of them here so you can
know what to expect to (besides, upcoming issues will not be meant to
be as long as today's).

This week, we are going to have a look at some great websites that
have inspired this Report, discuss the benefits of Free Software in
education, see the advantages of multiplied durations in LilyPond, and
briefly mention two "companion" projects of LilyPond: OrchestralLily
and Julie.

-

To be continued on http://valentin.villenave.info/spip.php?article51


Cheers,
Valentin


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


Re: The LilyPond Report: a new weekly opinion column about Lily's world

2008-03-09 Thread Evans Winner
"Valentin Villenave" <[EMAIL PROTECTED]> writes:

[...] if some of you guys (newbies, users, contributors
etc) want to propose subjects, articles, ideas, stuff
[...] you are welcome.

An email or full-text rss version?



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


Re: Dot Staccato x Slur

2008-03-09 Thread Neil Puttock
Hi Zenith,

Valentin's right that there's no bug here - the culprit in your file
is the rather innocent looking (but deadly) line \override Script
#'padding = #0 which you're using after tweaking the padding on the
fermatas.

Fermatas and staccato dots are both Script objects, so you need to be
careful when overriding properties.  If you take a peek in your
LilyPond installation at the file
usr/share/lilypond/current/scm/script.scm, you'll find that the
default padding for script objects is 0.20 staff spaces, so you can
see why setting #'padding = #0 doesn't result in a return to the
default setting.

Since you only want the padding to apply to each fermata, you should
use \once with your override. I'd suggest reading through section
4.1.4, "Tweaking methods", in the Learning Manual if you're unsure
about the use of \override and \revert.

Here's your file with the corrections applied:

\version "2.11.41"

#(set-default-paper-size "a4")
% \markup { \dynamic \small p \small \italic grazioso }
% pg = #(make-dynamic-script "p grazioso")
\paper{
  line-width = 19\cm
}

\header {
title = "Thème et Variations"
subtitle = \markup { \lower #1.0 \small "EN LA MINEUR" }
composer = "NEPOMUCENO, Alberto"
opus = \markup {\italic "Op." "28" }
poet = "A Arthur Napoleão"
}
 cima = {
\dynamicDown

% 1a. linha
8^\markup{\hspace #-4.0 "Allegretto" }\p(  _\markup{ \italic \small
\halign #-0.6 "grazioso"} \stemDown < gis b>4-.) -. \stemNeutral
8(   \stemDown 4-.) -. \stemNeutral
8\<\( \!
\times 2/3 { \f  \)} \once \override Script #'padding = #1 2\fermata \break

% 2a. linha
8\p(   \stemDown < gis b>4-.) -. \stemNeutral
8(   \stemDown < gis b>4-.) -. \stemNeutral
8\<\( \!
\times 2/3 { \f  \)} \once \override Script #'padding = #1 2\fermata \bar "||" \break

% 3a. linha
\bar "|:" 8\p\(  \stemDown 4^.\) ^.
\stemNeutral
8\(  4^.\) ^.
8\(  4^.\) ^.
8\(  4^.\) ^.
8\>(  4^.) 8( \! \break

% 4.a linha
4^.)

}
baixo =
{
% 1a. linha
8(   \stemDown < gis b>4-.) -. \stemNeutral
8(   \stemDown < gis b>4-.) -. \stemNeutral
a8\( b c d e f
\times 2/3 { g f e\)} \once \override Script #'padding = #1 e2\fermata  \break

% 2a. linha
8(   \stemDown < gis b>4-.) -. \stemNeutral
8(   \stemDown < gis b>4-.) -. \stemNeutral
a8\( b c d e f
\times 2/3 { g f e\)} \once \override Script #'padding = #1 e2\fermata
\bar "||" \break

% 3a. linha
\bar "|:" \stemDown 8\(  4^.\) ^.
8\(  4^.\) ^.
8\(  4^.\) ^.
8\(  4^.\) ^.
fis''( b,^.) e( \stemNeutral \break

% 4a. linha
a,^.)
}

 melodia = \new Staff { \relative c'' { \cima } }
harmonia = \new Staff { \clef bass \time 3/4 \relative c' { \baixo } }

  \new PianoStaff << \set PianoStaff.instrumentName = "PIANO " \melodia
\harmonia >>

Regards,
Neil


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


Re: Spanner trouble

2008-03-09 Thread Neil Puttock
Hi David,

Are you using LilyPondTool's JPedal plugin for viewing your output files?

I had the same problem a while back with ottava spanners, and was on
the verge of posting a bug report until I opened the offending file in
Foxit. It seems JPedal has a rendering bug which messes up dashed or
dotted spanners.

Regards,
Neil


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


Re: Spanner trouble

2008-03-09 Thread David Bobroff

Neil Puttock wrote:

Hi David,

Are you using LilyPondTool's JPedal plugin for viewing your output files?

I had the same problem a while back with ottava spanners, and was on
the verge of posting a bug report until I opened the offending file in
Foxit. It seems JPedal has a rendering bug which messes up dashed or
dotted spanners.

Regards,
Neil



Wow, yeah, that was it!  As soon as I read your mail I remembered that I 
had a similar problem with some glyph (umlaut-o, maybe) and Unicode with 
JPedal.  That also would render correctly in another viewer.


Thanks!

-David


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