bugDenemo - Bugs: bug #30443, Quick lilyponding in print view...

 
 

bug #30443: Quick lilyponding in print view window

Submitter:  None
Submitted:  Wed 14 Jul 2010 01:05:46 PM UTC
   
 
Category:  Feature request 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

Mon 26 Jul 2010 09:06:37 PM UTC, comment #7: 

Agreed about the directive deletion--I'll see if Nils can build a current git for windows, if so I'll check the CLI and update this script a bit.-DW

Anonymous
Mon 26 Jul 2010 09:10:38 AM UTC, comment #6: 

The pop command is now fixed. It would be safer if the deletion of the typesetting on/off commands was done with a d-DirectiveDelete-standalone <tag>
command so that in case of errors it does not delete some random musical object.
There are also more modern directive creation commands e.g.

d-Directive-standalone <tag>

that create a directive of the given tag if there is not already one.

Richard Shann <rshann>
Group administrator
Sat 24 Jul 2010 05:01:35 PM UTC, comment #5: 

There is a problem due to the pushing/popping commands not working the way they should when denemo needs to scroll.  That's submitted as a separate bug.-DW

Anonymous
Fri 16 Jul 2010 09:37:50 PM UTC, comment #4: 

I have put these in git. There is a problem I think if there are less than 4 bars available.
And the position in the File menu should be after another Print command.

Richard Shann <rshann>
Group administrator
Thu 15 Jul 2010 07:57:58 AM UTC, comment #3: 

That sounds really great!

Richard Shann <rshann>
Group administrator
Wed 14 Jul 2010 11:09:10 PM UTC, comment #2: 

There is an outdated comment in the Preview4Bars scheme saying it shows the next 2--that was for an earlier version.
-Dan

Anonymous
Wed 14 Jul 2010 11:07:54 PM UTC, comment #1: 

I have managed to script this.  It looks like it works.
There are several new commands.  The basic ones turn typesetting on or off in all staffs simultaneously via the lilypond commands \set Score.skipTypesetting = ##t or ##f.  Then there is a command that jumps around in the score, putting in standalone lily directives to only typeset from the current point out to a given number of bars ahead.  It then print previews all staffs for those bars, and afterwards cleans up after itself by deleting those directives, ending right where it started.
I wasn't sure which menu was best; ended up putting them in the Score menu.  This could be changed, of course.
It seems like lilypond digests it quickly, testing it on modest sized scores.
-Dan W.

Typesetting Off:
(d-DirectivePut-standalone-postfix "Typesetting Control" "\\set Score.skipTypesetting = ##t")
(d-MoveCursorLeft)
(d-DirectivePut-standalone-display "Typesetting Control" "TypesetOff")

Typesetting On:
(d-DirectivePut-standalone-postfix "Typesetting Control" "\\set Score.skipTypesetting = ##f")
(d-MoveCursorLeft)
(d-DirectivePut-standalone-display "Typesetting Control" "TypesetOn")

Preview4Bars: (change N to change number of bars)
(let ((N 4)) ;set N to be number of bars to preview
(define (MoveRightNBars NumBars)
(if (&gt; NumBars 0)
(begin
(d-MoveToMeasureRight)
(MoveRightNBars (- NumBars 1)))
))
(d-TypesettingOn) ;shows this bar and the next 2-by DRW
(d-PushPosition)
(MoveRightNBars N)
(d-TypesettingOff)
(d-PushPosition)
(d-MoveToBeginning)
(d-TypesettingOff)
(d-PrintPreview)
(d-DeleteObject)
(d-PopPosition)
(d-DeleteObject)
(d-PopPosition)
(d-DeleteObject)
) ;let

(file #20977, file #20978, file #20979)

Anonymous
Wed 14 Jul 2010 01:05:46 PM UTC, original submission:  

Quote from DESIGN.lilypond:
Well, mainly, it just doesn't seem that there's much advantage to a GUI environment for putting playing directions directly into the music, fine-tuning the way the music is beamed, putting multiple independent voices onto the same staff, adjusting a staff's relative position, and other things like that.

I say, yes there is an advantage!  Namely, lilyponding a huge score can take a long time.  If I want to tweak a few slurs, beams, voice collisions, etc., it can be much, much easier in a gui if we had a command that previewed JUST the current screen or so of the score--so a miniature lilypond score would be generated, processed and displayed in the print view window at a keypress.  Trying to do this in text is a much greater hassle.

I have used lilypond on a large orchestral score and I found the tweaking process to be very frustratingly slow.  There may be features in lilypond to isolate certain measures for typesetting, but I only know of the one that just does the last 10 bars or so--not helpful if you need to see something in the middle of the piece.  If there is already a good command for this type of thing in lilypond, then denemo could use that for this command--setting the start bar to the first one displayed and showing the next 3 or 4 bars depending on the complexity and meter.  Just need to be sure it's pretty fast and doesn't process the whole piece too much.

-Dan W.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #20977:  Preview4Bars added by None (808B - application/octet-stream)
file #20978:  TypesettingOff added by None (546B - application/octet-stream)
file #20979:  TypesettingOn added by None (587B - 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)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-01-11 rshann StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2010-07-16 rshann StatusNone In Progress
    2010-07-14 None Attached File- Added Preview4Bars, #20977
        Attached File- Added TypesettingOff, #20978
        Attached File- Added TypesettingOn, #20979

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code