[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integrating Midi into Emacs
Re: Integrating Midi into Emacs
Sat, 03 Jan 2015 10:27:55 +0100
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
Christopher Allan Webber <address@hidden> writes:
> David Kastrup writes:
>> One advantage of tieing Midi input in at a basic level might also be
>> that one can use it to convey modifiers like Hyper and Super that avid
>> Emacs typists might want to enter using foot pedals. The number of USB
>> computer keyboards providing for Emacs-friendly foot pedals is
>> minuscule. Midi-capable footpedals, however, are not exactly a dime a
>> dozen but they are quite ubiquitous.
>> So being able to exploit Midi signals with a timing accuracy making it
>> possible to match them to computer keyboard input would make it much
>> easier to acquire workable modifier pedals even for regular non-musician
> This is an interesting idea. I use foot pedals myself for coding to
> mitigate my RSI. It's hard to recommend to people though since the ones
> I have from Kinesis are a little pricey (but not as pricey as having RSI
> BTW, I've been meaning to document if for some time but haven't, but if
> anyone here is using foot pedals for typing, I highly recommend turning
> the foot pedals *backwards* so you press it with your heel, and prop
> books up in front of the pedals... this means that pressing ctrl & alt
> requires only small movements. I found that pressing ctrl and alt with
> my foot forward-facing was irritating my foot very quickly.
The basic "sustain pedal" contains just a switch (typically, you can
select whether it's on or off when pushing the pedal down, and a number
of keyboards don't actually care but just consider the polarity
encountered on power-on as off) on a 6.3mm jack. So that does not yet
give you a Midi signal unless you have some keyboard and/or
"midification kit" connected.
But a number of organ pedalboards produce Midi as their main output, and
there are programmable footswitch controllers as well. However, the
programmable footswitch controllers are more intended for changing
registers and keys and patterns, so they are intended more for
occasional kick action rather than continuous use.
So you are likely better off with the mechanics of organ pedalboards
(though you'll not need most of the keys) or sustain pedals.
On the reverse route, it might be interesting to use something akin to
Emacs keyboard methods to produce Midi: if you take a look at a
chromatic button keyboard (say,
<URL:http://buttonbox.com/images/acu0035-01b.jpg>, the side with the big
buttons) you'll find that the chromatic button keyboard (anything after
the third button row is redundant and most players will get along fine
without it) is remarkably similar to a computer keyboard. There are
"virtual Midi" keyboards available but they are based on piano keyboards
(and thus make worse use of the computer keyboard) and most particularly
they run in another window.
When one switches back and forth between Midi input in Emacs and normal
input _and_ one wants to use the computer keyboard for music entry
rather than a separate keyboard, having to mess with input focus,
windows etc etc is going to be a nuisance. An input method just
producing Midi would be preferable.
How-e-ver: to actually get key press and key release events, one would
have to work with a more raw form of X11 keyboard events than what is
usually fed into Emacs input methods.
At any rate, there is quite a bit of potential for integrating Emacs
better into a musician's workflow.