been lurking for a while, but following this with interest.

A cautionary note here - how _would_ your parser behave on discovering it was asked to parse
one of these 'illegal' constructs? I've been very busy lately loosening up Skink's parser based
on discovering that there is a significant number of existing tune files (with hundreds of tunes) that
have things like:


{a}(Gab)

gracenote outside a slur - (oh, but I thought a gracenote was a decoration and so should be
applied to the directly following note...)


a > :: b

broken rhythm across a barline or repeat (oh, but I thought a broken rhythm couldn't have
intervening barlines...)


a > (bdc)

broken rhythm outside a slur. (oh, but... you get the idea...)

Doesn't really matter if _I_ think the abc standard doesn't allow that, people have done
it and have invested time and effort in notating tunes that way.


A software package that uses a palette of notes or menu selections to create tunes
can be specific about the output format that it uses to export abc, whereas a
package that expects people to use a text editor to write tunes will have to be
looser about its expectations. The important thing is to have deterministic
behaviour, and to at least _allow_ the creation of music that 'follows the rules'


FWIW, Skink's parser is written in javacc, and has evolved over 4 years or so,
as I have learned more about how to write parsers - still needs loads of work.



wil

Kevin Lawton wrote:

Jack Campin <[EMAIL PROTECTED]> wrote:
|||| That's a standard rule of music. You can't put black and white
|||| notes
|||| on the same stem for instance.
||| Actually, this isn't a rule at all.   Music  printers  routinely
||| put
||| white and black note heads on the same stem.
|| I quote Gardner Read "Music Notation" page 69 "Intervals (involving
|| two note heads) or chords (three or more note heads) may use a single
|| stem to join all the notes as a unit provided they are of equal
|| value".
|
| 18th century music printers and 20th century editors of guitar music
| followed no such rule.

Just because some people don't follow a rule correctly doesn't mean that it
doesn't apply.
Whether that rule be in the rudiments of music or in the English language, a
rule is a rule and still should be applied.
Judging by the quality of some printed music, not all music publishers
follow the rules correctly. The result, of course, is confusion.
It is perfectly correct to write any number of notes on a stave, at any
intervals, which begin at the same time and have the same duration to share
the same stem. If a music software program fails in this respect, then that
is a deficiency in the music software and not in the rules of music.

|| Just how would you indicate a crotchet (quarter) note starting at the
|| same time as a quaver (8th) on the same stem?
|
| Usually you don't.  That wasn't what the original suggestion was.
| With
| minims and quavers there's no ambiguity.

The easiest and most common way to represent this, though not the only way,
while keeping within the rules is to show the interval or chord as a quaver
with the crotchet represented by a 'hanging' note - ie: by using a second
quaver for that note tied to the first, so that the note involved is written
as two tied quavers but is played and sounds as a crotchet. This can often
be seen in music written for instruments which are normally played
polyphonically - Piano, Organ, Harpsichord, Guitar or Lute.
Kevin.
  <snip>


To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html



To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to