---
name: "midi_time"
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_time/3alleg4"
---

# midi\_time(3alleg4)

The current position in the MIDI file, in seconds. Allegro game programming library.

## NAME

midi\_time - The current position in the MIDI file, in seconds. Allegro game programming library.

## SYNOPSIS

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

**extern volatile long midi\_time;**

## DESCRIPTION

Contains the position in seconds in the currently playing midi. This is useful if you want to display the current song position in seconds, not as beat number.

## SEE ALSO

**play\_midi**(3alleg4), **midi\_pos**(3alleg4), **get\_midi\_length**(3alleg4), **exmidi**(3alleg4)
