alsa MIDI

Jan Alexander Steffens jan.steffens at gmail.com
Wed Jul 16 11:52:42 PDT 2014


On Wed, Jul 16, 2014 at 11:08 AM, Hungerburg <pch13 at myzel.net> wrote:
> Gstreamer has some support for midi, although only turning into audio, as
> fas as I found. I'd rather capture and playback midi events from and to midi
> devices. Maybe someone on the list knows of such a module?
>
> 1) capture midi events from alsa midi port, probably mux into an AVI
> container or write as a midi file
>
> 2) playback that stream of events to an alsa midi port
>
> I now capture and play video with gstreamer and midi with arecordmidi and
> aplaymidi started from the shell with deliberate delays but imagine a pure
> gstreamer solution might provide better sync.

I think you would have to write them yourself. An alsamidisrc as a
live source of midi events, probably based on GstPushSrc and
outputting an audio/x-midi-event stream which is just a stream of
individual midi events, each in a buffer; and an alsamidisink,
probably based on GstBaseSink.

avimux (and avidemux) would need to be extended to support whatever
the standard way to contain midi streams is.

You would also need to write an inverse of midiparse (or extend
midiparse) to handle the transformation from audio/x-midi-event to
audio/midi or audio/riff-midi.


More information about the gstreamer-devel mailing list