[tablatures] Fwd: Proposal for resolving Half/Quarter note ambiguity on pure tablature staves (with partial code mod) |
[ Thread Index |
Date Index
| More lilynet.net/tablatures Archives
]
- To: tablatures@xxxxxxxxxxx
- Subject: [tablatures] Fwd: Proposal for resolving Half/Quarter note ambiguity on pure tablature staves (with partial code mod)
- From: Valentin Villenave <v.villenave@xxxxxxxxx>
- Date: Tue, 4 Aug 2009 12:29:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=S72OxZmsxT3ik5VrRqbp/r7AqbzxtqsmbKKVH36U4n4=; b=hlMP1KNSGhErdxGZ/oakSoWSRhG5t4wSBFqLsKcyK/+B0I5/taaATYmDfdArYYWIA+ /qu4nUN1zRWFCLBcCj+DuWSWx7aD6lcL/CdA5I4sLeQi04sn5q1ZYqmWG6p3o1REBDEu 7OPCgaYdrnDSFDAuE60pZ6LEJRnd2ZuWIhQbw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CNSxh5Ojch/MlpopIQyTZR6chgIfC8mUYuna2HKYf4ohon2buGcRP5LDz8x5siDxop QhAm9P5MfbCDsGxvU7XRC/GCsGBpimq9onVArkrURm5kzdt/EjlEuZv1mSmSXjQCzwYq +xh2kxOhwMdGYj/Ivzy00yFB1Rey0iFOBsbmM=
For archival purposes, I am forwarding to the tablatures list some
previous discussions that may have taken place privately or on the
LilyPond-user mailing list.
- Valentin
Forwarded conversation
Subject: Proposal for resolving Half/Quarter note ambiguity on pure
tablature staves (with partial code mod)
------------------------
From: Ricdude <ricdude@xxxxxxxxxxxxxx>
Date: 2009/2/21
To: bug-lilypond@xxxxxxx
Quick intro: Mediocre guitarist/composer, Lilypond newbie,
Professional programmer.
I've got lilypond 2.10.33 (cygwin version), and, as some others have
noted, there is no way to resolve whether a straight stem on a
tablature staff refers to a half note, or a quarter note.
I've seen this ambiguity handled in some tablatures by adding a short
straight line perpendicular to the end of the stem for half notes.
The result looks kind of like the letter L (sans-serif, and inverted
for upstems), about as wide as an eighth note flag. Quarter notes
retain their "normal" straight staves in this notation system.
I'd like to see this notation implemented (at least as an option) in
lilypond. It looks like the code to tweak is in the lily/stem.cc file,
Stem::flag method, starting around line 603 in the 2.10.33 source.
Instead of:
if (log < 3
|| unsmob_grob (me->get_object ("beam")))
return Stencil ();
perhaps something like:
if ( STAFF_IS_NOT_TABLATURE_TBD ) {
// non-tab staves, only eighths and shorter have flags.
if (log < 3
|| unsmob_grob (me->get_object ("beam")))
return Stencil ();
} else {
// staff is tablature, allow half-notes to have a flag
if ( (log < 3 && log != 1)
|| unsmob_grob (me->get_object ("beam")))
return Stencil ();
}
where, STAFF_IS_NOT_TABLATURE is, of course, the appropriate check for
a non-tablature staff type.
Beyond that, it looks like the flag handling relies on a
"flags.STYLE+DIR+OFFSET+LOG" definition of some sort, so as long as
the definition for log==1 existed, the remaining logic would handle
everything appropriately.
Does this logic make sense? How would the staff type be checked? And
where would I find the flags.___ definitions to add the half-note
definition? Can someone more familiar with the code let me know if
I'm on the right track here?
And where else to look to implement (or assist in implementing) this?
Long term, I'd like to see all of the "special" guitar notation
techniques (bends, dives, slash heads on tab staffs, etc.) implemented
in some form or another. Some of these unique notation techniques can
be seen here:
http://tabs.guitarworld.com/tabs/gwtabpage/4385/1920/back-in-black
_______________________________________________
bug-lilypond mailing list
bug-lilypond@xxxxxxx
http://lists.gnu.org/mailman/listinfo/bug-lilypond
----------
From: Valentin Villenave <v.villenave@xxxxxxxxx>
Date: 2009/7/16
To: Ricdude <ricdude@xxxxxxxxxxxxxx>
Cc: bug-lilypond@xxxxxxx
2009/2/21 Ricdude <ricdude@xxxxxxxxxxxxxx>:
Greetings, and my apologies for having left this mail unanswered for so long,
I have added your suggestion to our tracker as
http://code.google.com/p/lilypond/issues/detail?id=810
However, technically I should not have done so because you didn't
provide us with an example of such a notation. Can you please send an
image of what you're referring to?
You may also want to install the latest LilyPond version (if you're
using Windows, we do have a native version so using cygwin is not
required -- nor recommended). We recently have implemented new
features that allow to define new stem-flags much more easily.
Once again, we'd need to have small individual examples (png images
are much, much preferred compared to a flash website ;-)
Regards,
Valentin
--
Regards,
Valentin