Re: Access a stem’s notehead

2016-01-22 Thread Simon Albrecht
On 22.01.2016 16:11, Simon Albrecht wrote: The feature is designed for a very specific case: Renaissance vocal music, one voice per staff, no chords, no dynamics etc. With this callback, I crop those stems which protrude beyond the staff, such as to allow for still closer vertical spacing.

Edition-engraver: Multiple editions in same file

2016-01-22 Thread Ben Strecker
I’m working on a project that would have the same melody appearing in different ranges in the same document. Each range has its own set of modifications through the edition-engraver, but using \removeEdition anywhere in the file appears to remove that edition for all of the scores. What is

Re: default note duration

2016-01-22 Thread Simon Albrecht
On 22.01.2016 19:16, Gianmaria Lari wrote: Hello, the lilypond default note duration is 1/4. For example if I write { a b } lilypond generates two quarter notes. There is any way to set the _default_ note value to another value for example to 1/8 so that the previous code would generate two

Re: Displaying variables and parameter values

2016-01-22 Thread David Sumbler
On Tue, 2016-01-19 at 16:26 +0100, Simon Albrecht wrote: > On 19.01.2016 16:20, David Sumbler wrote: > > Is there a way of displaying the current value of particular variables > > and parameters during Lilypond compilation? > > Of course, e.g. with > #(format "Variable ‘foo’ currently has the

Re: default note duration

2016-01-22 Thread tisimst
On Fri, Jan 22, 2016 at 12:41 PM, Jacques Menu-3 [via Lilypond] < ml-node+s1069038n186279...@n5.nabble.com> wrote: > You can specify the duration for only the first note, and the following > ones will use the same one: > > { a8 b c d e f g } While this is true, I think the OP was looking for

Re: Accessing Grob properties

2016-01-22 Thread David Kastrup
Urs Liska writes: > It seems I'm now at a similar point in C++ Guile (scm_whatsoever) as I > was with Guile Scheme at an earlier stage :-( > > SCM subdivide_details = > scm_assq_ref (beam_settings_, ly_symbol2scm ("subdivide-details")); > > seems to fetch the

Re: Displaying variables and parameter values

2016-01-22 Thread Simon Albrecht
On 22.01.2016 22:18, David Sumbler wrote: On Tue, 2016-01-19 at 16:26 +0100, Simon Albrecht wrote: On 19.01.2016 16:20, David Sumbler wrote: Is there a way of displaying the current value of particular variables and parameters during Lilypond compilation? Of course, e.g. with #(format

Re: Extent of hairpins

2016-01-22 Thread David Sumbler
On Tue, 2016-01-19 at 11:30 -0500, Kieren MacMillan wrote: > Hi, > > > But surely this will affect both ends of the hairpin. > > You’d think so, wouldn’t you? > But that hasn’t been my experience. > Try it, and let me know how it works. > > > Can the ends not be controlled separately? > > As I

Re: Extent of hairpins

2016-01-22 Thread Kieren MacMillan
Hi David, > I find that X-offset affects both ends - in other words, it shifts the > whole hairpin to the right of its default position by #X-offset staff spaces. Correct; that’s what I was trying to say with >> #'X-offset will effect where the left-hand side begins i.e., it doesn’t affect

Re: Displaying variables and parameter values

2016-01-22 Thread David Sumbler
On Fri, 2016-01-22 at 22:33 +0100, Simon Albrecht wrote: > On 22.01.2016 22:18, David Sumbler wrote: > > On Tue, 2016-01-19 at 16:26 +0100, Simon Albrecht wrote: > >> On 19.01.2016 16:20, David Sumbler wrote: > >>> Is there a way of displaying the current value of particular variables > >>> and

Re: Accessing Grob properties

2016-01-22 Thread Urs Liska
Am 22.01.2016 um 18:49 schrieb David Kastrup: > Urs Liska writes: > >> ... >> I am now trying to implement configuration through >> >> \override Beam.subdivide-details.beam-count = #'metric >> \override Beam.subdivide-details.ignore-shortening = ##f >> etc. >> >>

