From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brolin Empey Subject: example of sending note on/off to MIDI port (Timidity's virtual sequencer) Date: Thu, 20 Oct 2005 14:05:16 -0700 Message-ID: <4358068C.3050405@dccnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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