Re: jianpu (numeric notes) lilypond transcribe?

2012-12-01 Thread Silas S. Brown
I should point out that Ming Tsang's example PNG (posted on 17 Nov)
was created using my jianpu in Lilypond program available at
http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html
but what he wants to ask is is it possible to do that without
having to type the numbers in manually, i.e. can the jianpu be
automatically generated from normal Lilypond input without having
to input the numbers separately.

My program does not attempt to parse normal Lilypond input because
the syntax is a moving target between Lilypond versions and it's rather
complicated to handle everything.

Moreover, although it's nice to be able to print the jianpu line
along with a 5-line stave, in many cases you actually DON'T want
this: if you know the user of the part ONLY reads jianpu, then
the 5-line stave is just wasting paper and ink; you might as well
put jianpu only, especially if you are printing out 135 songs!
And if you are printing jianpu only, then I find it's quicker to
type in the jianpu numbers myself, instead of going to all the
trouble of coding a 5-line staff that won't actually be printed.

Also, in some music you have to make a human judgment about what to
do with the jianpu, for example if the key changes (you may or may
not get away with changing key in the jianpu; it depends on the
singer/instrument; you might have to write everything relative to
the same key, in which case you have to choose which of the music's
different keys is the main one) or if there are chromaticisms
(sometimes it makes sense to rewrite the enharmonics in the jianpu
line, e.g. #5 to b6; there are no fixed rules about this, it's
down to judgment and it can depend on the singer/instrument).
If any program did produce the jianpu numbers completely automatically
then I would want to be able to edit/override them at times.

Of course, if the music is simple (it's in one key with no awkward
chromaticisms) then automatic jianpu should be easier.  If I were
inputting a large number of simple tunes, and I wanted both the music
line and the jianpu line but without having to type everything twice,
I would write myself a simple search/replace script so I can automatically
generate one format from the other (or even use a third format to
generate both).  In this case the translator needs to cope only with
the specific things that I will actually use for this specific input
(it does not have to address the entire Lilypond feature set).
For example, if you are in D major and you specify duration on
every note in Lilypond, just replace d4 - 1, d8 - q1, e4 - 2 etc.

In the general case though, it's going to be hard to automatically
convert normal Lilypond input into jianpu-ly's input (or reproduce
jianpu-ly's work in mainstream Lilypond) although it would be nice.

Meanwhile, at least jianpu-ly does have a few sanity checks in
it in case you make a mistake.  It performs barline checks like
Lilypond (and in jianpu-ly they are ERRORS, not warnings, so you
should certainly know if you did something wrong there), and it
should be possible to hear the music played back (although I should
probably implement a play it in the right key feature so you can
play it alongside the other stave and check all notes sound the same).

Silas

-- 
Silas S Brown http://people.ds.cam.ac.uk/ssb22

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


Re: measures per system

2012-12-01 Thread David Nalesnik
Hi Kieren,

On Tue, Nov 27, 2012 at 2:20 PM, David Nalesnik
david.nales...@gmail.com wrote:

[...]

 I could change the engraver so that you could specify the list in your
 example like so:

 '(4 5 4 6 (200) 4 4 4 4 4 4 4 4 (100))

 with the meaning that elements in further parentheses have
 'line-break-permission set to 'allow (the default, which lets LilyPond
 make her aesthetic decisions), and the other elements have
 'line-break-permission set to #f and 'force at the breakpoints.
 Therefore, you would be assured of getting exactly 4, 5, 4, 6 bars,
 with the understanding that you could leave the parentheses off of 200
 and create something nasty.  But I suppose the point of a
 bars-per-line-engraver is the freedom to do just that.


I've been experimenting with implementing the above, but so far I'm
unable to set 'line-break-permission to #f within the engraver without
getting errors (though there's no problem setting it in a \context
block).

In the interests of making the user interface friendlier, I added a
feature for specifying repeats.  You can now write something like
this:

 \consists #(bars-per-line-engraver '(5 7*5 1 3*3))

instead of

\consists #(bars-per-line-engraver '(5 7 7 7 7 7 1 3 3 3))

I don't know if there could be potential issues using the asterisk,
since it's reserved for rhythmic input..  If there is, I could use
another character, or do something like:

'(7 (7 . 5) 1 (3 . 3))

though I rather like the asterisks.

Anyway, I hope this helps!

-David


bars-per-line-engraver-rev.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Slurs, phrasing slurs and fingering

2012-12-01 Thread Olivier Biot
Hi all,

Is there a simple way to avoid fingerings from being overwritten with a
phrasing slur, like in the following measure?

% BEGIN
\version 2.16.1

