rtmididrv

package module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 6 Imported by: 73

README

rtmididrv

Please note that rtmididrv has moved to the main repository at gitlab.com/gomidi/midi/v2/drivers/rtmididrv All further development will be done there.

Documentation

Overview

Package rtmididrv provides a gomidi/midi/mid.Driver to connect to external MIDI ports via rtmidi. See the example to get an idea how to use it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseErrors added in v0.6.0

type CloseErrors []error

CloseErrors collects error from closing multiple MIDI ports

func (CloseErrors) Error added in v0.6.0

func (c CloseErrors) Error() string

type Driver added in v0.7.0

type Driver struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(options ...Option) (*Driver, error)

New returns a driver based on the default rtmidi in and out

func (*Driver) Close added in v0.7.0

func (d *Driver) Close() (err error)

Close closes all open ports. It must be called at the end of a session.

func (*Driver) Ins added in v0.7.0

func (d *Driver) Ins() (ins []midi.In, err error)

Ins returns the available MIDI input ports

func (*Driver) OpenVirtualIn added in v0.7.0

func (d *Driver) OpenVirtualIn(name string) (midi.In, error)

OpenVirtualIn opens and returns a virtual MIDI in. We can't get the port number, so set it to -1.

func (*Driver) OpenVirtualOut added in v0.7.0

func (d *Driver) OpenVirtualOut(name string) (midi.Out, error)

OpenVirtualOut opens and returns a virtual MIDI out. We can't get the port number, so set it to -1.

func (*Driver) Outs added in v0.7.0

func (d *Driver) Outs() (outs []midi.Out, err error)

Outs returns the available MIDI output ports

func (*Driver) String added in v0.7.0

func (d *Driver) String() string

type Option added in v0.9.4

type Option func(*Driver)

func IgnoreActiveSense added in v0.9.4

func IgnoreActiveSense() Option

func IgnoreSysex added in v0.9.4

func IgnoreSysex() Option

func IgnoreTimeCode added in v0.9.4

func IgnoreTimeCode() Option

Directories

Path Synopsis
imported

Jump to

Keyboard shortcuts

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