File: ToggleNoteUpTie.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 (17 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;;ToggleNoteUpTie
(let ((tag "Tie"))
    (if (Chord?)
        (begin
            (if (d-Directive-note? tag)
                (d-DirectiveDelete-note tag)
                (begin
					(if (d-IsTied) (d-ToggleTie))
                    (d-DirectivePut-note-postfix tag "^~ ")
                    (d-Chordize)
                    ;;for some reason we do not have ⏝ in the font
                    (d-DirectivePut-note-graphic tag "\n~up
                    Denemo
                    30")))
            (d-RefreshDisplay)
            (d-SetSaved #f))
        (d-WarningDialog (_ "Individual Ties only apply to notes within chords.. Do not put a tie on the chord as well."))))