Documentation
¶
Overview ¶
Package meta provides MIDI Meta Messages
Index ¶
- Constants
- type Copyright
- type Cuepoint
- type DevicePort
- type KeySignature
- type Lyric
- type MIDIChannel
- type MIDIPort
- type Marker
- type Message
- type ProgramName
- type Reader
- type SMPTEOffset
- type Sequence
- type SequenceNumber
- type SequencerSpecific
- type Tempo
- type Text
- type TimeSignature
- type Track
- type Undefined
Constants ¶
const (
EndOfTrack = endOfTrack(true)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevicePort ¶
type DevicePort string
func (DevicePort) Raw ¶
func (m DevicePort) Raw() []byte
func (DevicePort) String ¶
func (m DevicePort) String() string
func (DevicePort) Text ¶
func (m DevicePort) Text() string
type KeySignature ¶
KeySignature sets the key/scale of the SMF file. If you want a more comfortable way to set the key, use the key subpackage.
func (KeySignature) Note ¶
func (m KeySignature) Note() (note string)
func (KeySignature) Raw ¶
func (m KeySignature) Raw() []byte
func (KeySignature) String ¶
func (m KeySignature) String() string
func (KeySignature) Text ¶
func (m KeySignature) Text() string
type MIDIChannel ¶
type MIDIChannel uint8
func (MIDIChannel) Number ¶
func (m MIDIChannel) Number() uint8
func (MIDIChannel) Raw ¶
func (m MIDIChannel) Raw() []byte
func (MIDIChannel) String ¶
func (m MIDIChannel) String() string
type ProgramName ¶
type ProgramName string
func (ProgramName) Raw ¶
func (m ProgramName) Raw() []byte
func (ProgramName) String ¶
func (m ProgramName) String() string
ProgramName
FF 08 length text ¶
This optional event is used to embed the patch/program name that is called up by the immediately subsequent Bank Select and Program Change messages. It serves to aid the end user in making an intelligent program choice when using different hardware.
This event may appear anywhere in a track, and there may be multiple occurrences within a track.
func (ProgramName) Text ¶
func (m ProgramName) Text() string
type Reader ¶
type Reader interface { // Read reads a single Meta Message. // It may just be called once per Reader. A second call returns io.EOF Read() (Message, error) }
Reader reads a Meta Message
type SMPTEOffset ¶
func (SMPTEOffset) Raw ¶
func (s SMPTEOffset) Raw() []byte
func (SMPTEOffset) String ¶
func (s SMPTEOffset) String() string
type SequenceNumber ¶
type SequenceNumber uint16
func (SequenceNumber) Number ¶
func (s SequenceNumber) Number() uint16
func (SequenceNumber) Raw ¶
func (s SequenceNumber) Raw() []byte
func (SequenceNumber) String ¶
func (s SequenceNumber) String() string
type SequencerSpecific ¶
type SequencerSpecific []byte
func (SequencerSpecific) Data ¶
func (s SequencerSpecific) Data() []byte
func (SequencerSpecific) Len ¶
func (s SequencerSpecific) Len() int
func (SequencerSpecific) Raw ¶
func (s SequencerSpecific) Raw() []byte
func (SequencerSpecific) String ¶
func (s SequencerSpecific) String() string
type TimeSignature ¶
type TimeSignature struct { Numerator uint8 Denominator uint8 ClocksPerClick uint8 DemiSemiQuaverPerQuarter uint8 }
TimeSignature sets the time signature according to the SMF spec. Denominator isn't a power of 2, but a readable decimal number (uint8). If you want a comfortabel way without having to worry about ClocksPerClick and DemiSemiQuaverPerQuarter, use the meter subpackage.
func (TimeSignature) Raw ¶
func (m TimeSignature) Raw() []byte
func (TimeSignature) Signature ¶
func (m TimeSignature) Signature() string
func (TimeSignature) String ¶
func (m TimeSignature) String() string
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package key provides helper functions for key signature meta messages.
|
Package key provides helper functions for key signature meta messages. |
Package meter provides helper functions for time signature meta messages.
|
Package meter provides helper functions for time signature meta messages. |