midi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 12 Imported by: 0

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

func (chunk *MThd) UnmarshalBinary(data []byte) error

type MTrk

type MTrk struct {
	Tag         string
	TrackNumber types.TrackNumber
	Length      uint32
	Bytes       types.Hex `json:"-"`

	Events []*events.Event

	Context *context.Context
}

func (*MTrk) Transpose

func (t *MTrk) Transpose(steps int)

func (*MTrk) UnmarshalBinary

func (chunk *MTrk) UnmarshalBinary(data []byte) error

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

Directories

Path Synopsis
encoding

Jump to

Keyboard shortcuts

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