![]() |
![]() |
![]() |
GStreamer Bad Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
"high-quality" gboolean : Read / Write / Construct "linear-volume" gboolean : Read / Write / Construct
This element renders midi-files as audio streams using Wildmidi. It offers better sound quality compared to the timidity element. Wildmidi uses the same sound-patches as timidity (it tries the path in $WILDMIDI_CFG, $HOME/.wildmidirc and /etc/wildmidi.cfg)
gst-launch filesrc location=song.mid ! wildmidi ! alsasinkThis example pipeline will parse the midi and render to raw audio which is played via alsa.
plugin |
wildmidi |
author |
Wouter Paesen <wouter@blue-gate.be> |
class |
Codec/Decoder/Audio |
name |
sink |
direction |
sink |
presence |
always |
details |
audio/midi |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-raw-int, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true |
typedef struct { GstElement element; GstPad *sinkpad, *srcpad; gboolean initialized; /* input stream properties */ gint64 mididata_size, mididata_offset; gchar *mididata; gboolean mididata_filled; midi *song; /* output data */ gboolean o_new_segment, o_segment_changed, o_seek; GstSegment o_segment[1]; gint64 o_len; /* format of the stream */ gint64 bytes_per_frame; GstClockTime time_per_frame; /* options */ gboolean accurate_seek; /* wildmidi settings */ gboolean high_quality; gboolean linear_volume; GstCaps *out_caps; } GstWildmidi;