Re: default note duration

2016-01-22 Thread Jacques Menu
Hello Gianmaria, You can specify the duration for only the first note, and the following ones will use the same one: { a8 b c d e f g } leads to all notes being eigths. Does that help you? JM > Le 22 janv. 2016 à 19:16, Gianmaria Lari a écrit : > > Hello, > > the

default note duration

2016-01-22 Thread Gianmaria Lari
Hello, the lilypond default note duration is 1/4. For example if I write { a b } lilypond generates two quarter notes. There is any way to set the _default_ note value to another value for example to 1/8 so that the previous code would generate two 1/8 notes? Thank you, g.

Re: Accessing Grob properties

2016-01-22 Thread Urs Liska
Am 22.01.2016 um 20:29 schrieb Urs Liska: > beaming_options_.subdivided_beam_count_ = > (scm_eqv_p (ly_symbol2scm("one"), ly_symbol2scm("one"))) > ? ONE > : (scm_eqv_p (subdiv_beam_count_prop, > ly_symbol2scm("base-moment"))) > ? BASE_MOMENT >

Re: How to retrieve information?

2016-01-22 Thread Pierre Perol-Schneider
Hi Luca, 2016-01-21 23:55 GMT+01:00 Luca Danieli : > For example, I am right now looking for "open", "half-open" and "very > open" embouchure for flute. > I can find only the "open" symbol and probably now I will try to shrink > and enlarge the symbol to realize what I

Determine the including file

2016-01-22 Thread Urs Liska
If I have % file a.ly \include "b.ily" % file b.ily \include "c.ily" % file c.ily can I somehow refer to file b.ily from file c.ily? In other words: If b.ily includes c.ily can I know from within c.ily that it was b.ily who included me? I suppose not, but one should never give up without

Re: Determine the including file

2016-01-22 Thread N. Andrew Walsh
Hi Urs, I'm not sure about support for this within Lily/Frescobaldi, but I know a similar mechanism exists in Lyx. At the least, you can issue commands to a parent document from within the editing environment for the child document. Not sure how useful it would be, but LaTeX has a package

Re: Controlling hairpin length

2016-01-22 Thread Thomas Morley
2016-01-21 16:54 GMT+01:00 David Sumbler : > I have tried substituting \! for my \invP markings, and replacing my > tweaked -\ten markings with standard -- marks. Please, tell me exactly how \ten is defined. Cheers, Harm ___

Re: Determine the including file

2016-01-22 Thread Chris Yate
On 22 January 2016 at 10:44, Urs Liska wrote: > If I have > > % file a.ly > \include "b.ily" > > % file b.ily > \include "c.ily" > > % file c.ily > > can I somehow refer to file b.ily from file c.ily? > In other words: If b.ily includes c.ily can I know from within c.ily >

Re: Compressing percent repeats.

2016-01-22 Thread Michael Gerdau
Hi Pierre, > \version "2.19.35" > > compressPercentRepeat = > #(define-music-function (repeats notes) (integer? ly:music?) > (let* ( >(mea (ly:music-length notes)) >(num (ly:moment-main-numerator mea)) >(den (ly:moment-main-denominator mea)) >(dur

Re: Compressing percent repeats.

2016-01-22 Thread Pierre Perol-Schneider
Hi Michae, Well actually I've hesitated to do that. It depends on how you read it. I finally choose to stick to : \version "2.19.35" \relative c'' { \set countPercentRepeats = ##t \repeat percent 8 { c1 } } But ok, it's a personal choice, maybe not the best. Cheers, Pierre 2016-01-22

Re: default note duration

