all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: emacs-devel@gnu.org
Subject: Re: Integrating Midi into Emacs
Date: Sat, 03 Jan 2015 10:27:55 +0100	[thread overview]
Message-ID: <87bnmgtdr8.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <877fx43mui.fsf@earlgrey.lan> (Christopher Allan Webber's message of "Fri, 02 Jan 2015 15:11:57 -0600")

Christopher Allan Webber <cwebber@dustycloud.org> 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
>> uses.
>>
>> Thoughts?
>
> 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
> issues).
>
> 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.

-- 
David Kastrup



  reply	other threads:[~2015-01-03  9:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-02 11:28 Integrating Midi into Emacs David Kastrup
2015-01-02 13:24 ` davi
2015-01-02 21:11 ` Christopher Allan Webber
2015-01-03  9:27   ` David Kastrup [this message]
2015-01-09 21:21 ` joakim
2015-01-09 21:59   ` David Kastrup
2015-01-10  8:32     ` joakim
2015-01-14  9:42       ` Niels Giesen
2015-01-14 10:49         ` David Kastrup
2015-01-14 11:20           ` David Kastrup
2015-01-09 22:06   ` David Kastrup
2015-01-10  8:28     ` joakim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnmgtdr8.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=cwebber@dustycloud.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.