-1.5.14.jcn2
+1.5.14.jcn3
===========
+* Some website related fixes (thanks Tiggr).
+
* Ugly hack in add-html-footer for disabling tutorial and refman links
in sidebar.
MAJOR_VERSION=1
MINOR_VERSION=5
PATCH_LEVEL=14
-MY_PATCH_LEVEL=jcn2
+MY_PATCH_LEVEL=jcn3
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
if file_exist_b(filename):
l.write ('<li><a href="%s">%s</a>' % (filename, desc))
size=os.stat(filename)[stat.ST_SIZE]
- l.write (' (%s %dk)' % (type, (size + 512) / 1024))
+ kB=(size + 512) / 1024
+ if kB:
+ l.write (' (%s %dkB)' % (type, kB))
+ else:
+ l.write (' (%s %dcharacters)' % (type, size))
pictures = ['jpeg', 'png', 'xpm']
l.write ('\n')
--- /dev/null
+\header {
+
+texidoc= "Using make-music, you can add various stuff to notes. Here
+is an example how to add staccato dots."
+
+}
+
+#(define (make-script x)
+ (let ((m (ly-make-music "Articulation_req")))
+ ;;(ly-set-mus-property m 'articulation-type 'staccato)
+ ;; urg
+ (ly-set-mus-property m 'articulation-type x)
+ (ly-set-mus-property m 'script x)
+ m))
+
+#(define (add-script m x)
+ (if (equal? (ly-music-name m) "Request_chord")
+ (ly-set-mus-property m 'elements
+ (cons (make-script x)
+ (ly-get-mus-property m 'elements)))
+
+ (let ((es (ly-get-mus-property m 'elements))
+ (e (ly-get-mus-property m 'element)) )
+ (map (lambda (y) (add-script y x)) es)
+ (if (music? e)
+ (add-script e x))))
+ m)
+
+#(define (add-staccato m)
+ (add-script m "staccato"))
+
+\score {
+ \notes\relative c'' {
+ a b \apply #add-staccato { c c }
+ a b \apply #add-staccato { c c }
+ }
+}
+
create, then write a function that will build the structure for you."
}
-#(define (make-script x)
- (let* ( (m (ly-make-music "Text_script_req"))
- )
-
+#(define (make-text-script x)
+ (let ((m (ly-make-music "Text_script_req")))
(ly-set-mus-property m 'text-type 'finger)
(ly-set-mus-property m 'text x)
- m
- ))
+ m))
-#(define (add-script m x)
- (if (equal? (ly-music-name m) "Request_chord")
- (ly-set-mus-property m 'elements
- (cons (make-script x) (ly-get-mus-property m 'elements)))
-
- (let* ( (es (ly-get-mus-property m 'elements))
- (e (ly-get-mus-property m 'element)) )
- (map (lambda (y) (add-script y x)) es)
- (if (music? e)
- (add-script e x))
- )
- )
- m
-)
+#(define (add-text-script m x)
+ (if (equal? (ly-music-name m) "Request_chord")
+ (ly-set-mus-property m 'elements
+ (cons (make-text-script x)
+ (ly-get-mus-property m 'elements)))
+
+ (let ((es (ly-get-mus-property m 'elements))
+ (e (ly-get-mus-property m 'element)) )
+ (map (lambda (y) (add-text-script y x)) es)
+ (if (music? e)
+ (add-text-script e x))))
+ m)
-\score { \apply #(lambda (x) (add-script x "6") (display x) x ) \notes { c4-3 } }
+\score {
+ \apply #(lambda (x) (add-script x "6") (display x) x ) \notes { c4-3 }
+}
>
\paper {
- textheight = 295.\mm
- \translator{ \OrchestralScoreContext }
\translator{
\VoiceContext
Slur \override #'attachment = #'(stem . stem)