~ubuntu-branches/ubuntu/oneiric/denemo/oneiric

« back to all changes in this revision

Viewing changes to actions/menus/MainMenu/EditMenu/Shift/ShiftDown

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-10-27 08:00:18 UTC
  • mfrom: (1.3.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20101027080018-tuekd0869v8ptnqv
Tags: upstream-0.8.16
ImportĀ upstreamĀ versionĀ 0.8.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Denemo>
 
3
  <merge>
 
4
    <title>A Denemo Keymap</title>
 
5
    <author>AT, JRR, RTS</author>
 
6
    <map>
 
7
      <row>
 
8
        <after>ShiftUp</after>
 
9
        <action>ShiftDown</action>
 
10
        <scheme>(define (ShiftUp)
 
11
 
 
12
 (define newList (string-tokenize(d-GetNotes)) )
 
13
 
 
14
 (let transformChordList ((i 0))
 
15
  (if (&lt;= i (-(length newList )1)) 
 
16
      (begin
 
17
        (set! newList (replace-nth newList i (hashq-ref DiatonicDownwardHashtable (string-&gt;symbol (list-ref newList i)))))
 
18
        (transformChordList (+ i 1)))
 
19
))
 
20
 
 
21
 
 
22
(if (d-GetNotes)
 
23
        (d-ChangeChordNotes (string-join newList))
 
24
        #f
 
25
))
 
26
 
 
27
(SingleAndSelectionSwitcher "(ShiftUp)" "(ShiftUp)")
 
28
(d-RefreshDisplay)</scheme>
 
29
        <label>Shift Down</label>
 
30
        <tooltip>Shifts the selected Notes and Chords down a diatonic step</tooltip>
 
31
      </row>
 
32
    </map>
 
33
  </merge>
 
34
</Denemo>