package
0.0.0-20240411020228-c5379f9b5b61
Repository: https://github.com/mattetti/audio.git
Documentation: pkg.go.dev

# README

DEPRECATED use go-audio/midi instead.

# Packages

No description provided by the author

# Functions

AfterTouch returns a pointer to a new aftertouch event.
ChannelAfterTouch is a global aftertouch with a value from 0 to 127.
ControlChange sets a new value for a given controller The controller number is between 0-119.
CopyrightEvent returns a copyright event with the passed string in it.
DecodeVarint reads a varint-encoded integer from the slice.
EncodeVarint returns the varint encoding of x.
EndOfTrack indicates the end of the midi track.
FreqToNote reports the associated midi node for a given frequency.
KeyFreq returns the frequency for the given key/octave combo https://en.wikipedia.org/wiki/MIDI_Tuning_Standard#Frequency_values.
KeyInt converts an A-G note notation to a midi note number value.
TODO.
No description provided by the author
No description provided by the author
No description provided by the author
NoteOff returns a pointer to a new event of type NoteOff (without the delta timing data).
NoteOn returns a pointer to a new event of type NoteOn (without the delta timing data).
NoteToFreq returns the frequency of the passed midi note.
NoteToName converts a midi note value into its English name.
PitchWheelChange is sent to indicate a change in the pitch bender.
ProgramChange sets a new value the same way as ControlChange but implements Mode control and special message by using reserved controller numbers 120-127.
TempoEvent returns a new tempo event of the passed value.
Uint24 converts a uint32 into a uint24 (big endian).

# Constants

No description provided by the author
Dur16th is the duration of a 1/16th note in beats.
Dur16thT is the duration of a 1/16th note in beats.
Dur8th is the duration of a 1/8th note in beats.
Dur8thT is the duration of a 1/8th triplet note in beats.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
ErrFmtNotSupported is a generic error reporting an unknown format.
ErrUnexpectedData is a generic error reporting that the parser encountered unexpected data.
EventByteMap takes an event name and returns its equivalent MIDI byte.
EventMap takes a event byte and returns its matching event name.
MetaByteMap maps metadata command names to their binary cmd code.
MetaCmdMap maps metadata binary command to their names.
No description provided by the author

# Structs

No description provided by the author
Decoder Format documented there: http://www.music.mcgill.ca/~ich/classes/mumt306/midiformat.pdf <Header Chunk> = <chunk type><length><format><ntrks><division> Division, specifies the meaning of the delta-times.
No description provided by the author
Event <event> = <MIDI event> | <sysex event> | <meta-event> <MIDI event> is any MIDI channel message.
No description provided by the author
No description provided by the author
Time signature FF 58 04 nn dd cc bb Time Signature The time signature is expressed as four numbers.
Track <Track Chunk> = <chunk type><length><MTrk event> <MTrk event> = <delta-time><event> .