Re: String Results of Changing Pitches

2015-08-09 Thread Peter Bjuhr



On 2015-08-09 15:37, Thomas Morley wrote:

Not sure whether Frescobaldi has a feature which fits your needs better


To transpose in Frescobaldi use Tools->Pitch->Transpose.

Best
Peter

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


Re: sharping naturals

2015-08-10 Thread Peter Bjuhr

When you use key signatures like A major or B Major you end
up with a lot of naturals in the score for which you may
have to manually add sharps.

Is there a switch that will automatically sharp all the
naturals?


David, in a previous thread some time ago on a similar topic I think I 
recall that you mentioned that this may be better seen as an editor task 
than a task for LilyPond.


In Frescobaldi (since v 2.18) there is a tool (Tools->Pitch->Mode shift) 
that adjusts the pitch to a given mode or scale. I just realized that 
this may be able to accomplish the above:


If you enter:

  b c d e f g a

and use the Mode shift tool with the mode b major the result will be:

  b cis dis e fis gis ais

As mentioned before (in this thread), the problems start if you actually 
do not want some of the notes to be sharpened. Then of course you'll 
have to adjust this manually! But with a piece with only a few 
exceptionds to the given key it may be worth while to use this method...


Best
Peter

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


Re: Ensemble full score annotations and parts

2015-08-21 Thread Peter Bjuhr



On 2015-08-21 08:54, tisimst wrote:


We have a full score for an ensemble of several instruments that
has a top line of extensive annotations. How does one go about
creating this so that it appears not only in the full score, but
also in every individual part?

I have started to look at defining a custom context for a hidden
staff that holds the brackets, but I am lost at this point.

 I feel sure this must be a common design pattern, which I can not
yet discern.


See attached sample image.

Andrew


I often will create another voice for structure, using spacer rests to 
align things, and put it in a variable that is reused in the full 
score and each part. This voice is placed in parallel with the other 
main voice of the first Staff. Or, you can put the same voice but in a 
separate, dedicated Dynamics context above the first staff. Either one 
of those should do what you need.


- Abraham


Normally I'd use a Devnull (context) for common parallel common stuff 
(including rehearsal marks, time signatures, tempo markings etc.). So I 
would say that this is the common design pattern.


But as I understand it you are using modified textspanners for the 
annotations, so this will not work in your case. To change the basic 
structure as little as possible I would then use a Dynamics (context) 
instead of the Devnull context.


(Just a personal testimony from a user.)

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


Re: how to define rehersal marks globally?

2015-09-05 Thread Peter Bjuhr



On 2015-09-04 18:32, David Kastrup wrote:

>Hi,
>
>When I have a score, how can I define rehersal marks globally (instead of in 
every voice) so that they appear in every other voice, when I print it out  (like 
below)?
>
>%%
>global= {
>   \time 4/4
>   \key c \major
>}

[...]

Well, the following might be relying a bit much on current semantics but
at least now it appears to do the trick.




global =
<<
   \global
   \new Devnull \violinOne



If you already have a variable with all the rehearsal marks I agree with 
David's suggestion to use that as a Devnull. But if you are starting on 
a new score I think it's a better solution to create the rehearsal marks 
and other common stuff as an own variable, at least it's what I'd prefer.


Best
Peter

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


Re: OT: Beauty of programming languages

2015-09-10 Thread Peter Bjuhr



On 2015-08-26 22:10, Urs Liska wrote:

This thread makes me wonder: what's the average age of LilyPond users
>and
>developers?

Remind me in two weeks and I'll start a poll on Scores of Beauty ...


I send in this reminder not because I'm especially interested in ages, 
but it would be interesting to know more about stuff like editor usage 
and if LilyPond is used for original compositions or for engraving 
existing compositions.


Best
Peter

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


Re: OT: Beauty of programming languages

2015-09-10 Thread Peter Bjuhr



On 2015-09-10 15:57, Kieren MacMillan wrote:

Just in case this doesn’t make it to the poll stage…


>>>This thread makes me wonder: what's the average age of LilyPond users and 
developers?

>>Remind me in two weeks and I'll start a poll on Scores of Beauty ...

>I send in this reminder not because I'm especially interested in ages, but it 
would be interesting to know more about stuff like editor usage and if LilyPond is 
used for original compositions or for engraving existing compositions.

Age: I am 46 (as of two weeks ago)

Editor Usage: I recently switched to using Frescobaldi, after more than a 
decade of using Lilypad (i.e., the built-in editor that ships with the Mac OS X 
binary).

Lilypond Usage: I am a composer. (Actually, as of my birthday I’m now a full-time 
composer: I “retired” from my erstwhile dual career in music and computer 
programming.) So, naturally, >95% of my Lilypond usage is for engraving 
original compositions. (I do transcribe/transpose/etc. a few existing compositions 
from time to time, but that’s a very small part of my overall workflow.)



Thanks for sharing Kieren!

I think there will be a poll eventually, but here's a short description 
in response:


I'm 44 and a composer and developer.

If I'm not mistaken I started using LilyPond and Frescobaldi in the 
autumn 2012.


Apart from my small contribution to Das Trunkne Lied my work has been on 
my own original pieces.


Best
Peter

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


Re: Better slashed graces

2015-12-02 Thread Peter Bjuhr



On 2015-11-30 18:01, tisimst wrote:
I know that beamed grace notes don't /need/ a slash, so maybe there 
could be a hook to turn it on or off?




There already is \slashedGrace. But it doesn't work for multiple notes.

Best
Peter

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


Re: naturalize pitches

2016-03-29 Thread Peter Bjuhr



On 2016-03-18 11:39, Jaime Oliver wrote:


I am using version 2.18.2-1, with frescobaldi on a mac os x 10.11.2

Any help would be greatly appreciated!


As you are using Frescobaldi you may want to take a look at Transpose, 
Modal transpose and Mode shift in Tools->Pitch.


Sometimes it preferable to change the source directly instead of using 
function calls.


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


Re: naturalize pitches

2016-03-31 Thread Peter Bjuhr



On 2016-03-30 13:49, Jaime Oliver wrote:

Sometimes it preferable to change the source directly instead of using function 
calls.

Could you explain when this is the case?


This was only a general reflection. The source code is more transparent 
without getting filtered by functions that change the output. Also if 
you want to change something after the function is applied things can 
get complicated.



If we take the example of transposing to be more specific - transposing 
by Lilypond (with \transpose) contra transposing by Frescobaldi 
(Tools->Pitch->Transpose). The functionality is identical but 
Frescobaldi's version changes the source code but LilyPond only the 
output. When does this difference matter?


If we for example have a music variable that we want to transpose from C 
(major) to B (Major), but want to change a couple of g# to g (natural) 
afterwards. Then I think the Frescobaldi method is preferable because we 
have to make a copy of the variable anyway. And it's more 
straightforward to actually change the pitches from g# to g than to 
change from a to ab.


On the other hand if you know that you're not going to do any 
manipulation of the variable afterwards it's perhaps preferable to use 
the LilyPond method - in this case to avoid having to make a copy of the 
variable.


In general I think working with LilyPond features a whole range of 
interesting decisions between manipulating the source code directly and 
using functions (internal or usermade) to manipulate the output.


This is only a transposing instrument situation so it should be doable.


Yes, not much to think about in that case.

But I hope a made my point clearer!? :)

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


Re: Experiences from voice handling wanted

2014-01-16 Thread Peter Bjuhr

Hi Michael,

thanks for your reply!

On 01/16/2014 07:17 PM, Michael Rivers wrote:

I think you just have to remember to use \oneVoice or \stemNeutral when the
2nd voice isn't playing.


\oneVoice is the best choice, isn't it, because it affects more than 
just the stems!?


If the 2nd voice is coming and going frequently, you are much better off
using

<<
   { \voiceOne
  Music goes here
   }
   \new Voice {
  { \voiceTwo
 Music goes here
  }
   }
\oneVoice

This way, when the voices split in two, the first voice can continue using a
slur it had begun before the voices split. If you use << { } \\ {} >> to
split the voices, you'll get "Cannot terminate slur" errors, and then you
have to start the second voice before you really want to, fill it with
spacer rests and manually change the stemming -- no fun.



As mentioned previously what I have to work with in this case is an 
output from musicxml2ly with the voices as separate music variables. It 
could still be an option of course to use the structure you suggest and 
I have done that previously from musicxml2ly outputs. But I still think 
my best option in this case is to use the \partcombine solution, but I'm 
very willing to listen to other suggestion. I know that there are a lot 
of users with much more experience than myself.


Best
Peter

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


Re: PDF links to javascript?

2014-01-17 Thread Peter Bjuhr


On 01/17/2014 02:00 AM, Mike Blackstock wrote:

Is there a way to change the "textedit://uri"  mechanism in PDF 
point-and-lick links to point instead to a javascript function in the 
webbrowser?
I've been looking around, but I know zilch about PDF documents; the 
closest

I got was this, which tells me it's do-able (I think)

http://stackoverflow.com/questions/5934211/getting-notified-when-the-user-clicks-a-link-in-an-embedded-pdf/5942729#5942729




Re. Why do you want to do this?

My source code editor is a javascript app that runs in the browser - 
"Code Mirror". For compilation, the source code is sent to a server 
over a node.js/socket.io  websocket; when 
compilation is complete, server sends browser a signal and PDF is 
opened in iframe. I need 'point-and-click' events to call javascript 
functions.




As I see it you need to change either the PDF itself or the javascript 
code run in the browser to achieve what you want.


If we assume the output from LilyPond is what it is, to change the PDF 
you have to change the links manually in Acrobat Pro like described in 
the stackoverflow page you link to. One alternative to this is to use 
SVG instead and manually change the links in the XML code. This can of 
course be very inconvenient if you have many links that needs to be changed.


If on the other hand you can change the javascript code this can be 
achieved much easier, I think.


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


Re: Split Parts

2014-01-21 Thread Peter Bjuhr

Hi Orm!

On 01/21/2014 09:06 PM, Orm Finnendahl wrote:

