Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Paul Barton-Davis <pbd@Op.Net>
To: linux-sound@vger.kernel.org
Subject: Re: [alsa-devel] Re: midi controllers + laptop
Date: Mon, 01 May 2000 00:46:14 +0000	[thread overview]
Message-ID: <marc-linux-sound-95714240903878@msgid-missing> (raw)

>ALSA folks, would it be possible to redirect the ALSA sequencer
>output to a serial MIDI device ? If yes what are the right
>steps to do this ?

best way: write a kernel module that sets itself up as a client of the
sequencer. The module is simple: it just forwards the data (post
transformation from sequencer events to actual MIDI) on to the real
serial driver for the serial MIDI interface. Its not obvious how to do
this at first sight, but I recall find examples of other "pseudo
drivers" in the kernel that do such forwarding.

easiest way: write a user-space app that registers as a client of the
sequencer and forwards all data (post-transformation from sequencer
events to actual MIDI) to an open file descriptor that results from
opening the serial MIDI device.

'nuff said ?

--p

             reply	other threads:[~2000-05-01  0:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-01  0:46 Paul Barton-Davis [this message]
2000-05-01  0:48 ` [alsa-devel] Re: midi controllers + laptop Paul Barton-Davis

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=marc-linux-sound-95714240903878@msgid-missing \
    --to=pbd@op.net \
    --cc=linux-sound@vger.kernel.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox