midi

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package midi implements an fq plugin to decode standard MIDI files.

The MIDI decoder is a member of the 'probe' group and fq should automatically invoke the decoder when opening a MIDI file. The decoder can be explicitly specified with the '-d midi' command line option.

The decoder currently only supports MIDI 1.0 files and does only basic validation on the MIDI file structure.

Index

Constants

View Source
const (
	SequenceNumber         uint64 = 0x00
	Text                   uint64 = 0x01
	Copyright              uint64 = 0x02
	TrackName              uint64 = 0x03
	InstrumentName         uint64 = 0x04
	Lyric                  uint64 = 0x05
	Marker                 uint64 = 0x06
	CuePoint               uint64 = 0x07
	ProgramName            uint64 = 0x08
	DeviceName             uint64 = 0x09
	MIDIChannelPrefix      uint64 = 0x20
	MIDIPort               uint64 = 0x21
	Tempo                  uint64 = 0x51
	SMPTEOffset            uint64 = 0x54
	TimeSignature          uint64 = 0x58
	KeySignature           uint64 = 0x59
	EndOfTrack             uint64 = 0x2f
	SequencerSpecificEvent uint64 = 0x7f
)

MIDI meta-event status byte values.

View Source
const (
	NoteOff            uint64 = 0x80
	NoteOn             uint64 = 0x90
	PolyphonicPressure uint64 = 0xa0
	Controller         uint64 = 0xb0
	ProgramChange      uint64 = 0xc0
	ChannelPressure    uint64 = 0xd0
	PitchBend          uint64 = 0xe0
)

MIDI event status byte values. A MIDI event status byte is a composite byte composed of the event type in the high order nibble and the event channel (0 to 15) in the low order nibble.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL