Linux Sound subsystem development
 help / color / mirror / Atom feed
From: David Olofson <audiality@swipnet.se>
To: linux-sound@vger.kernel.org
Subject: Re: MIDI programming
Date: Sat, 15 Jan 2000 02:38:13 +0000	[thread overview]
Message-ID: <marc-linux-sound-94797738622702@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-94791780628504@msgid-missing>

On Sat, 15 Jan 2000, Тарас П.
        Гальченко wrote:
> Hi,
> 	Can anyone give me a hint at writing a simple
> program to read MIDI keyboard input? I don't want to parse
> this input, just to test the presence of the keyboard under
> Linux.

Well, all you do is

  fh = open("/dev/midi00", O_RDONLY);  // (Port 00 hardcoded)

and then you read() as from any character dev. close(fh) when done.


//David


.- M u C o S -------------------. .- A u d i a l i t y ----------------.
| A Free/Open Multimedia        | | Rock Solid, Hard Real Time,        |
| Plugin & Integration Standard | | Low Latency Signal Processing      |
`------> www.linuxdj.com/mucos -' `--> www.angelfire.com/or/audiality -'
.- D a v i d   O l o f s o n ------------------------------------------.
| Audio Hacker, Linux Advocate, Open Source Advocate, Singer/Composer  |
`----------------------------------------------> audiality@swipnet.se -'

  reply	other threads:[~2000-01-15  2:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-14 23:22 MIDI programming 
2000-01-15  2:38 ` David Olofson [this message]
2000-01-15  7:17 ` est
2000-01-16 16:27 ` 

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-94797738622702@msgid-missing \
    --to=audiality@swipnet.se \
    --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