denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Barlines, repeats and voltas


From: Richard Shann
Subject: Re: [Denemo-devel] Barlines, repeats and voltas
Date: Fri, 24 Apr 2015 23:05:30 +0100

On Fri, 2015-04-24 at 15:46 -0500, Éloi Rivard wrote:
> Hi,
> I am currently working on a NoteworthyComposer file importer when I
> have some free time. It works pretty well so far, I can open files and
> do a lot of stuff. I am blocking on repeats, voltas (1st, 2nd endings
> etc.), and non-classic barlines, especially because I don't understand
> some things in denemo.
So these are all Denemo Directives, created by scripts such as
d-RepeatEnd which looks like this:

;;RepeatEnd
(StandAloneSelfEditDirective (cons "RepeatEnd" "\\bar \":|.\"") #f "RepeatEnd")
(d-DirectivePut-standalone-gx "RepeatEnd" 10)
(d-MoveCursorRight)

The graphical display is RepeatEnd.svg (or png, not sure which) and the
graphic is displaced from the default position by 10 pixels. The cursor
is moved right after creating the barline. the "\bar :|." is the
LilyPond syntax for this type of repeat barline.

> - When you open the example file AllFeaturesExplained.denemo, page 3,
> and plays the midi (F5), the measures that should be repeated are not.
> Is it normal?

Yes. There is another command (d-Performance I think its called) that
looks for the Denemo Directives that stand for repeats and does (some)
repeats.


> - Where in the code are drawed special barlines (like double barlines,
> repeat barlines etc.)?
In the display they are drawn as part of displaying the (standalone)
Denemo Directives which emit the LilyPond syntax for them

> - How can I do a 3 times repeat, or more?
There is an nth repeat where you can put arbitrary text for the repeat
indication. You would have to store extra information if you wanted to
build a MIDI repeat for such a thing, there is scope in a Denemo
Directive now for including any extra information needed as scheme data
in the data field of the Directive. But you would need to re-write
d-Performance to expect the extra indications about how many repeats
etc.

Richard

> 
> 
> 
> -- 
> Éloi Rivard - address@hidden
>         
> « On perd plus à être indécis qu'à se tromper. »
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

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