[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    non-markup stencils
From:       Sean Reed <sr () seanreed ! de>
Date:       2005-04-30 13:05:27
Message-ID: c4a658a1abf49ee95fd0be3ea82433f8 () seanreed ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


thanks again han-wen, mats, donald axel, jonatan, and fairchild for the 
help with the bartok pizz. it opened my eyes a bit to the flexibility 
of self-programmed extensions, specifically for extended performance 
techniques.

i am now attempting to put a little cross on the stems of notes for 
passages or pitches which are to be performed battuto (strings) or with 
"slap" articulations for winds.

i attempted to modify your examples with the attached patch (see 
below), but the crosses always remain at a static x-y coordinate. i 
assume this is because i defined it as a markup command. is there a way 
to define a stencil (forgive me if it's incorrect terminology) that 
would place a cross in the note's corresponding stem while 
automatically modifying the y-coordinate so as to position it in the 
middle of that given stem (see attached example)?

thanks for your help.

best,
sean

--------------------------------------------
Sean Reed
Hamburg, Germany
Web: www.seanreed.de


*********************
\version "2.5.20"

#(def-markup-command (battuto layout props) ()
   (interpret-markup layout props
     (markup #:stencil
       (ly:stencil-translate-axis
         (ly:stencil-add
           (ly:make-stencil
	    (list 'draw-line 0.1 0.0 -4.0 1.0 -3.0)
             '(-0.2 . 0.2) '(0.2 . 2)
           )
	  (ly:make-stencil
	    (list 'draw-line 0.1 0.0 -3.0 1.0 -4.0)
	    '(-0.2 . 0.2) '(0.2 . 2)
	  )
         )
         0.7 X
       )
     )
   )
)

battuto = ^\markup \battuto

STUFF = {
	\relative c' {
		c4\battuto d\battuto e\battuto f\battuto
	}%end relative
}%end STUFF
						


\score{
	\STUFF
}%end score
**********************



thanks again han-wen, mats, donald axel, jonatan, and fairchild for
the help with the bartok pizz. it opened my eyes a bit to the
flexibility of self-programmed extensions, specifically for extended
performance techniques.


i am now attempting to put a little cross on the stems of notes for
passages or pitches which are to be performed battuto (strings) or
with "slap" articulations for winds.


i attempted to modify your examples with the attached patch (see
below), but the crosses always remain at a static x-y coordinate. i
assume this is because i defined it as a markup command. is there a
way to define a stencil (forgive me if it's incorrect terminology)
that would place a cross in the note's corresponding stem while
automatically modifying the y-coordinate so as to position it in the
middle of that given stem (see attached example)?


thanks for your help.


best,

sean


--------------------------------------------

Sean Reed

Hamburg, Germany

Web: www.seanreed.de


<fontfamily><param>Helvetica</param>

*********************

\version "2.5.20"


#(def-markup-command (battuto layout props) ()

  (interpret-markup layout props

    (markup #:stencil

      (ly:stencil-translate-axis

        (ly:stencil-add                     

          (ly:make-stencil

	    (list 'draw-line 0.1 0.0 -4.0 1.0 -3.0)

            '(-0.2 . 0.2) '(0.2 . 2)

          )

	  (ly:make-stencil

	    (list 'draw-line 0.1 0.0 -3.0 1.0 -4.0)

	    '(-0.2 . 0.2) '(0.2 . 2)

	  )

        )

        0.7 X

      )

    )

  )

)


battuto = ^\markup \battuto


STUFF = {

	\relative c' {

		c4\battuto d\battuto e\battuto f\battuto 

	}%end relative

}%end STUFF

						



\score{

	\STUFF

}%end score</fontfamily>

**********************



["battutoCrossJ.jpg" (image/jpeg)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic