---
name: "midi_out"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/midi_out/3alleg4"
---

# midi\_out(3alleg4)

Streams a block of MIDI commands into the player. Allegro game programming library.

## NAME

midi\_out - Streams a block of MIDI commands into the player. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void midi\_out(unsigned char \*data, int length);**

## DESCRIPTION

Streams a block of MIDI commands into the player in real-time, allowing  you to trigger notes, jingles, etc, over the top of whatever MIDI file is  currently playing.

## SEE ALSO

**install\_sound**(3alleg4), **load\_midi\_patches**(3alleg4), **midi\_recorder**(3alleg4)
