syscommon

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package syscommon provides MIDI System Common Messages

Index

Constants

View Source
const (
	TuneRequest = tuneRequest(false)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MIDITimingCode

type MIDITimingCode uint8

func (MIDITimingCode) QuarterFrame

func (m MIDITimingCode) QuarterFrame() uint8

func (MIDITimingCode) Raw

func (m MIDITimingCode) Raw() []byte

func (MIDITimingCode) String

func (m MIDITimingCode) String() string

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 SongPositionPointer

type SongPositionPointer uint16

func (SongPositionPointer) Number

func (m SongPositionPointer) Number() uint16

func (SongPositionPointer) Raw

func (m SongPositionPointer) Raw() []byte

func (SongPositionPointer) String

func (m SongPositionPointer) String() string

type SongSelect

type SongSelect uint8

func (SongSelect) Number

func (m SongSelect) Number() uint8

func (SongSelect) Pos

func (m SongSelect) Pos() uint16

func (SongSelect) Raw

func (m SongSelect) Raw() []byte

TODO Test

func (SongSelect) String

func (m SongSelect) String() string

Jump to

Keyboard shortcuts

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