Does it still work to attach scripts to the notes then?
I suspected that you'd have to keep the Note_heads_engraver
but set the NoteHead property #'transparent = ##t
I haven't tried, though. It may be that Rune's answer also
solves the original question.

   /Mats

Rune Zedeler wrote:
Erik Sandberg wrote:


Is there a way of mass converting all the notes of a voice (or staff) to
skips? I.e. a way to make

fis4_\p g8 g8_\f e16\_mf
work like
s4_\p s8 s8_\f s16\_mf
(I want to copy the scripts of one staff into all the other staves, so I just
want to extract those scripts from the staff, which this would achieve).

This can be achieved by creating a special thread context where you
remoce the notehead-engraver:

mela = \notes \relative c' { a-. c e-> a\fermata }
melb = \notes \relative c' { c g'2 c'4 }
\score {
  <
      \context Voice=va \mela
      \context Voice=vb <
	  \melb
	  \context NoHeadThread \mela
      >
  >
  \paper {
      \translator {
	  \VoiceContext
	  \accepts NoHeadThread
      }
      \translator {
	  \ThreadContext
	  \name NoHeadThread
	  \alias Thread
	  \remove Note_heads_engraver
      }
  }
}



-Rune


_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
	Mats Bengtsson
	Signal Processing
	Signals, Sensors and Systems
	Royal Institute of Technology
	SE-100 44  STOCKHOLM
	Sweden
	Phone: (+46) 8 790 8463				
        Fax:   (+46) 8 790 7260
	Email: [EMAIL PROTECTED]
	WWW: http://www.s3.kth.se/~matsb
=============================================



_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

Reply via email to