realtime

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package realtime provides MIDI System Realtime Messages

Index

Constants

View Source
const (
	// MIDI Clock
	TimingClock = msg(0xF8)

	// Tick
	Tick = msg(0xF9)

	// MIDI Start
	Start = msg(0xFA)

	// MIDI Continue
	Continue = msg(0xFB)

	// MIDI Stop
	Stop = msg(0xFC)

	// Undefined4
	Undefined4 = msg(0xFD)

	// Active Sense
	ActiveSensing = msg(0xFE)

	// Reset
	Reset = msg(0xFF)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

Message is a System Realtime Message

type Reader

type Reader interface {
	io.Reader
	// contains filtered or unexported methods
}

Reader is a realtime.Reader every realtime.Reader is an io.Reader but not every io.Reader is a realtime.Reader

func NewReader

func NewReader(input io.Reader, rthandler func(Message)) Reader

NewReader returns an io.Reader that filters realtime midi messages. For each realtime midi message, rthandler is called (if it is not nil) The Reader does no buffering and makes no attempt to close input.

Jump to

Keyboard shortcuts

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