## timidity timidity — Midi Synthesizer Element |

## Synopsis

                        GstTimidity;

## Description

This element renders midi-files as audio streams using Timidity.

### Example pipeline

    1
    gst-launch filesrc location=song.mid ! timidity ! alsasink

This example pipeline will parse the midi and render to raw audio which is played via alsa.

## Details

### GstTimidity

    typedef struct {
        GstElement element;

        GstPad *sinkpad, *srcpad;

        gboolean initialized;

        /* input stream properties */
        gint64 mididata_size, mididata_offset;
        gchar *mididata;
        gboolean mididata_filled;

        MidSong *song;

        /* output data */
        gboolean o_new_segment, o_segment_changed, o_seek;
        GstSegment o_segment[1];
        gint64 o_len;

        /* format of the stream */
        MidSongOptions song_options[1];
        gint64 bytes_per_frame;
        GstClockTime time_per_frame;

        GstCaps *out_caps;
    } GstTimidity;

## See Also

wildmidi