# alsamidisrc

The alsamidisrc element is an element that fetches ALSA MIDI sequencer events and makes them available to elements understanding audio/x-midi-events in their sink pads.

It can be used to generate notes from a MIDI input device.

## Example launch line

     gst-launch -v alsamidisrc ports=129:0 ! fluiddec ! audioconvert ! autoaudiosink

This pipeline will listen for events from the sequencer device at port 129:0, and generate notes using the fluiddec element.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseSrc
                        ╰──GstPushSrc
                            ╰──alsamidisrc

## Factory details

Authors: – Antonio Ospite

Classification: – `Source`

Rank – primary

Plugin – gstalsa

Package – GStreamer Base Plug-ins

## Pad Templates

### `src`

    audio/x-midi-event:

Presence – always

Direction – src

Object type – GstPad

## Properties

### blocksize

    “blocksize” guint

Size in bytes to read per buffer (-1 = default)

Flags : Read / Write

Default value : 4096

### do-timestamp

    “do-timestamp” gboolean

Apply current stream time to buffers

Flags : Read / Write

Default value : false

### num-buffers

    “num-buffers” gint

Number of buffers to output before sending EOS (-1 = unlimited)

Flags : Read / Write

Default value : -1

### ports

    “ports” gchararray

Comma separated list of sequencer ports (e.g. client:port,...)

Flags : Read / Write

Default value : NULL

### typefind

    “typefind” gboolean

Run typefind before negotiating (deprecated, non-functional)

Flags : Read / Write

Default value : false

The results of the search are