Re: Accidental placement in voiceTwo vs. another staff

2013-06-27 Thread Eluze
James Harkins-2 wrote
> Is this a known bug?
> 
> It looks like LP is trying to avoid a collision between the natural sign
> in the top staff's voiceTwo and the sharp sign in the bottom staff. But of
> course they are nowhere near touching, so there should be no need for
> collision avoidance.

reducing your code to one polyphonic staff and omitting the tie shows what
happens:

\include "english.ly"
\new Staff <<
  \new Voice \relative {
\key ef \major
\voiceOne
df''1 %~
df
  }
  \new Voice \relative c'' {
\voiceTwo
r1
b_"b's natural sign is too far left"
  }
>>

the accidental is repeated because we are in a new measure and the natural
sign avoids the accidental of the top voice.

when the notes are tied the accidental is not repeated but it seems like
LilyPond still reserves some space for it.

I tried to set the Accidental stencil to false but this had no effect.

anybody else? is this related to  issue 3106

  

Eluze




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Accidental-placement-in-voiceTwo-vs-another-staff-tp147446p147447.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: Accidental placement in voiceTwo vs. another staff

2013-06-27 Thread Janek Warchoł
Hi,

2013/6/27 Eluze :
> James Harkins-2 wrote
>> Is this a known bug?
>>
>> It looks like LP is trying to avoid a collision between the natural sign
>> in the top staff's voiceTwo and the sharp sign in the bottom staff. But of
>> course they are nowhere near touching, so there should be no need for
>> collision avoidance.
>
> reducing your code to one polyphonic staff and omitting the tie shows what
> happens:
>
> \include "english.ly,,"
> \new Staff <<
>   \new Voice \relative {
> \key ef \major
> \voiceOne
> df''1 %~
> df
>   }
>   \new Voice \relative c'' {
> \voiceTwo
> r1
> b_"b's natural sign is too far left"
>   }
>>>
>
> the accidental is repeated because we are in a new measure and the natural
> sign avoids the accidental of the top voice.
>
> when the notes are tied the accidental is not repeated but it seems like
> LilyPond still reserves some space for it.

precisely.

And yes, i think this is exactly issue 3106.

cheers,
Janek

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


Re: Running Lilypond from Fraise

2013-06-27 Thread Alexander Deubelbeiss
> Date: Wed, 26 Jun 2013 21:44:38 +0200
> From: Philippe de Rochambeau 
> To: "lilypond-user@gnu.org" 
> Subject: Running Lilypond from Fraise
> Message-ID: <5c5b1de6-6212-4321-88bb-92b368b04...@free.fr>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> Hello,
> 
> could someone please explain how to run Lilypond from Fraise?
> 

In my experience Lilypond does not interact usefully with fruit; so presumably 
you mean some sort of software product?

After this concisely-phrased request of yours, it's entirely possible that you 
remain the only reader on this list who knows what it is you're talking about. 
Please elaborate a little on what you're trying to achieve, maybe include a 
link to user documentation if any is freely available; and then someone might 
be able to help you figure out the details. As it is I think you'd need to be 
lucky to get any helpful response.

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


Re: Accidental placement in voiceTwo vs. another staff

2013-06-27 Thread Eluze
Janek Warchoł-2 wrote
> Hi,
> 
> 2013/6/27 Eluze <

> eluzew@

> >:
>> James Harkins-2 wrote
>>> Is this a known bug?
>>>
>>> It looks like LP is trying to avoid a collision between the natural sign
>>> in the top staff's voiceTwo and the sharp sign in the bottom staff. But
>>> of
>>> course they are nowhere near touching, so there should be no need for
>>> collision avoidance.
>>
>> reducing your code to one polyphonic staff and omitting the tie shows
>> what
>> happens:
>>
>> \include "english.ly,,"
>> \new Staff <<
>>   \new Voice \relative {
>> \key ef \major
>> \voiceOne
>> df''1 %~
>> df
>>   }
>>   \new Voice \relative c'' {
>> \voiceTwo
>> r1
>> b_"b's natural sign is too far left"
>>   }

>>
>> the accidental is repeated because we are in a new measure and the
>> natural
>> sign avoids the accidental of the top voice.
>>
>> when the notes are tied the accidental is not repeated but it seems like
>> LilyPond still reserves some space for it.
> 
> precisely.
> 
> And yes, i think this is exactly issue 3106.

