bugDenemo - Bugs: bug #32600, Tempo notation produces broken PDF

 
 

bug #32600: Tempo notation produces broken PDF

Submitter:  None
Submitted:  Fri 25 Feb 2011 10:31:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 07 Apr 2011 09:14:55 AM UTC, comment #7: 

I have put the last version in git

Richard Shann <rshann>
Group administrator
Sat 05 Mar 2011 01:22:21 AM UTC, comment #6: 

I added a new feature to the tempo command: beat changes.
This allows you to print out
(quarter)=(dotted quarter)
at the barline as you transition from 4/4 to 12/8 time, for instance, preserving the beat.
This also includes the better support for 2.10 lilypond as well as possibly a bugfix (not 100% certain the bug I fixed wasn't introduced while changing this script).

If any bugs are found, post about them here.  Otherwise can this updated script go in the next release?
-Dan

(file #22842)

Anonymous
Thu 03 Mar 2011 08:43:38 PM UTC, comment #5: 

I tweaked the existing Tempo script so that it should produce better output for text-with-bpm tempo settings with lilypond 2.10.  It should work the same for 2.12 and beyond.

The file is attached.  I hope it has no new bugs.  I did some brief testing but not extensive.

One way to get this working is to copy this file into

.denemo\actions\menus\ObjectMenu\Directives

it will overwrite the old tempo command, I believe.
-DW

(file #22833)

Anonymous
Tue 01 Mar 2011 08:30:03 PM UTC, comment #4: 

Probably the tempo script, or another like it, could be modified or created to generate beat-changes, such as

quarter = dotted eighth

so hopefully I'll get a chance to do that one of these days.

-Dan W.

Anonymous
Tue 01 Mar 2011 08:27:53 PM UTC, comment #3: 

That code was the best I could figure out at the time to give users of 2.10.xx something halfway decent.  I figured most folks would be moving on to 2.12 soon, so I didn't really wrack my brain about it. 

If you'd like to fix your score right away, start with this syntax:

s8*0^\markup \bold { Presto (\smaller \general-align #Y #DOWN \note #"4" #.75 =168)} \once \override Score.MetronomeMark #'transparent = ##t
 \tempo 4=168

Paste this into the Postfix field of the denemo directive of the existing tempo directive.  Obviously, the Presto and 168 should be changed to whatever your Tempo indication and BPM would be.  The

\note #"4"

says to print a quarter note (the .75 says use 75% of an upward stem).  To get a dotted eighth, change it to

\note #"8."

etc.  The general-align makes it line up a bit better than it otherwise would have.  The override makes the metronome mark that follows the text NOT print.  (We are completely bypassing the lilypond built-in metronome mark printing; you could omit everything from the word \once onward if you don't care about lilypond generating a midi file for you.)
I don't have time to update the script at this moment, but I have tested the above syntax and it works well in my opinion.

-Dan W.

Anonymous
Mon 28 Feb 2011 03:34:46 PM UTC, comment #2: 

In the Lilypond output I have:

s8*0^\markup \bold { Moderato } \tempo 4=108

... which I assume means that you have code to produce an alternative to the \tempo "Allegro" 4=120 style is working, but is not friendly to 2.10.xx.

I do have the older 2.10.33 that ships with lenny.

I'll probably compile/install a newer one sometime, but if you're actively working on this I'm happy to keep 2.10 installed for awhile and test any changes you want to make.

Josh Audette <normmonkey>
Sun 27 Feb 2011 03:26:13 PM UTC, comment #1: 

Hi,
I think that's a script I wrote.  Are you using an older version of Lilypond?  2.10.xx?  Last I knew that was the one in the Debian repositories.  It should be fixed if you switch to a newer Lilypond--the 2.10 series doesn't have commands like

\tempo "Allegro" 4=132

(not sure if that's exactly it) which include BPM and text and are present in 2.12.xx.

The script I wrote was an attempt to provide something good enough for this purpose for the 2.10.xx Lilypond (it checks if it's an older version and uses the new, easy syntax when it can).  I'll take another look at that script soon and see if I can make the 2.10.xx output better.  Probably won't be very hard, just a look at the documentation for text in lilypond, though there could be some trouble getting it to get along with the bpm mark.
-Dan W.

Anonymous
Fri 25 Feb 2011 10:31:58 PM UTC, original submission:  

Found on: 0.8.23 (from git on 2011-02-24)

Running on Linux/Debian/lenny


There seem to be two ways to note tempo:

Chords > Markings > Text/Symbol > Tempo Indications

From here you can choose one of seven tempo words.  This seems to work just fine and produces nice italic bold text.

Okay, no problem, but what if you want a bpm marking, too?

Directives > Tempo opens a dialog box that lets you choose a preset tempo word, then enter in a bpm value.

Unfortunately, after I do that and then do CTRL+P, the PDF I get shows the word (e.g. "Moderato") printed right overtop of the bpm marking (e.g. [quarternote] = 112).

Not sure why this happens, or whether it's a Denemo bug or a Lilypond issue.  (not familiar enough with either one yet)


Contact norm at gnurple dot com if I can provide more feedback, test, etc.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #22842:  Tempo added by None (10KiB - application/octet-stream)
file #22833:  Tempo added by None (8KiB - application/octet-stream)

 

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)
  • -email is unavailable- added by normmonkey (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-07 rshann StatusNone Fixed
        Open/ClosedOpen Closed
    2011-03-05 None Attached File- Added Tempo, #22842
    2011-03-03 None Attached File- Added Tempo, #22833

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code