From: Brolin Empey <f7@dccnet.com>
To: alsa-devel@lists.sourceforge.net
Subject: example of sending note on/off to MIDI port (Timidity's virtual sequencer)
Date: Thu, 20 Oct 2005 14:05:16 -0700 [thread overview]
Message-ID: <4358068C.3050405@dccnet.com> (raw)
Hello,
I want to add ALSA support to a MIDI program I wrote (in C) which
currently supports only the Win32 API (using midiOutShortMsg). More
specifically, I want to do this using Timidity's virtual sequencer for
playback of the output MIDI messages. I can use playmidi (which uses
the OSS API) or pmidi (which uses ALSA's API) to play MIDI files using
Timidity's port (128:0). After studying both of these application's
sources, I tried without success to put together a minimal test program
to simply send a note on and subsequent note off message using
Timidity's port.
Does anyone have a simple example of how to do this? It can use either
the OSS API (e.g. /dev/sequencer interface) or ALSA's library. I tried
the rawmidi example, but could not get it to play anything using
Timidity's port.
Thanks,
Brolin
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
next reply other threads:[~2005-10-20 21:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-20 21:05 Brolin Empey [this message]
2005-10-20 23:17 ` example of sending note on/off to MIDI port (Timidity's virtual sequencer) Lee Revell
2005-10-21 3:19 ` Brolin Empey
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=4358068C.3050405@dccnet.com \
--to=f7@dccnet.com \
--cc=alsa-devel@lists.sourceforge.net \
/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 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.