lilypond-devel
[Top][All Lists]
Advanced

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

Re: Lilypond to Braille


From: Keith OHara
Subject: Re: Lilypond to Braille
Date: Tue, 12 Nov 2013 04:08:35 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Maurits Lamers <maurits <at> weidestraat.nl> writes:

> This is a new initiative to bring Braille music output to Lilypond. 

Maybe let LilyPond read the input, iterate through the timing, and
prepare the music streams as she does to send to each context such
as 'Staff'.

You might make a new context(s) ('BrailleRow'?) that contain new
engravers that listen for the events that need to be recorded in the
braille.

You might want to have these engravers create TextScript or LyricText
objects for LilyPond to print in a row beneath the same music in
engraved notation, so sighted programmers can debug the transformation.

> Scenario 4.
> Just take the lilypond syntax and write a separate parser.

LilyPond syntax is extremely flexible, full of history, and thus messy.
The parser for LilyPond is rather complicated.

> Scenario 5.
> Write a complete set of engravers for every grob.

This might be the best approach, because you can write engravers
one at a time, based on the chord_name_engraver, note_name_engraver,
dynamic_engraver, etc, for each type of notation.

There manual has two examples of engravers written entirely in Scheme.

LilyPond is a big program, so I cannot say what existing engravers might
be good models, but the system is built to support adding new ways to 
engrave the same music: 
 music = \chordmode {c2:dim ges2:m}
 <<\new ChordNames \music
   \new FretBoards \music
   \new TabStaff \music
   \new Staff \music >>




reply via email to

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