I'm taking the plunge to write a pretty big orchestra piece with
lilypond (contemporary music) and am wondering how to organize the
parts: There will be sections in the piece where e.g. the first
violins are split (maybe sometimes only for a couple of bars and up to
14 different parts). In the score, the unisono parts should get
notated only on one staff. For staff systems containing bars with
divisi strings, each instrument should get its own staff (replicating
existing unisono bars on all staffs).


First of all, which version of LilyPond are you using?

For creating parts with occasional string divisi I'd take a look at the 
technique of adding extra staffs 
http://www.lilypond.org/doc/v2.17/Documentation/snippets/staff-notation#staff-notation-adding-an-extra-staff


If you're going to divide the strings in up to 14 different parts, maybe 
the best approach is to use the same technique also in the score.

In the individual parts I'd like
to have parts with each instrument having only his/her part in it.


Do you mean that each string musician should get his/her own part? I 
would think this is highly unusual when dealing with occasional and 
shifting divisions. But if the divisions are done consequently 
throughout the piece it's doable to organize them as separate parts.


Best
Peter



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


Re: When was dot notation for dotted property paths added?

2014-01-23 Thread Peter Bjuhr


On 01/23/2014 10:40 AM, Urs Liska wrote:

Somewhere in 2.17. David introduced the change from

\override Stem #'length
to
\override Stem.length

I would like to know in which LilyPond version this appeared.
Somehow I don't seem to be able to think of the right search terms to 
locate the commit(s).


Concretely, I have a snippet that needs \version "2.17.10" and I would 
like to know which notation I can use.





Could it be this: 
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commitdiff;h=680df85187d0f3862b1ef1cf7a14f8ad7b7f0ee9;hp=ee89ee2c8ee328ec261b822aa9e260c9d623c086


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


Re: When was dot notation for dotted property paths added?

2014-01-23 Thread Peter Bjuhr


On 01/23/2014 10:52 AM, David Kastrup wrote:

Peter Bjuhr  writes:



Could it be this:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commitdiff;h=680df85187d0f3862b1ef1cf7a14f8ad7b7f0ee9;hp=ee89ee2c8ee328ec261b822aa9e260c9d623c086

No.



Sorry! Probably followed an old link!

Best
Peter

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


Changing stem stencil

2014-02-27 Thread Peter Bjuhr

Hello,

I have a question about changing stems. In my case it's related to an 
exploration of using SMuFL Fonts in LilyPond, which are made available 
in the openLilyLib snippets repository by Joram Berger and Nathan Ho. I 
would like to take the opportunity to thank them both!


Attached is my unsuccessful attempt to change the stem stencil. I've 
also added a somewhat contrived version of the example so it can be 
followed without the SMuFL script.


As you can see in the example I'm using

\override Staff.Stem.stencil = #ly:text-interface::print
 \override Staff.Stem.text = \markup { | }

The stem is indeed changed but it doesn't follow the note head.

Any guidance will be appreciated!

Best
Peter
\version "2.19.0"

% changing the stem using Bravura font

\include "../smufl/definitions.ily"

Zstem = { \override Staff.Stem.stencil = #ly:text-interface::print
 \override Staff.Stem.text = \markup { \smuflchar ##xE1F3 }
}
  
\score{
 \relative c'{
  %\stemUp
  \Zstem
  f4 b c e
}}

% more generic example

newStem = { \override Staff.Stem.stencil = #ly:text-interface::print
 \override Staff.Stem.text = \markup { | }
}
  
\score{
 \relative c'{
  %\stemUp
  \newStem
  f4 b c e
}}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: "light" articulation

2014-02-27 Thread Peter Bjuhr


On 2014-02-27 18:33, Urs Liska wrote:
The attached image shows signs to denote heavy and light syllables in 
poems (unfortunately I don't have an idea how they're called in English).


We have the portato in LilyPond/Feta which has a very similar meaning 
to the "lyric" pendant, but if I'm not mistaken we don't have anything 
to denote the contrary of a stress.


Any idea how to realize that, short of scanning and including an image?

And: Would that be a useful addition to our scripts?

Best
Urs



Hi Urs!

I find this very much related to my mentioned exploration of using SMuFL 
Fonts in LilyPond. Is this what you want?


\include "../smufl/definitions.ily"

 \relative c'{
  \stemUp
  f4 _\markup { \smuflchar ##xE486 } % Unstress below
  r4
  \stemDown
  f'4 ^\markup { \smuflchar ##xE485 } % Unstress above
  r4
}

Best
Peter


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


Re: "light" articulation

2014-02-27 Thread Peter Bjuhr


On 2014-02-27 22:09, Urs Liska wrote:
This is exactly the glyph I wanted. But unfortunately it really 
doesn't look compatible with Feta (replace the last r4 with "f--") and 
see.


I'm not sure you would like the Bravura tenuto better:

