---
name: "midi_out"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/midi_out"
---

# midi\_out(3alleg)

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**(3alleg)](/install_sound/3alleg.md), [**load\_midi\_patches**(3alleg)](/load_midi_patches/3alleg.md), [**midi\_recorder**(3alleg)](/midi_recorder/3alleg.md)
