---
name: "midi_recorder"
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_recorder"
---

# midi\_recorder(3alleg)

Hook notifying you when new MIDI data becomes available. Allegro game programming library.

## NAME

midi\_recorder - Hook notifying you when new MIDI data becomes available. Allegro game programming library.

## SYNOPSIS

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

**extern void (\*midi\_recorder)(unsigned char data);**

## DESCRIPTION

If set, this function is called by the MIDI input driver whenever a new  byte of MIDI data becomes available. It runs in an interrupt context, so  it must execute very quickly and all the code/data must be locked. This currently works only under DOS and Windows.

## SEE ALSO

[**install\_sound\_input**(3alleg)](/install_sound_input/3alleg.md), [**midi\_out**(3alleg)](/midi_out/3alleg.md)
