midi

package
v0.0.0-...-c80c131 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSBBankCC uint8 = 0
	LSBBankCC uint8 = 32
)

Variables

This section is empty.

Functions

func HandleMessage

func HandleMessage(msg interface{}) (interface{}, error)

func ReceiveClock

func ReceiveClock(rpcClient *rpc.Client) func()

func ReceiveContinue

func ReceiveContinue()

func ReceiveEach

func ReceiveEach(p *reader.Position, msg midi.Message)

func ReceiveReset

func ReceiveReset()

func ReceiveStart

func ReceiveStart()

func ReceiveStop

func ReceiveStop()

func ReceiveTick

func ReceiveTick()

func ReceiveUnknown

func ReceiveUnknown(p *reader.Position, msg midi.Message)

Types

type System

type System struct {
	Driver          midi.Driver
	DevicesIn       []midi.In
	DevicesOut      []midi.Out
	DeviceIn        midi.In
	DeviceOut       midi.Out
	Reader          *reader.Reader
	Writer          *writer.Writer
	DeviceInOpened  bool
	DeviceOutOpened bool
	ChannelSet      bool
}

func NewSystem

func NewSystem() *System

func (*System) CallMidi

func (s *System) CallMidi(call types.MidiCall) error

func (*System) Dispatch

func (s *System) Dispatch(ctx context.Context, calls []types.MidiCall,
	isParallel bool, flags *types.Flags)

func (*System) GetChannel

func (s *System) GetChannel() channel.Channel

func (*System) GetWriterChannel

func (s *System) GetWriterChannel() channel.Channel

func (*System) PlayChord

func (s *System) PlayChord(chord *types.MidiChord) error

func (*System) SetChannel

func (s *System) SetChannel(channelId uint8) error

func (*System) SetDevice

func (s *System) SetDevice(deviceId uint8) error

func (*System) SetReader

func (s *System) SetReader(rpcClient *rpc.Client, deviceInID uint8)

func (*System) SetWriter

func (s *System) SetWriter(deviceOutID uint8) error

func (*System) SetWriterChannel

func (s *System) SetWriterChannel(channelId uint8) error

func (*System) Shutdown

func (s *System) Shutdown()

Directories

Path Synopsis
This package is really just meant to be used for playing some example notes.
This package is really just meant to be used for playing some example notes.

Jump to

Keyboard shortcuts

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