denemo-devel
[Top][All Lists]
Advanced

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

[Denemo-devel] A new Scheme procedure: d-GetCommand


From: Richard Shann
Subject: [Denemo-devel] A new Scheme procedure: d-GetCommand
Date: Fri, 26 Sep 2008 19:08:59 +0100

I've added a new procedure for Scheme script use: d-GetCommand gets a
command from the user via a keypress. It means that scripts do not have
to know the user's keybindings to be able to communicate.
To illustrate its use:
I've checked in a tied-note script. Unlike the built-in tied note which
always inserts a note of the same duration as the one being tied to this
one expects a duration-key to follow giving the duration of the tied
note to be inserted.
The old tied note was fine for Classic Mode, but this one avoids
difficulties if you are trying to enter a tied note in Insert mode.

The Educational script (name the note) could usefully use this function
instead of d-GetChar. It would essentially internationalize it (assuming
other language users choose keys other than A - G for the note names).

All checked in to git.

Richard






reply via email to

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