\relative c'{
  \stemUp
  f4 _\markup { \smuflchar ##xE486 } % Unstress below
  f--
  \stemDown
  f' ^\markup { \smuflchar ##xE485 } % Unstress above
  f ^\markup { \smuflchar ##xE472 } % Tenuto
}


So I assume it would be good to add that to Feta ...


Agreed. Perhaps you could do an official request...



Best
Urs 


Best
Peter

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


Re: Changing stem stencil

2014-02-28 Thread Peter Bjuhr


On 2014-02-27 20:44, Peter Bjuhr wrote:

Hello,

I have a question about changing stems. In my case it's related to an 
exploration of using SMuFL Fonts in LilyPond, which are made available 
in the openLilyLib snippets repository by Joram Berger and Nathan Ho. 
I would like to take the opportunity to thank them both!



[...]


Any guidance will be appreciated!



I found this http://lsr.di.unimi.it/LSR/Snippet?id=864, and thanks to 
that I managed to set up this script:


\include "../smufl/definitions.ily"

#(define (PendereckiTremolo-stem grob)
   (if (ly:stencil? (ly:stem::print grob))
 (let* ((stencil (ly:stem::print grob))
(X-ext (ly:stencil-extent stencil X))
(Y-ext (ly:stencil-extent stencil Y))
(width (interval-length X-ext))
(len (interval-length Y-ext)))

   (ly:stencil-translate
 (grob-interpret-markup grob
   (markup #:smuflglyph "stemPendereckiTremolo"))
 (cons 0 (interval-start Y-ext
 #f))

 \relative c'{
  \override Stem #'stencil = #PendereckiTremolo-stem
  f4 b c e
}

But if anybody wants to try this remember that it will only work with 
the addition of the SMuFL script in the openLilyLib snippets repository 
https://github.com/openlilylib/snippets/tree/master/custom-music-fonts/smufl


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


Re: Changing stem stencil

2014-02-28 Thread Peter Bjuhr


On 2014-02-28 17:18, Urs Liska wrote:


Is the attachment really what you intended?


No, I attach what it should look like. I don't know what could be 
wrong... Do you have the latest version of the smufl script?



There is no fixed rule about this, but the suggestion for using this 
library is:


- make the root directory of the repo available in LilyPond's include 
path and then reference the full path, in your case it would be:


% from openlilylib/snippets
\include "custom-music-fonts/smufl/definitions.ily"

This is quite expressive IMO.


Good that you point that out! Sorry for my sloppy include!


Best
Urs



Best
Peter

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


Re: Changing stem stencil

2014-02-28 Thread Peter Bjuhr


On 2014-02-28 18:36, Urs Liska wrote:

Now that I've seen this works:
It would be extremely cool if you could write a blog post about how 
one can create custom stuff using Bravura like this. I think there are 
some possible uses for that (e.g. clusters). Noeck's posts clearly 
point in that direction already, but if we had another post showing  
how you can actually _do_ it ...


Yes, that's a good idea. I think this has potential! I'll be happy to 
write a post about it!


And you should consider making this a snippet for our repo.


I got an idea to turn this into a more generic function for changing the 
staff stencil, with the glyph to be used as an argument.


Another question is where would I put the snippet? Is it ok if a snippet 
is dependent of another snippet in the library or should all smufl stuff 
be in the same folder?




Best
Urs 


Best
Peter


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


Re: Changing stem stencil

2014-02-28 Thread Peter Bjuhr


On 2014-02-28 22:18, Urs Liska wrote:


That'd be great. Just come back to us when you're likely to get 
started. I think this actually has _two_ sides: accessing SMuFL glyphs 
on the one hand (as a practical way to extend Lily's own capabilities) 
and the process of replacing a stencil. I think it would be really 
good to have more tutorial like material about stuff like this to 
encourage people to experiment in these directions.




I think I'd like to focus on how accessing SMuFL glyphs can solve some 
notational stuff like this and your question about the unstress symbol 
yesterday, if it's ok by you!? The other stuff can be an added bonus to 
the text.


Actually I've already scratch down an introduction and some structural 
ideas in a draft. Hope it's alright?


Another question is where would I put the snippet?


I think it should be in the notation-snippets folder. Please have a 
look and see how it relates to the existing overriding-stencils snippet.


Ok!



Is it ok if a snippet
is dependent of another snippet in the library or should all smufl stuff
be in the same folder?


It's OK to have such dependencies - as long as they're documented.
The repo/library is designed to be "includable". That means it is 
intended to be in LilyPond's include path (as I wrote in my earlier 
post). So basically when adding something to the library you can 
assume that the whole library is available. You can include another 
file either relatively from your snippet file or - and I'd prefer that 
- with its complete path from the library root (which makes your 
snippet more robust in case it should be moved to another directory).
You should clearly state this dependency, something like this: "I 
assume that the snippet is included as part of the library. If not you 
have to get file X and ensure that the following \include points to 
the right place."


I'll remember that!


Urs




Best
Peter


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


Re: Changing stem stencil

2014-02-28 Thread Peter Bjuhr


On 2014-03-01 00:04, Nathan Ho wrote:


I'm glad to hear that my work on both the SMuFL package and the LSR
snippet has helped you! However, there's a much easier solution:

#(define (penderecki-tremolo grob)
(grob-interpret-markup grob
  (markup #:vcenter #:smuflglyph "pendereckiTremolo")))

\new Staff {
   \override StemTremolo.stencil = #penderecki-tremolo
   c'4:32 d'4:32 e'4:32 f'4:32
   c''4:32 d''4:32 e''4:32 f''4:32
}

Regards,
Nathan


Hi Nathan,

thanks again for the (indirect) help!

It's of course better not change the whole stem in this case, great! But 
maybe the trick to change stem can become handy in some other 
circumstance...


Best
Peter

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


Re: Oskar Fried: the Big Bang

2014-03-12 Thread Peter Bjuhr




Janek and I have made some fuzz recently about that secret March 11, and
now's the time to disclose the great news:

Our edition of Oskar Fried's songs was elected "BEST EDITION 2014" by
the German Music Publishers' Association, and we'll receive the award at
the Frankfurt Musikmesse on Friday!

:-) :-) :-)



Congratulations!

I'll surely support the campaign by buying a copy!

Best
Peter

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


Re: Trill span problem

2014-05-08 Thread Peter Bjuhr


On 2014-05-08 16:22, Knute Snortum wrote:
I have a problem with sequential trill spans.  they seems to be just a 
little too long and therefore they stagger vertically.  I would think 
the solution is to shorten the trill span but I'm not sure how to do 
this.


\version "2.18.2"


\relative c''' {

\time 2/4

  | f2 \startTrillSpan \ppp

  | d2 \startTrillSpan

  | c4 \startTrillSpan d \startTrillSpan

  | c4 \startTrillSpan b \startTrillSpan

  | c2 \startTrillSpan

  | b2 \startTrillSpan

  | a2 \startTrillSpan

  | f2 \startTrillSpan

}



I don't know if it's the best solution, but you can try adding

\override TrillSpanner.bound-details #'right #'padding = #1.9


before all the trills.


Best
Peter


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


Function for note string to fraction?

2014-05-15 Thread Peter Bjuhr

Hi all,

is there already a function that converts a string "4." to the fraction 
'3/8', or the other-way round?


Maybe it's helpful to know that the string is intended for use with 
\note, e g


\note #"4." #UP

and the fraction is intended for use with \set Timing.baseMoment, e g

\set Timing.baseMoment = #(ly:make-moment 3/8)

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


Re: Function for note string to fraction?

2014-05-19 Thread Peter Bjuhr


On 2014-05-15 15:17, Peter Bjuhr wrote:
is there already a function that converts a string "4." to the 
fraction '3/8', or the other-way round?


Maybe it's helpful to know that the string is intended for use with 
\note, e g


\note #"4." #UP

and the fraction is intended for use with \set Timing.baseMoment, e g

\set Timing.baseMoment = #(ly:make-moment 3/8)


After some research I think I've found a way forward with this:

In ' scm/define-markup-commands.scm' there's a function/procedure called 
'parse-simple-duration', which is used to translate from '\note' to 
'\note-by-number'.


In a similar way I could use that to create the arguments to 
'ly:make-duration'. And from there it would be easy to get the moment 
with ' ly:duration->string'.


This all leads to an additional question: Is it possible to include and 
use 'parse-simple-duration' in a local script (without copy and pasting it)?


If it's not possible I will settle with using \note-by-number instead!

For those of you which find it easier to read code than my ramblings, 
here is what I've got so far:


#(define (note-to-moment notestr)

(let ((parsed (parse-simple-duration notestr)))

(ly:duration-length

(ly:make-duration (car parsed) (cadr parsed)



Best
Peter



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


Re: Function for note string to fraction?

2014-05-20 Thread Peter Bjuhr

Thanks a lot!

On 2014-05-20 00:49, Mark Polesky wrote:

Peter Bjuhr wrote:

And from there it would be easy to get the
 moment with 'ly:duration->string'.
   
I don't think you need ly:duration->string; I think you can

just skip that step.


Yes, that was indeed a rambling. I meant I could get the moment with 
'ly:duration-length'.



And as far as I know, you do need to
copy out the definition of parse-simple-duration, and above
it add:
  
   #(use-modules (ice-9 regex))



Hope that helps.
- Mark



It works great!

Best
Peter

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


Re: Function for note string to fraction?

2014-05-20 Thread Peter Bjuhr

Thanks a lot!

On 2014-05-20 00:50, Thomas Morley wrote:

Is it possible to include and use
>'parse-simple-duration' in a local script (without copy and pasting it)?


Well, I would have no problem to c/p 'parse-simple-duration', though
yes, it is possible:

#(define (note-to-moment notestr)
(let ((parsed ((@@ (lily) parse-simple-duration ) notestr)))
  (ly:duration-length
 (ly:make-duration (car parsed) (cadr parsed)

#(write (note-to-moment "4."))

--> #


Though, quoting guile-manual:
— syntax: @@ module-name binding-name
Refer to the binding named binding-name in module module-name. The
binding must not have been exported by the module. This syntax is only
intended for debugging purposes or as a last resort.

!!

Cheers,
   Harm


Part of the problem with copy and pasting was that it didn't work. I got 
the final piece of the puzzle though by Mark.


I would still prefer this solution, but what you're saying is that it 
isn't really suitable to use this kind of syntax and that it is better 
to copy-and-paste!?


Best
Peter

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


Re: Function for note string to fraction?

2014-05-20 Thread Peter Bjuhr


On 2014-05-20 10:26, David Kastrup wrote:

Mark Polesky  writes:


Then you would use it like this:

\set Timing.baseMoment = #(note-to-moment "4.")

Anything wrong with

\set Timing.baseMoment = #(ly:duration-length #{ 4. #})


Ok, you need 2.19 for it, but it seems like one of the cheaper
ways to ask the parser for input.



Thanks, indeed it is cheaper. But I'm not sure if I can use it. This is 
part of a larger whole. Basically the user is intended to input a string 
with the duration, and the string will be used both for


\set Timing.baseMoment

and for markup via

\note

I'll present the script shortly...

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


Re: Function for note string to fraction?

2014-05-20 Thread Peter Bjuhr


On 2014-05-20 12:02, David Kastrup wrote:

Thanks, indeed it is cheaper. But I'm not sure if I can use it. This
>is part of a larger whole. Basically the user is intended to input a
>string with the duration, and the string will be used both for
>
>\set Timing.baseMoment
>
>and for markup via
>
>\note

We probably should let \note accept a duration, but it's not actually
hard to pick apart and use \note-by-number on the parts.


One should always be careful with the word 'part' in musical 
circumstances... Maybe you misunderstood me!? I meant that the 
functionality was intended for a larger script...


Best
Peter

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


Re: Function for note string to fraction?

2014-05-20 Thread Peter Bjuhr


On 2014-05-20 12:23, David Kastrup wrote:

We probably should let \note accept a duration, but it's not actually
>>hard to pick apart and use \note-by-number on the parts.

>
Maybe you misunderstood me!? I meant that the
>functionality was intended for a larger script...

So?


Maybe it was me that misunderstood you instead! Did you mean to use 
\note like in your previous example:


\markup { \note { 4. } }

?

But why should \note-by-number be used for the parts, I didn't follow that?

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


Re: Function for note string to fraction?

2014-05-20 Thread Peter Bjuhr


On 2014-05-20 12:51, David Kastrup wrote:

You want to enter a duration in a simple manner and use it in several
contexts.  One as markup, one as a duration or length.

The suggestion was to let LilyPond see it not as a string but as a
duration and go from there instead of writing your own duration parser.

I don't understand the problem you have with that.


I think the suggestion is great, at least for the purpose of the script 
I'm trying to write!


Best
Peter

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


Re: Retrograde and inversion clefs

2014-08-09 Thread Peter Bjuhr


On 2014-08-09 00:11, guoguocuozuoduo wrote:

Hi all,

I am working on a piece that uses reversed and inverted clefs which 
indicate retrograde and inversion.
The reversed clef is placed at the end of a line to indicate 
retrograde; the inverted clef is placed before the main clef to 
indicate inversion.


How can I achieve this in Lilypond?

Any help would be much appreciated.

Attached is a picture to demonstrate what I would like to achieve.




Hi,

there are reversed clefs in the SMuFL library (see 
http://www.smufl.org/version/latest/range/clefs/).


(I'm sorry for this incomplete answer. I'll be able to help out more 
tomorrow!)


Best
Peter

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


Re: Spanner

2014-08-19 Thread Peter Bjuhr


On 2014-08-19 13:52, Peter O'Doherty wrote:

Hi,
I'm looking for something similar to the notation used in contemporary 
scores to indicate things like wide vibrato, microtonal "undulations", 
indeterminate glissando - it closely resembles a trill spanner 
(without the "tr") but is more rounded and with thinner lines. Is 
something similar to this available in lilypond?


Many thanks.
Peter



Hi Peter,

Joram Berger and myself wrote a couple of posts about using SMuFL fonts 
in LilyPond in the LilyPond-blog (Scores of Beauty). Especially take a 
look at no 5 in Joram's list in this post: 
http://lilypondblog.org/2014/02/feta-and-bravura/


If that looks interesting I could contribute with a code example.

Best
Peter

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


Re: Spanner

2014-08-19 Thread Peter Bjuhr


On 2014-08-19 15:15, Peter O'Doherty wrote:

On 08/19/2014 03:01 PM, Peter Bjuhr wrote:


On 2014-08-19 13:52, Peter O'Doherty wrote:

Hi,
I'm looking for something similar to the notation used in 
contemporary scores to indicate things like wide vibrato, microtonal 
"undulations", indeterminate glissando - it closely resembles a 
trill spanner (without the "tr") but is more rounded and with 
thinner lines. Is something similar to this available in lilypond?


Many thanks.
Peter



Hi Peter,

Joram Berger and myself wrote a couple of posts about using SMuFL 
fonts in LilyPond in the LilyPond-blog (Scores of Beauty). Especially 
take a look at no 5 in Joram's list in this post: 
http://lilypondblog.org/2014/02/feta-and-bravura/


If that looks interesting I could contribute with a code example.

Best
Peter


es, that's exactly what I'm looking for, particularly the four 
"wiggles" above the staff to the right of this example.
If you could share the code (if it's already available and doesn't 
entail any extra work for you) that would be great.

Thanks,
Peter



I'm still not exactly sure what you want, but here's an example:

\include "custom-music-fonts/smufl/definitions.ily"

vibrato = \markup \smufllig
#'("wiggleVibratoSmallFaster"
   "wiggleVibratoSmallFaster"
   "wiggleVibratoSmallFaster"
   "wiggleVibratoSmallFaster"
   "wiggleVibratoSmallFaster"
   "wiggleVibratoMediumFaster"
   "wiggleVibratoMediumFaster"
   "wiggleVibratoMediumFaster"
   "wiggleVibratoLargeFaster"
   "wiggleVibratoLargeFaster"
   "wiggleVibratoLargeSlow")

\relative c''{
  c1^\vibrato
}

If you change the glyph names I think you'll be able to get what you want.

Note that you need to download the files from 
https://github.com/openlilylib/openlilylib to make the include work. 
Further you need to install the SMuFL font Bravura. See 
https://github.com/openlilylib/openlilylib/blob/master/custom-music-fonts/smufl/README.md 
for more information.


Best
Peter



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


Re: Spanner

2014-08-19 Thread Peter Bjuhr


On 2014-08-19 17:15, Peter Bjuhr wrote:




If you change the glyph names I think you'll be able to get what you 
want.




Here is the full list of glyphs to choose between: 
http://www.smufl.org/version/latest/range/multiSegmentLines/


Best
Peter

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


Re: Frescobaldi custom script

2014-10-25 Thread Peter Bjuhr


On 2014-10-24 15:01, Noeck wrote:

Hi,

I have a question concerning Frescobaldi: Is it possible to run a custom
script (bash/python) from Frescobaldi.

This would be my use case:
I have a script that runs lilypond and then timidity and other tools to
get ogg rehearsal files which are then packed in zip files.
If I could run it from within Frescobaldi that would be cool.

If I had a button or menu entry in Frescobaldi that runs it, and
displays the output in the protocol area and the progress with the
progress bar, that would be even better.

Does anyone know if something like this is possible?

Cheers,
Joram


Hi Joram,

you can run a python script as a Snippet (Tools -> Snippets). If it's 
possible to implement in detail is hard for me to say (without seeing 
your code), but I think that is what you could try if you want to do it 
within Frescobaldi.


Best
Peter

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


Re: Frescobaldi custom script

2014-10-26 Thread Peter Bjuhr


On 2014-10-26 13:31, Vaughan McAlley wrote:

Sorry if I’m wrong, but can’t you type anything you like into
Frescobaldi’s Engrave (Custom) command line window? Something like:

python ~/scripts/myLilypondScript.py $filename

...should run the script and pass it the filename, however that works in Python.


The command line window is of course expecting a command to run 
LilyPond. The flexibility of changing the command that is executed is 
thought for custom LilyPond calls. But as I understand it any command 
would be executed. The advantage is that you can make use of the 
shortcut $filename for the current document. Otherwise it's hard to see 
any benefits of that approach, I think.


There are two issues I have at the moment- one is that it doesn’t seem
to be possible to direct Lilypond output to stdout (Postscript in my
case for piping to Ghostscript with lots of special options), and the
second is that Frescobaldi forgets the custom command every time it
quits, so you have to store it elsewhere.


The ability to save a custom commands could perhaps be argued. At the 
moment the command is construed by the other settings.


To catch the stdout message I think the best approach is to run the 
python script as a Snippet and to add the functionality to handle this.


Best
Peter

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


Re: Strummed chord as straight line arpeggio

2013-08-31 Thread Peter Bjuhr

Great! Thanks a lot!

Peter

On 08/30/2013 10:21 PM, Robin Bannister wrote:

Peter Bjuhr" wrote:
My starting point was that this could be achieved by using some kind 
of alternative arpeggio, but so far this has not been a successful 
approach.


Here is a rough sketch of such an approach, without considering 
collisions and other subtleties.


It has its own arrowdir parameter, bypassing arpeggio-direction.


Cheers, Robin



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


Re: Strummed chord as straight line arpeggio

2013-08-31 Thread Peter Bjuhr

Thanks!

Perhaps it's interesting to note that this (to put the arrows above the 
stave) is actually what is recommended by Gould in the book for multiple 
strummed chords in succession.


But in my case I'm doing single strums.

Peter

There's a flamenco snippet in the LSR which does it slightly 
differently:http://lsr.dsi.unimi.it/LSR/Item?id=409




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


Re: Tie placement in voiceTwo

2013-09-01 Thread Peter Bjuhr
As David points out the original example is uncommon both regarding ties 
and slurs. I like to add another example which represent a more common 
use of ties.


As you can see from the ly-file I first use a tie, then a slur, then a 
double dot.


I think that you could get away with the second as a tie, mostly because 
it uncommon to slur notes of the same pitch. But I don't think it is 
preferred practise to use it this way. The double dot could be used, but 
in contemporary notation I think a tie is preferred.


Peter Bjuhr
\version "2.16.2"

\relative c'' {
  \voiceTwo a8~^"tie!" a16. b32 
a8(^"tie or slur?" a16. ) b32
a8..^"double dot" b32
}<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Score examples

2013-09-03 Thread Peter Bjuhr

Hi Janek,

I think it would be interesting to know more about of your changes to 
the Feta font. Your example looks very nice, and the font can be a 
little heavy I think.


Best
Peter Bjuhr


On 09/02/2013 03:59 PM, Janek Warchoł wrote:

Hi,

2013/9/2 Urs Liska :

Hi,

I'm compiling a selection of examples to show LilyPond's output quality.
I'm aiming at a collection of ca. 5 examples (1-page excerpts) of LilyPond
scores tweaked to publication quality and a similar number of examples of
out-of-the-box engraving.
The latter is intended to show that one can _work_ with default scores quite
good, that is one can play from them and one can use them to finish an
edition for example, without having to bother about engraving details too
early.

github.com/janek-warchol/warsztat-nutowy/tree/master/epifania/Eja%20Mater
I believe it's close to publication quality, a good example of
lilypond at work.  As a bonus, if you clone the repository and do 'git
log epifania/Eja\ Mater/' you'll see all beautifications and
corrections in separate commits.  It should be easy to see how the
score looked at various levels of beautification.

Ah, and there's also
github.com/janek-warchol/warsztat-nutowy/blob/master/epifania/Eja%20Mater%20klarnet.ly
.


Another goal of this collection is to show a variety of styles. Therefore I
would be happy if you would send me (privately) examples you would share for
that purpose.
If I should get way too many submissions I might think of using them for a
kind of gallery ,-)

Recently I was asked to create some simple SATB scores and the
composer said that the LilyPond font looked too heavy, so i made some
modifications to the Feta font. You can see the result here:
https://www.dropbox.com/s/hpsi9pzu1klpcq1/Eja-Mater.pdf (warning: the
link won't be up permanently).
I can share the changes to the Feta font if someone is interested.

best,
Janek

___
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: Feta font modifications by Janek

2013-09-03 Thread Peter Bjuhr


On 09/03/2013 05:36 PM, Janek Warchoł wrote:

2013/9/3 Peter Bjuhr :

Thanks, exciting!

I haven't, but maybe now is a good time to set this up!

Definitely :)
What operating system are you using?  I can give you some help if you'd like.

That would be nice, thanks. I'm using Ubuntu.

Is this the starting point: 
http://lilypond.org/doc/v2.17/Documentation/contributor/index.html


Best
Peter

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


Re: Score examples

2013-09-03 Thread Peter Bjuhr

Thanks, exciting!

I haven't, but maybe now is a good time to set this up!

A question, also related to David's answer about the distinction between 
engineer-friendly and user-friendly: Do you need to change the source 
code of LilyPond to make the more advanced forms of "house styles", or 
I'm misunderstanding this!?


Best
Peter

On 09/03/2013 03:54 PM, Janek Warchoł wrote:

Hi,

2013/9/3 Peter Bjuhr :

Hi Janek,

I think it would be interesting to know more about of your changes to the
Feta font. Your example looks very nice, and the font can be a little heavy
I think.

I've pushed the code to dev/janek/feta-modification branch
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=shortlog;h=refs/heads/dev/janek/feta-modification

Are you able to compile LilyPond from source code?
best,
Janek



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


Re: Feta font modifications by Janek

2013-09-03 Thread Peter Bjuhr

Sort-of.  I mean, all information on how to build lilypond and
contribute to it are there, but (especially as you're already using
linux), we can do it an easier way using my awesome lilypond scripts.
Do you have git installed?  And how proficient are you with command-line?
An easier way sounds great! I have set up GitHub so I guess I have git 
installed. Or do you need something different for this?


Regarding the command-line I can't say I'm an advanced user. But I do 
use it (mostly for musicxml2ly).


Best
Peter

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


Re: Feta font modifications by Janek

2013-09-03 Thread Peter Bjuhr


On 09/03/2013 06:36 PM, Janek Warchoł wrote:



ok.  Let's see if the scripts i wrote are as awesome as i think :)
Please run the attached script.  After it finishes, run
~/path-you-specify-in-previous-script/janek-scripts/lilypond/build-lily.sh--help

I can now confirm the awesomeness! Everything went well, I have 
"successfully built lilypond" according to the output!


Thanks a lot for the help. It was a lot easier I think!

Best
Peter

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr
If someone is interesting I have now set up the old and the new build 
version of LilyPond according to this guide: 
http://lilypond.org/doc/v2.17/Documentation/contributor/concurrent-stable-and-development-versions


I have also added the new version in Frescobaldi.

Next I will look at the modified font...

Best
Peter


On 09/03/2013 09:44 PM, Peter Bjuhr wrote:


On 09/03/2013 06:36 PM, Janek Warchoł wrote:



ok.  Let's see if the scripts i wrote are as awesome as i think :)
Please run the attached script.  After it finishes, run
~/path-you-specify-in-previous-script/janek-scripts/lilypond/build-lily.sh--help 



I can now confirm the awesomeness! Everything went well, I have 
"successfully built lilypond" according to the output!


Thanks a lot for the help. It was a lot easier I think!

Best
Peter


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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 04:32 PM, Janek Warchoł wrote:


BTW, i've just made some small improvements to the build script, so
you can go to the janek-scripts/ directory and do a 'git pull' to get
them.


Done, thanks!

Best
Peter

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 06:06 PM, Janek Warchoł wrote:


Hm.  That's not enough information.  What was the full command you ran
(with options)?  Also, can you paste more output?
Janek
I have sent you the full output. I didn't do any options. Didn't last 
time and didn't think of it this time. Is that the problem?


Best
Peter

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 04:19 PM, Janek Warchoł wrote:


Wow!  (i expected problems :P)  All these hours spent on writing the
script finally paid off :-D

I recommend that you try these two branches:
origin/dev/janek/experimental-fix-for-issue-2462
origin/dev/janek/experimental-fix-for-issue-2658 (this fix was
actually written by David Kastrup)
I use them almost all the time, and i like the results very much!
Using my script's merging ability you should be able to easily get a
lilypond that has both of these together with font change.


I went to the sources folder and did

git branch -a
The feta modification branch is there but not the experimentals above. 
Did I look in the wrong place for these?


Do I use some of your scripts to merge the branches?

I'm sorry to ask, I'm not so experienced with git yet...

Best
Peter


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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 05:45 PM, Janek Warchoł wrote:


No, this is the correct place.  Have you pulled new commits to your
lilypond sources?  I've pushed these two branches barely before
sending that email.
If you did pull and still don't have these branches, you probably just
have old git version which doesn't fetch them (for whatever reason).
What 'git --version' tells you?  If it reports a version older than
1.7.9, i strongly suggest upgrading:

 sudo add-apt-repository ppa:git-core/ppa
 sudo apt-get update
 sudo apt-get install git

after doing this 'git --version' should report 1.8.something.


Do I use some of your scripts to merge the branches?

The script for building lilypond (build-lily.sh) can do the merge for
you (for the sake of building), but the branches have to exist in your
repository.

The git version was above 1.8 but I didn't do pull, sorry.

I did it now and run build-lily.sh again. But this time I got an error:


make: *** [all] Error 2

real0m30.033s
user1m30.064s
sys0m3.596s
Make failed.
Exiting.

Best
Peter

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 06:24 PM, Janek Warchoł wrote:

I see.  Quite strange, this commit builds fine on my machine.  Please
try building from scratch (use my script with -s option), and let me
know if it fails again.



Now the build was successful! Thanks again!

Peter

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 07:07 PM, Janek Warchoł wrote:


Good :)
It's a known problem that sometimes lilypond fails to rebuild and has
to be built from scratch.  It's nevertheless surprising that this had
happened to you...

Let me know if you'll have any problems with building other branches.

And btw, since you're going to have several lilyponds with the same
version number, you might be interested in running Frescobaldi from
source as well, since it will enable you to use this enhancement made
by me: 
https://github.com/wbsoft/frescobaldi/commit/59f54df181d3d24be79387eaedec3c89faaa4e31



Thanks, it looks interesting!

Best
Peter

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr


On 09/04/2013 07:07 PM, Janek Warchoł wrote:


Good :)
It's a known problem that sometimes lilypond fails to rebuild and has
to be built from scratch.  It's nevertheless surprising that this had
happened to you...

Let me know if you'll have any problems with building other branches.

And btw, since you're going to have several lilyponds with the same
version number, you might be interested in running Frescobaldi from
source as well, since it will enable you to use this enhancement made
by me: 
https://github.com/wbsoft/frescobaldi/commit/59f54df181d3d24be79387eaedec3c89faaa4e31


Is this what I need to do next to get the remote branches?
http://lilypond.org/doc/v2.17/Documentation/contributor/working-with-remote-branches

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


Re: Feta font modifications by Janek

2013-09-04 Thread Peter Bjuhr

Ok! I'll try out IRC!

Peter

On 09/04/2013 09:02 PM, Janek Warchoł wrote:

2013/9/4 Peter Bjuhr :

If everything is set I'll do a test!

Attached is an image creating with old version 2.16. This is of course
regular feta font.

And an image created with the new version (2.17). This should be with the
modified feta then? It's hard to spot any difference, but I noticed that
there were an added color profile Artifex Software sRGB ICC Profile.

There are just a few modifications (to the clef, flags and
accidentals) in my branch.  However, as far as i can see both images
show an unmodified version of the font.
Are you sure that you have compiled your file with appropriate binary?
  If you had used my script with -c option, than the build was most
probably placed in a different directory than previously.

Maybe we could chat via IRC (see http://www.lilypond.org/contact.html)
or google chat?  It would be faster than emails.

best,
Janek



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


Re: merging notes

2013-09-05 Thread Peter Bjuhr


On 09/05/2013 10:44 PM, Karl Hammar wrote:

http://www.lilypond.org/doc/v2.16/Documentation/notation/multiple-voices#collision-resolution

<<
   {
 c8 d e d c d c4
 g'2 fis
   } \\ {
 c2 c8. b16 c4
 e,2 r
   } \\ {
 \oneVoice
 s1
 e8 a b c d2
   }
1, why is the snippet shown without the surronding \relative c'',
it makes it confusing -- it starts in the wrong octave, doesn't it
If you click on the image you see the ly-file, and that in fact uses 
surrounding \relative c''. But it's assumed in the text.


2, the e,2 in the second voice is hidden by the d8 in the third voice
isn't that a bug ?
(I think you mean the e8 in the third voice.) I don't think it is a bug, 
but it's contradictory to the text; as it says: "[...] beat 1 in bar 2, 
where the automatic merging fails.". The merging appears fine!


3, if I remove the \oneVoice the graphics becomes sane, why is the
\oneVoice there ?

Yes, it is the \oneVoice that makes the merging happen, which was not 
supposed according to the text. My best explanation would be that 
\oneVoice makes the voice behave like it were a single voice instead of 
voice 3. And that do seem appropriate for the passage.


Best
Peter


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


Re: merging notes

2013-09-06 Thread Peter Bjuhr

I revise my answer from yesterday:

On 09/05/2013 11:48 PM, Peter Bjuhr wrote:




2, the e,2 in the second voice is hidden by the d8 in the third voice
isn't that a bug ?
(I think you mean the e8 in the third voice.) I don't think it is a 
bug, but it's contradictory to the text; as it says: "[...] beat 1 in 
bar 2, where the automatic merging fails.". The merging appears fine!
No, the merging in beat 1 bar 2 fails because the note should be white 
and not black. My mistake! The corrected version is shown further below 
with \shiftOn.


I will try to find a solution to your actual problem now.

Best
Peter


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


Re: merging notes

2013-09-06 Thread Peter Bjuhr




I will try to find a solution to your actual problem now.


Now, I want to merge two same looking notes. It works well for the
c4 in the third beat, 1st measure, above.

\version "2.17.10"

lcl = { \revert MultiMeasureRest #'staff-position }
ma = \relative c' { \lcl d1 | g2 g | R1\fermataMarkup }
mb = \relative c' { \lcl d1 | d2 d | R1\fermataMarkup }

\new Staff <<
   \new Voice = "Va" { \voiceOne \ma }
   \new Voice = "Vb" { \voiceTwo \mb }
I need to name the voices for a later \lyricsto,
I want the \voiceOne/Two so the stems comes out right.

How do you want the stems?

How do I make the first d1's merge ?
The problem here is that these are whole note's/semibreve's without 
stems, and if they are merged how would you know that there are two voices!?


There are perhaps a technical solution to this but I leave that to the 
experts. But this and your previous question hints at you wanting to use 
some kind of part combining!?

How do I make the \fermataMarkup merge ?
For the fermata you could perhaps find a solution here: 
http://lsr.dsi.unimi.it/LSR/Item?id=372


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


Re: merging notes

2013-09-06 Thread Peter Bjuhr


On 09/06/2013 11:06 AM, Karl Hammar wrote:

Yes, I know.

But it's assumed in the text.

Hmm, where is that assumption stated?

This is simply non-obvious and confusing that in some examples one
cannot copy the visibly code and get the shown result.

Sorry if I stated the obvious! I interpreted your question wrongly. I 
don't know enough of the documentation system to defend it. Maybe 
someone else can answer this!?


In what way isn't it a bug when an e2 looks like an e4.

If I really wanted a half note to look like a quater note I'd use e4*2,
then it is obvious in the code that I do something "unusual".

Yes, and

   The half note and eighth note at the start of the second measure
   are incorrectly merged because the automatic merge cannot
   successfully complete the merge when three or more notes line up
   in the same note column, and in this case the merged note head is
   incorrect.

after the third example confirms that "failing".

When writing ly-files, such "failings" would be very hard to spot.

I revised my answer now in the morning, hope you have seen it. An e2 
shouldn't look like an e4, I agree!


But I still don't think it is a bug. If you use /oneVoice in this way 
you have accept some additional fixing, which is also documented below.


Best
Peter

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


Re: merging notes

2013-09-06 Thread Peter Bjuhr


On 09/06/2013 11:32 AM, Karl Hammar wrote:

The same thing with rests, if only on rest, it applies both voices
if one rest and one note, seperate voices.
If only one whole note, both voices.

Two whole notes at same pitch just looks strange.
Have a look at:

  http://turkos.aspodata.se/motett/c_saint_saens/4_air.pdf


I refer again to Behind Bars by Elaine Gould. Here is a scan from p 52:
https://docs.google.com/file/d/0B627QNBiKcXpdXFJWVpkR2o0MFE/edit?usp=sharing

Isn't this comparable to your example?


>For the fermata you could perhaps find a solution here:
>http://lsr.dsi.unimi.it/LSR/Item?id=372

Thanks, that worked.

Great, thanks!

Best
Peter

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


Re: merging notes

2013-09-06 Thread Peter Bjuhr


On 09/06/2013 06:02 PM, Karl Hammar wrote:

Doesn't work for me, google complains I have a unsupported browser...
Or it might be that my connection is too slow.
I have sent you the image if you like to see it. But perhaps it is 
unhelpful for your problem...


It might wery well be so that Ms. Gould likes the double whole notes
and have some good rationale for it, but I only think it looks
strange, and if I thinks so, the choir will certantly also think so.

To lessen confusion, I'd like to merge them.
It seems like this is not possible with the ordinary merging technique 
and the reason is probably the same as Gould's rationale, which I 
suggested in a previous mail - it will obscure the part writing. But 
obviously the result you are after can be achieved in same way. I will 
look into it further in a moment...


Best
Peter

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


Re: merging notes

2013-09-06 Thread Peter Bjuhr


On 09/06/2013 06:24 PM, Peter Bjuhr wrote:
But obviously the result you are after can be achieved in same way. I 
will look into it further in a moment... 


Maybe this is in the right direction...

\version "2.17.10"

lcl = { \revert MultiMeasureRest #'staff-position }
ma = \relative c' { \lcl
\partcombineAutomatic
d1 |
\partcombineApart
g2 g |
\partcombineAutomatic
R1
\fermataMarkup }
mb = \relative c' { \lcl
d1 | d2 d | R1
\fermataMarkup }


  \new Staff <<
  \set Staff.aDueText = #"ma + mb"
  { \partcombine \ma \mb }
  >>

Best
Peter

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


Re: Submission with Attachments not showing up?

2013-09-06 Thread Peter Bjuhr


On 09/06/2013 07:40 PM, Kale Good wrote:
I submitted something to the mailing list with 2 attachments and it 
doesn't seem to be showing up. I've never done this before (at least, 
I don't remember it). Am I missing something?


Hi!

There is a memory limit for each post apparently. Perhaps you could 
upload the files somewhere else and post the links instead?


Best
Peter

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


Re: Acciaccaturas and slashed stems

2013-09-18 Thread Peter Bjuhr

Hi Gilberto!

First I will like to say that your thoughts on this seems very relevant!

On 09/18/2013 06:50 PM, Gilberto Agostinho wrote:

- Also, the automatic slurs should not exist, in my opinion. Even in
Mozart's music one can find examples where acciaccaturas or grace notes are
not slurred, and when it comes to contemporary music and extended techniques
things get even more complicated.
If we take this as a separate question and forget the slash for the 
moment, there is an easy solution for this because the automatic slurs 
only comes with the acciaccatura notation and not for grace notes in 
general.


\version "2.17.26"

\relative c''{
  \grace { e16 [ d e ] } f4
  \acciaccatura { e16 [ d e ] } f4
  \
}

And if you want the slash but not the slur, the documentation as I read 
it gives you right in using '\slashedGrace' as in your first example. 
The problem is then that the slash is not printed for multiple notes. 
But as this is a known issue, I presume it is a problem waiting for its 
solution (the temporary limited solution being the script from LSR).


- On the other hand, there should be automatic beaming inside the
\acciaccatura { ... }, since this is the most standard form of writing grace
notes. If one doesn't want it, then she/he could simply use \acciaccatura {
\autoBeamOff ... }
I agree. I can't see any reason for why automatic beaming isn't 
standard. (But perhaps this is also an issue waiting for adjustments?)


Contemporary composers constantly use slashed notes, being them
acciaccaturas or regular notes, beamed or not, single or multiple, slurred
or not. This is a very important part of the contemporary music vocabulary,
and I think it should be important to address this problem with LilyPond.
I agree that this is very commonly used. But I'm not sure that it is 
very important in actual performance. To my knowledge there is no 
clearly stated convention for multiple notes like the distinction 
between single note appoggiatura and acciaccatura. (If there is an 
intention behind the slash that affects the performance, I think it is 
that the slashed grace notes should be even faster than without the 
slash.) But maybe you have another view on this? That said, I agree that 
the practise to use the slash is far too common to be ignored.


Best
Peter

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


Re: Acciaccaturas and slashed stems

2013-09-18 Thread Peter Bjuhr


On 09/18/2013 10:38 PM, Gilberto Agostinho wrote:

Also, if anyone know a way of proposing this to be implemented at some point
in the next versions of LilyPond, I would love to know what do I have to do.


The issue about the slash you can follow here: 
https://code.google.com/p/lilypond/issues/detail?id=1333


The beaming I couldn't find anything about, so it's maybe (not yet) 
considered an issue. If there are no objections from the list you could 
perhaps add it as a request!?


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


Re: font for conductor signs

2013-09-20 Thread Peter Bjuhr


On 09/19/2013 10:13 PM, Stefan Thomas wrote:

Dear community,
is there a font available for special signs like up- and downbeat for 
the conductor?

Do You know where to find one?
Thanks
Stefan


This is perhaps not related to LilyPond, but if anybody is looking for 
musical fonts you could take a look here:

http://hindson.com.au/info/free/free-fonts-available-for-download/

(I'm not sure though that the conductor signs are included...)

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


Re: barré fret diagram guitar

2013-09-20 Thread Peter Bjuhr


On 09/20/2013 11:20 AM, bart deruyter wrote:
I've got here a Bm/F chord that I'd like to show as simply taking the 
barré-chord Bm and starting from the d-string instead of the 
a-string.So the lowest sounding b-note has to be shown as muted in the 
fret diagram while still showing that the index finger spans onto that 
muted string



To show what I want to achieve I've added a little drawing :-)



Hi Bart!

Maybe I missed the real issue here, but isn't this what you were sketching?

\version "2.17.26"


<<

\context ChordNames {

\chordmode {

b1:m/fis

}

}

\context Staff {

\clef "treble_8"

< fis b d' fis'>1 ^\markup

\fret-diagram #"c:5-1-2;6-x;5-x;4-4;3-4;2-3;1-2;"

}

>>


Best
Peter


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


Re: Acciaccaturas and slashed stems

2013-09-23 Thread Peter Bjuhr

Hi Gilberto,

About the auto-beaming for grace notes. As this mainly is about typing 
convenience, I got the idea to add grace notes with beaming as a quick 
insert in Frescobaldi. Do you use it? Anyway, I've created a group of 
Quick Insert buttons for grace notes and it's merged into the 
development version. Any feedback is welcome!


Best
Peter


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


Re: Acciaccaturas and slashed stems

2013-09-24 Thread Peter Bjuhr


On 09/23/2013 10:57 PM, Gilberto Agostinho wrote:

I tried to simply replace the files as you mentioned, but unfortunately I
got a series of errors and couldn't even initiate Frescobaldi. Restoring the
original files worked well though, so if you have some ideas (or other
experiments:)  you'd like me to carry, just write me please


Hi Gilberto,

This passage from the install instructions sounds promising I think for 
Windows users:



"Freeze" installer:
===
The freeze.py script can create a self-contained Windows-installer, 
bundling all
of Python, PyQt4, popplerqt4 and pypm (from pygame) when used on MS 
Windows.

To use the script you need cx_Freeze and Inno Setup.

http://cx-freeze.sourceforge.net/
http://www.jrsoftware.org/isinfo.php
http://www.python.org/download/

Best
Peter


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


Re: Acciaccaturas and slashed stems

2013-09-26 Thread Peter Bjuhr

Hello Gilberto,

No problem, I understand completely. I would also hesitate to go through 
that process. It's easier on Ubuntu.


I just wanted to mention it because it was you and this thread who gave 
me the idea to add this quick insert.


Best
Peter


On 09/26/2013 05:37 PM, Gilberto Agostinho wrote:

Hello Peter,

I am sorry for my late reply, I have been away for the past days.

About Frescobaldi, though I am very thankful for you to have implemented the
automatic beams for the grace notes, I have to say I am not very fond of the
idea of installing still two other files before (maybe) being able to
install the newest development version of Frescobaldi.

Do you think this option will be on the next stable release of Frescobaldi,
as an .EXE file? If so, I think I will wait for it.

In my opinion, the grace note issue was simply about making LilyPond as
convenient and as close to what I believe is the musical convention as
possible, but in the end I really don't want to go through all sorts of
troubles just to be able to maybe skip a [ and a ] for each grace note
group. My original comment here was more a recommendation to improve
something on LilyPond, and not exactly a big problem of mine.

Thanks again for all your help, take care,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Acciaccaturas-and-slashed-stems-tp150981p151426.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



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


Re: variables tied with slurs

2013-09-27 Thread Peter Bjuhr


On 09/27/2013 07:05 AM, Urs Liska wrote:

Does

A = \drums { sn8 sn8~ }

{ \A \A }

Do what you want?


I was curious of this, but Urs is right it does work. There are no 
obstacles in ending with a tie. Apparently it is just ignored:


\version "2.17.26"

% How could I write the equivalent of
\drums { sn8 sn8 ~ sn8 sn8 }
%using variables?

% This does work!
A = \drummode { sn8 sn8 ~ }

\score {
\new DrumStaff
 { \A \A }
}

%end with a tie
{ b'4 a' g' b' ~ }

Best
Peter


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


Re: Acciaccaturas and slashed stems

2013-09-27 Thread Peter Bjuhr


On 09/27/2013 01:43 PM, David Kastrup wrote:

I've committed a patch implementing grace autobeaming to
http://code.google.com/p/lilypond/issues/detail?id=3566>


Hi David!

I also wanted to contribute with some testing. I changed the files with 
your patched changes (lily/auto-beam-engraver.cc and 
ly/engraver-init.ly) and rebuilt. But the new autobeaming doesn't 
appear. Can you see some obvious reason why not?


Best
Peter


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


Re: Acciaccaturas and slashed stems

2013-09-28 Thread Peter Bjuhr


On 09/28/2013 09:27 AM, David Kastrup wrote:

There are only three rather glaringly obvious reasons I can think of:

a) you are not running the rebuilt executable
b) the rebuilt executable is in a place where it accesses the old
engraver-init.ly
c) you are looking at the wrong PDF file


If you get a complaint about an unknown engraver, you have the wrong
executable.  If the first grace is beamed, everything is fine (don't
know what the second will be, with two engravers active).  If the second
is beamed, you are using the wrong engraver-init.ly.

Thanks a lot for the debug script! I get this:


warning: unknown translator: `Grace_auto_beam_engraver'

warning: cannot find: `Grace_auto_beam_engraver'



So then it's alt. a)!? My interpretation is that I don't seem to be able 
to compile the changed files on disc (I'm using Janek's script which he 
introduced to me some weeks ago). But I'm working on it (with support on 
gitHub).


Best
Peter

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


Re: Acciaccaturas and slashed stems

2013-09-28 Thread Peter Bjuhr


On 09/28/2013 10:30 AM, David Kastrup wrote:

They are probably compiled, but that does not_install_  them.  You
should be able to run LilyPond from out/bin/lilypond without installing
it.
Yes, if I'm not totally mistaken I have the system setup so that I have 
the stable 2.16.2 version installed, and I run the 2.17 development 
versions from respective out/bin/lilypond.


Best
Peter

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


Re: variables tied with slurs

2013-09-28 Thread Peter Bjuhr


On 09/28/2013 08:49 AM, Urs Liska wrote:

\version "2.17.26"

% How could I write the equivalent of
\drums { sn8 sn8 ~ sn8 sn8 }
%using variables?

% This does work!
A = \drummode { sn8 sn8 ~ }

\score {
\new DrumStaff
 { \A \A }
}

%end with a tie
{ b'4 a' g' b' ~ }

Best
Peter



Thanks.
I didn't know about \drums vs. \drummode and couldn't check.
AFAIK a Tie without a target will issue a warning, but that's all. You 
can always use a tie to end a variable and connect it to a following 
music. 


On the other hand, this doesn't work:

\version "2.17.28"

A = \relative c'' {a4 b c a ~ }

\score {
  \new Staff
  { \A \A }
}

Best
Peter


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


Re: Acciaccaturas and slashed stems

2013-09-29 Thread Peter Bjuhr
With the support of Janek and Franciszek I now got the compilation to 
work. I should add that the problem was not in the script but due to 
misuse from my part!


Attached is a test file I just run. If you David and Gilberto (or anyone 
else of course) have any more test ideas for this I'll be happy to take 
part!


Best
Peter
\version "2.17.28"

% test of new grace auto-beamer

% simple #OK
{ \grace { c'8 d' } e'4 
 \grace c'8 e'}

% acciaccatura #OK
{ \acciaccatura { c'8 d' } e'4 }

% appoggiatura #OK
{ \appoggiatura { c'8 d' } e'4 }

% slashed grace #OK
{ \slashedGrace { c'8 d' } e'4 }

% after grace #OK
{  \new Voice { \afterGrace e'4 { c'8 d' } } }

% keep the beaming (in my opinion) #OK
{ \grace { c'16 d' e' f' e' f' g' \fermata a'8 g' a' } g'4 }
  
% this could be the notation of previous ex. w. split beaming in my opinion
{ 
  \new Voice {
  \grace { c'16 d' e' f' e' f' g' \fermata } \grace { a'8 g' a'  } g'4 
  }
}
% 27:55: warning: adding note head to incompatible stem (type = 1/16)
%   \grace { c'16 d' e' f' e' f' g' \fermata } \grace { 
%   a'8 g' a'  } g'4 
% 27:55: warning: maybe input should specify polyphonic voices
%   \grace { c'16 d' e' f' e' f' g' \fermata } \grace { 
%   a'8 g' a'  } g'4 ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: variables tied with slurs

2013-09-29 Thread Peter Bjuhr


On 09/28/2013 01:41 PM, David Kastrup wrote:

That's because each \A is in a Voice of its own.  Use an explicit Voice
to avoid independent implicit voices for each \A:


That's good to know! Thanks!

If I may add another more realistic yet hypothetical example. The 
following works. If the ties can be connected they are, otherwise only a 
warning is issued. But is there a more preferred way of doing it?


\version "2.17.28"

A = \relative c'' { a4 b d c ~ }
B = \relative c'' { c aes des g }
C = \relative c'' {cis e, gis a ~ }


\score {
  \new Voice
  { \A \B \A \C \A }
}

Best
Peter


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


Re: Notation question - alternate endings without repeats

2013-10-04 Thread Peter Bjuhr


On 10/04/2013 03:18 PM, Dieter wrote:

The place we came unstuck was that the exercise tune logically (or musically,
really) ends with a finger movement a real beginner might not be proficient
with.  The exercise should therefore have two alternate endings - the more
"musical" one, and the simpler one that a real beginner could use in the early
stages of their learning.

I assumed there might be something alog the lines of a volta bracket for this
situation but on searching I could only ever see these discussed in the
context of alternative endings for a repeated passage of music.

I've done some searching and have been unable to find standard notation for
alternate bars not associated with repeats described anywhere - doesn't mean
it doesn't exists of course.

Hi!

Could you use an ossia staff of some sort? 
http://lilypond.org/doc/v2.17/Documentation/notation/modifying-single-staves#ossia-staves


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


Re: So, slashed beamed grace notes...

2013-10-24 Thread Peter Bjuhr


On 10/24/2013 09:34 AM, Simon Bailey wrote:

another question, in german these notes are often also called
"vorschlagnoten" [literally "before beat notes"] and are required to
be played before the beat they are associated with. are these notated
any differently? simply asking because i'm currently typesetting some
works by a young composer and he has performance notes stating these
grace notes should explicitly be performed before the beat.

so to summarize lilypond's 3 options:
\apoggiatura: take written value away from note
\acciaccatura: as fast as possible,_on the beat_
\grace: ??


I don't think you should take the german name to literally. The 
performance practise of grace notes has varied throughout music history. 
You have to study the practise of the period and perhaps also the 
practise of individual composers to know for sure how to interpret 
different scores. So to state things explicitly in a performance note 
can be clarifying.


Gould also mentions some other means to make the notation clearer 
(regarding before or on the beat), e.g. using accents (p. 128-129). She 
actually also gives an explanation of the slash in addition to 
Gilberto's excellent review: "It is common practice to place a diagonal 
line through a single beam." (p. 125) Maybe the idea here is, in analogy 
with the distinction between the appoggiatura and the acciaccatura, that 
a single beam (i.e. eighths/quavers ) is more in need of the slash!??


Personally I think using grace notes gives the performer a certain 
amount of freedom, so I don't see the need for really sharp definitions.


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


Re: Two possible "ugly bugs"

2013-10-31 Thread Peter Bjuhr
Maybe this can be helpful to you or anyone else. I was just reminded 
when working on a solution for another issue involving beams, that 
beams.positions are one of the most useful settings.


Here it is in relation to your example:

{

\override Beam.concaveness = #+inf.0

a8[ r] e8[ r] a,8[ r] a'''8[ r] |

}


{

\override Beam.positions = #'(0 . 0)

a8[ r] e8[ r] a,8[ r] a'''8[ r] |

}


Best
Peter

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


Re: And now for something completely different.

2013-11-01 Thread Peter Bjuhr


On 11/01/2013 07:53 PM, David Kastrup wrote:

Can you guess what the output of saving and running the following file
will be?


Is the surprising output related to this?
If an included file is given a name which is the same as one in 
LilyPond's installation files, LilyPond's file from the installation 
files takes precedence.

http://www.lilypond.org/doc/v2.17/Documentation/notation/including-lilypond-files

I run into the later issue earlier this week...

Best
Peter


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


Re: And now for something completely different.

2013-11-01 Thread Peter Bjuhr


On 11/01/2013 08:52 PM, David Kastrup wrote:


Only by analogy.  LilyPond is not at fault for _this_ one.


Ok, I see. Always fun with a little game! :-)

Best
Peter

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


Re: And now for something completely different.

2013-11-01 Thread Peter Bjuhr


On 11/01/2013 09:01 PM, Peter Bjuhr wrote:


On 11/01/2013 08:52 PM, David Kastrup wrote:


Only by analogy.  LilyPond is not at fault for _this_ one.


Ok, I see. Always fun with a little game! :-)


I guess it must be related to the creation of the postscript...(?)

Best
Peter

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


Re: And now for something completely different.

2013-11-01 Thread Peter Bjuhr


On 11/01/2013 09:32 PM, David Kastrup wrote:
No, the PostScript is still fine. But when you ask Ghostscript to 
convert it to anything else, it has its own idea what to convert. 

Ok!

At first I thought it was an easter egg, but so close to Halloween it 
must be a bug!


Best
Peter


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


Re: Thoughts about creating Stack Exchange page?

2013-11-02 Thread Peter Bjuhr
I agree with Urs that a Stack Exchange page shouldn't be instead of this 
list, if that was the suggestion.


But as Gilberto pointed out there is already LilyPond questions asked on 
different Stack Exchange forums (I answered one myself earlier this 
week). And it seems to be some confusion about where to put questions. 
See this for example 
http://meta.stackoverflow.com/questions/168297/on-which-site-are-lilypond-questions-on-topic


I think it would be beneficial for both those who have questions and 
those who tries to answers to have all LilyPond related questions on one 
page.


As the proposal is already made we just have to wait and see what happens.

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


Re: Thoughts about creating Stack Exchange page?

2013-11-02 Thread Peter Bjuhr


On 11/02/2013 08:28 AM, David Kastrup wrote:

Well, they are on-topic in this mailing list.


If it's community policy or at least a general agreement that we should 
always refer to this list, I will of course do so the next time!


But I hope we agree that it, as Ryan wrote, would be helpful for the 
community if we found ways to deal with questions posted outside of this 
list!?

If everybody waits and sees, I am not afraid for this list...

Yes, you are right! It would of course take an effort for those who 
would like to see a LilyPond Stack Exchange page!


Best
Peter

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


Re: Thoughts about creating Stack Exchange page?

2013-11-02 Thread Peter Bjuhr


On 11/02/2013 10:28 AM, Werner LEMBERG wrote:

If it's community policy or at least a general agreement that we
should always refer to this list, I will of course do so the next
time!

Yes, please do so.


No problem! Then I suppose I should also post that answer to the meta 
question I linked to previously!?


So, is this the link to give? 
https://lists.gnu.org/mailman/listinfo/lilypond-user



But I hope we agree that it, as Ryan wrote, would be helpful for the
community if we found ways to deal with questions posted outside of
this list!?

If you mean with `deal' to forward stuff to the mailing list, or to
direct users to the list, this is fully OK.


Yes, I meant any solution rather than ignoring those questions...

Best
Peter

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


Re: Thoughts about creating Stack Exchange page?

2013-11-02 Thread Peter Bjuhr


On 11/02/2013 11:16 AM, Werner LEMBERG wrote:
It depends. For casual users, the gmane interface is perhaps better 
suited, thus the link should rather be 
http://news.gmane.org/gmane.comp.gnu.lilypond.general 


Maybe it is even better to send them directly to the posting!? 
http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.general


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


Re: Polyrythmic exercices with two gridline on the top and bottom of a score with two rythmics voices

2013-11-08 Thread Peter Bjuhr


On 11/08/2013 07:17 AM, zaord wrote:

Hi here,

I try to do an exercice partition for working on polyrythms with two
simultaneous rythms.
I have a score with two voice, for the two rythme of the polyrythm.

I want a gridline on the top, giving the pulse of the top-voice and a
another gridline in a different collor for emphasis the pulse of the second
rythm-voice.

There is a bug there and I don't knox how to solve it ;)


Hi Ewen,

I noticed that you use version 2.12.0. If it is a bug maybe it's solved 
in later development (we're approaching version 2.18 now).


Also, if you could make an image of the result you're after I think it 
would be helpful (due to memory limitations: make sure the image file is 
relatively small or post a link).


Best
Peter

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


Re: Polyrythmic exercices with two gridline on the top and bottom of a score with two rythmics voices

2013-11-08 Thread Peter Bjuhr


On 11/08/2013 01:48 PM, daviau ewen wrote:



I hope that could help you to help me ;)






Ok, here is a more minimal example which hopefully can be a starting point!

\version "2.16.2"

voicei = \relative c''{
  \time 12/4
  r4 e r e ~ e r r e e ~ e r e |
  e r e ~ e r r e e ~ e r r e
}

voiceii = \relative c'{
  \time 12/4
  f4 r f r f r r f r f f f |
  r f ~ f f f r f r f f r f
}

refUp = \relative c''{
  \time 12/4
  \override NoteHead #'transparent = ##t
  \once \override Stem #'color = #red
  b4 b b b b b b b b b b b |
  \once \override Stem #'color = #red
  b4 b b b b b b b b b b b
}
refDwn = \relative c''{
  \time 12/4
  \override NoteHead #'transparent = ##t
  \once \override Stem #'color = #blue
  e4 e e e e e e e e e e e |
  \once \override Stem #'color = #blue
  e4 e e e e e e e e e e e
}

\layout {
  \context {
\type "Engraver_group"
\consists "Axis_group_engraver"
\consists "Note_heads_engraver"
\consists "Stem_engraver"
\name "ref"
\alias "Staff"
  }
  \context {
\Score
\accepts ref
  }
}

\score {
  <<
\new ref \refUp
\new Staff <<
  \new Voice {\voiceOne \voicei }
  \new Voice {\voiceTwo \voiceii }
>>
\new ref \refDwn
  >>
}

Best
Peter

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


Re: Beam positions and time signature spacing

2013-11-08 Thread Peter Bjuhr


On 11/08/2013 05:50 PM, Gilberto Agostinho wrote:

Hi all,

I am not too sure if I do agree with some of the automatic beam position
done by LilyPond, and also by the spacing between a time signature and the
first note. First, about the beams. Here is a little code showing the
problem:

beam.ly 



So as the image above states, I believe that the staff lines should never
appear through the gap of the beams when dealing with 16th notes or shorter.
Does anyone knows if what I am saying here is correct? Could someone check
on Elaine Gould's book, or some other engraving book?



Hi Gilberto!

Gould doesn't settle this but I found a related passage (p. 21). From 
the examples she gives I would say that she doesn't agree with you...


Here is a scan. Hope it's readable.
https://drive.google.com/file/d/0B627QNBiKcXpZWd0WjJvZUFhNUk/edit?usp=sharing

Best
Peter


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


Re: Beam positions and time signature spacing

2013-11-08 Thread Peter Bjuhr


On 11/08/2013 08:03 PM, Gilberto Agostinho wrote:

Hi Peter!

Thanks a lot for the scan. I would say that even though she doesn't 
condemns
her example a), she still considers b) as bad and c) as the best 
compromise.

My corrections above are all similar to her example c)



I interpret her as saying that a) is the best solution but c) is a 
usable compromise if one want the angle as in b).


This issue came to me while showing one of my compositions to a friend of
mine who used to work at Bärenreiter. His opinions are exactly what I
reproduced on my question above. Also, looking at my G Henle Verlag
editions, I noticed that beams such as of type a) indeed do appear 
from time

to time, but they are somehow rare. The majority of beams are: straight,
slightly angled but covering the staff lines or positioned above/below 
the

staff lines (where any angle can take place).



Maybe this is a Bärenreiter house rule rather than a general convention!?

Best
Peter

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


Re: Beam positions and time signature spacing

2013-11-09 Thread Peter Bjuhr


On 11/08/2013 08:46 PM, Gilberto Agostinho wrote:

Hi Peter,

I will ask him about this, and I will also check some other scores of mine
to see if I find these kind of beams.

And if it would not be asking you too much, do you know if Gould says
something on her book about the distance between clef, key signature, time
signature and the first note of a system? This was the second discussion I
had with this friend of mine about LilyPond.

Take care,
Gilberto




No problem, I'm enjoying every opportunity to explore this excellent book!

I looked before on your first posting, but didn't find anything. This 
time I found exactly what you are after I think on p. 42:

https://drive.google.com/file/d/0B627QNBiKcXpVVpMNkUxekhUUFU/edit?usp=sharing

Best
Peter

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


Re: What's the best way to fix these beams and staff spacing?

2013-11-09 Thread Peter Bjuhr


On 11/09/2013 09:24 AM, Michael Rivers wrote:

Here is the 28th bar of an etude by Rachmaninoff:


What would be the best way of fixing this output? The space between the
staves is fine for all but this system and one other with the same problem.




Could you post the same bar from an edition of the score?

Best
Peter


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


Current Stack Exchange activity (was: Thoughts about creating Stack Exchange page?)

2013-11-09 Thread Peter Bjuhr


On 11/02/2013 10:28 AM, Werner LEMBERG wrote:

If it's community policy or at least a general agreement that we
should always refer to this list, I will of course do so the next
time!

Yes, please do so.


But I hope we agree that it, as Ryan wrote, would be helpful for the
community if we found ways to deal with questions posted outside of
this list!?

If you mean with `deal' to forward stuff to the mailing list, or to
direct users to the list, this is fully OK.


 Werner


I posted an answer on the meta question referring to this list as 
agreed. Hopefully that could attract some users to post their questions 
here.


But it will not be as easy I think to also attract those who are already 
actively using Stack Exchange for their LilyPond questions. It could 
even be counter-productive to constantly and repeatedly refer to the 
mailing list, as that would more likely repel more than attract.


So, as I see it apart from occasional reminders of the list we could 
only choose between these two alternatives:


1. Ignore the activity and let them use Stack Exchange if they like.
2. Take an active part and report to the list any valuable questions and 
solutions.


As may be implied I would prefer the second alternative. But as before 
I'll accept the policy agreed upon here!


I would also like to say that I otherwise support Janeks view that we 
should have our own Stack Exchange site in the future but the time has 
not come for this just yet.


Best
Peter

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


Re: Beam positions and time signature spacing

2013-11-09 Thread Peter Bjuhr
I'm sorry, I should have been clearer what she actually measures and not 
just posted the image! I hope you figured it out anyway!


What she measures is the stave-space. So, you can see her scale as a 
staff turned forward 90°. It's a direct relational measure it doesn't 
depend on fontsize or anything.



On 11/09/2013 03:52 PM, Gilberto Agostinho wrote:

Thanks for this one more scan, Peter.

So have a look on how that compares to LilyPond:

spacing.ly 


(I should have created a larger image, but that is too late now. Anyway, it
is still possible to see the distances on my example above)

The numbers in red are the ones that differ from your scan. Also note that
the distance between the clefs and the time signatures is way larger in
LilyPond when compared to her example. This is one what bothers my eye the
most on all these examples, to be honest.

I think that we should balance these distances, her examples are looking
much better than the current output of LilyPond IMO.

What do you think?


On a general term, I think LilyPond should adjust to contemporary music 
notation standards where applicable, and as far as I know Goulds book is 
today the most comprehensive account for contemporary standards that we 
have. It's the latest update to use a quasi software engineering phrase.


Best
Peter





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


Re: Beam positions and time signature spacing

2013-11-09 Thread Peter Bjuhr


On 11/09/2013 05:09 PM, Gilberto Agostinho wrote:

But that is exactly what I did, I turned the staff 90 degrees to create that
ruler.

Yes, I thought so too (good job interpreting Gould just from the 
image!). But it wasn't completely clear and I wanted to clarify anyway!


Best
Peter


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


Re: Beam positions and time signature spacing

2013-11-10 Thread Peter Bjuhr


On 11/10/2013 01:39 AM, Gilberto Agostinho wrote:

And Peter, if I may bother you a bit more, could you also have a look on this
message I posted some days ago if you have the time?
http://lilypond.1069038.n5.nabble.com/Bar-numbers-position-td153274.html

It also concerns notation standards, specifically the position of bar
numbers, and I would be very glad to hear what you and Ms. Gould think about
it (I really need to buy this book as soon as possible!).

Thanks and take care!
Gilberto


I look into it and reply in that thread!

Best
Peter

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


Re: Bar numbers position

2013-11-11 Thread Peter Bjuhr


On 11/10/2013 09:40 PM, Gilberto Agostinho wrote:

Hi Janek,


Janek Warchoł wrote

...i believe the barnumbers in the engraved examples interfere with
clefs.  I've seen some scores where similarly placed barnumbers looked
like clef transposition (especially when the first bar in a system was
8th or 15th, and the number was placed right above the clef...).
I believe that LilyPond's placement has the advantage of being
unambiguous.

I think you are right on this, it seems very logical. I only pointed it out
because I never saw this style of bar numbers before.

[\\]

[...] I would be very glad to hear what you [Peter] and Ms. Gould think about
it (I really need to buy this book as soon as possible!).


There's no scan this time. What she writes is this:

Place bar numbers at the beginning of each system, ideally above the 
clef of the top stave.


Naturally she wouldn't approve of a solution where the bar numbers could 
be confused with clef transposition.


Best
Peter

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


Re: Bar numbers position

2013-11-11 Thread Peter Bjuhr


On 11/11/2013 09:28 AM, Peter Bjuhr wrote:


What she writes is this:

Place bar numbers at the beginning of each system, ideally above the 
clef of the top stave.





The above quote is from p. 484 by the way...

Best
Peter


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


  1   2   >