sysex

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: 1 Imported by: 6

Documentation

Overview

Package sysex provides MIDI System Exclusive Messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Continue

type Continue []byte

Continue is an incomplete sysex that is following Start or SysExContinue but not ending it. It starts with an 0xF7 but does not end with a 0xF7 when used within a SMF file, the first byte (0xF7) must be followed by a length when used live, no messages apart from realtime messages may be send before the rest of the sysex was send

func (Continue) Data

func (m Continue) Data() []byte

Data returns the inner sysex data

func (Continue) Len

func (m Continue) Len() int

Len returns the length of the sysex data

func (Continue) Raw

func (m Continue) Raw() []byte

Raw returns the data with the prefix 0xF7

func (Continue) String

func (m Continue) String() string

String represents the sysex.Continue as a string (for debugging)

type End

type End []byte

End is an incomplete sysex that is continuing Start or Continue and ending it. It starts with an 0xF7 and ends with a 0xF7 when used within a SMF file, the first byte (0xF7) must be followed by a length (including the last F7 but excluding the first) when used live, no messages apart from realtime messages may be send in between the preceding Start or Continue and this one

func (End) Data

func (m End) Data() []byte

Data returns the inner sysex data

func (End) Len

func (m End) Len() int

Len returns the length of the sysex data

func (End) Raw

func (m End) Raw() []byte

Raw returns the data with the prefix 0xF7 and the postfix 0xF7

func (End) String

func (m End) String() string

String represents the sysex.End as a string (for debugging)

type Escape

type Escape []byte

Escape is a sysex escape sequence with a prefixed 0xF7 it may only used within SMF files (not for live MIDI)

func (Escape) Data

func (m Escape) Data() []byte

Data returns the escaped data

func (Escape) Len

func (m Escape) Len() int

Len returns the length of the sysex data

func (Escape) Raw

func (m Escape) Raw() []byte

Raw returns the data with the escape prefix 0xF7

func (Escape) String

func (m Escape) String() string

String represents the sysex.Escape as a string (for debugging)

type Message

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

Message is a System Exclusive Message

type Start

type Start []byte

Start is an incomplete sysex that is the start of several sysexes (casio style) i.e. beginning with 0xF0 but no 0xF7 at the end when used within a SMF file, the first byte (0xF0) must be followed by a length when used live, no messages apart from realtime messages may be send before the rest of the sysex was send

func (Start) Data

func (m Start) Data() []byte

Data returns the inner sysex data

func (Start) Len

func (m Start) Len() int

Len returns the length of the sysex data

func (Start) Raw

func (m Start) Raw() []byte

Raw returns the data with the prefix 0xF0

func (Start) String

func (m Start) String() string

String represents the sysex.Start as a string (for debugging)

type SysEx

type SysEx []byte

SysEx is a sysex that is complete (i.e. starting with 0xF0 and ending with 0xF7 it may be used within SMF files and with live MIDI. However when used within a SMF file, the first byte (0xF0) must be followed by a length before the rest comes (including the 0xF7)

func (SysEx) Data

func (m SysEx) Data() []byte

Data returns the inner sysex data

func (SysEx) Len

func (m SysEx) Len() int

Len returns the length of the sysex data

func (SysEx) Raw

func (m SysEx) Raw() []byte

Raw returns the sysex data with the prefixed 0xF0 and the postfix 0xF7

func (SysEx) String

func (m SysEx) String() string

String represents the sysex message as a string (for debugging)

Jump to

Keyboard shortcuts

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