denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Denemo-devel] Tweaking the positions of text etc in LilyPond.


From: Richard Shann
Subject: [Denemo-devel] Tweaking the positions of text etc in LilyPond.
Date: Fri, 13 Feb 2009 17:01:45 +0000

One of the things that is most difficult to do is finding the right
LilyPond to tweak the position (or padding etc) of something when it
isn't quite right in the printed output. Once found, it would be nice to
store the recipe with the command that put the thing there. So for
example d-RehearsalMark will have some prefix code for tweaking its
position. The RehearsalMark script can store the required scheme to set
up the tweak given the x, y amounts that the user wants.
I plan to use right-clicking on a DenemoDirective to access this and
other editing type functionality.
As a first step, I have allowed you to drag a selection in the Print
Preview pane, so as to find out how much tweak you want. It works as
follows:
        click and drag to make a selection (of say a rehearsal mark),
        click inside it and drag to move it to where you want it to go.
then execute a scheme script on the Denemo object to set up the tweak -
the amounts to shift have been stored in the Scheme variables d-x, d-y.

The nice thing is that the right-click on a DenemoDirective can query
the command that created it (via the tag) to find out what tweaking has
been made available by the creator of that command script, and so the
menu when right clicking can include those tweaks that can be made on
that object.
This method of finding out what you can edit on a particular Denemo
Directive would apply to DenemoDirectives that contain MIDI controls,
the command that created the MIDI control can offer to modify the
DenemoDirective's MIDI values as the user wishes. So, if you had a
DenemoDirective that printed mf in the LilyPond score and set the MIDI
volume then the script setting that up could include a section to modify
the volume setting (e.g. via listening to the velocity of a MIDI
keypress for example).

Richard







reply via email to

[Prev in Thread] Current Thread [Next in Thread]