bugDenemo - Bugs: bug #36928, Print Transpose doesn't work...

 
 

bug #36928: Print Transpose doesn't work properly on multi voice parts.

Submitted by:  John Beattie <jabeattie>
Submitted on:  Mon 23 Jul 2012 07:18:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Richard Shann <rshann>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 26 Jul 2012 08:14:51 AM UTC, comment #5:

I have fixed all these in git. There is still a bug with the menu entries - old ones not removed.

Richard Shann <rshann>
Project AdministratorIn charge of this item.
Tue 24 Jul 2012 06:20:09 PM UTC, comment #4:

This bit of scheme

(d-DirectivePut-voice-prefix "test" "\\transpose bes c'' ")

if applied to each voice does the trick.

Something of this sort should be added to all voices on a staff when the (Print) Transpose command is issued on a staff.

Two bugs are shown up - the voice directives are not showing as editable objects in the score layout even though they are there
the voice directives are not editable by clicking on the lower of the two "tool" icons before the staff (which used to be the case).

Richard Shann <rshann>
Project AdministratorIn charge of this item.
Tue 24 Jul 2012 11:24:46 AM UTC, comment #3:

To answer one of my own questions: one way to make Lilypond do what I want seems to be to have the transpose for first voice in Staff and another one for 2nd voice in its Voice i.e.

%Start of Staff
\new Staff = "Euphonium 1" << \transpose bes c''
\new Voice = "VoiceIIMvmntI" {
\clef treble
{ \key ees \major}
{ \time 2/4 }
\MvmntIVoiceII } %End of voice
\new Voice = "VoiceIIIMvmntI" {
\transpose bes c''
\MvmntIVoiceIII } %End of voice

>>

%End of Staff

Unfortunately it is not that simple. The problem is the scope of the transpose and this can be seen best by placing the transpose inside 1st voice.

If you have immediately before "\clef", it does nothing (transposes clef!)
If you have it before "{ \key", it transposes key but not the notes.
If you have it before "{ \time", it does nothing (transposes time!)
If you have it before "\MvmntIVoiceII", you've guessed, it transposes notes but not key.

You could have the tranpose as the first thing in a voice with the rest of the voice enclosed in braces:

\new Voice = "VoiceIIMvmntI" {
\transpose bes c'' {
\clef treble
{ \key ees \major }
{ \time 2/4 }
\MvmntIVoiceII } } %End of voice

That works fine but might but might be difficult to manage in code. Carrying that idea out to the Staff doesn't work. A transpose followed by { followed by two Voices then } results in one after the other not together.
I suspect the simplest solution will be to have the transpose before each "\new Voice". The following does work:

\new Staff = "Euphonium 1" << \transpose bes c''
\new Voice = "VoiceIIMvmntI" {
\clef treble
{ \key ees \major }
{ \time 2/4 }
\MvmntIVoiceII } %End of voice
\transpose bes c''
\new Voice = "VoiceIIIMvmntI" {
\MvmntIVoiceIII } %End of voice

>>
%End of Staff

I leave it up to you to decide how best to implement this.

John Beattie <jabeattie>
Tue 24 Jul 2012 10:23:24 AM UTC, comment #2:

Glad you pointed me in the direction of Score Layout. I had looked at it briefly before then dismissed it. I avoided using custom layouts in the past because they were a pain to manage but this looks like it might be useful. There are a couple of GUI/usability issues which I will raise separately.

However, for the transposition, this had the same effect as before i.e. only the first voice was transposed.

Just to make sure I haven't made a mistake, this is what I did with Score Layout:
1) Create new layout containing only the staff I was interested in.
2) Expanded Voices section and Initial Signatures.
3) Changed clef to Treble.
4) Looked around for somewhere to put transpose. Only place was staff directive which was already set to correct place. Nowhere to specify on the voices.

Looking at Lilypond we have:

%Start of Staff
\new Staff = "Euphonium 1" << \transpose bes c''
\new Voice = "VoiceIIMvmntI" {
\clef bass
{ \key ees \major}
{ \time 2/4 }
\MvmntIVoiceII } %End of voice
\new Voice = "VoiceIIIMvmntI" {
\MvmntIVoiceIII } %End of voice

>>

%End of Staff

To me, the scope of the transpose is both voices so do we have a fault in Lilypond? Or should the \transpose be in the voices rather than the staff? Note that clef, key & time are in voice though Score Layout only lets them be specified once implying that they refer to Staff.

John Beattie <jabeattie>
Tue 24 Jul 2012 08:17:00 AM UTC, comment #1:

The newly created Score Layout view has been created for this sort of activity: you can change the clefs and put in a transpose (and remove other staffs if you have not started from a print-part layout). You can then choose this layout whenever you want to print from it, without repeating the manual switching of clefs etc.

There is still some work to do on this view, so I am not sure how the transpose bit will work out (it definitely can be done but may involve editing the whole string \transpose bes c'' rather than a friendly dialog - I need feedback on this).

Things like Print Part are now just ways of creating standard layouts, which you then customize for more complex tasks.

I'll leave this open for feedback on the View->Score Layout dialog.

Richard Shann <rshann>
Project AdministratorIn charge of this item.
Mon 23 Jul 2012 07:18:12 PM UTC, original submission:

Using 0.9.5 rc2 on Windows.
The new way of handling multi voice parts is a big improvement but there is a problem with transposition.

I have a part with two voices which I want to print off as a single part (using print part). I also want to transpose both voices from concert bass clef to Bb treble so I manually change clefs and set print transpose on both voices ( bes c'').
When I run print part only the upper voice is transposed.

Actually, the same thing happens when I print the whole score but I don't normally do that!

John Beattie <jabeattie>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rshann (Posted a comment)
  • -unavailable- added by jabeattie (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Jul 2012 08:14:51 AM UTCrshannStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 24 Jul 2012 06:20:09 PM UTCrshannStatusConfirmed=>In Progress
    Tue 24 Jul 2012 08:17:00 AM UTCrshannStatusNone=>Confirmed
      Assigned toNone=>rshann

    Back to the top


    Powered by Savane 3.1-cleanup1