the only workaround I could find is to tweak manually where necessary:

\tweak Accidental #'extra-offset #'(1 . 0) b

hope this is useful

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Accidental-placement-in-voiceTwo-vs-another-staff-tp147446p147453.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: Accidental placement in voiceTwo vs. another staff

2013-06-27 Thread David Kastrup
Eluze  writes:

> the only workaround I could find is to tweak manually where necessary:
>
> \tweak Accidental #'extra-offset #'(1 . 0) b

If a line break occurs at the bar-line, this will not look good.


-- 
David Kastrup


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


Re: Running Lilypond from Fraise

2013-06-27 Thread luis jure

on 2013-06-27 at 11:56 Alexander Deubelbeiss wrote:

> > From: Philippe de Rochambeau 
> > 
> > could someone please explain how to run Lilypond from Fraise?
> > 
> 
> In my experience Lilypond does not interact usefully with fruit; so
> presumably you mean some sort of software product?

i think he might be referring to a fork of Smultron, a text editor for the mac.

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


Re: 8 marking on piano piece

2013-06-27 Thread Kieren MacMillan
Hi Phil,

> It looks like an ottava marking, but doesn't make much sense as that if you 
> follow the 3rd and 4th bars of the image supplied.  I've also listened to 
> recordings and they definitely do not drop by an octave here.  I'm also 
> rather confused as to how this would be played 

Usually that 8 means "add the octave below" (because we're too lazy to print 
all those ledger lines, and an ottava marking would be confusing since it only 
affects the chords and not the running eighth notes).

> the first bar in the image appears to require a span of 2 octaves

No… the RH can take "voiceOne" in the lower staff.  =)

Hope this helps!
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: 8 marking on piano piece

2013-06-27 Thread David Nalesnik
Hi Phil,


On Thu, Jun 27, 2013 at 6:54 AM, Phil Holmes  wrote:

> I'm setting the Vagabond so that I can practice singing it, and I'm
> confused by a marking on the piano piece - see the attached image.  It
> looks like an ottava marking, but doesn't make much sense as that if you
> follow the 3rd and 4th bars of the image supplied.  I've also listened to
> recordings and they definitely do not drop by an octave here.


The "8" here means that the pianist should add the note an octave below.
 It's a shorthand or space saver.


> I'm also rather confused as to how this would be played - the first bar in
> the image appears to require a span of 2 octaves
>

Here the pianist would take the upstemmed notes in the bottom staff with
the right hand.


> Any advice welcome.

--
> Phil Holmes
>
>
> ___
> 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: Running Lilypond from Fraise

2013-06-27 Thread Tim McNamara


On Jun 27, 2013, at 6:51 AM, luis jure  wrote:

> 
> on 2013-06-27 at 11:56 Alexander Deubelbeiss wrote:
> 
>>> From: Philippe de Rochambeau 
>>> 
>>> could someone please explain how to run Lilypond from Fraise?
>>> 
>> 
>> In my experience Lilypond does not interact usefully with fruit; so
>> presumably you mean some sort of software product?
> 
> i think he might be referring to a fork of Smultron, a text editor for the 
> mac.


In context that seems correct. Both Smultron and Fraise have a menu where one 
can create commands and associate them with a keybinding. One can set up a 
command to send a file to Lily Pond under this menu.  IIRC this is in the 
Commands menu; my recollection is that you write something like a shell script. 
 It's been a couple years since I used it.

Fraise is an open source version of Smultron; it was created in 2010 when 
Smultron fell out of active development for a while.  Smultron is now a 
commercial app available in the Mac app store, I don't know what license the 
current version is under; Smultron 4 was under the Apache 2.0 license.  One can 
get Fraise from GitHub, although it is not actively being developed since v. 
3.7.2 or so.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Accidental placement in voiceTwo vs. another staff

2013-06-27 Thread Eluze
David Kastrup wrote
> Eluze <

> eluzew@

> > writes:
> 
>> the only workaround I could find is to tweak manually where necessary:
>>
>> \tweak Accidental #'extra-offset #'(1 . 0) b
> 
> If a line break occurs at the bar-line, this will not look good.

