realtime

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 1 Imported by: 5

Documentation

Overview

Package realtime provides MIDI System Realtime Messages

Index

Constants

View Source
const (
	// TimingClock is a MIDI timing clock message
	TimingClock = msg(0xF8)

	// Tick is a midi tick message
	Tick = msg(0xF9)

	// Start is a MIDI start message
	Start = msg(0xFA)

	// Continue is a MIDI continue message
	Continue = msg(0xFB)

	// Stop is a MIDI stop message
	Stop = msg(0xFC)

	// Undefined4 is an undefined realtime message
	Undefined4 = msg(0xFD)

	// Activesense is a MIDI active sensing message
	Activesense = msg(0xFE)

	// Reset is a MIDI reset message
	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