Programming Question

2014-09-18 Thread Jay Vara
I'm not top posting. I am using NoteNames context to print the note names automatically for scales of half notes, quarter notes and eighth notes. I have redefined the NoteNames using override NoteName.Stencil. I need different font sizes for the note names of half, quarter and eighth notes.

Re: a column of text to the right of the score

2014-09-18 Thread Pierre Perol-Schneider
Wrong file name, sorry folks and thanks again Villum. So here you go Cheers, Pierre 2014-09-17 11:38 GMT+02:00 Pierre Perol-Schneider pierre.schneider.pa...@gmail.com: Oups, 'forgot the bar numbering on page 2. See enclosed corrected files. Pierre \version 2.18.2 #(set-default-paper-size

Re: a column of text to the right of the score

2014-09-18 Thread Pierre Perol-Schneider
How about this alternative ? (just a quick thought, could have some mistakes). Cheers Pierre \version 2.18.2 #(set-default-paper-size letter 'landscape) #(define (general-column align-dir baseline mols) (let* ((aligned-mols (map (lambda (x) (ly:stencil-aligned-to x X align-dir)) mols)))

Re: Programming Question

2014-09-18 Thread David Nalesnik
Hi Jay, On Thu, Sep 18, 2014 at 4:43 AM, Jay Vara j...@diljun.com wrote: I'm not top posting. I am using NoteNames context to print the note names automatically for scales of half notes, quarter notes and eighth notes. I have redefined the NoteNames using override NoteName.Stencil. I

Re: Programming Question

2014-09-18 Thread David Nalesnik
On Thu, Sep 18, 2014 at 7:01 AM, David Nalesnik david.nales...@gmail.com wrote: myNoteNames = #(lambda (size) (lambda (grob) #(define (myNoteNames size) (lambda (grob) Or even the cryptic #(define ((myNoteNames size) grob) Now, if you want to have LilyPond detect the note

Re: Odd layout choices

2014-09-18 Thread Simon Albrecht
(continuing the thread on ly-user) Hello Guy, no, there isn't, because it tends to contradict the logic: they won't appear to be simultaneous, if they are placed one after another. You might try the methods described in . For the dynamics, this can be complicated, but try: \override

Re: Programming Question

2014-09-18 Thread Jay Vara
Yay! I tried the cryptic version you suggested, and it works nicely. The syntax does take some time to get used to. When lilypond displays an error, is it possible to know which line of code the error is in? I am using Friscobaldi. ___

Re: Programming Question

2014-09-18 Thread David Nalesnik
On Thu, Sep 18, 2014 at 7:42 AM, Jay Vara j...@diljun.com wrote: Yay! I tried the cryptic version you suggested, and it works nicely. The syntax does take some time to get used to. When lilypond displays an error, is it possible to know which line of code the error is in? I am using

Re: Odd layout choices

2014-09-18 Thread Guy Stalnaker
Simon, Thanks, again. It does help :-) On 09/18/2014 07:34 AM, Simon Albrecht wrote: (continuing the thread on ly-user) Hello Guy, no, there isn't, because it tends to contradict the logic: they won't appear to be simultaneous, if they are placed one after another. You might try the methods

Re: Programming Question

2014-09-18 Thread Jay Vara
David, Wow! The power of programming knowledge! Yeah, size can be set based on duration. In my particular case, this is giving some unwanted effects since the duration of all my notes are not the same (unlike in the small example I made up for this post). So I will be using your earlier

Re: Programming Question

2014-09-18 Thread David Nalesnik
Hi Jay, On Thu, Sep 18, 2014 at 9:54 AM, Jay Vara j...@diljun.com wrote: On the other hand, what would be nice is if the NoteName could be changed based on duration. In particular, if the note is a half note, I would like to add a character (say a - or a a) to the note name. This could be

Re: Programming Question

