portmididrv

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: 7 Imported by: 8

README

portmididrv

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

Linux / Debian

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

Documentation

Overview

Package portmididrv provides an Driver to connect via portmidi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func New

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

New returns a new driver

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 in ports

func (*Driver) Outs

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

Outs returns the available MIDI out ports

func (*Driver) String

func (d *Driver) String() string

type Option

type Option func(*Driver)

Option is an option that can be passed to the driver

func SleepingTime

func SleepingTime(d time.Duration) Option

SleepingTime sets the duration for sleeping between reads when polling on in port The default sleeping time is 0.1ms

Directories

Path Synopsis
imported
portmidi
Package portmidi provides PortMidi bindings.
Package portmidi provides PortMidi bindings.

Jump to

Keyboard shortcuts

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