denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Articulations


From: Jeremiah Benham
Subject: Re: [Denemo-devel] Articulations
Date: Fri, 09 Dec 2011 09:09:26 -0600
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0

On 12/09/2011 04:36 AM, Richard Shann wrote:
On Thu, 2011-12-08 at 22:17 -0600, Jeremiah Benham wrote:
On 12/08/2011 12:57 PM, Richard Shann wrote:
Jeremiah,
My irc #denemo connection keeps dropping. About articulations, what
we
really need is to be able to create actions for toggling each
articulation using the feta font symbol in the menu label and
display,
and of course creating the appropriate LilyPond syntax.
With things like staccatissimo the dot in the display needs to be
sensitive to the stem direction - which may require some more
infrastructure support (in drawnotes.c).
I just pushed an example. Let me know if I am in the correct direction
here.
I see you adding Marcato by cloning code for other articulations, that
is creating another built-in. This is quite the opposite of what I
meant!

I am glad I did not continue to go this direction then. I sent the example because I had a feeling I was confused about something. I reverted the change in git.

The idea is to remove all those built-in articulations and replace them
with scripts that add a directive to the note, displaying the symbol and
outputting the lilypond. Something like

;;;ToggleMarcato
(let ((tag "Marcato"))
        (if (d-DirectiveTag-note? tag)
                (d-DirectiveDelete tag)
                (begin
                        (d-DirectivePut-note-display tag FETA_MARCATO)
                        (d-DirectivePut-note-override tag something to make it 
display the
symbol relative to the stem direction)
                        (d-DirectivePut-note-postfix tag "\\marcato")

the main task is to create the strings like FETA_MARCATO which hold the
utf8 values of the lilypond glyphs.

Where should FETA_MARCATO be defined? How do I get the utf8 value? I looked at the fonts in fontforge trying to find this utf8 value but failed to find it. I also noticed that the articulation fonts are not all in a row. Is that necessary? Should I reorder the fonts or just set FETA_MARCATO to point to where they are currently? We will want an image to show in the draw area correct? I think we used to select something in the print view screen and save it as a bitmap to load back into to denemo. Its been a while since I have done that. Its a good idea that I relearn :). It will be a good test to see if it is working with the gtk3 build.


But once done, it should be possible to add further articulations just
by naming the glyph and the lilypond syntax etc. No re-compiling Denemo
with new C code written for the particular articulation.
Note:
        Where I put d-DirectivePut-note-xxx it would be
d-DirectivePut-chord-xxx for most articulations, which apply to all the
notes not individual notes in a chord.
        I am not sure whether positioning relative to stem up/down has been
implemented yet. (would be DENEMO_OVERRIDE_SOMETHING_OR_OTHER...), or it
may be the default.

I may have to do the stem/up down thing last because I am not yet sure how to do that part yet.

Jeremiah



Richard






reply via email to

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