I have two problems with the doc-snippet
http://www.lilypond.org/doc/v2.17/Documentation/snippets/rhythms#rhythms-making-an-object-invisible-with-the-_0027transparent-property

a)
I'm not sure if this snippet is adequate at all:
I think writing cross-voice curves by setting the 'transparent property isn't a good way because (as is mentioned in the snippet!) the blanked objects _do_ take part in collisions etc. With ties this will especially lead to problems with the flags that often collide with ties -> the tie will try to avoid a flag that isn't there at all.
IMO this should be done by setting 'stencil =  ##f
So one should have either a different example for 'transparent or rewrite this example with 'stencil and label it accordingly.

b)
Independent of the opinion on a) the example has the flags still showing.
So the least to be done is to update the example to blank the flags too.
Which is done by attached patch.

b')
The example for creating cross-voice curves should be somewhat expanded because newbie usually take the examples literally. In the case of the example it was the flag that was still present. But in a real application one has to blank/remove _all_ elements of the hidden voice: NoteHead, Stem, Flag, Beam, Dot.
So the example should be rewritten (taking the decision on a) into account.
If we find an agreement on a) I can do that and provide a patch

Urs
>From 3796663f4a6af4f5d7ea3022592c3ec8e72716b1 Mon Sep 17 00:00:00 2001
From: Urs Liska <g...@ursliska.de>
Date: Mon, 29 Apr 2013 15:18:28 +0200
Subject: [PATCH] doc-snippet: Fix 'transparent snippet

When creating cross-voice ties as in the snippet
one has to also make the flag transparent (in this example).
---
 ...ject-invisible-with-the-transparent-property.ly |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly b/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly
index bfe2e1c..d168335 100644
--- a/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly
+++ b/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly
@@ -13,7 +13,7 @@ part in collisions, and slurs, ties and beams can be attached to it.
 This snippet demonstrates how to connect different voices using ties.
 Normally, ties only connect two notes in the same voice.  By
 introducing a tie in a different voice, and blanking the first up-stem
-in that voice, the tie appears to cross voices.
+and flag in that voice, the tie appears to cross voices.
 
 "
   doctitle = "Making an object invisible with the 'transparent property"
@@ -24,9 +24,11 @@ in that voice, the tie appears to cross voices.
   <<
     {
       \once \override Stem.transparent = ##t
+      \once \override Flag.transparent = ##t
       \once \override Stem.length = #8
       b8 ~ b\noBeam
       \once \override Stem.transparent = ##t
+      \once \override Flag.transparent = ##t
       \once \override Stem.length = #8
       g8 ~ g\noBeam
     }
-- 
1.7.9.5

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to