File: DesignateVoice.scm

package info (click to toggle)
denemo 2.6.49-0.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 66,916 kB
  • sloc: ansic: 94,587; lisp: 38,713; xml: 22,675; python: 1,930; sh: 1,239; makefile: 642; yacc: 288; sed: 93
file content (33 lines) | stat: -rw-r--r-- 1,408 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
;;;DesignateVoice
(let ((choice #f)(label #f)
        (OneVoice (_ "OneVoice:  Default-For a single voice on a staff")) (VoiceOne
(_ "VoiceOne:  Designate as upper voice"))
        (VoiceTwo (_ "VoiceTwo:  Designate as lower voice"))(VoiceThree (_ "VoiceThree: 
Horizontally offset upper voice"))
        (VoiceFour (_ "VoiceFour:  Horizontally offset lower voice")) 
        )
(set! choice (d-GetOption (string-append OneVoice stop VoiceOne stop VoiceTwo
stop VoiceThree stop VoiceFour stop) ) )
(cond
        ( (equal? choice VoiceOne ) (begin (set! choice "voiceOne") (set! label
(_ "Voice1")) ))
        ( (equal? choice VoiceTwo ) (begin (set! choice "voiceTwo") (set! label
(_ "Voice2")) ))
        ( (equal? choice VoiceThree ) (begin (set! choice "voiceThree") (set! label
(_ "Voice3")) ))
        ( (equal? choice VoiceFour ) (begin (set! choice "voiceFour") (set! label
(_ "Voice4")) ))
        ( (equal? choice OneVoice ) (begin (set! choice "oneVoice") (set! label
(_ "1Voice")) ) )
)
(if  choice
        (begin
                (d-DirectivePut-standalone "Voice" )
                (d-DirectivePut-standalone-display "Voice" label )
                (d-DirectivePut-standalone-ty "Voice" 60 )
                (d-DirectivePut-standalone-postfix "Voice" (string-append "\" choice ) )
                (d-DirectivePut-standalone-minpixels "Voice" 10 )
                (d-MoveCursorRight) 
        )
)
)