[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom keymap

From: Richard Shann
Subject: Re: custom keymap
Date: Thu, 03 Sep 2020 09:43:29 +0100

On Wed, 2020-09-02 at 19:31 -0400, aaron mehl wrote:
> On Sep 1 2020, at 10:32 am, Richard Shann
> > I would like c2 to be lower case c, c3 upper case C, and c1 be cc.
> > for example.
> > When I tried out the keycombo for capital A
> I think you may mean holding down the Shift key while pressing and
> releasing the A key while the CapsLock is off. In the default keymap
> that is the first keypress of a two keypress shortcut. Possible
> continuations are listed on the status bar bottom right.
> Hi again,
> I thought I could record a script that would let me hardwire a
> keycombo for one note but for three different octaves,

As I mentioned before, you have to make a precise statement of what you
want a command to do. In this case you haven't specified which three
different octaves you want.
Having said that, there are commands to determine which is the
prevailing clef so in principle you could write a script that would
output different notes depending on the prevailing clef, for example(*)
this script:

(define (InsertPitch pitch)
        (eval-string (string-append "(d-" (number->string 
(d-GetPrevailingDuration)) ")"))
        (d-CursorToNote pitch)
(if (equal? "Treble" (d-GetPrevailingClef))
        (InsertPitch "f'")
        (InsertPitch "f,"))

would make a command which when invoked inserted f' if the prevailing
clef was treble or f, otherwise. (It assumes that you are not using the
Rhythm Entry for MIDI in option).
So you could make a series of such commands for each note name and give
them your shortcuts.

(*) There may be neater ways to do this ...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]