3 language.pod -- state of the art mudela-vapourware.
7 [this document is slowly merged into the mudela doco, as the
8 implementation progresses. If you want to see our previous musings,
9 take out an old version of lilypond]
11 here are some thoughts on the language. Most of the examples are in
12 pseudo current mudela. Some stuff gratuitously taken from your mails.
17 I dislike vapourware. That's why I oppose to concrete plans on how to
18 do input for features we don't know how to produce on paper
22 =head1 CONCRETE PROPOSALS
25 =head1 Decisions (Sat 1997-3-15, dommelpijpje no21)
31 abbrev: [c2 c2]\noplet{1/2} (wat bout [c2 c2]1/2\noplet?),
35 abbrev: c4=16 (heu, =?),
39 plet === midi-note: c4*2/3; c4*385/384,
47 \meter compulsory in Simple mudela,
56 \extract{ \from 2:3*4 \to 5 oboe }
66 It is difficult to make mistakes with typing now because you have to
67 tell LilyPond what it is dealing with
73 staff { music { identifier } }
75 I'm not sure on dropping this, I'm afraid it will make the language
76 less legible. Technically, dropping it is not very difficult (it will
77 introduce slight parser-source bloat)
79 What if the staff is extended to have some more blocks, all of which
80 can be declared? Like the score now:
89 This will only be readable if the Mudela-user rigidly uses hungarian,
92 Of course \key should take a \notename. In fact, I think we should
93 program the note intervals (which are now hardcoded for midi purposes)
94 To allow adaptation to other scales.
96 As simple fix, we might do key declarations:
98 \keybes= \key { bes es }
106 We might drop this {} argument altogether, by merely enforcing
107 that each "statement" (music,score,staff,chord) takes a LIST as
108 argument, and use the {} to group lists. This is admittedly perl. This
114 I want to give the user some access to the internals. Technically,
115 engravers/performers will happily typeset voices which mix lyrics and
116 notes, which combine stem requests and lyricreqs. I want to have a
118 \request { melodic name = 5, acc = -10
119 rhythmic ball=4 dots 2, lyric = "foobar" }
121 type of syntax. This is the most flexible input format possible, since
122 any valid LilyPond input can be made. This strongly implies tying
123 mudela to LilyPond. That I don't mind, but it hampers
124 portability. Suppose some commercial systems want to read mudela too.
126 =head2 Command placement:
128 Mats is an arduous fan of having the commands inside music. I am
129 not. I see the Mudela music as something which can be plugged into
130 different staffs, transposed, translated in time, copied, quoted,
131 etc. Encouraging "inline" commands would be bad since they hinder this
132 reuse of typed music.
134 The way I figure it, the bad part is essentially counting
135 bars/wholes. Maybe we can get rid of it, by reinstalling the "mark"
138 I definitely want to avoid complicated logic ("Hey there is another
139 bar request, should we merge this bar with another staff's", this kind
140 of "smartness" makes a lot M$ software inconsistent) inside LilyPond,
141 by making the input unambiguous in this respect.
143 There is another complication: some symbols (bars) sometimes are
144 linked across staffs. I should first think of a way to do this in
145 LilyPond, before even considering a syntax.
154 This is a idea of mine: we could filter some request types from
159 \mel1 = \music { c-. d-. e-. f-. \meter {2*4} g-. a-. b.- c-. }
161 \m1 = \filter { "script_req" \mel1 }
162 \m2 = \filter { "command_req" \mel1 }
163 \m3 = \filter { "melodic_req" \mel1 }
164 \m3 = \filter { ("rhythmic_req") && (!"lyric_req") &&
165 ("stem_req" || "beam_req") \mel1 }
166 % syntax needs change. Clash with () slur?
168 \mel2 = \music { c c g g a a g2 }
170 \combined = \merge { \m1, \mel2 }
172 This means m1 contains the scripts, of \mel, \m2 only the meter
173 command surrounded by (essentially) some skips, and \m3 the notes
174 without scripts or meters. This could be a solution to the "command in
175 music vs. command with skip".
177 Combined with merging of requests, this would be a powerful tool. In
178 this example \combined is a combination of melody mel2 and the accents
181 This idea is for advanced users, but it would come in handy in urtext
184 include "mozart-horn.ly"
186 \m1 = \merge { \urmozart + \dennisbrain_interpretation }
187 \m2 = \merge { \urmozart + \barrytuckwell_interpretation }
190 =head2 Proposed operators:
194 || && ! filter syntax
201 \oboe = \music { ........................ }
203 \oboefragment = \extract { \from 5*2 \to 6*2 \music { \oboe } }