mmc

package
v2.0.28 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mmc helps with reading and writing of MIDI Universal Real Time SysEx Commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmTrack

type ArmTrack struct {
}

type Command

type Command byte
const (
	StopCmd         Command = 0x01
	PlayCmd         Command = 0x02
	DeferredPlayCmd Command = 0x03
	FastForwardCmd  Command = 0x04
	RewindCmd       Command = 0x05
	RecordStrobeCmd Command = 0x06
	PunchInCmd      Command = 0x06
	RecordExitCmd   Command = 0x07
	PunchOutCmd     Command = 0x07
	RecordPauseCmd  Command = 0x08
	PauseCmd        Command = 0x09
	EjectCmd        Command = 0x0A
	ChaseCmd        Command = 0x0B
	ResetCmd        Command = 0x0D
	WriteCmd        Command = 0x40
	RecordReadyCmd  Command = 0x40
	ArmTrackCmd     Command = 0x40
	GoToCmd         Command = 0x44
	LocateCmd       Command = 0x44
	ShuttleCmd      Command = 0x47
)

01 Stop 02 Play 03 Deferred Play (play after no longer busy) 04 Fast Forward 05 Rewind 06 Record Strobe (AKA [[Punch in/out|Punch In]]) 07 Record Exit (AKA [[Punch out (music)|Punch out]]) 08 Record Pause 09 Pause (pause playback) 0A Eject (disengage media container from MMC device) 0B Chase 0D MMC Reset (to default/startup state) 40 Write (AKA Record Ready, AKA Arm Tracks)

parameters: <length1> 4F <length2> <track-bitmap-bytes>

44 Goto (AKA Locate)

parameters: <length>=06 01 <hours> <minutes> <seconds> <frames> <subframes>

47 Shuttle

parameters: <length>=03 <sh> <sm> <sl> (MIDI Standard Speed codes)

func (Command) String

func (c Command) String() string

type GoTo

type GoTo struct {
	DeviceID byte
	Hour     byte
	Minute   byte
	Second   byte
	Frame    byte
	SubFrame byte
}

func (*GoTo) Parse

func (g *GoTo) Parse(bt []byte) error

func (GoTo) SysEx

func (g GoTo) SysEx() []byte

type Identity

type Identity struct {
	Channel byte
}

func (Identity) Parse

func (i Identity) Parse(bt []byte) error

func (Identity) SysEx

func (i Identity) SysEx() []byte

type Message

type Message struct {
	DeviceID byte
	Command
	IsResponse bool
	Data       []byte
}

func (*Message) Parse

func (g *Message) Parse(bt []byte) error

func (Message) String

func (m Message) String() string

func (Message) SysEx

func (m Message) SysEx() []byte

Jump to

Keyboard shortcuts

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