Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MThd ¶
type MThd struct {
Tag string
Length uint32
Format uint16
Tracks uint16
Division uint16
PPQN uint16
SMPTETimeCode bool
SubFrames uint16
FPS uint8
DropFrame bool
Bytes types.Hex `json:"-"`
}
func (*MThd) UnmarshalBinary ¶
type MTrk ¶
type MTrk struct {
Tag string
TrackNumber types.TrackNumber
Length uint32
Bytes types.Hex `json:"-"`
Events []*events.Event
Context *context.Context
}
func (*MTrk) UnmarshalBinary ¶
type SMF ¶
type SMF struct {
File string `json:"-"s`
MThd *MThd `json:"header"`
Tracks []*MTrk `json:"tracks"`
}
func (*SMF) Validate ¶
func (smf *SMF) Validate() []ValidationError
type ValidationError ¶
type ValidationError error
Click to show internal directories.
Click to hide internal directories.