syscommon

package
v1.23.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package syscommon provides MIDI System Common Messages

Index

Constants

View Source
const (
	// Tune represents a MIDI tune request message
	Tune = tune(false)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MTC added in v1.7.0

type MTC uint8

MTC represents a MIDI timing code message (quarter frame)

func (MTC) QuarterFrame added in v1.7.0

func (m MTC) QuarterFrame() uint8

QuarterFrame returns the quarter frame

func (MTC) Raw added in v1.7.0

func (m MTC) Raw() []byte

Raw returns the raw bytes for the message

func (MTC) String added in v1.7.0

func (m MTC) String() string

String represents the MIDI timing code message as a string (for debugging)

type Message

type Message interface {
	String() string
	Raw() []byte
	// contains filtered or unexported methods
}

Message is a System Common Message

type Reader

type Reader interface {
	// Read reads a single syscommon message.
	// It may just be called once per Reader. A second call returns io.EOF
	Read() (Message, error)
}

Reader read a syscommon

func NewReader

func NewReader(input io.Reader, typ byte) Reader

NewReader returns a reader that can read a single syscommon message Read may just be called once per Reader. A second call returns io.EOF

type SPP added in v1.7.0

type SPP uint16

SPP represents the MIDI song position pointer (SPP)

func (SPP) Number added in v1.7.0

func (m SPP) Number() uint16

Number returns the number of the song position pointer

func (SPP) Raw added in v1.7.0

func (m SPP) Raw() []byte

Raw returns the raw bytes for the message

func (SPP) String added in v1.7.0

func (m SPP) String() string

String represents the MIDI song position pointer message as a string (for debugging)

type SongSelect

type SongSelect uint8

SongSelect represents the MIDI song select system message

func (SongSelect) Number

func (m SongSelect) Number() uint8

Number returns the number of the song

func (SongSelect) Raw

func (m SongSelect) Raw() []byte

Raw returns the raw bytes for the message TODO Test

func (SongSelect) String

func (m SongSelect) String() string

String represents the MIDI song select message as a string (for debugging)

Jump to

Keyboard shortcuts

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