theMusic = \new Staff {
  \relative d' {
\key f \major
\time 3/4
\clef bass
\acciaccatura { e-\! } d4  cis8-\ \( ( a'16-.-3 ) a-.-\! \)
  }
}

\score {
  \theMusic

  \layout {
\context {
  \Staff
  \override Fingering #'add-stem-support = ##t
  \override Fingering #'avoid-slur = #'outside
  \override TupletBracket #'bracket-visibility = ##t
}
  }
}
% END

The following directive works for regular slurs:
  \override Fingering #'avoid-slur = #'outside
However, phrasing slurs seem to be immune to this ovverride...

Best regards,

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


Marks above and below simultaneously

2012-12-01 Thread Daniel Rosen
I have my rehearsal marks and metronome marks in a separate voice in the score 
I'm typesetting, and I'd like to get them all to show up both above and below 
the score. The best thing to do that I can think of is to use Dynamics contexts 
above and below, but that throws off the vertical spacing between the marks and 
the top and bottom staves; I'd like it to look as though Score.RehearsalMark 
#'direction = #1 and Score.RehearsalMark #'direction = #-1 were set 
simultaneously; same for MetronomeMark. Anyone know how to do this? Should I be 
using some other context than Dynamics? 

DR



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


LilyPond 2.16 installation

2012-12-01 Thread Ralph Palmer
Greetings -

I'm currently running LilyPond 2.14.2 under linux Ubuntu 12,04. I'd like to
run 2.16, but I can't figure out how to install it. Any Ubuntu users out
there who could give me a clue?

I appreciate your time and attention,

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond 2.16 installation

2012-12-01 Thread SoundsFromSound
Ralph Palmer wrote
 Greetings -
 
 I'm currently running LilyPond 2.14.2 under linux Ubuntu 12,04. I'd like
 to
 run 2.16, but I can't figure out how to install it. Any Ubuntu users out
 there who could give me a clue?
 
 I appreciate your time and attention,
 
 Ralph
 
 -- 
 Ralph Palmer
 Brattleboro, VT
 USA

 palmer.r.violin@

 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Ralph,

When I use LilyPond on my Ubuntu machine, I use the Synaptic Package Manager
to simply download and install/update the program.  I also use SPM for
installing Frescobaldi as well, because imo it's the best app to use when
working with LilyPond.

Let me know if that helps you!

Ben



-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/LilyPond-2-16-installation-tp137060p137061.html
Sent from the User mailing list archive at Nabble.com.

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


Re: LilyPond 2.16 installation

2012-12-01 Thread SoundsFromSound
Ralph Palmer wrote
 Greetings -
 
 I'm currently running LilyPond 2.14.2 under linux Ubuntu 12,04. I'd like
 to
 run 2.16, but I can't figure out how to install it. Any Ubuntu users out
 there who could give me a clue?
 
 I appreciate your time and attention,
 
 Ralph
 
 -- 
 Ralph Palmer
 Brattleboro, VT
 USA

 palmer.r.violin@

 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

Also, one more thing - if v2.16 is not in the repository and you can't
download it via the package manager, just download the Linux file from
LilyPond.org and type this into the shell:

cd PATH-TO-DOWNLOAD-DIRECTORY
sh lilypond-2.16.1-OS-TYPE.sh


http://www.lilypond.org/unix.html

Works for me.

Ben



-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/LilyPond-2-16-installation-tp137060p137062.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Marks above and below simultaneously

2012-12-01 Thread Pierre Perol-Schneider
Maybe those snippets could help :

- http://lsr.dsi.unimi.it/LSR/Item?id=735
- http://lsr.dsi.unimi.it/LSR/Item?id=736


2012/12/2 Daniel Rosen drose...@gmail.com

 I have my rehearsal marks and metronome marks in a separate voice in the
 score I'm typesetting, and I'd like to get them all to show up both above
 and below the score. The best thing to do that I can think of is to use
 Dynamics contexts above and below, but that throws off the vertical spacing
 between the marks and the top and bottom staves; I'd like it to look as
 though Score.RehearsalMark #'direction = #1 and Score.RehearsalMark
 #'direction = #-1 were set simultaneously; same for MetronomeMark. Anyone
 know how to do this? Should I be using some other context than Dynamics?

 DR



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

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


Re: LilyPond 2.16 installation

2012-12-01 Thread Brett McCoy
On Sat, Dec 1, 2012 at 7:01 PM, Ralph Palmer palmer.r.vio...@gmail.com wrote:

 I'm currently running LilyPond 2.14.2 under linux Ubuntu 12,04. I'd like to
 run 2.16, but I can't figure out how to install it. Any Ubuntu users out
 there who could give me a clue?

Just download it from the Lilypond site and run the installer script.
It will install in your home directory. I did it just this afternoon
on a 12.04 box.

-- 
Brett W. McCoy -- http://www.brettwmccoy.com

In the rhythm of music a secret is hidden; If I were to divulge it,
it would overturn the world.
-- Jelaleddin Rumi

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


Re: Slurs, phrasing slurs and fingering

2012-12-01 Thread Nick Payne

On 02/12/12 10:46, Olivier Biot wrote:

Hi all,

Is there a simple way to avoid fingerings from being overwritten with 
a phrasing slur, like in the following measure?


% BEGIN
\version 2.16.1

theMusic = \new Staff {
  \relative d' {
\key f \major
\time 3/4
\clef bass
\acciaccatura { e-\! } d4  cis8-\ \( ( a'16-.-3 ) a-.-\! \)
  }
}

\score {
  \theMusic

  \layout {
\context {
  \Staff
  \override Fingering #'add-stem-support = ##t
  \override Fingering #'avoid-slur = #'outside
  \override TupletBracket #'bracket-visibility = ##t
}
  }
}
% END

The following directive works for regular slurs:
  \override Fingering #'avoid-slur = #'outside
However, phrasing slurs seem to be immune to this ovverride...


As (in this case) the slur and phrasing slur overlap even without the 
fingering, you might as well shape the phrasing slur to avoid both the 
slur and fingering.


\version 2.16.1

theMusic = \new Staff {
  \relative d' {
\key f \major
\time 3/4
\clef bass
\acciaccatura { e-\! } d4 \shape #'((0 . 1) (0 . 1.8) (0 . 1.8) (0 
. 0)) PhrasingSlur

  cis8-\ \( ( a'16-.-3 ) a-.-\! \)
  }
}

\score {
  \theMusic

  \layout {
\context {
  \Staff
  \override Fingering #'add-stem-support = ##t
  \override Fingering #'avoid-slur = #'outside
  \override TupletBracket #'bracket-visibility = ##t
}
  }
}


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


RE: Marks above and below simultaneously

2012-12-01 Thread Daniel Rosen
The problem with those is that they would require me to remove the engravers 
from the Score context and include them in the upper- and lowermost Staff 
contexts, which poses an issue since I'm using \HideEmptyStaves--if I do both 
of those things and either of those two contexts is empty when the mark occurs, 
it won't show up.

DR

From: Pierre Perol-Schneider [mailto:pierre.schneider.pa...@gmail.com] 
Sent: Saturday, December 01, 2012 7:32 PM
To: Daniel Rosen
Cc: lilypond-user@gnu.org
Subject: Re: Marks above and below simultaneously

Maybe those snippets could help :

- http://lsr.dsi.unimi.it/LSR/Item?id=735
- http://lsr.dsi.unimi.it/LSR/Item?id=736


2012/12/2 Daniel Rosen drose...@gmail.com
I have my rehearsal marks and metronome marks in a separate voice in the score 
I'm typesetting, and I'd like to get them all to show up both above and below 
the score. The best thing to do that I can think of is to use Dynamics contexts 
above and below, but that throws off the vertical spacing between the marks and 
the top and bottom staves; I'd like it to look as though Score.RehearsalMark 
#'direction = #1 and Score.RehearsalMark #'direction = #-1 were set 
simultaneously; same for MetronomeMark. Anyone know how to do this? Should I be 
using some other context than Dynamics?

DR



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

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


Fwd: LilyPond 2.16 installation

2012-12-01 Thread Brett McCoy
Forwarding to list


-- Forwarded message --
From: Shane Brandes sh...@grayskies.net
Date: Sat, Dec 1, 2012 at 11:05 PM
Subject: Re: LilyPond 2.16 installation
To: Brett McCoy idragos...@gmail.com


I installed it ins own directory after downloading it and then just
renamed the 2.14 to old and let the 2.16 occupy the 2.14 versions
folder. Probably a kludgey way of doing it but it worked fine. Then
after a recent reinstall, I discovered if using Frescobaldi you can
simply point to where ever you install whatever version from the
preference section. What could be easier.  Ubuntu definitely does
trail the upstream stuff sometimes.

best of luck,

Shane Brandes

On Sat, Dec 1, 2012 at 7:32 PM, Brett McCoy idragos...@gmail.com wrote:
 On Sat, Dec 1, 2012 at 7:01 PM, Ralph Palmer palmer.r.vio...@gmail.com 
 wrote:

 I'm currently running LilyPond 2.14.2 under linux Ubuntu 12,04. I'd like to
 run 2.16, but I can't figure out how to install it. Any Ubuntu users out
 there who could give me a clue?

 Just download it from the Lilypond site and run the installer script.
 It will install in your home directory. I did it just this afternoon
 on a 12.04 box.

 --
 Brett W. McCoy -- http://www.brettwmccoy.com
 
 In the rhythm of music a secret is hidden; If I were to divulge it,
 it would overturn the world.
 -- Jelaleddin Rumi

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


-- 
Brett W. McCoy -- http://www.brettwmccoy.com

In the rhythm of music a secret is hidden; If I were to divulge it,
it would overturn the world.
-- Jelaleddin Rumi

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