<?xml version="1.0"?>
<Denemo>
  <merge>
    <title>A Denemo Keymap</title>
    <author>AT, JRR, RTS</author>
    <map>
      <row>
        <after>RepeatEndStart</after>
        <action>OpenRepeat</action>
        <scheme>;;;OpenRepeat
(let ((current #f))
  (set! current (d-DirectiveGet-standalone-postfix "Repeat"))
  (if (boolean? current)
      (begin 
	(d-DirectivePut-standalone-minpixels "Repeat" 30)
	(d-CursorLeft)
	(d-DirectivePut-standalone-postfix "Repeat" " \\repeat volta 2 {
"))
      (begin ;;; there is already a Repeat tag here, must be a close
	(d-DirectivePut-standalone-postfix "Repeat" "}} \\repeat volta 2 {")))
(d-DirectivePut-standalone-display "Repeat" "Repeat")
(d-CursorRight)
(d-RefreshDisplay))
</scheme>
        <label>Open Repeat Section</label>
        <tooltip>Marks the point where a repeat will start. A correspond close, or first and second time bars are needed.</tooltip>
      </row>
    </map>
  </merge>
</Denemo>
