rtmididrv

package module
v0.0.0-...-fccd5eb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 5 Imported by: 45

README

rtmididrv

This driver is based on the rtmidi project (see https://github.com/thestk/rtmidi for more information).

Linux / Debian

install the headers of alsa somehow before using this driver, e.g. sudo apt-get install libasound2-dev

Documentation

Overview

Package rtmididrv provides a Driver to connect via rtmidi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseErrors

type CloseErrors []error

CloseErrors collects error from closing multiple MIDI ports

func (CloseErrors) Error

func (c CloseErrors) Error() string

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New() (*Driver, error)

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

func (*Driver) Close

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

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

func (*Driver) Ins

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

Ins returns the available MIDI input ports

func (*Driver) OpenVirtualIn

func (d *Driver) OpenVirtualIn(name string) (drivers.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

func (d *Driver) OpenVirtualOut(name string) (drivers.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

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

Outs returns the available MIDI output ports

func (*Driver) String

func (d *Driver) String() string

Directories

Path Synopsis
imported
rtmidi Module

Jump to

Keyboard shortcuts

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