2016-01-22 Thread Gianmaria Lari
Thank you Simon for the "cheat", this is exactly what I wanted to know :) g. On Fri, Jan 22, 2016 at 9:28 PM, Simon Albrecht wrote: > On 22.01.2016 19:16, Gianmaria Lari wrote: > >> Hello, >> >> the lilypond default note duration is 1/4. For example if I write >> >> { a

Re: Accessing Grob properties

2016-01-22 Thread Urs Liska
Am 22.01.2016 um 21:54 schrieb David Kastrup: >> However, from there I don't get any further, and it seems I totally >> > don't understand how the Scheme types are matched in C++. >> > Any attempt to compare the content of beam_count_prop with a set of >> > predefined values seems to fail, and

Re: Controlling hairpin length

2016-01-22 Thread David Sumbler
On Fri, 2016-01-22 at 11:15 +0100, Thomas Morley wrote: > 2016-01-21 16:54 GMT+01:00 David Sumbler : > > > I have tried substituting \! for my \invP markings, and replacing my > > tweaked -\ten markings with standard -- marks. > > Please, tell me exactly how \ten is defined.

Re: Determine the including file

2016-01-22 Thread karl
Urs Liska: ... > In other words: If b.ily includes c.ily can I know from within c.ily > that it was b.ily who included me? ... Perhaps something like, aria.ly: \version "2.18.0" \include "score_glb.ily" aria_ily = ##f pitch_voa = as, pitch_vob = \pitch_voa %pitch_vaa = \pitch_voa %pitch_vab =

Re: Determine the including file

2016-01-22 Thread Simon Albrecht
On 22.01.2016 12:38, k...@aspodata.se wrote: I don't know of any way to check if aria_ily is defined or not. Tried with #(if (defined? aria_ily) (display "Yes\n") (display "no\n")) but it gives: aria.ly:15:2: error: GUILE signaled an error for the expression beginning here # (if (defined?

Re: Determine the including file

2016-01-22 Thread Urs Liska
Am 22.01.2016 um 12:04 schrieb Chris Yate: > On 22 January 2016 at 10:44, Urs Liska > wrote: > > If I have > > % file a.ly > \include "b.ily" > > % file b.ily > \include "c.ily" > > % file c.ily > >

Re: Determine the including file

2016-01-22 Thread Chris Yate
On 22 January 2016 at 11:15, Urs Liska wrote: > > What I'm thinking about is the following: > > I have the file openlilylib.ily, which is the main entry point to > openLilyLib. > I'm currently changing the way how openLilyLib is organized. Previously > you loaded

Access a stem’s notehead

2016-01-22 Thread Simon Albrecht
Hello, I want to write a before-line-breaking callback for stem and need the staff-position of the associated NoteHead. (There aren’t going to be any chords.) This % \version "2.19.35" { \override Stem.before-line-breaking = #(lambda (grob) (format #t "~a\n"

RE: Algorithm for calculating slur shape

2016-01-22 Thread Mike Solomon
None of it is published but all of it is in the C++ source code and is pretty clear! Cheers,MS Sent from my Samsung Galaxy smartphone. Original message From: Michael Kassler Date: 22/01/2016 12:49 AM (GMT+02:00) To: lilypond-user@gnu.org Subject:

Re: Algorithm for calculating slur shape

2016-01-22 Thread Urs Liska
Am 22.01.2016 um 12:24 schrieb Mike Solomon: > None of it is published but all of it is in the C++ source code and is > pretty clear! Maybe it would have been nice to point the OP to http://git.savannah.gnu.org/cgit/lilypond.git/tree/lily There is a bunch of files starting with "slur" in that

Re: Compressing percent repeats.

2016-01-22 Thread Hwaen Ch'uqi
Greetings Pierre, Thank you so much for your solutions! It took me a while to realize that I in fact needed to upgrade to 2.19.35 in order to implement them, but once squared away, they worked magnificently. True, the latter approach is especially hackish, but I did find it much easier to

Re: Access a stem’s notehead

2016-01-22 Thread Paul Morris
On January 22, 2016 7:47:11 AM EST, Simon Albrecht wrote: >How do I retrieve the >NoteHead from the Column? Hi Simon, this snippet should help: http://lsr.di.unimi.it/LSR/Item?id=621 It shows how to get a Stem from a NoteHead, using ly:grob-object That way may be

Re: Access a stem’s notehead

2016-01-22 Thread tisimst
Here's the commands I was told to use (assuming "grob" is the NoteColumn): (let ((notes (ly:grob-object grob 'note-heads))) (if (ly:grob-array? notes) (for-each (lambda (note) ... do something to the NoteHead... HTH, Abraham On Fri, Jan 22, 2016 at 5:47 AM, Simon

Re: How to retrieve information?

2016-01-22 Thread David Nalesnik
Luca, On Thu, Jan 21, 2016 at 4:55 PM, Luca Danieli wrote: > Dear List, > > I am wondering if anyone can suggest a sort of "methodology" to retrieve > those information which are (for me) no easy to find online or in the web > guide. > > For example, I am right now

Re: Access a stem’s notehead

2016-01-22 Thread Paul Morris
> On 22.01.2016 16:11, Simon Albrecht wrote: >> The feature is designed for a very specific case: Renaissance vocal music, >> one voice per staff, no chords, no dynamics etc. With this callback, I crop >> those stems which protrude beyond the staff, such as to allow for still >> closer vertical

Re: Ossia problem - different timing

2016-01-22 Thread Ralph Palmer
On Thu, Jan 21, 2016 at 8:52 AM, David Kastrup wrote: > Kevin Barry writes: > > > Reverting does not depend on whether the override happened in a \with > expression or with an explicit \override. However, the overrides in > context definitions and \with

Re: Access a stem’s notehead

2016-01-22 Thread Simon Albrecht
On 22.01.2016 14:26, Paul Morris wrote: On January 22, 2016 7:47:11 AM EST, Simon Albrecht wrote: How do I retrieve the NoteHead from the Column? Hi Simon, this snippet should help: http://lsr.di.unimi.it/LSR/Item?id=621 It shows how to get a Stem from a NoteHead,

Re: Access a stem’s notehead

2016-01-22 Thread Simon Albrecht
On 22.01.2016 16:30, Simon Albrecht wrote: Oops, there was an else-statement missing. And it didn’t work with rests. I forgot to test the code on a real score before posting… %%% #(define crop-outside-staff-stem (lambda (grob) (let* ((note-col (ly:grob-parent grob 0))

Re: Access a stem’s notehead

2016-01-22 Thread Simon Albrecht
On 22.01.2016 16:41, Simon Albrecht wrote: On 22.01.2016 16:30, Simon Albrecht wrote: Oops, there was an else-statement missing. And it didn’t work with rests. What’s more, we have to avoid programming errors if there are beams. I’m learning a lot at this… %% \version

Accessing Grob properties (was: Handling of subdivisions with shortened beams)

2016-01-22 Thread Urs Liska
Am 18.01.2016 um 20:20 schrieb Urs Liska: > Am 18.01.2016 um 18:37 schrieb Simon Albrecht: >> On 18.01.2016 18:27, Urs Liska wrote: >>> Am 18.01.2016 um 18:24 schrieb Kieren MacMillan: Hi Urs, > c) > Take a) as the default and provide a context property This.

Re: Accessing Grob properties

2016-01-22 Thread David Kastrup
Urs Liska writes: > Am 18.01.2016 um 20:20 schrieb Urs Liska: >> Am 18.01.2016 um 18:37 schrieb Simon Albrecht: >>> On 18.01.2016 18:27, Urs Liska wrote: Am 18.01.2016 um 18:24 schrieb Kieren MacMillan: > Hi Urs, > >> c) >> Take a) as the default and

Re: Compressing percent repeats.

2016-01-22 Thread Michael Gerdau
> Well actually I've hesitated to do that. It depends on how you read it. I > finally choose to stick to : > > \version "2.19.35" > > \relative c'' { > \set countPercentRepeats = ##t > \repeat percent 8 { c1 } > } I see - in light of that it makes sense. > But ok, it's a personal choice,