ALSA project - the C library reference

Macros
MIDI Commands
Constants for Digital Audio Interfaces » Constants for MIDI v1.0

## Macros
#define | MIDI_CMD_NOTE_OFF 0x80
#define | MIDI_CMD_NOTE_ON 0x90
#define | MIDI_CMD_NOTE_PRESSURE 0xa0
#define | MIDI_CMD_CONTROL 0xb0
#define | MIDI_CMD_PGM_CHANGE 0xc0
#define | MIDI_CMD_CHANNEL_PRESSURE 0xd0
#define | MIDI_CMD_BENDER 0xe0
#define | MIDI_CMD_COMMON_SYSEX 0xf0
#define | MIDI_CMD_COMMON_MTC_QUARTER 0xf1
#define | MIDI_CMD_COMMON_SONG_POS 0xf2
#define | MIDI_CMD_COMMON_SONG_SELECT 0xf3
#define | MIDI_CMD_COMMON_TUNE_REQUEST 0xf6
#define | MIDI_CMD_COMMON_SYSEX_END 0xf7
#define | MIDI_CMD_COMMON_CLOCK 0xf8
#define | MIDI_CMD_COMMON_START 0xfa
#define | MIDI_CMD_COMMON_CONTINUE 0xfb
#define | MIDI_CMD_COMMON_STOP 0xfc
#define | MIDI_CMD_COMMON_SENSING 0xfe
#define | MIDI_CMD_COMMON_RESET 0xff

## Detailed Description

MIDI command codes.

## Macro Definition Documentation

## ◆ MIDI_CMD_BENDER

#define MIDI_CMD_BENDER 0xe0

pitch bender

## ◆ MIDI_CMD_CHANNEL_PRESSURE

#define MIDI_CMD_CHANNEL_PRESSURE 0xd0

channel pressure

## ◆ MIDI_CMD_COMMON_CLOCK

#define MIDI_CMD_COMMON_CLOCK 0xf8

clock

## ◆ MIDI_CMD_COMMON_CONTINUE

#define MIDI_CMD_COMMON_CONTINUE 0xfb

continue

## ◆ MIDI_CMD_COMMON_MTC_QUARTER

#define MIDI_CMD_COMMON_MTC_QUARTER 0xf1

MTC quarter frame

## ◆ MIDI_CMD_COMMON_RESET

#define MIDI_CMD_COMMON_RESET 0xff

reset

## ◆ MIDI_CMD_COMMON_SENSING

#define MIDI_CMD_COMMON_SENSING 0xfe

active sensing

## ◆ MIDI_CMD_COMMON_SONG_POS

#define MIDI_CMD_COMMON_SONG_POS 0xf2

song position

## ◆ MIDI_CMD_COMMON_SONG_SELECT

#define MIDI_CMD_COMMON_SONG_SELECT 0xf3

song select

## ◆ MIDI_CMD_COMMON_START

#define MIDI_CMD_COMMON_START 0xfa

start

## ◆ MIDI_CMD_COMMON_STOP

#define MIDI_CMD_COMMON_STOP 0xfc

stop

## ◆ MIDI_CMD_COMMON_SYSEX

#define MIDI_CMD_COMMON_SYSEX 0xf0

sysex (system exclusive) begin

## ◆ MIDI_CMD_COMMON_SYSEX_END

#define MIDI_CMD_COMMON_SYSEX_END 0xf7

end of sysex

## ◆ MIDI_CMD_COMMON_TUNE_REQUEST

#define MIDI_CMD_COMMON_TUNE_REQUEST 0xf6

tune request

## ◆ MIDI_CMD_CONTROL

#define MIDI_CMD_CONTROL 0xb0

control change

## ◆ MIDI_CMD_NOTE_OFF

#define MIDI_CMD_NOTE_OFF 0x80

note off

## ◆ MIDI_CMD_NOTE_ON

#define MIDI_CMD_NOTE_ON 0x90

note on

## ◆ MIDI_CMD_NOTE_PRESSURE

#define MIDI_CMD_NOTE_PRESSURE 0xa0

key pressure

## ◆ MIDI_CMD_PGM_CHANGE

#define MIDI_CMD_PGM_CHANGE 0xc0

program change