bugDenemo - Bugs: bug #25850, \header should be placed before...

 
 

bug #25850: \header should be placed before \score but is not, so it is not used

Submitter:  None
Submitted:  Fri 13 Mar 2009 06:25:40 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 02 Apr 2009 07:48:47 AM UTC, comment #9: 

I've just checked the latest docs at lilypond.org and the header structure we are using seems to be exactly what is documented. I will close this as not-a-bug. If you can reproduce the problem on a  .ly file then please raise a bug on LilyPond.

Richard Shann <rshann>
Group administrator
Wed 01 Apr 2009 05:02:24 PM UTC, comment #8: 

Another point: the (last) header placed outside the \scoreblock{} applies to all the movements, so you cannot have the movements labelled via the "subtitle" field in the header. This is the reason they are inside the scoreblocks.

Richard Shann <rshann>
Group administrator
Wed 01 Apr 2009 04:58:45 PM UTC, comment #7: 

You did not mention the LilyPond version you are using. It would help me a lot if you could generate Denemo's .ly file and run the convert-ly utility that comes with your LilyPond version and report any changes it makes.
The problem may be that convert-ly is not being run on windows due to file locking problems which I have not had time to look into. This is also the reason why, on windows the .ly file generated when printing is not called plain "denemoprint.ly" but has extra numbers attached.

Richard Shann <rshann>
Group administrator
Wed 01 Apr 2009 02:46:15 AM UTC, comment #6: 

Original report was on Windows, as is all my use.  I must confess that I do a Lilypond error when I place the \header higher inside the \score.  I did not realize that until I read your response and tried it again.  However, I do get the intended output, this is why I did not realize the error log earlier. 

The composition I modified manually for the desired result looks like below.  I placed my \header before the entire \score block and it is working, no error. 

\header{
        title = "A song title"
        composer = "Composer"
        copyright = "2009"
        breakbefore = ##f
        }

\score {
<<\transpose c c <<
\new PianoStaff  <<
\new Staff  << {
                \MvmntIVoiceIMusicVoice
                }
                >>
\new Staff  << {
                \MvmntIVoiceIIMusicVoice
                }
                >>

>>


>>
>>

        \layout {
        }
}

Anonymous
Sat 14 Mar 2009 09:42:24 AM UTC, comment #5: 

I've tried moving the header block earlier in the scoreblock but on 2.8.7 it gives an error.
So it seems that we are up against a LilyPond change and, worse that the convert-ly program (which is run on the LilyPond text before LilyPond) is not fixing it. (I am assuming you are on linux - windows does not run convert-ly. Please confirm).
So if you can find which version the change came in at we can look to fixing it within denemo.

Richard Shann <rshann>
Group administrator
Sat 14 Mar 2009 08:42:01 AM UTC, comment #4: 

You do not mention which fields you are trying - IIRC LilyPond treats Title differently from subtitle and others (and hence the header at the start and within each score block).
It may just be that effect you are seeing, but in any case I'll move header to the first place in the score block in case there is something changing in LilyPond.

Richard Shann <rshann>
Group administrator
Sat 14 Mar 2009 08:39:28 AM UTC, comment #3: 

You do not mention which fields you are trying - IIRC LilyPond treats Title differently from subtitle and others (and hence the header at the start and within each score block).
It may just be that effect you are seeing, but in any case I'll move \header to the first place in the score block in case there is something changing in LilyPond.

Richard Shann <rshann>
Group administrator
Sat 14 Mar 2009 03:17:58 AM UTC, comment #2: 

The issue is shown from the user's perspective by filling in properties of the score header using the Edit | Score Properties menu. 

I just tried moving the actual header code to various positions.  It does not work in the current output location which is the last thing inside the \score block, but it does work ok if I move the \header block above the \score block, or to the first position inside the \score block.  At other positions inside the \score block I get Lilypond errors.  I do not get visible output anywhere toward the bottom of the \score block where Lilypond processes to completion.

Anonymous
Fri 13 Mar 2009 06:38:08 PM UTC, comment #1: 

In denemo's LilyPond window I only see a \header block at the beginning and further \header blocks inside \score blocks.
For example, a minimal Denemo file's LilyPond output ends thus:

\score {
<<\transpose c c <<
\new Staff  << {
                \MvmntIVoiceIMusicVoice
                }
                >>

>>
>>

        \layout {
        }
\header{
        breakbefore = ##f
        }

}

****************** end of snippet *************


Richard Shann <rshann>
Group administrator
Fri 13 Mar 2009 06:25:40 PM UTC, original submission:  

Denemo 0.8.2

Lilypond will not render the information from \header unless it is found before or inside the \score section.  Denemo places it at the end of the ly file so it never gets used.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rshann (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-02 rshann StatusNeed Info Invalid
        Open/ClosedOpen Closed
        Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used
    2009-04-01 rshann Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used
    2009-04-01 rshann Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used
    2009-03-14 rshann Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used
    2009-03-14 rshann Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used
    2009-03-14 rshann Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used
    2009-03-13 rshann StatusNone Need Info
        Summary\\header should be placed before \\score but is not, so it is not used \header should be placed before \score but is not, so it is not used

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code