2014-09-18 Thread Jay Vara
David: Friscobaldi says: Starting lilypond-windows.exe 2.18.2 [Alam-Ata.ly]... Processing `c:/users/arjuna/appdata/local/temp/frescobaldi- pvt8zv/tmptpz4so/Alam-Ata.ly' Parsing... Interpreting music...[8][16][24][32][40][48][56][64] Preprocessing graphical objects... Interpreting music...

Automatic fixing of note between measures

2014-09-18 Thread Jay Vara
Sometimes a note in my (generated) music falls on the bar lines. Is there a way to auto fix it by splitting the note as per the measure and joining the two parts with a tie? In the following, the first line shows that there are five quarter notes in the first measure rather than 4. The second

Re: Programming Question

2014-09-18 Thread Jay Vara
I am not top-posting David, You are way too good! Is this the way I enter it? For some reason, does not seem to be working - it seems to be ignoring the suffix. If I wanted to display new-name as the program runs, is there a command for that? Thanks Jay \version 2.18.2 music = \relative

Re: Automatic fixing of note between measures

2014-09-18 Thread Malte Meyn
Yes, there is the Completion_heads_engraver. I don’t remember exactly how to use it, but you’ll find it in the manuals. Am 18.09.2014 um 17:06 schrieb Jay Vara: Sometimes a note in my (generated) music falls on the bar lines. Is there a way to auto fix it by splitting the note as per the

Re: Automatic fixing of note between measures

2014-09-18 Thread Malte Meyn
I found it in one of my own scores: \layout { \context { \Voice \remove Note_heads_engraver \remove Rest_engraver \consists Completion_heads_engraver \consists Completion_rest_engraver } } Am 18.09.2014 um 18:25 schrieb Malte Meyn: Yes, there is the

Re: Automatic fixing of note between measures

2014-09-18 Thread David Bellows
The project I'm working on right now also automatically generates music and I ran into the same problem. Here's what my software automatically generates now to deal with it: \score { \new PianoStaff \new Staff = upper \new Voice = first \with {\remove Note_heads_engraver \consists

\override #'(font-series . medium) doesn't work anymore?

2014-09-18 Thread Karol Majewski
\override #'(font-series . medium) or \medium None of them work. Bug? \version 2.19.14 \paper { #(define fonts (make-pango-font-tree Ubuntu (/ staff-height pt 20))) } \markup { \sans foo } \markup { \sans \bold foo } \markup { \sans \medium foo } -- Karol

Re: \override #'(font-series . medium) doesn't work anymore?

2014-09-18 Thread Malte Meyn
Probably that’s a bug, yes: It works in 2.19.13 (I don’t have a 2.19.14 to look at the different output). Am 18.09.2014 um 19:06 schrieb Karol Majewski: \override #'(font-series . medium) or \medium None of them work. Bug? \version 2.19.14 \paper { #(define fonts

Re: Automatic fixing of note between measures

2014-09-18 Thread Jay Vara
Nice, that works. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Automatic fixing of note between measures

2014-09-18 Thread Jay Vara
David, That works. Malte also suggested something similar. Is there a reason not to use Completion_heads_engraver all the time or atleast as a default? I am also using a compound metre. Hopefully this will work with that. In one case I have repeating measures of 5/4 + 3/4 + 2/4. I have

woodwind-diagram problem

2014-09-18 Thread takumi ikeda
Hello all, I got an error message by the following script. \version 2.18.2 { c'1^\markup { \override #'(graphical . #f) { \woodwind-diagram #'saxophone #'( (lh . (bes)) (cc . (four))

Re: \override #'(font-series . medium) doesn't work anymore?

2014-09-18 Thread TaoCG
Does this work? \paper { #(define fonts (set-global-fonts #:sans Ubuntu )) } I don't have 2.19.14 installed but afaik the code for setting the global fonts was changed in 2.19.12 to support alternative music fonts. -- View this message in context:

Re: \override #'(font-series . medium) doesn't work anymore?

2014-09-18 Thread Karol Majewski
The point is that LilyPond doesn't recognize medium font-series. When you set font-series to bold, everything's fine. Does this work? \paper { #(define fonts (set-global-fonts #:sans Ubuntu )) } I don't have 2.19.14 installed but afaik the code for setting the global

compoundMeter - how to get lilypond to recognize the bar line in the middle

2014-09-18 Thread Jay Vara
I am not top-posting I am using a compoundMeter - 5/4 + 2/4. I would like to see a bar line after 5 quarter notes (and after 7 quarter notes). Plus I would like Completion_heads_engraver to recognize the bar line after the 5 quarter notes. I was able to artificially achieve getting the bar

Re: Programming Question

2014-09-18 Thread David Nalesnik
Hi Jay, On Thu, Sep 18, 2014 at 10:54 AM, Jay Vara j...@diljun.com wrote: Is this the way I enter it? For some reason, does not seem to be working - it seems to be ignoring the suffix. By the time you set the 'text property, new-name doesn't hold the newest name, rather the variable text

Re: Programming Question

2014-09-18 Thread Jay Vara
David Fantastic! I can not claim to understand what you have done. The display command is helping - I can see that text has what I need, and why I need to replace the new-name with text in the set property line. Thanks, Jay ___ lilypond-user

Re: Programming Question

2014-09-18 Thread David Nalesnik
On Thu, Sep 18, 2014 at 9:57 AM, Jay Vara j...@diljun.com wrote: David: Friscobaldi says: Starting lilypond-windows.exe 2.18.2 [Alam-Ata.ly]... Processing `c:/users/arjuna/appdata/local/temp/frescobaldi- pvt8zv/tmptpz4so/Alam-Ata.ly' Parsing... Interpreting

Re: Automatic fixing of note between measures

2014-09-18 Thread David Bellows
Is there a reason not to use Completion_heads_engraver all the time or atleast as a default? I think the expectation is that most composers most of the time do not want notes split up automatically as it probably means a mistake was made when entering the notes. Basically they'll split when they

Re: woodwind-diagram problem

2014-09-18 Thread Pierre Perol-Schneider
Hi Takumi, 2014-09-18 20:06 GMT+02:00 takumi ikeda i...@de-dicto.net: I got an error message by the following script. Doc says : *In many cases*, the keys other than the central column can be displayed by key name … It seems that you've found another case... Or, do you have any idea to

Re: Programming Question

2014-09-18 Thread Jay Vara
I am not top-posting David, I defined a second variable nsiz which is 1, 2 or 3 Tried (case duration-log ((nsiz) a ) (else ))) This condition was never succeeding although I printed out nsiz and duration-log and they were the same. Then I changed it into an if statement - that worked.

Re: Programming Question

2014-09-18 Thread David Nalesnik
Hi Jay, On Thu, Sep 18, 2014 at 6:28 PM, Jay Vara j...@diljun.com wrote: I am not top-posting David, I defined a second variable nsiz which is 1, 2 or 3 Tried (case duration-log ((nsiz) a ) (else ))) This condition was never succeeding although I printed out nsiz and

Re: lilypond-user Digest, Vol 142, Issue 80

2014-09-18 Thread b...@wolfcomposer.com
Hi, Jay-- i'm not sure of everything you're trying to do, but change your layout block to this: \layout { \context { \Voice \remove Note_heads_engraver \remove Rest_engraver \consists Completion_heads_engraver \consists Completion_rest_engraver } \context { \Staff

Re: Programming Question

2014-09-18 Thread Paul Morris
David Nalesnik-2 wrote Perhaps it's your choice of comparison by eq? I can't say what it does with strings, but it generally tests that an object is the same object as another, rather than simply equivalent. (If you want more on these, you can read up on them in the Guile manual). Here's