that's what I mean with "where necessary" - of course the best would be to
fix the bug and return to automagic engraving 

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Accidental-placement-in-voiceTwo-vs-another-staff-tp147446p147459.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: creating a slur with markup

2013-06-27 Thread Rachael Thomas
On Thu, Jun 27, 2013 at 12:08 AM, David Kastrup  wrote:

> Thomas Morley  writes:
>
> > Hi Rachael,
> >
> > per default, LilyPond prints _one_slur between legato-chords. This is
> > common praxis in nearly all printed editions.
> > LilyPond provides the possibility to tweak the slurs via their
> > 'control-points. Best use \shape for that purpose.
> >
> > Sometimes double slurs are wished (mostly between thirds), possible
> > via \set doubleSlurs = ##t
> > Though, you can't affect a single slur of this pair with any
> > implemented method, afaik.
> > (\shape will affect both with the same values)
>
> You can print a slur pair by using explicit directions, like
>
> c^(_( c))
>
> Naturally, you can then tweak each of the two slurs separately.  Now
> those slurs have different direction to start with.  Getting them to
> look like having the same direction by twiddling control points might be
> effort.
>
> You can also get double slurs by marking one explicitly using
> spanner-id.  Quite to my surprise, this requires using
> \withMusicProperty instead of \tweak.  I'll probably change that, but
> for now you are stuck with
>
> \new Voice { c-\withMusicProperty #'spanner-id #"g"
>  \tweak #'extra-offset #'(0 . -1) ((
>  c-\withMusicProperty #'spanner-id #"g" )) c }


How would you use the \withMusicProperty identifier within a chord
structure?



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


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


Re: creating a slur with markup

2013-06-27 Thread David Kastrup
Rachael Thomas  writes:

> for now you are stuck with
> 
> \new Voice { c-\withMusicProperty #'spanner-id #"g"
> \tweak #'extra-offset #'(0 . -1) ((
> c-\withMusicProperty #'spanner-id #"g" )) c }
>
> How would you use the \withMusicProperty identifier within a chord
> structure? 

Just the same as outside.  That's one of the nicer results of issue 2240
(version 2.15.28 or later).

-- 
David Kastrup


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


Re: creating a slur with markup

2013-06-27 Thread Rachael Thomas
On Thu, Jun 27, 2013 at 11:13 AM, David Kastrup  wrote:

> Rachael Thomas  writes:
>
> > for now you are stuck with
> >
> > \new Voice { c-\withMusicProperty #'spanner-id #"g"
> > \tweak #'extra-offset #'(0 . -1) ((
> > c-\withMusicProperty #'spanner-id #"g" )) c }
> >
> > How would you use the \withMusicProperty identifier within a chord
> > structure?
>
> Just the same as outside.  That's one of the nicer results of issue 2240
> (version 2.15.28 or later).
>
> --
> David Kastrup
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

I get a syntax error, unexpected NOTENAME_PITCH

\new TabVoice {
  \tabFullNotation
  \stemDown
  8\2\4\5\6\repeatTie
\tweak #'extra-offset #'(0 . -1) (( ))
  }

I was able to find one reference to this identifier but I was unable to
understand its meaning.  I think that I am missing something elemental
here.

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


Re: Changing fingering numerals

2013-06-27 Thread Janek Warchoł
Hi all,

2013/6/26 Janek Warchoł 
> \finger means "use that funny time-signature-like font for these
> glyphs".

I'd like to rectify one thing: "funny" above was used tongue-in-cheek.
The font in itself is by no means funny!  It is beautiful and an
excellent example of LilyPond's attention to hand-engraved look :)

best,
Janek

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


Re: creating a slur with markup

2013-06-27 Thread Rachael Thomas
On Thu, Jun 27, 2013 at 12:45 PM, Rachael Thomas <
rachael.thomas.carl...@gmail.com> wrote:

>
>
>
> On Thu, Jun 27, 2013 at 11:13 AM, David Kastrup  wrote:
>
>> Rachael Thomas  writes:
>>
>> > for now you are stuck with
>> >
>> > \new Voice { c-\withMusicProperty #'spanner-id #"g"
>> > \tweak #'extra-offset #'(0 . -1) ((
>> > c-\withMusicProperty #'spanner-id #"g" )) c }
>> >
>> > How would you use the \withMusicProperty identifier within a chord
>> > structure?
>>
>> Just the same as outside.  That's one of the nicer results of issue 2240
>> (version 2.15.28 or later).
>>
>> --
>> David Kastrup
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
> I get a syntax error, unexpected NOTENAME_PITCH
>
> \new TabVoice {
>   \tabFullNotation
>   \stemDown
>   8\2\4\5\6\repeatTie
> \tweak #'extra-offset #'(0 . -1) ((  #"g">))
>   }
>
> I was able to find one reference to this identifier but I was unable to
> understand its meaning.  I think that I am missing something elemental
> here.
>
> Thank you,
> Rachael
>


I am using version 2.16.2.  Could it be possible that I need to be on the
Development version?

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


Re: Running Lilypond from Fraise

2013-06-27 Thread David Rogers
Philippe de Rochambeau  writes:

> Hello,
>
> could someone please explain how to run Lilypond from Fraise?

I haven't used Fraise. I did use Smultron a little bit a long time ago.

There may be an elegant way, eliminating the use of the terminal
emulator and making steps 2 through 4 of my description obsolete; there
is definitely a non-elegant way that will always work with any text
editor, and here it is:

1. Type your Lilypond file in Fraise, or any text editor that saves as
   plain text. Make sure it is saved with .ly at the end of the name,
   such as MyNewPiece.ly - also make sure that there are no spaces in
   the name of your piece, no spaces in the name of the folder it's in,
   and no spaces in any of the names of any of the folders that contain
   that folder. If you want the visual effect of spaces, you can always
   use underscore characters like My_New_Piece.ly .




2. Open Terminal (it's in the Utilities folder, inside of
   Applications). In your terminal window, type the following and press
   Enter afterwards:

cd ~/Documents/LilypondScores

(that is, type "cd", then a space, and then the name of whatever folder
you have put your piece in - your pieces can go anywhere you like, as
long as there are no spaces in any folder names and as long as you can
remember what folder they're in. The special character "~" is used in
terminal commands as an abbreviation for "My own home folder", and
folders always have a slash between their names.)




3. Just to make sure you're in the right folder, type the following and
   press Enter afterwards:

ls

(This will list everything in the folder - all that matters is that the
name of your piece is one of the things in the list)



4. Type the following (using the real name of your piece, obviously) and
   press Enter afterwards:

lilypond MyNewPiece.ly

(This command will cause the terminal to display Lilypond's messages,
along with any errors that occur. If errors occur, it's either because
Lilypond isn't installed correctly or because there was a typing mistake
in your piece.)



5. Assuming it worked, there will now be MyNewPiece.pdf in the same
   folder with MyNewPiece.ly. Go and open that to see the results.


___

The elegant method of using Fraise would be to eliminate my steps 2
through 4, by adding a Lilypond command into Fraise itself so that you
don't need to use Terminal.

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


Re: Running Lilypond from Fraise

2013-06-27 Thread David Rogers
Hi again Philippe...

If (when) Frescobaldi becomes easy to install on a Mac, definitely use
it instead of Fraise - because Frescobaldi is made for Lilypond, it
provides a lot of nice functions that Fraise will never have.

-- 
David R

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


Re: creating a slur with markup

2013-06-27 Thread Rachael Thomas
On Thu, Jun 27, 2013 at 2:47 PM, Rachael Thomas <
rachael.thomas.carl...@gmail.com> wrote:

>
>
>
> On Thu, Jun 27, 2013 at 12:45 PM, Rachael Thomas <
> rachael.thomas.carl...@gmail.com> wrote:
>
>>
>>
>>
>> On Thu, Jun 27, 2013 at 11:13 AM, David Kastrup  wrote:
>>
>>> Rachael Thomas  writes:
>>>
>>> > for now you are stuck with
>>> >
>>> > \new Voice { c-\withMusicProperty #'spanner-id #"g"
>>> > \tweak #'extra-offset #'(0 . -1) ((
>>> > c-\withMusicProperty #'spanner-id #"g" )) c }
>>> >
>>> > How would you use the \withMusicProperty identifier within a chord
>>> > structure?
>>>
>>> Just the same as outside.  That's one of the nicer results of issue 2240
>>> (version 2.15.28 or later).
>>>
>>> --
>>> David Kastrup
>>>
>>>
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>>
>>
>> I get a syntax error, unexpected NOTENAME_PITCH
>>
>> \new TabVoice {
>>   \tabFullNotation
>>   \stemDown
>>   8\2\4\5\6\repeatTie
>> \tweak #'extra-offset #'(0 . -1) (( > #"g">))
>>   }
>>
>> I was able to find one reference to this identifier but I was unable to
>> understand its meaning.  I think that I am missing something elemental
>> here.
>>
>> Thank you,
>> Rachael
>>
>
>
> I am using version 2.16.2.  Could it be possible that I need to be on the
> Development version?
>
> Thanks,
> Rachael
>

FYI:

I think I found the correct syntax.  Thank you for your help!

\new TabVoice {
  \tabFullNotation
  \stemDown

  8\2\4\5\6\repeatTie-\withMusicProperty #'spanner-id #"g"
\tweak #'extra-offset #'(0 . -2.5) (( -\withMusicProperty #'spanner-id
#"g" ))
  \1\3\repeatTie-\withMusicProperty #'spanner-id #"g" \tweak
#'extra-offset #'(0 . -2.4) (( \1\3-\withMusicProperty #'spanner-id
#"g" ))
  }

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


Re: creating a slur with markup

2013-06-27 Thread Thomas Morley
2013/6/27 Rachael Thomas :

> I think I found the correct syntax.  Thank you for your help!
>
> \new TabVoice {
>   \tabFullNotation
>   \stemDown
>
>   8\2\4\5\6\repeatTie-\withMusicProperty #'spanner-id #"g" \tweak
> #'extra-offset #'(0 . -2.5) (( -\withMusicProperty #'spanner-id #"g" ))
>   \1\3\repeatTie-\withMusicProperty #'spanner-id #"g" \tweak
> #'extra-offset #'(0 . -2.4) (( \1\3-\withMusicProperty #'spanner-id
> #"g" ))
>   }
>
> Rachael

Hi Rachael,

I had completely forgotten the possibility to write _)^) and I never
used \withMusicProperty myself.
Though, this is ofcourse much better than my initial idea, apart from
the high typing-effort.
So I tried to find some way to put it in an event-function.

Below you'll find a first (working) sketch. There's still some work to
do. For example I'd like to avoid these repeated (0 . 0), if no offset
is needed and to solve some other problems.

Perhaps tomorrow.

Usage:
\multipleSlurs has an integer as first argument, representing the
count of slurs. Setting the 'spanner-id is automated,
The second is a list of pairs for extra-offsetting them.
The third is the music, i.e the opening or closing slur-sign "(" or ")"

One draw-back: you need a newer devel-version.

\version "2.17.20"

multipleSlurs =
#(define-event-function (parser location how-much offsets slurs)
  (integer? list? ly:music?)

  ;(if (null? offsets)
  ;(set! offsets (make-list how-much '(0 . 0

  (set! (ly:music-property slurs 'elements)
(map
  (lambda (x y)
 #{
   -\tweak #'extra-offset #y
   % For testing:
   %-\tweak #'extra-offset #(cons 0 (* -1 x))
   -\withMusicProperty
   #'spanner-id #(number->string x)
   #(ly:music-deep-copy slurs)
 #})
  (iota how-much) offsets))

  (set! (ly:music-property slurs 'types) '(post-event post-event-wrapper))

  slurs)

%\displayMusic
\new Voice
{
  c'' \multipleSlurs #3 #'((0 . 0)(0 . 1)(0 . 2)) ^(
  c'' \multipleSlurs #3 #'((0 . 0)(0 . 0)(0 . 0)))
}


\new TabVoice {
  \tabFullNotation
  \stemDown

  8\2\4\5\6\repeatTie
 \multipleSlurs #2 #'((0 . -2.4)(0 . 0))
 (
 
 \multipleSlurs #2 #'((0 . 0)(0 . 0))
 )
  \1\3\repeatTie
 \multipleSlurs #2 #'((0 . -2.4)(0 . 0))
 (
  \1\3
 \multipleSlurs #2 #'((0 . 0)(0 . 0))
 )
  }

Cheers,
  Harm

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