runningstatus

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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	// Read reads the status byte off the canary and returns
	// if it has changed compared to the previous read
	Read(canary byte) (status byte, changed bool)
}

Reader is a running status reader

func NewLiveReader

func NewLiveReader() Reader

NewLiveReader returns a new Reader for reading of live MIDI data

func NewSMFReader

func NewSMFReader() Reader

NewSMFReader returns a new Reader for reading of SMF MIDI data

type SMFWriter

type SMFWriter interface {
	Write(midi.Message) []byte
	ResetStatus()
}

SMFWriter is a writer for writing messages with running status byte in SMF files

func NewSMFWriter

func NewSMFWriter() SMFWriter

NewSMFWriter returns a new SMFWriter

type Writer

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

Writer writes messages with running status byte

func NewLiveWriter

func NewLiveWriter(output io.Writer) Writer

NewLiveWriter returns a new Writer for live writing of messages with running status byte

Jump to

Keyboard shortcuts

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