File: MoveRest.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 (22 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;;;MoveRest
(let ((tag "MoveRest"))
(if (d-Directive-chord? tag)
    (begin
        (d-DirectiveDelete-chord tag)
        (d-StagedDelete)))
(if (Rest?)
  (let* ((duration (string->number (d-GetNoteDuration)))(which (duration::lilypond->denemo duration )))
    (d-AddNoteToChord)
    (if (> duration 4)
        (begin
            (d-DirectivePut-standalone-minpixels "BeamingDisplayFix" 10)
            (d-MoveCursorRight)
            (d-DirectivePut-standalone-minpixels  "BeamingDisplayFix" 10)
            (d-MoveCursorLeft)
            (d-MoveCursorLeft)
            (d-RefreshDisplay)))
    (d-DirectivePut-chord-postfix tag "\\rest")
    (d-DirectivePrioritizeTag-chord tag)
    (d-DirectivePut-chord-graphic  tag (vector-ref Rests which))
    (d-DirectivePut-chord-override tag (logior DENEMO_OVERRIDE_VOLUME DENEMO_OVERRIDE_GRAPHIC DENEMO_ALT_OVERRIDE))))
(d-SetSaved #f))