File: DisplayMeasureNumber.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 (7 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
(let ()
(define result (d-GetUserInput (_ "Display Measure Number") (_ "Enter the number you wish to display as the bar number for the current bar. Does not affect the typeset score.") "1"))
	(if (and result (string->number result))
		(let ((baroffset (- (string->number result) (d-GetMeasure) )))
			(d-SetMeasureNumberOffset baroffset)
			(d-RefreshDisplay))
		(d-WarningDialog (_ "Cancelled"))))