]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/test/scales-greek.ly: remove.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 31 Jul 2004 21:22:42 +0000 (21:22 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 31 Jul 2004 21:22:42 +0000 (21:22 +0000)
* scm/define-markup-commands.scm (score): remove debugging code.

ChangeLog
input/test/cue-notes.ly [deleted file]
input/test/embedded-postscript.ly
input/test/scales-greek.ly [deleted file]
scm/define-markup-commands.scm
scm/output-ps.scm
scm/output-tex.scm

index f6cef7fa6d46e48e1f46ceadb2691bbf0a10086b..c6f84114510e25f90bd463009b35b817559013c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
 
        * input/test/clef-end-of-line.ly: fold into manual.
 
+       * input/test/scales-greek.ly: remove.
+
        * input/test/chords-without-melody.ly: fold into manual.
 
        * input/test/cadenza-skip.ly: remove.
diff --git a/input/test/cue-notes.ly b/input/test/cue-notes.ly
deleted file mode 100644 (file)
index 28137d3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-\version "2.3.8"
-% TODO: check to see if this example can be simplified using \small
-% or \tiny.
-\header { texidoc = "@cindex Cue Notes
-Cue notes are typeset in a smaller font. "
-%  Cue clefs are usually not restored explicitly. "
-}
-
index f84c92d6e65314d55854bb48f13b7ac714daf232..391799942391e6198768acb3b39ed9397623039c 100644 (file)
@@ -8,16 +8,12 @@ insert postscript directly into the output.
   "
 }
 
-
-%
-%TODO: make print-function to do this. 
-% 
-
 \score {
    \relative c'' {
-    a-"\\embeddedps{3 4 moveto 5 3 rlineto stroke}"
-    -"\\embeddedps{ [ 0 1 ] 0 setdash 3 5 moveto 5 -3 rlineto stroke}"
-    b-"\\embeddedps{3 4 moveto 0 0 1 2 8 4 20 3.5 rcurveto stroke}"
+    a-\markup { \postscript #"3 4 moveto 5 3 rlineto stroke" }
+     -\markup { \postscript #"[ 0 1 ] 0 setdash 3 5 moveto 5 -3 rlineto stroke " }
+    
+    b-\markup { \postscript #"3 4 moveto 0 0 1 2 8 4 20 3.5 rcurveto stroke" }
     s2
     a'1
   }
diff --git a/input/test/scales-greek.ly b/input/test/scales-greek.ly
deleted file mode 100644 (file)
index 2ffa406..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-\version "2.3.8"
-\header {
-  texidoc = "
-
-In addition to major and minor keys, the key can be given also in terms 
-of greek, modal scales: ionian (= major), dorian, phrygian, lydian, mixolydian,
-aeolian (= minor), and locrian. All these scales are in the key of C.
-
-"
-}
-
-\score  {  {
-
-\key c \ionian c'8 -"C ionian, major" d'8 e'8 f'8 g'8 a'8 b'8 c''8
-
-\transpose d c { \key d \dorian d'8 -"C dorian" e'8 f'8 g'8 a'8 b'8 c''8 d''8}
-
-\transpose e c { \key e \phrygian e'8 -"C phrygian" f'8 g'8 a'8 b'8 c''8 d''8 e''8}
-
-\transpose f c { \key f \lydian f'8 -"C lydian" g'8 a'8 b'8 c''8 d''8 e''8 f''8}
-
-\transpose g c  { \key g \mixolydian g'8 -"C mixolydian" a'8 b'8 c''8 d''8 e''8 f''8 g''8}
-
-\transpose a c' { \key a \aeolian a8 -"C aeolian, minor" b8 c'8 d'8 e'8 f'8 g'8 a'8 }
-
-\transpose b c' { \key b \locrian b8 -"C locrian" c'8 d'8 e'8 f'8 g'8 a'8 b'8 }
-
-}
-         
-       \paper { }
-       \midi {}
-}
-
index abcb7e33135eb47c529da350096308b9201a3982..d67ec557e03904d81360e9f7530b31b94f2cbdca 100644 (file)
@@ -35,6 +35,7 @@
   (Text_item::interpret_string paper
                               props sym str))
 
+
 ;; TODO: use font recoding.
 ;;                   (make-line-markup
 ;;                    (map make-word-markup (string-tokenize str)))))
 (define-public empty-markup
   (make-simple-markup ""))
 
+
+(def-markup-command (postscript paper props str)
+  "This inserts @var{str} directly into the output as a PostScript command string."
+  (string?)
+  (ly:make-stencil
+   (list 'embedded-ps str)
+   '(0 . 0) '(0 . 0)  ))
+
 ;;(def-markup-command (fill-line paper props line-width markups)
 ;;  (number? markup-list?)
 ;; no parser tag -- should make number? markuk-list? thingy
index 35d850a3440312d3db16ab222bcd96b1686c8b0e..1615102f6cf5657adca701f7ba07a04753be3430 100644 (file)
@@ -36,6 +36,7 @@
             placebox
             bezier-sandwich
             horizontal-line
+            embedded-ps
             filledbox
             round-filled-box
             text
@@ -80,6 +81,7 @@
                 (escape-parentheses val)
                 ") def\n"))
 
+
 (define (ps-number-def prefix key val)
   (let ((s (if (integer? val)
               (ly:number->string val)
 
 ; todo: merge with tex-font-command?
 
-
+(define (embedded-ps string)
+  string)
 
 (define (dot x y radius)
   (string-append
index 253d97a26f8e905e59237c119a772226ed3190e4..4ea8fbe77d2419d82e7e156251f7bf411cc99cd8 100644 (file)
 (define (dot x y radius)
   (embedded-ps (list 'dot x y radius)))
 
+
+(define (embedded-ps string)
+  (embedded-ps (list 'embedded-ps string)))
+
 (define (white-dot x y radius)
   (embedded-ps (list 'white-dot x y radius)))