File: InsertTwoGraceNotesBeamed.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,223 bytes parent folder | download | duplicates (4)
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
;;;;;;;;;;;TwoGraceInsert with beaming into the score
 ;(Help::Push (cons 'doublestroketemp (_ "Press a duration key to get two, beamed, grace notes")))
(Help::Push (cons 'doublestroketemp
(string-append " <span font_desc=\"22\" foreground=\"blue\">"  (_ "Press a duration key to get two, beamed, grace notes")  "</span>")))
(let ()
(define command #f)
(define duration (d-GetCommand))
(cond
 ((equal? duration "d-0") (set! command d-0))
 ((equal? duration "d-1") (set! command d-1))
 ((equal? duration "d-2") (set! command d-2))
 ((equal? duration "d-3") (set! command d-3))
 ((equal? duration "d-4") (set! command d-4))
 ((equal? duration "d-5") (set! command d-5))
 ((equal? duration "d-6") (set! command d-6))
 ((equal? duration "d-7") (set! command d-7)))

(if command
   	(let ((middle(not (Appending?))))
		(command)
		(if middle
			(d-MoveCursorLeft))
		(d-ToggleGrace)
		(d-StartBeam)
		(if middle
			(d-MoveCursorRight))
		(command)
		(if middle
			(d-MoveCursorLeft))
		(d-ToggleGrace)
		(d-EndBeam)
		(Help::Pop))
  	(begin (Help::Pop) (Help::TimedNotice (_ "To use this function correctly you need to give a duration.\nThis will insert two grace notes, beamed together if needed, with the given duration")))))